JPH0223470A - Graphic data retrieving device - Google Patents

Graphic data retrieving device

Info

Publication number
JPH0223470A
JPH0223470A JP63172618A JP17261888A JPH0223470A JP H0223470 A JPH0223470 A JP H0223470A JP 63172618 A JP63172618 A JP 63172618A JP 17261888 A JP17261888 A JP 17261888A JP H0223470 A JPH0223470 A JP H0223470A
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.)
Granted
Application number
JP63172618A
Other languages
Japanese (ja)
Other versions
JPH0559468B2 (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)

Abstract

PURPOSE:To make faster the retrieve of graphic data by detecting the discontinuous part of a row number of the graphic data in an aimed table, and generating a direct reference pointer from the graphic data in a designated table to the graphic data in the aimed table. CONSTITUTION:The row number of the graphic data in the aimed table read by a graphic data read means 6 is temporarily stored into a buffer memory 8, and sorted by a sorting means 9. A discontinuity detecting means 10 detects the discontinuous part of the sorted row number, and a pointer generating means 11 generates the direct reference pointer from the graphic data in the designated table to the graphic data in the aimed table based on the sorted row number and the information at the discontinuous part. A graphic data input means 1 and a graphic definition data input means 3 additively input the generated pointer and its definition information to a graphic data memory 2 and a graphic definition data memory 4, and a graphic data read means 6 accesses the pointer at the time of the retrieve, and promptly reads the graphic data in the aimed table.

Description

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

〔従来の技術〕[Conventional technology]

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

このように構成された従来のデータベース装置について
、図形データを入力し、これに対して図形データを検索
する例を用いてその動作を説明する。
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 the X (horizontal direction) and y (vertical direction) 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 coexisting 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.

例として、家屋工は線群工を参照し、線群工は線5.線
l、線2.線3.および線6を参照する。
For example, house construction refers to line group construction, and line construction refers to line 5. Line l, line 2. Line 3. and line 6.

また、線lはベクトル1.ベクトル2.およびベクトル
3を参照する。中間テーブルは線群から線へのポインタ
がスタートと数で与えられないため便宜上設けた仮想テ
ーブルである。このように、家屋1は8本のベクトルか
ら構成される。
Also, line l is 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)、 fb)は第3図に見る図形データの定
義構造の情報である。個々の図形テーブルのデータ構造
を定義する図形定義テーブル(同図(a))および各図
形テーブル間の参照構造を定義する参照定義テーブル(
同図(b))から成る。
FIGS. 4(a) and fb) are information on the definition structure of the graphic data shown in FIG. A figure definition table that defines the data structure of each figure table (see figure (a)) and a reference definition table that defines the reference structure between each figure table (see figure (a)).
It consists of (b)) in the same figure.

図形定義テーブルにおいて、図形タイプはその図形デー
タが座標データを持つ(図形タイプ−2)か持たない(
図形タイプ−1)かの区別を表す。
In the figure definition table, the figure type determines whether the figure data has coordinate data (figure type-2) or not (
It represents the distinction between figure type-1).

例として、家屋テーブルは図形タイプ=1 (座標デー
タを持たない)で、カラム数は32行数く図形データ数
)は2である。
As an example, the house table has a figure type of 1 (no coordinate data), and the number of columns is 32 (number of rows and the number of figure data) is 2.

