Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0559468B2 - - Google Patents
[go: Go Back, main page]

JPH0559468B2 - - Google Patents

Info

Publication number
JPH0559468B2
JPH0559468B2 JP63172618A JP17261888A JPH0559468B2 JP H0559468 B2 JPH0559468 B2 JP H0559468B2 JP 63172618 A JP63172618 A JP 63172618A JP 17261888 A JP17261888 A JP 17261888A JP H0559468 B2 JPH0559468 B2 JP H0559468B2
Authority
JP
Japan
Prior art keywords
data
graphic data
graphic
pointer
definition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63172618A
Other languages
Japanese (ja)
Other versions
JPH0223470A (en
Inventor
Takashi Nimata
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National Institute of Advanced Industrial Science and Technology AIST
Original Assignee
Agency of Industrial Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agency of Industrial Science and Technology filed Critical Agency of Industrial Science and Technology
Priority to JP63172618A priority Critical patent/JPH0223470A/en
Publication of JPH0223470A publication Critical patent/JPH0223470A/en
Publication of JPH0559468B2 publication Critical patent/JPH0559468B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、図形データをデータベースとして
記憶管理し、データベースに図形データを入力し
たり、図形データを検索したりするデータベース
装置、特に図形データ検索装置に関するものであ
る。
[Detailed Description of the Invention] [Field of Industrial Application] This invention relates to a database device that stores and manages graphic data as a database, inputs graphic data into the database, and searches graphic data, and in particular, a database device that stores and manages graphic data as a database. It is related to the device.

〔従来の技術〕[Conventional technology]

第13図は、例えば情報処理学会研究報告85−
DB−50−1「図形データベースの特性と管理方
式の考案」の4ページのシステム構成図に見るよ
うな従来のデータベース装置を示すブロツク構成
図である。図において、1は図形データを入力す
る図形データ入力手段、2は図形データを記憶す
る図形データメモリ、3は図形データの定義情報
を入力する図形定義データ入力手段、4は図形デ
ータの定義情報を記憶する図形定義データメモ
リ、5は検索条件を入力する検索条件入力手段、
6はこの検索条件に従い図形定義データメモリ4
に記憶された図形データの定義情報を参照しなが
ら図形データメモリ2から指定された図形データ
を検索して読出す図形データ読出し手段、7は読
出された図形データを表示して確認するための図
形表示装置である。
Figure 13 shows, for example, Information Processing Society Research Report 85-
This is a block configuration diagram showing a conventional database device as shown in the system configuration diagram on page 4 of DB-50-1 ``Characteristics of Graphical Database and Development of Management Method''. In the figure, 1 is a graphic data input means for inputting graphic data, 2 is a graphic data memory for storing graphic data, 3 is a graphic definition data input means for inputting definition information of graphic data, and 4 is a graphic data input means for inputting definition information of graphic data. a figure definition data memory for storing; 5 a search condition input means for inputting search conditions;
6 is the figure definition data memory 4 according to this search condition.
A graphic data reading means for searching and reading designated graphic data from the graphic data memory 2 while referring to the definition information of the graphic data stored in the graphic data memory 2; 7 is a graphic for displaying and confirming the read graphic data; It is a display device.

このように構成された従来のデータベース装置
について、図形データを入力し、これに対して図
形データを検索する例を用いてその動作を説明す
る。
The operation of a conventional database device configured as described above will be explained using an example in which graphic data is input and graphic data is searched for.

第2図は説明に用いる図形データを示す。外枠
の数字はx(横方向)y(縦方向)の座標値であ
る。閉領域は家屋を、2本の平行線は道路を示
す。ここで、図形の定義を次のように行う。
FIG. 2 shows graphic data used for explanation. The numbers in the outer frame are x (horizontal) and y (vertical) coordinate values. The closed area represents a house, and the two parallel lines represent a road. Here, the figure is defined as follows.

即ち、ベクトルは2点で決定される直線、線は
途中に分岐点を持たないベクトルのつながり、線
群は互いに共有点を持ち一つの意味図形を構成す
る線の集合である。同図で、○内の数字は家屋番
号を、( )内の数字は線番号を示す。
That is, a vector is a straight line determined by two points, a line is a connection of vectors without a branch point in the middle, and a line group is a collection of lines that have common points and constitute one semantic figure. In the figure, the numbers in circles indicate house numbers, and the numbers in parentheses indicate line numbers.

通常、図形データはこのように図形の意味レベ
ルで階層的に定義することにより、データの重複
を避け、処理の内容に応じたレベルの図形データ
を選択して処理を行うことができる。
Normally, by defining graphic data hierarchically at the semantic level of the graphic in this way, it is possible to avoid duplication of data and to select and process graphic data at a level that corresponds to the content of the process.

第3図は、このように図形を定義した場合の第
2図の図形データの内容を示している。各テーブ
ルの1行はその図形レベルの1図形に対応する。
また、各テーブル内での行番号はその図形レベル
での図形データの一意番号を示している。被参照
テーブルへのポインタを与えるスタートおよび数
は、その図形データが参照する被参照テーブルの
行番号およびその行番号から連続して参照する行
数を示す。
FIG. 3 shows the contents of the graphic data in FIG. 2 when the graphic is defined in this way. One row of each table corresponds to one figure at that figure level.
Further, the row number in each table indicates a unique number of graphic data at the graphic level. The start and number that provide the pointer to the referenced table indicate the row number of the referenced table referred to by the graphic data and the number of rows consecutively referenced from that row number.

例として、家屋1は線群1を参照し、線群1は
線5、線1、線2、線3、および線6を参照す
る。また、線1はベクトル1、ベクトル2、およ
びベクトル3を参照する。中間テーブルは線群か
ら線へのポインタがスタートと数で与えられない
ため便宜上設けた仮想テーブルである。このよう
に、家屋1は8本のベクトルから構成される。
As an example, house 1 refers to line group 1, and line group 1 refers to line 5, line 1, line 2, line 3, and line 6. Line 1 also references vector 1, vector 2, and vector 3. The intermediate table is a virtual table provided for convenience since pointers from line groups to lines are not given by start and number. In this way, house 1 is composed of eight vectors.

第4図a,bは第3図に見る図形データの定義
構造の情報である。個々の図形テーブルのデータ
構造を定義する図形定義テーブル(同図a)およ
び各図形テーブル間の参照構造を定義する参照定
義テーブル(同図b)から成る。
FIGS. 4a and 4b show information on the definition structure of the graphic data shown in FIG. It consists of a figure definition table (a) that defines the data structure of each figure table and a reference definition table (b) that defines the reference structure between the figure tables.

図形定義テーブルにおいて、図形タイプはその
図形データが座標データを持つ(図形タイプ=
2)が持たない(図形タイプ=1)かの区別を表
す。例として、家屋テーブルは図形タイプ=1
(座標データを持たない)で、カラム数は3、行
数(図形データ数)は2である。
In the figure definition table, the figure type has coordinate data (figure type =
2) indicates whether it does not have (figure type = 1) or not. As an example, the house table has shape type = 1
(does not have coordinate data), the number of columns is 3, and the number of rows (number of graphic data) is 2.

参照定義テーブルにおいて、参照タイプは被参
照テーブルへのポインタがスタートと数より与え
られる(参照タイプ=1)か被参照テーブルの行
番号で与えられる(参照タイプ=2)かの区別を
表す。参照ポインタのカラム番号は、参照テーブ
ルにおける参照ポインタのカラム番号を表す。例
として、家屋テーブルから線群テーブルへの参照
タイプは1(ポインタはスタートと数で与えられ
る)で、そのポインタは家屋テーブルの2カラム
目から始まる(同定義テーブルの1行目)。
In the reference definition table, the reference type indicates whether a pointer to the referenced table is given by a start and a number (reference type=1) or by a row number of the referenced table (reference type=2). The column number of the reference pointer represents the column number of the reference pointer in the reference table. As an example, the reference type from the house table to the line group table is 1 (the pointer is given by a start and a number), and the pointer starts at the second column of the house table (the first row of the same definition table).

まず、図形定義データ入力手段3は、第4図の
図形定義テーブルおよび参照定義テーブルの情報
を入力し、図形定義データメモリ4に格納する。
また、図形データ入力手段1は第3図の図形デー
タを入力し、図形データメモリ2に格納する。
First, the figure definition data input means 3 inputs the information of the figure definition table and the reference definition table shown in FIG. 4, and stores it in the figure definition data memory 4.
Further, the graphic data input means 1 inputs the graphic data shown in FIG. 3 and stores it in the graphic data memory 2.

次に、このような図形データのデータベースに
対して検索を行うため、検索条件入力手段5から
検索条件を入力する。第14図はこの説明で用い
る検索条件の内容を示す。即ち、家屋テーブル
(指定テーブル)についてこれが参照するベクト
ルテーブル(目的テーブル)の図形データを検索
して読出す。
Next, in order to search such a database of graphic data, search conditions are inputted from the search condition input means 5. FIG. 14 shows the contents of the search conditions used in this explanation. That is, the graphic data of the vector table (target table) referred to by the house table (designated table) is searched and read out.

図形データ読出し手段6は、第14図の検索条
件に従い図形定義データメモリ4に記憶された第
4図の定義情報を参照しながら、図形データメモ
リ2に記憶された第3図の図形データに対して検
索を行う。まず第4図の参照定義テーブルから、
家屋テーブル→線群テーブル→中間テーブル→線
テーブル→ベクトルテーブルの順にデータをアク
セスすればよいこと、被参照テーブルをアクセス
するための参照のタイプ、ポインタのあるカラム
番号がわかる。
The figure data reading means 6 reads the figure data of FIG. 3 stored in the figure data memory 2 while referring to the definition information of FIG. 4 stored in the figure definition data memory 4 according to the search conditions of FIG. Search. First, from the reference definition table in Figure 4,
You can see that data should be accessed in the order of house table → line group table → intermediate table → line table → vector table, the type of reference to access the referenced table, and the column number where the pointer is located.

これにより、図形データ読出し手段6は家屋1
から始めて線群へのポインタにより線群1をアク
セスする。次に線群1の中間ポインタへのポイン
タにより中間テーブルの1〜5行をアクセスす
る。さらに、その線へのポインタにより線テーブ
ルの行番号5,1,2,3,6の各行をアクセス
する。最後にそのベクトルへのポインタによりベ
クトルの行番号8,1〜3,4〜5,6,9の各
行をアクセスする。
As a result, the graphic data reading means 6 reads the house 1
Starting from , line group 1 is accessed by the pointer to the line group. Next, rows 1 to 5 of the intermediate table are accessed using the pointer to the intermediate pointer of line group 1. Furthermore, each line with line numbers 5, 1, 2, 3, and 6 of the line table is accessed using the pointer to that line. Finally, the vector row numbers 8, 1 to 3, 4 to 5, 6, and 9 are accessed using the pointer to the vector.

このようにして、家屋1に対して読出されたベ
クトルデータを示したのが第6図である。家屋2
に対しても同様にベクトルデータが読出される。
読出されたベクトルデータの座標値をもとに図形
表示装置7に表示された図形が第7図である。
FIG. 6 shows vector data read out for house 1 in this manner. house 2
Vector data is similarly read out for .
FIG. 7 shows a graphic displayed on the graphic display device 7 based on the coordinate values of the read vector data.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで上記のような従来のデータベース装置
では、説明で用いた検索の例、即ち検索で指定す
る図形テーブル(指定テーブル)と、データを読
出すべき図形テーブル(目的テーブル)との間に
1つ以上の図形テーブルが定義されている場合で
は、目的テーブルのデータをアクセスするのに毎
回必ず指定テーブルから順に目的テーブルまでの
各図形テーブルのポインタをアクセスする必要が
ある。
By the way, in the conventional database device as described above, in the search example used in the explanation, there is one or more between the figure table specified in the search (specified table) and the figure table from which data is to be read (target table). When a graphic table is defined, it is necessary to access the pointer of each graphic table in order from the specified table to the target table each time to access the data of the target table.

従つて、目的テーブルに至るまでのテーブル数
が多くなるにつれて、アクセスすべきデータ量が
増大するため、図形データの検索に要する時間が
多大になる等、性能上の問題点があつた。
Therefore, as the number of tables leading to the target table increases, the amount of data to be accessed increases, resulting in performance problems such as an increase in the time required to search for graphic data.

この発明は上記のような問題点を解消するため
になされたもので、図形データの検索を高速に行
うことができる図形データ検索装置を得ることを
目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a graphic data retrieval device that can search graphic data at high speed.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係る図形データ検索装置は、図形デ
ータ読出し手段6により読出された目的テーブル
の図形データに含まれる一意番号、すなわち行番
号を一時的に記憶する図形データ一時記憶手段8
と、記憶された行番号をソートするソート手段9
と、ソートされた行番号に連続しない箇所がある
場合にその不連続箇所を検出する不連続検出手段
10と、ソート手段9と不連続検出手段10によ
り得られたデータをもとに指定テーブルの図形デ
ータからの目的テーブルの図形データへの直接の
参照ポインタを生成するポインタ生成手段11と
を付加したものである。
The graphic data retrieval device according to the present invention includes a graphic data temporary storage unit 8 that temporarily stores a unique number, that is, a line number, included in the graphic data of the target table read by the graphic data reading unit 6.
and sorting means 9 for sorting the stored line numbers.
, a discontinuity detection means 10 detects the discontinuity when there is a discontinuity in the sorted line numbers, and a discontinuity detection means 10 detects the discontinuity when the sorted line numbers are discontinuous. A pointer generation means 11 for generating a direct reference pointer from the graphic data to the graphic data of the object table is added.

〔作用〕[Effect]

この発明における図形データ一時記憶手段8
は、図形データ読出し手段6により読出された目
的テーブルの図形データの行番号を一時的に記憶
する。ソート手段9は、図形データ一時記憶手段
8に記憶された行番号をソートする。不連続検出
手段10は、ソートされた行番号において番号が
不連続の箇所を検出する。ポインタ生成手段11
は、ソートされた行番号およびその不連続箇所の
情報をもとに指定テーブルの図形データからの目
的テーブルの図形データへの直接の参照ポインタ
を生成する。
Graphic data temporary storage means 8 in this invention
temporarily stores the row number of the graphic data of the target table read by the graphic data reading means 6. The sorting means 9 sorts the line numbers stored in the graphic data temporary storage means 8. The discontinuity detection means 10 detects locations where the numbers are discontinuous in the sorted line numbers. Pointer generation means 11
generates a direct reference pointer from the graphic data of the specified table to the graphic data of the target table based on the sorted line numbers and the information on their discontinuous locations.

図形データ入力手段1及び図形定義データ入力
手段3はこうして生成されたポインタ及びその定
義情報を図形データ記憶手段2及び図形定義デー
タ記憶手段4に追加入力する。これにより、図形
データ読出し手段6は、以降上記と同じ指定テー
ブルから目的テーブルへの検索が要求された時は
このポインタをアクセスして目的テーブルの図形
データを高速に読出す。
The graphic data input means 1 and the graphic definition data input means 3 additionally input the thus generated pointer and its definition information to the graphic data storage means 2 and the graphic definition data storage means 4. Thereby, the graphic data reading means 6 accesses this pointer and reads the graphic data of the target table at high speed when a search from the same specified table as above to the target table is requested.

〔実施例〕〔Example〕

第1図は、この発明の一実施例であるデータベ
ース装置を示すブロツク構成図で、図中、第13
図従来例と同一符号は同一または相当部分を示し
ており、その説明は省略する。
FIG. 1 is a block configuration diagram showing a database device which is an embodiment of the present invention.
The same reference numerals as in the conventional example in the figure indicate the same or corresponding parts, and the explanation thereof will be omitted.

図において、8は図形データ読出し手段6によ
り読出された図形データの行番号を一時的に記憶
するバツフアメモリ、9はバツフアメモリ8に記
憶された行番号を昇順にソートするソー手段、1
0はソート手段9によりソートされた行番号にお
いて番号が不連続の箇所を検出する不連続検出手
段、11はソートされた行番号およびその不連続
箇所の情報をもとに指定テーブルの図形データか
ら目的テーブルの図形データへの直接の参照ポイ
ンタを生成するポインタ生成手段である。
In the figure, 8 is a buffer memory for temporarily storing the line numbers of the graphic data read out by the graphic data reading means 6; 9 is a sorting means for sorting the line numbers stored in the buffer memory 8 in ascending order; 1;
0 is a discontinuity detection means for detecting a discontinuous place in the line numbers sorted by the sorting means 9, and 11 is a discontinuity detection means for detecting a place where the numbers are discontinuous in the line numbers sorted by the sorting means 9; This is a pointer generation means that generates a direct reference pointer to the graphic data of the target table.

次に、第1図のデータベース装置の動作例を従
来のデータベース装置の動作例で用いたのと同じ
第2図の図形データを用いて説明する。
Next, an example of the operation of the database device shown in FIG. 1 will be explained using the same graphic data shown in FIG. 2 as used in the example of the operation of the conventional database device.

従来のデータベース装置と同様に図形定義デー
タ入力手段3は第4図に示す図形データの定義情
報を入力し、図形定義データメモリ4に格納す
る。また図形データ入力手段1は第3図の図形デ
ータを入力し、図形データメモリ2に格納する。
Similar to a conventional database device, the figure definition data input means 3 inputs the definition information of the figure data shown in FIG. 4, and stores it in the figure definition data memory 4. Further, the graphic data input means 1 inputs the graphic data shown in FIG. 3 and stores it in the graphic data memory 2.

次に、このような図形データのデータベースに
対して検索を行うため、検索条件入力手段5から
検索条件を入力する。第5図はこの検索条件の内
容を示す。検索条件は、家屋テーブル(指定テー
ブル)についてこれが参照するベクトルテーブル
(目的テーブル)の図形データを読出すことを示
す。但しこの時、家屋テーブルからベクトルテー
ブルへの直接の参照ポインタ(インデツクス)を
生成する(検索タイプ=1)ことを指定してい
る。
Next, in order to search such a database of graphic data, search conditions are inputted from the search condition input means 5. FIG. 5 shows the contents of this search condition. The search condition indicates that the graphic data of the vector table (target table) referred to by the house table (designated table) is to be read. However, at this time, it is specified that a direct reference pointer (index) from the house table to the vector table is to be generated (search type=1).

図形データ読出し手段6は、第5図の検索条件
に従い図形定義データメモリ4に記憶された第4
図の定義情報を参照しながら、図形データメモリ
2に記憶された第3図の図形データに対して検索
を行う。
The figure data reading means 6 reads the fourth data stored in the figure definition data memory 4 according to the search conditions shown in FIG.
The graphic data of FIG. 3 stored in the graphic data memory 2 is searched while referring to the definition information of the diagram.

従来のデータベース装置と同様にして家屋1に
対して読出されたベクトルデータを示したのが第
6図である。家屋2に対しても同様にベクトルデ
ータが読出される。
FIG. 6 shows vector data read out for house 1 in the same manner as in the conventional database device. Vector data for house 2 is similarly read out.

次に、家屋テーブルからベクトルテーブルへの
直接の参照ポインタを生成するため、図形データ
読出し手段6は家屋1について読出されたベクト
ルデータの行番号をバツフアメモリ8に入力す
る。第8図aはバツフアメモリ8の内容である。
ソート手段9はこの行番号を昇順にソートする。
ソートされた結果が第8図bである。さらに、不
連続検出手段10は、ソートされた結果に対し行
番号が連続しない箇所を検出する。第8図cは検
出された不連続箇所に示している。これにより、
家屋1はベクトル1〜6とベクトル8〜9を参照
していることがわかる。従つて、ポインタ生成手
段11は第8図dに示すポインタを生成し、生成
されたポインタは図形データ入力手段1により図
形データメモリ2に追加入力される。家屋2につ
いても同様にベクトルテーブルへのポインタが生
成され、図形データメモリ2に入力される。第9
図のフローチヤートはポインタが生成される上記
手順を第8図a〜dに対応して示している。第1
0図は、こうして図形データメモリ2に作成され
た結果を示している。同図で、家屋テーブル中の
インデツクスへのポインタ、インデツクステーブ
ルのベクトルへのポインタが、生成して入力され
た部分である。
Next, the graphic data reading means 6 inputs the row number of the vector data read for the house 1 into the buffer memory 8 in order to generate a direct reference pointer from the house table to the vector table. FIG. 8a shows the contents of the buffer memory 8.
The sorting means 9 sorts the line numbers in ascending order.
The sorted results are shown in FIG. 8b. Furthermore, the discontinuity detection means 10 detects locations where line numbers are not consecutive in the sorted results. FIG. 8c shows the detected discontinuity. This results in
It can be seen that house 1 refers to vectors 1-6 and vectors 8-9. Therefore, the pointer generating means 11 generates the pointer shown in FIG. 8d, and the generated pointer is additionally inputted into the graphic data memory 2 by the graphic data input means 1. Similarly, a pointer to the vector table for house 2 is generated and input into graphic data memory 2. 9th
The flowchart shown in the figure shows the above procedure in which pointers are generated, corresponding to FIGS. 8a-d. 1st
FIG. 0 shows the result created in the graphic data memory 2 in this way. In the figure, a pointer to an index in the house table and a pointer to a vector in the index table are generated and inputted parts.

一方、図形定義データ入力手段3は、こうして
作成された家屋テーブルからベクトルテーブルへ
の直接の参照ポインタをこの後の検索時に利用可
能とするため、インデツクステーブルの定義情報
およびインデツクステーブルと家屋、ベクトルテ
ーブルとの参照定義情報をそれぞれ図形定義デー
タメモリ4の図形定義テーブルおよび参照定義テ
ーブルに追加入力する。第11図a,bは追加入
力後の図形定義データメモリ4の内容を示す。
On the other hand, the figure definition data input means 3 inputs the definition information of the index table and the index table, house, Reference definition information with respect to the vector table is additionally input into the figure definition table and the reference definition table of the figure definition data memory 4, respectively. FIGS. 11a and 11b show the contents of the figure definition data memory 4 after additional input.

次に、こうして生成されたインデツクスを使用
して検索する例を説明する。検索条件入力手段5
から第12図に示す検索条件が入力される。検索
条件は、家屋テーブル(指定テーブル)につい
て、これが参照するベクトルテーブル(目的テー
ブル)の図形データを読出すことを示す。但し、
この時、インデツクスを使用する(検索タイプ=
2)ことを指定している。図形データ読出し手段
6は、第12図の検索条件に従い図形定義データ
メモリ4に記憶された第11図の定義情報を参照
しながら、図形データメモリ2に記憶された図形
データに対して検索を行う。まず、第12図の検
索条件と第11図の参照定義テーブルから、家屋
テーブル→インデツクステーブル→ベクトルテー
ブルの順にポインタに従いデータをアクセスすれ
ばよいこと、被参照テーブルをアクセスするため
の参照ポインタのタイプ、ポインタのあるカラム
番号がわかる。
Next, an example of searching using the thus generated index will be explained. Search condition input means 5
The search conditions shown in FIG. 12 are input from . The search condition indicates that, for the house table (designated table), graphic data of the vector table (target table) referred to by the house table (designated table) is to be read. however,
At this time, use an index (search type =
2) It specifies that The graphic data reading means 6 searches the graphic data stored in the graphic data memory 2 while referring to the definition information shown in FIG. 11 stored in the graphic definition data memory 4 according to the search conditions shown in FIG. . First, from the search conditions in Fig. 12 and the reference definition table in Fig. 11, it is necessary to access data by following the pointers in the order of house table → index table → vector table, and the reference pointer for accessing the referenced table. You can see the type and column number where the pointer is located.

これにより、図形データ読出し手段6は、家屋
1から始めてインデツクスへのポインタに従いイ
ンデツクステーブルの1〜2行をアクセスする。
さらにそのベクトルへのポインタに従いベクトル
テーブルの行番号1〜6および8〜9の各行の図
形データを読出す。
Thereby, the graphic data reading means 6 accesses 1 to 2 rows of the index table starting from the house 1 and following the pointer to the index.
Furthermore, according to the pointer to the vector, the graphic data of each row numbered 1 to 6 and 8 to 9 of the vector table is read out.

このようにして、家屋1に対して第6図に示し
たので同じベクトルデータが高速に読出される。
家屋2に対しても同様にベクトルデータが高速に
読出される。そして、読出されたベクトルデータ
の座標値をもとに第7図に示す図形が図形表示装
置7に表示される。
In this way, the same vector data as shown in FIG. 6 for house 1 can be read out at high speed.
Vector data for house 2 is similarly read out at high speed. Then, the graphic shown in FIG. 7 is displayed on the graphic display device 7 based on the coordinate values of the read vector data.

従つて、ある指定した図形テーブルの図形デー
タが参照する他の図形テーブル(目的テーブル)
の図形データを検索して読出す処理を高速に行う
ことができる。これは、上記実施例で示したよう
に、インデツクスがない場合に家屋1が参照する
ベクトルデータを検索して読出すのにアクセスす
べき図形テーブルの総行数が20(家屋テーブルで
1行、線群テーブルで1行、中間テーブルで5
行、線テーブルで5行、ベクトルテーブルで8行
アクセスする)であるのに対し、インデツクスを
使用して家屋1が参照するベクトルデータを検索
して読出すのにアクセスすべき図形テーブルの総
行数が11(家屋テーブルで1行、インデツクス
テーブルで2行、ベクトルテーブルで8行アクセ
スする)で済むことから明らかである。
Therefore, other figure tables (purpose tables) referenced by the figure data of a specified figure table
The process of searching and reading graphic data can be performed at high speed. This is because, as shown in the above embodiment, when there is no index, the total number of rows in the figure table that must be accessed to search and read the vector data referenced by house 1 is 20 (one row in the house table, 1 row in the line group table, 5 in the intermediate table
5 rows in the line table and 8 rows in the vector table), whereas the total number of rows in the figure table that must be accessed to search and read the vector data referenced by house 1 using the index is This is clear from the fact that the number of accesses is 11 (accessing one row in the house table, two rows in the index table, and eight rows in the vector table).

また、インデツクスを作成する前にポインタに
従い指定テーブルから目的テーブルへ至るまでに
アクセスすべき図形テーブルの個数(実施例では
3個)が多いほど、この発明による効果は大き
い。
Furthermore, the greater the number of graphic tables (three in the embodiment) that must be accessed from the designated table to the target table according to the pointer before creating an index, the greater the effect of the present invention.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、図形データ
読出し手段により読出された図形データに含まれ
る一意番号を一時的に記憶する図形データ一時記
憶手段と、記憶された一意番号をソートするソー
ト手段と、ソートされた一意番号に連続しない箇
所がある場合にその不連続箇所を検出する不連続
検出手段と、ソート手段と不連続検出手段により
得られたデータをもとに上記指定テーブルの図形
データからの目的テーブルの図形テーブルをの直
接指すポインタを生成するポインタ生成手段とを
付加し生成されたポインタとその定義情報を図形
データ記憶手段と図形定義データ記憶手段に追加
入力し、以降の同一検索は上記ポインタを用いて
行うようにしたので、図形データの検索を高速に
行える効果が得られる。
As described above, according to the present invention, there is provided a temporary graphic data storage means for temporarily storing unique numbers included in the graphic data read by the graphic data reading means, and a sorting means for sorting the stored unique numbers. , a discontinuity detection means for detecting discontinuity when there is a discontinuity in the sorted unique numbers; A pointer generation means for generating a pointer directly pointing to the figure table of the object table is added, and the generated pointer and its definition information are additionally input to the figure data storage means and the figure definition data storage means, and subsequent identical searches are performed. Since the above-mentioned pointer is used, it is possible to obtain the effect that graphic data can be searched at high speed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例を示すブロツク構
成図、第2図は図形データ入力手段から入力する
図形データの模式図、第3図および第10図はそ
の図形データの内容を示す図、第4図a,bおよ
び第11図a,bはそれぞれ第3図および第10
図で示される図形データについてデータ構造の定
義情報を示す図、第5図と第12図は実施例にお
いて検索条件入力手段から入力される検索条件の
内容を示す図、第6図は図形データ読出し手段に
より図形データメモリから検索して読出された図
形データを示す図、第7図は検索して読出された
図形データの座標値をもとに図形表示装置に表示
した結果を示す図、第8図a〜dは指定テーブル
から目的テーブルへの直接参照ポインタを生成す
るために、バツフアメモリ内のデータが処理され
ていく様子を示す図、第9図はこの直接参照ポイ
ンタを生成する処理の流れを示すフローチヤー
ト、第13図は従来のデータベース装置のブロツ
ク構成図、第14図は従来例において検索条件入
力手段から入力される検索条件の内容を示す図で
ある。 図中、1は図形データ入力手段、2は図形デー
タメモリ(図形データ記憶手段)、3は図形定義
データ入力手段、4は図形定義データメモリ(図
形定義データ記憶手段)、5は検索条件入力手段、
6は図形データ読出し手段、7は図形表示装置、
8はバツフアメモリ(図形データ一時記憶手段)、
9はソート手段、10は不連続検出手段、11は
ポインタ生成手段である。尚、図中、同一符号は
同一または相当部分を示す。
FIG. 1 is a block configuration diagram showing an embodiment of the present invention, FIG. 2 is a schematic diagram of graphic data input from a graphic data input means, FIGS. 3 and 10 are diagrams showing the contents of the graphic data, Figure 4 a, b and Figure 11 a, b are the same as Figure 3 and 10, respectively.
5 and 12 are diagrams showing the contents of the search conditions input from the search condition input means in the embodiment, and FIG. 6 is the figure data readout diagram. FIG. 7 is a diagram showing the graphic data retrieved and read out from the graphic data memory by the means; FIG. 7 is a diagram showing the results displayed on the graphic display device based on the coordinate values of the retrieved and read graphic data; FIG. Figures a to d show how data in the buffer memory is processed to generate a direct reference pointer from the designated table to the target table, and Figure 9 shows the flow of processing to generate this direct reference pointer. FIG. 13 is a block diagram of a conventional database apparatus, and FIG. 14 is a diagram showing the contents of search conditions input from search condition input means in the conventional example. In the figure, 1 is a figure data input means, 2 is a figure data memory (figure data storage means), 3 is a figure definition data input means, 4 is a figure definition data memory (figure definition data storage means), and 5 is a search condition input means ,
6 is a graphic data reading means; 7 is a graphic display device;
8 is a buffer memory (temporary storage means for figure data);
9 is a sorting means, 10 is a discontinuity detecting means, and 11 is a pointer generating means. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 1 同一のデータ構造をもつ1以上の図形データ
からなる個々の図形テーブルのデータ構造を定義
する情報および各図形テーブル間の参照構造を定
義する情報を入力する図形定義データ入力手段
と、図形定義データ入力手段から入力されたデー
タを記憶する図形定義データ記憶手段と、図形テ
ーブル内での一意番号と座標データ又は他の図形
テーブルの図形データへの参照ポインタからなる
図形データを入力する図形データ入力手段と、図
形データ入力手段から入力された図形データを記
憶する図形データ記憶手段と、検索条件を入力す
る検索条件入力手段と、この検索条件に従い図形
定義データ記憶手段に記憶された定義情報を参照
しながら図形データ記憶手段から検索条件で示さ
れた指定テーブルの図形データよりポインタに従
つて目的テーブルの図形データを検索して読出す
図形データ読出し手段と、図形データ読出し手段
により読出された図形データに含まれる一意番号
を一時的に記憶する図形データ一時記憶手段と、
記憶された一意番号をソートするソート手段と、
ソートされた一意番号に連続しない箇所がある場
合にその不連続箇所を検出する不連続検出手段
と、ソート手段と不連続検出手段により得られた
データをもとに上記指定テーブルの図形データか
ら目的テーブルの図形データを直接指すポインタ
を生成するポインタ生成手段とを備え、生成され
たポインタとその定義情報を図形データ記憶手段
と図形定義データ記憶手段に追加入力し、以降の
同一検索は上記ポインタを用いて行うようにした
ことを特徴とする図形データ検索装置。
1. A figure definition data input means for inputting information defining the data structure of each figure table consisting of one or more figure data having the same data structure and information defining a reference structure between each figure table, and figure definition data. A figure definition data storage means for storing data input from the input means, and a figure data input means for inputting figure data consisting of a unique number within a figure table and coordinate data or a reference pointer to figure data in another figure table. , a graphic data storage means for storing the graphic data input from the graphic data input means, a search condition input means for inputting search conditions, and definition information stored in the graphic definition data storage means according to the search conditions. a graphic data reading means for searching and reading graphic data of a target table according to a pointer from the graphic data of a specified table indicated by the search condition from the graphic data storage means; a graphic data temporary storage means for temporarily storing the included unique number;
a sorting means for sorting the stored unique numbers;
A discontinuity detection means detects the discontinuity when there is a discontinuity in the sorted unique numbers, and a purpose is determined from the graphic data in the specified table based on the data obtained by the sorting means and the discontinuity detection means. A pointer generation means for generating a pointer that directly points to the figure data of the table, and the generated pointer and its definition information are additionally input to the figure data storage means and the figure definition data storage means, and the same pointer is used for subsequent searches. 1. A graphic data retrieval device characterized in that a graphic data retrieval device is used.
JP63172618A 1988-07-13 1988-07-13 Graphic data retrieving device Granted JPH0223470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63172618A JPH0223470A (en) 1988-07-13 1988-07-13 Graphic data retrieving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63172618A JPH0223470A (en) 1988-07-13 1988-07-13 Graphic data retrieving device

Publications (2)

Publication Number Publication Date
JPH0223470A JPH0223470A (en) 1990-01-25
JPH0559468B2 true JPH0559468B2 (en) 1993-08-31

Family

ID=15945215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63172618A Granted JPH0223470A (en) 1988-07-13 1988-07-13 Graphic data retrieving device

Country Status (1)

Country Link
JP (1) JPH0223470A (en)

Also Published As

Publication number Publication date
JPH0223470A (en) 1990-01-25

Similar Documents

Publication Publication Date Title
JPS63111551A (en) Memorizing and addressing system for data parcel and apparatus for executing the same
US4803477A (en) Management system of graphic data
JPS6037945B2 (en) How to display hierarchical tree-structured text in an ordered structure
JPH0559468B2 (en)
JP2577397B2 (en) Graphic display device
JPH04145578A (en) Method for processing designation of retrieval keyword and information retrieving device
JPH04112253A (en) Data accessing method using multilayer buffer
JP2863484B2 (en) Map display method
JP2759954B2 (en) Electronic map search device
JP2590327B2 (en) How to manage drawing information
JPS62121532A (en) Data search method
JPH02222044A (en) Data processor
JPH04174071A (en) Hash processor
JPH0330069A (en) File managing device
JP2507399B2 (en) Database equipment
JPH02148365A (en) Echo displaying system for graphic display device
JPH0524550B2 (en)
JP2860497B2 (en) High-speed screen controller
JPH0764835A (en) Data storage system for relational data base
JPH04142675A (en) Map display processor
JPH09212515A (en) Information retrieval device
JPH01228022A (en) Tow-dimensional data storing system
JPH02257282A (en) Table preparation processor
JPS633351A (en) Buffer retrieving control system
JPH04245563A (en) Preparation of retrieving table

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term