参照定義テーブルにおいて、参照タイプは被参照テーブ
ルへのポインタがスタートと数より与えられる(参照タ
イプ=1)か被参照テーブルの行番号で与えられる(参
照タイプ=2)かの区別を表す。参照ポインタのカラム
番号は、参照テーブルにおける参照ポインタのカラム番
号を表す。例として、家屋テーブルから線群テーブルへ
の参照タイプはl (ポインタはスタートと数で与えら
れる)で、そのポインタは家屋テーブルの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 l (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 reference definition table shown in FIG.
Store it in the figure definition data memory (4). Further, the graphic data input means (1) inputs the graphic data shown in FIG.
Store it in the graphic data memory (2).

次に、このような図形データのデータベースに対して検
索を行うため、検索条件入力手段(5)から検索条件を
入力する。第14図はこの説明で用いる検索条件の内容
を示す。即ち、家屋テーブル(指定テーブル)について
これが参照するベクトルテーブル(目的テーブル)の図
形データを検索して読出す。
Next, in order to perform a search on 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 memory (2) while referring to the definition information shown in FIG. 4 stored in the figure definition data memory (4) according to the search conditions shown in FIG.
A search is performed on the graphic data of FIG. 3 stored in . First, from the reference definition table in Figure 4, the house table →
You can see that data should be accessed in the order of 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をアクセスする。
As a result, the graphic data reading means (6) accesses the line group 1 starting from the house 1 using the pointer to the line group.

次に線群1の中間ポインタへのポインタにより中間テー
ブルの1〜5行をアクセスする。さらに、その線へのポ
インタにより線テーブルの行番号5.1,2.3.6の
各行をアクセスする。最後にそのベクトルへのポインタ
によりベクトルの行番号8.1〜3.4〜5.6.9の
各行をアクセスする。
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 and 2.3.6 of the line table is accessed using the pointer to that line. Finally, each row with row numbers 8.1 to 3.4 to 5.6.9 of the vector is accessed using the pointer to the vector.

このようにして、家屋1に対して読出されたベクトルデ
ータを示したのが第6図である。家屋2に対しても同様
にベクトルデータが読出される。
FIG. 6 shows vector data read out for house 1 in this manner. Vector data for house 2 is similarly read out.

読出されたベクトルデータの座標値をもとに図形表示装
置(7)に表示された図形が第7図である。
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.
There were performance problems, such as the amount of 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)と、ソートされた行番
号に連続しない箇所がある場合にその不連続箇所を検出
する不連続検出手段(lO)と、ソート手段(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). , a sorting means (9) for sorting the stored line numbers, a discontinuity detecting means (lO) for detecting a discontinuous point when there is a discontinuous point in the sorted line numbers, and a sorting means (9). and pointer generation means (10) for generating a direct reference pointer from the graphic data of the designated table to the graphic data of the target table based on the data obtained by the discontinuity detecting means (10).
11).

〔作用〕[Effect]

この発明における図形データ一時記憶手段(8)は、図
形データ読出し手段(6)により読出された目的テーブ
ルの図形データの行番号を一時的に記憶する。ソート手
段(9)は、図形データ一時記憶手段(8)に記憶され
た行番号をソートする。
The 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).

不連続検出手段(10)は、ソートされた行番号におい
て番号が不連続の箇所を検出する。ポインタ生成手段(
11)は、ソートされた行番号およびその不連続箇所の
情報をもとに指定テーブルの図形データから目的テーブ
ルの図形データへの直接の参照ポインタを生成する。
The discontinuity detecting means (10) detects locations where the numbers are discontinuous in the sorted line numbers. Pointer generation means (
Step 11) generates a direct reference pointer from the graphic data of the designated table to the graphic data of the target table based on the sorted line numbers and the information of their discontinuous locations.

図形データ入力手段(1)及び図形定義データ入力手段
(3)はこうして生成されたポインタ及びその定義情報
を図形データ記憶手段(2)及び図形定義データ記憶手
段(4)に追加入力する。
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).

これにより、図形データ読出し手段(6)は、以降上記
と同じ指定テーブルから目的テーブルへの検索が要求さ
れた時はこのポインタをアクセスして目的テーブルの図
形データを高速に読出す。
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.

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

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

次に、第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 the 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.
Store in graphic data memory (2).

次に、このような図形データのデータベースに対して検
索を行うため、検索条件入力手段(5)から検索条件を
入力する。第5図はこの検索条件の内容を示す。検索条
件は、家屋テーブル(指定テーブル)についてこれが参
照するベクトルテブル(目的テーブル)の図形データを
読出すことを示す。但しこの時、家屋テーブルからベク
トルテーブルへの直接の参照ポインタ(インデックス)
を生成する(検索タイプ=1)ことを指定している。
Next, in order to perform a search on 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, a direct reference pointer (index) from the house table to the vector table
It is specified to generate (search type = 1).

図形データ読出し手段(6)は、第5図の検索条件に従
い図形定義データメモリ (4)に記憶された第4図の
定義情報を参照しながら、図形データメモリ (2)に
記憶された第3図の図形データに対して検索を行う。
The figure data reading means (6) refers to the definition information shown in FIG. 4 stored in the figure definition data memory (4) according to the search conditions shown in FIG. Perform a search on the graphical data 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)に追加入力される。
Next, in order to generate a direct reference pointer from the house table to the vector table, the graphic data reading means (6
) inputs the row number of the vector data read out for house 1 into the buffer memory (8). FIG. 8(a) shows the contents of backup memory (8). Sorting means (9
) sorts this line number in ascending order. The sorted results are shown in FIG. 8(b). Furthermore, discontinuity detection means (10
) detects locations where line numbers are not consecutive in the sorted results. FIG. 8(c) shows the detected discontinuous points. This shows that house 1 refers to vectors 1 to 6 and vectors 8 to 9. Therefore, the pointer generation means (11) generates the pointer shown in FIG. 8(d), and the generated pointer is transferred to the graphic data input means (11).
) is additionally input to the figure data memory (2).

家屋2についても同様にベクトルテーブルへのポインタ
が生成され、図形データメモリ (2)に入力される。
A pointer to the vector table is similarly generated for house 2 and input into the graphic data memory (2).

第9図のフローチャートはポインタが生成される上記手
順を第8図fa)〜[d)に対応して示している。第1
0図は、こうして図形データメモリ (2)に作成され
た結果を示している。同図で、家屋テーブル中のインデ
ックスへのポインタ、インデックステーブルのベクトル
へのポインタが、生成して人力された部分である。
The flowchart in FIG. 9 shows the above-mentioned procedure for generating a pointer corresponding to fa) to [d) in FIG. 1st
Figure 0 shows the results created in the graphic data memory (2) in this way. In the figure, the pointer to the index in the house table and the pointer to the vector in the index table are generated manually.

一方、図形定義データ入力手段(3)は、こうして作成
された家屋テーブルからベクトルテーブルへの直接の参
照ポインタをこの後の検索時に利用可能とするため、イ
ンデックステーブルの定義情報およびインデックステー
ブルと家屋、ベクトルテーブルとの参照定義情報をそれ
ぞれ図形定義データメモリ (4)の図形定義テーブル
および参照定義テーブルに追加入力する。第11図(a
l、 (blは追加入力後の図形定義データメモリ(4
)の内容を示す。
On the other hand, in order to make the direct reference pointer from the house table created in this way to the vector table available at the time of subsequent search, the figure definition data input means (3) uses the definition information of the index table, the index table and the house, Reference definition information with respect to the vector table is additionally input into the figure definition table and reference definition table in the figure definition data memory (4). Figure 11 (a
l, (bl is figure definition data memory after additional input (4
).

次に、こうして生成されたインデックスを使用して検索
する例を説明する。検索条件入力手段(5)から第12
図に示す検索条件が入力される。
Next, an example of searching using the index generated in this way will be explained. Search condition input means (5) to 12th
The search conditions shown in the figure are input.

検索条件は、家屋テーブル(指定テーブル)について、
これが参照するベクトルテーブル(目的テーブル)の図
形データを読出すことを示す。但し、この時、インデッ
クスを使用する(検索タイプ=2)ことを指定している
。図形データ読出し手段(6)は、第12図の検索条件
に従い図形定義データメモリ (4)に記憶された第1
1図の定義情報を参照しながら、図形データメモリ (
2)に記憶された図形データに対して検索を行う。まず
、第12図の検索条件と第11図の参照定義テーブルか
ら、家屋テーブル→インデックステーブル→ベクトルテ
ーブルの順にポインタに従いデータをアクセスすればよ
いこと、被参照テーブルをアクセスするための参照ポイ
ンタのタイプ、ポインタのあるカラム番号がわかる。
The search conditions are for the house table (specified table),
This indicates that the graphic data of the referenced vector table (object table) is to be read. However, at this time, it is specified that an index is to be used (search type = 2). The figure data reading means (6) reads the first data stored in the figure definition data memory (4) according to the search conditions shown in FIG.
While referring to the definition information in Figure 1, save the figure data memory (
2) A search is performed on the graphic data stored in step 2). First, from the search conditions in Figure 12 and the reference definition table in Figure 11, it is necessary to access data by following the pointer in the order of house table → index table → vector table, and the type of reference pointer for accessing the referenced table. , you can find the 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 house 1 and following the pointer to the index. Furthermore, according to the pointer to that vector, row numbers 1 to 6 of the vector table
Then, the graphic data of each row of 8 to 9 is read out.

このようにして、家屋1に対して第6図に示したので同
じベクトルデータが高速に読出される。
In this way, the same vector data as shown in FIG. 6 for house 1 can be read out at high speed.

家屋2に対しても同様にベクトルデータが高速に読出さ
れる。そして、読出されたベクトルデータの座標値をも
とに第7図に示す図形が図形表示装置(7)に表示され
る。
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, the process of searching and reading out the graphic data of another graphic table (target table) referred to by the graphic data of a specified graphic table can be performed at high speed. This means that, 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 rows in the intermediate table, 5 rows in the line table, and 8 rows in the vector table), whereas the index is used to search and read the vector data referenced by house 1. This is clear from the fact that the total number of rows of the figure table that must be accessed for output is 11 (one row is accessed for the house table, two rows for the index table, and eight rows for the vector table).

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

〔発明の効果] 以上のように、この発明によれば、図形データ読出し手
段により読出された図形データに含まれる一意番号を一
時的に記憶する図形データ一時記憶手段と、記憶された
一意番号をソートするソート手段と、ソートされた一意
番号に連続しない箇所がある場合にその不連続箇所を検
出する不連続検出手段と、ソート手段と不連続検出手段
により得られたデータをもとに上記指定テーブルの図形
データから目的テーブルの図形テーブルを直接指すポイ
ンタを生成するポインタ生成手段とを付加し生成された
ポインタとその定義情報を図形データ記憶手段と図形定
義データ記憶手段に追加入力し、以降の同一検索は上記
ポインタを用いて行うようにしたので、図形データの検
索を高速に行える効果が得られる。
[Effects of the Invention] As described above, according to the present invention, the graphic data temporary storage means temporarily stores the unique number included in the graphic data read by the graphic data reading means, and the stored unique number is stored. A sorting means for sorting, a discontinuity detection means for detecting discontinuity when there is a discontinuity in the sorted unique numbers, and the above specification based on the data obtained by the sorting means and the discontinuity detection means. A pointer generation means that generates a pointer that directly points to the figure table of the target table from the figure data of the 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 the subsequent Since the same search is performed using the above-mentioned pointer, it is possible to achieve the effect of speeding up the search for graphic data.

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

第1図はこの発明の一実施例を示すブロレク構成図、第
2図は図形データ入力手段から入力する図形データの模
式図、第3図および第10図はその図形データの内容を
示す図、第4図(a)、 (b)および第11図(a)
、 (blはそれぞれ第3図および第10図で示される
図形データについてデータ構造の定義情報を示す図、第
5図と第12図は実施例において検索条件入力手段から
入力される検索条件の内容を示す図、第6図は図形デー
タ読出し手段により図形データメモリから検索して読出
された図形データを示す図、第7図は検索して続出され
た図形データの座標値をもとに図形表示装置に表示した
結果を示す図、第8図(a)〜(d)は指定テーブルか
ら目的テーブルへの直接参照ポインタを生成するために
、バッファメモリ内のデータが処理されていく様子を示
す図、第9図はこの直接参照ポインタを生成する処理の
流れを示すフローチャート、第13図は従来のデータベ
ース装置のブロック構成図、第14図は従来例において
検索条件入力手段から入力される検索条件の内容を示す
図である。 図中、(1)は図形データ入力手段、(2)は図形デー
タメモリ(図形データ記憶手段)、(3)は図形定義デ
ータ入力手段、(4)は図形定義データメモリ (図形
定義データ記憶手段)、(5)は検索条件入力手段、(
6)は図形データ読出し手段、(7)は図形表示装置、
(8)はバッファメモリ (図形データ一時記憶手段)
、(9)はソート手段、(10)は不連続検出手段、(
11)はポインタ生成手段である。 尚、図中、同一符号は同一または相当部分を示す。 特許出願人 工業技術院長 飯 塚 幸 三第4図 /A) 第5図 票9図 ¥6図 第70 男10図 第11図 第12図 第13図 第14図
FIG. 1 is a block 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)
, (bl is a diagram showing data structure definition information for the graphic data shown in FIGS. 3 and 10, respectively, and FIGS. 5 and 12 are the contents of search conditions input from the search condition input means in the embodiment. FIG. 6 is a diagram showing graphic data retrieved and read from the graphic data memory by the graphic data reading means, and FIG. 7 is a graphic display based on the coordinate values of the retrieved graphic data. Figures 8(a) to 8(d) are diagrams showing the results displayed on the device, and Figures 8(a) to 8(d) are diagrams showing how data in the buffer memory is processed to generate a direct reference pointer from the specified table to the target table. , FIG. 9 is a flowchart showing the flow of processing for generating this direct reference pointer, FIG. 13 is a block diagram of a conventional database device, and FIG. It is a diagram showing the contents. In the diagram, (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, and (4) is figure definition data. memory (figure definition data storage means), (5) is a search condition input means, (
6) is a graphic data reading means, (7) is a graphic display device,
(8) is buffer memory (temporary storage of figure data)
, (9) is a sorting means, (10) is a discontinuity detection means, (
11) is a pointer generation means. In the drawings, the same reference numerals indicate the same or corresponding parts. Patent applicant: Director of the Agency of Industrial Science and Technology Kozo Iizuka Figure 4/A) Figure 5 Form 9 Figure 6 ¥ 70 Male 10 Figure 11 Figure 12 Figure 13 Figure 14

Claims (1)

【特許請求の範囲】[Claims] 同一のデータ構造をもつ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 a figure definition data input means. a figure definition data storage means for storing data input from the means; a figure data input means for inputting figure data consisting of a unique number and coordinate data in a figure table or a reference pointer to figure data in another figure table; , a graphic data storage means for storing graphic data input from the graphic data input means, a search condition input means for inputting search conditions,
According to this search condition, the graphic data of the target table is searched and read from the graphic data of the specified table indicated by the search condition from the graphic data storage means while referring to the definition information stored in the graphic definition data storage means according to the search condition. data reading means; graphic data temporary storage means for temporarily storing unique numbers included in the graphic data read by the graphic data reading means; sorting means for sorting the stored unique numbers; and sorted unique numbers. A discontinuity detection means detects the discontinuity when there is a discontinuity in the area, and the graphic data of the target table is extracted from the graphic data of the specified table based on the data obtained by the sorting means and the discontinuity detection means. a pointer generating means for generating a pointer directly pointing to the pointer, the generated pointer and its definition information are additionally input into the figure data storage means and the figure definition data storage means, and subsequent identical searches are performed using the above pointer. A graphic data retrieval device characterized by:
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 true JPH0223470A (en) 1990-01-25
JPH0559468B2 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
JPH0559468B2 (en) 1993-08-31

Similar Documents

Publication Publication Date Title
JP3205406B2 (en) Reference target variable determination processing method and translation processing system
JPH0223470A (en) Graphic data retrieving device
JP2791147B2 (en) Information search method
JPH04112253A (en) Data accessing method using multilayer buffer
Abel et al. Caching strategies for spatial joins
JP3260706B2 (en) A search system that searches for files stored on the hard disk of a personal computer
JPS62121532A (en) Data retrieving method
JPH0782451B2 (en) Database management system
JPH04156624A (en) High speed accessing systme in knowledge base systme
JP3145727B2 (en) Data retrieval device
CN114020800A (en) Big data oriented data processing method and device
JPH04174071A (en) Hash processor
JPH0630065B2 (en) Information retrieval method
JP2507399B2 (en) Database equipment
JPH0764835A (en) Data storage system for relational data base
JPH02148365A (en) Echo displaying system for graphic display device
JPS633351A (en) Buffer retrieving control system
JPH09230784A (en) Map display system
JPS61170840A (en) Join processing system by partial convolution joining method
JPS6386074A (en) Control system for drawing file
JPH09212515A (en) Information retrieving device
JPS63150724A (en) Data access processing system
JPS6170665A (en) Shape memory system of space layout system
JPH0442371A (en) Logic simulation method
JPH04245563A (en) Preparation of retrieving table

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term