JPH07262344A - Map system - Google Patents

Map system

Info

Publication number
JPH07262344A
JPH07262344A JP7416094A JP7416094A JPH07262344A JP H07262344 A JPH07262344 A JP H07262344A JP 7416094 A JP7416094 A JP 7416094A JP 7416094 A JP7416094 A JP 7416094A JP H07262344 A JPH07262344 A JP H07262344A
Authority
JP
Japan
Prior art keywords
map data
map
bit string
bit
area
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
JP7416094A
Other languages
Japanese (ja)
Other versions
JP3066703B2 (en
Inventor
Koji Kawaguchi
貢司 川口
Hideto Nakayama
秀人 中山
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.)
PFU Ltd
Original Assignee
PFU Ltd
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 PFU Ltd filed Critical PFU Ltd
Priority to JP6074160A priority Critical patent/JP3066703B2/en
Publication of JPH07262344A publication Critical patent/JPH07262344A/en
Application granted granted Critical
Publication of JP3066703B2 publication Critical patent/JP3066703B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Instructional Devices (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To speedily and easily display a map by applying area numbers while dividing the entire map into meshed shapes, calculating the area number where each of map data exists, preserving those area numbers as a bit sequence, comparing the bit sequence of the displayed area with the bit sequence of preserved map data at the time of display and deciding a display object when those bit sequences are matched, concerning the map system for adding the bit sequences expressing the area numbers existent in the map data. CONSTITUTION:This system is provided with an area number preparing means 2 for respectively dividing the entire map into plural parts in X and Y directions and for preparing the bit sequences in the X and Y directions setting the area numbers existent for each of map data and the bit sequences in the X and Y directions turning the bit of the area number existent inside a rectangle, which includes the map data, to '1' for each of map data on the map, and these prepared bit sequences in the X and Y directions are added to the map data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、地図データに存在する
地域番号を表すビット列を付加する地図システムに関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a map system for adding a bit string representing an area code existing in map data.

【0002】[0002]

【従来の技術】従来、地図データ中から表示領域内のデ
ータをディスプレイ上に表示しようとした場合、図7の
フローチャートに示すように、地図データを1つ1つ取
り出しては表示領域内に存在するか否かを判定し、存在
する場合に表示し、存在しない場合に非表示とし、全て
のデータについて繰り返して表示していた。以下図7の
フローチャートを簡単に説明する。
2. Description of the Related Art Conventionally, when it is attempted to display the data in the display area from the map data on the display, as shown in the flow chart of FIG. 7, the map data are extracted one by one and exist in the display area. Whether or not to do so is displayed, and when it is present, it is displayed, when it is not present, it is hidden, and all data is repeatedly displayed. The flowchart of FIG. 7 will be briefly described below.

【0003】図7は、従来技術の説明フローチャートを
示す。図7において、S41は、表示領域を特定する。
これは、地図データ上の表示しようとする領域をオペレ
ータが指示して特定する。
FIG. 7 shows an explanatory flow chart of the prior art. In FIG. 7, S41 specifies the display area.
For this, the operator designates and specifies the area to be displayed on the map data.

【0004】S42は、地図データを順に読み込む。S
43は、S42で読み込んだ地図データが表示領域内か
判別する。YESの場合には、S45でディスプレイ上
に表示し、S45に進む。一方、NOの場合には、S4
5に進む。
In step S42, the map data is read in order. S
43 determines whether the map data read in S42 is within the display area. If YES, the image is displayed on the display in S45, and the process proceeds to S45. On the other hand, if NO, S4
Go to 5.

【0005】S45は、地図データを全て読み終えたか
判別する。YESの場合には、全ての地図データについ
て、表示領域内に存在するときに表示、存在しないとき
に非表示とする処理を終了したので、終わる。一方、N
Oの場合には、S42に戻り、次の地図データについて
繰り返す。
In step S45, it is determined whether all the map data has been read. In the case of YES, the processing of displaying all the map data when it exists in the display area and hiding it when it does not exist is ended, so the processing ends. On the other hand, N
In the case of O, the process returns to S42 and is repeated for the next map data.

【0006】[0006]

【発明が解決しようとする課題】上述したように、従来
の地図の表示は、表示領域内に存在する場合に表示、存
在しない場合に非表示とする処理を全ての地図データに
ついて繰り返す必要があり、いずれの地図データが表示
領域に存在するかを判別するのが大変で時間が必要とな
ってしまう問題があった。このため、地図をメッシュ状
に予め分割して地図データ毎に存在する領域(地域番
号)を求めておき、表示時に簡単に表示対象の地図デー
タを選択可能にすることが望まれている。
As described above, in the conventional map display, it is necessary to repeat the process of displaying the map when it exists in the display area and hiding it when it does not exist for all map data. However, there is a problem that it is difficult and time-consuming to determine which map data exists in the display area. Therefore, it is desired to divide the map into a mesh shape in advance and obtain an area (regional number) existing for each map data so that the map data to be displayed can be easily selected at the time of display.

【0007】本発明は、これらの問題を解決するため、
地図の全体をメッシュ状に分割して地域番号を付与し、
各地図データが存在する地域番号を求めてビット列とし
て保存し、表示時に表示領域のビット列と保存した地図
データのビット列とを比較し、一致したときに表示対象
と決めて迅速かつ簡単に地図表示可能にすることを目的
としている。
The present invention solves these problems.
Divide the whole map into a mesh shape and assign a regional number,
The area number in which each map data exists is found and saved as a bit string, and the bit string of the display area is compared with the bit string of the saved map data at the time of display, and if they match, it is determined as the display target and the map can be displayed quickly and easily. The purpose is to

【0008】[0008]

【課題を解決するための手段】図1は、本発明の原理ブ
ック図を示す。図1において、地図システム1は、地図
データ5、6を管理するものであって、ここでは、地域
番号作成手段2、入出力手段3、および表示手段4から
構成されるものである。
FIG. 1 shows a principle book diagram of the present invention. In FIG. 1, a map system 1 manages map data 5 and 6, and is composed of a region number creating means 2, an input / output means 3 and a display means 4 here.

【0009】地域番号作成手段2は、地図上の各地図デ
ータ毎に内包する矩形内に存在する地域番号のビットを
1にしたX方向およびY方向のビット列21を作成する
ものである。
The area number creating means 2 creates an X-direction and Y-direction bit string 21 in which the bits of the area number existing in the rectangle included in each map data on the map are set to 1.

【0010】ビット列21は、地図の全体をX方向およ
びY方向に複数にそれぞれ分割し、存在する地域番号を
設定したものである。入出力手段3は、地図データ
(旧)5および地図データ(新)6との間の地図データ
の入出力を行うものである。
The bit string 21 is obtained by dividing the entire map into a plurality of parts in the X direction and the Y direction and setting existing area numbers. The input / output unit 3 inputs / outputs map data between the map data (old) 5 and the map data (new) 6.

【0011】表示装置7は、各種データを表示するもの
である。
The display device 7 displays various data.

【0012】[0012]

【作用】本発明は、図1に示すように、地域番号作成手
段2が地図上の各地図データ毎に当該地図データを内包
する矩形内に存在する地域番号のビットを1にしたX方
向およびY方向のビット列21を作成し、この作成した
X方向およびY方向のビット列21を地図データに付加
するようにしている。
According to the present invention, as shown in FIG. 1, the area number creating means 2 sets, for each piece of map data on the map, the area number bit existing in the rectangle containing the map data to 1 in the X direction and A bit string 21 in the Y direction is created, and the created bit string 21 in the X and Y directions is added to the map data.

【0013】この際、地域番号作成手段2が地図上の各
地図データ毎に当該地図データを構成する各ノードおよ
びノードとノードを結ぶ線分が交差する上記地域番号の
ビットを1にしたX方向およびY方向のビット列21を
それぞれ作成し、これら作成したX方向およびY方向の
ビット列21をそれぞれOR演算したX方向およびY方
向のビット列21を作成するようにしている。
At this time, the area number creating means 2 sets, for each piece of map data on the map, the nodes of the map data and the line of the area number at which the line segment connecting the nodes intersects in the X direction. And the Y-direction bit string 21 are created, and the created X-direction and Y-direction bit string 21 is ORed to create the X-direction and Y-direction bit string 21.

【0014】また、ノードとノードを結ぶ線分が交差す
る地域番号のビットとして、当該ノードの地域番号から
他のノードの地域番号までの間のX方向およびY方向の
地域番号のビットを1にしてX方向およびY方向のビッ
ト列21を作成するようにしている。
Also, as the bit of the area number where the line segment connecting the nodes intersects, the bit of the area number in the X and Y directions between the area number of the node and the area number of another node is set to 1. The bit string 21 in the X direction and the Y direction is created.

【0015】従って、地図の全体をメッシュ状に分割し
て地域番号を付与し、各地図データが存在する地域番号
を求めてビット列にして保存することにより、地図デー
タ毎に属する地域番号がビット列で保存されているの
で、特定領域にいずれの地図データが存在するか否かを
ビット列のビット演算によって極めて高速に判定するこ
とが可能となる。特に、表示時に表示領域のビット列と
保存した地図データのビット列とをビット対応で論理演
算し、一致したときに表示対象と決めて迅速かつ簡単に
地図表示することが可能となる。
Therefore, by dividing the entire map into a mesh shape and assigning area numbers, and determining the area number in which each map data exists and saving it as a bit string, the area number belonging to each map data is a bit string. Since the map data is stored, it is possible to determine which map data exists in the specific area at a very high speed by bit operation of the bit string. In particular, at the time of display, the bit string of the display area and the bit string of the stored map data are logically operated in bit correspondence, and when they match, it is possible to determine the display target and display the map quickly and easily.

【0016】[0016]

【実施例】次に、図2から図6を用いて本発明の実施例
の構成および動作を順次詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be described in detail with reference to FIGS.

【0017】図2のフローチャートに示す順序に従い、
図1の構成の動作を詳細に説明する。図2において、S
1は、地図データ(線分単位)の読み込みを行う。これ
は、地図上の線分単位に地図データとして、後述する図
6の(a)に示す地図データを取り込む。この図6の
(a)の地図データは、ノード数が4つ(ノードa1、
a2、a3、a4の4つ)であって、イメージ的に表す
と図4の地図データAのように表現されるものである。
According to the order shown in the flow chart of FIG.
The operation of the configuration of FIG. 1 will be described in detail. In FIG. 2, S
1 reads the map data (line segment unit). This takes in the map data shown in (a) of FIG. 6 which will be described later as map data for each line segment on the map. In the map data of FIG. 6A, the number of nodes is four (node a1,
a2, a3, and a4), which are represented as map data A in FIG.

【0018】S2は、先頭ノード(a1)と次のノード
(a2)間に交差する地域番号を求めて、ビット列で表
す。これは、後述する図6の(b)に示すように、地図
データAの先頭のノードa1と、次のノードa2の線分
と交差する地域番号を求めてビット列21で表す。これ
により、ノードとノードを結ぶ線分が交差する地域番号
のビット列21として求まる。
In S2, the area number intersecting between the head node (a1) and the next node (a2) is obtained and represented by a bit string. This is represented by a bit string 21 by obtaining an area number that intersects the line segment of the head node a1 of the map data A and the next node a2, as shown in FIG. 6B described later. As a result, it is obtained as the bit string 21 of the area number where the line segments connecting the nodes intersect.

【0019】S3は、線分の終わりか判別する。これ
は、ノードとノード間の線分について全て終わったか判
別する。YESの場合には、S4に進む。NOの場合に
は、次のノードとノード間についてS2を繰り返す。
In S3, it is determined whether the line segment is the end. This determines whether all the line segments between nodes have been completed. In the case of YES, it progresses to S4. In the case of NO, S2 is repeated between the next node and the node.

【0020】S4は、線分全体のビット列のORを取
り、ビット列を求める。これにより、線分単位の地図デ
ータについて、当該地図データを内包をする矩形の地域
番号を1としたビット列21が得られることとなる。
In S4, the bit string of the entire line segment is ORed to obtain the bit string. As a result, with respect to the map data in units of line segments, the bit string 21 in which the rectangular area number including the map data is 1 is obtained.

【0021】S5は、地図データ(線分単位)に付加す
る。これは、S4で線分単位に求めたビット列21を該
当する地図データに付加する。S6は、地図データ全体
の終わりか判別する。YESの場合には、終了する。N
Oの場合には、S1に戻る。
S5 is added to the map data (line segment unit). This is to add the bit string 21 obtained for each line segment in S4 to the corresponding map data. In S6, it is determined whether or not the entire map data has ended. If YES, then end. N
If it is O, the process returns to S1.

【0022】以上によって、地図上の線分単位に取り出
した地図データについてノード、およびノードとノード
を結ぶ線分と交差する地域番号を求めたX方向およびY
方向のビット列21にそれぞれ設定し、これらビット列
21のOR演算した結果のX方向およびY方向のビット
列を地図データに付加する。これにより、地図データが
存在する地域番号を即座に判断でき、特に特定領域に地
図データを表示する場合に、地図データのビット列21
と、表示する表示領域のビット列21とを論理演算して
一致したときに存在すると判定し、極めて迅速かつ簡単
に表示領域に地図データが存在するか否かを判定でき
る。以下順次詳細に説明する。
As described above, with respect to the map data extracted in line segment units on the map, the node and the area number intersecting with the line segment connecting the nodes are obtained in the X direction and the Y direction.
The bit strings in the X direction and the Y direction, which are the result of the OR operation of the bit strings 21, are added to the map data. As a result, it is possible to immediately determine the area number in which the map data exists, and particularly when the map data is displayed in the specific area, the bit string 21
Then, the bit string 21 of the display area to be displayed is logically operated to determine that there is a match, and it can be determined extremely quickly and easily whether or not the map data exists in the display area. The details will be sequentially described below.

【0023】図3は、本発明の地域番号/ビット列の説
明図を示す。図3の(a)は、地域番号例を示す。この
地域番号は、ここでは、判り易くするために、地図の全
体をX方向に8分割、Y方向に8分割した例を示す。こ
れら分割した各部分に地域番号0から7をそれぞれ付与
する。
FIG. 3 is an explanatory diagram of the area number / bit string of the present invention. FIG. 3A shows an example of area numbers. This area number shows an example in which the entire map is divided into eight in the X direction and eight in the Y direction for easy understanding. Region numbers 0 to 7 are assigned to the respective divided parts.

【0024】図3の(b)は、ビット列(X方向)を示
す。このビット列21は、図3の(a)のX方向に8分
割した各部分をビットに対応づけたものである。各ビッ
トには、下段に記載したように、 ・X方向の地域番号に存在する場合に1 ・X方向の地域番号に存在しない場合に0 を設定する。これにより、地図データが存在する地域番
号のビットに1、存在しない地域番号のビットに0をそ
れぞれ設定する。
FIG. 3B shows a bit string (X direction). The bit string 21 corresponds to each bit divided into eight parts in the X direction of FIG. As described in the lower part, each bit is set to 1 if it exists in the X-direction area number, and 0 if it does not exist in the X-direction area number. As a result, 1 is set in the bit of the area number where the map data exists and 0 is set in the bit of the area number that does not exist.

【0025】図3の(c)は、ビット列例を示す。ビッ
ト列は、X方向およびY方向からなり、例えば後述する
図4の地図データAの場合には、図示のように、 となる(図6の(d)参照)。これは、X方向の地域番
号0、1、2、3、4、5、6と、Y方向の地域番号
6、7とからなる矩形内に地図データAが内包すること
を表す(図4の地図データA参照)。
FIG. 3C shows an example of a bit string. The bit string consists of the X direction and the Y direction. For example, in the case of map data A of FIG. (See (d) of FIG. 6). This means that the map data A is included in a rectangle composed of area numbers 0, 1, 2, 3, 4, 5, 6 in the X direction and area numbers 6, 7 in the Y direction (see FIG. 4). See map data A).

【0026】図4は、本発明の地域番号、地図データと
表示領域の説明図を示す。ここで、X方向の数字が地域
番号を表し、Y方向の数字が地域番号を表す。 A:地図データAを表し、ノードa1、a2、a3、a
4からなる。
FIG. 4 is an explanatory diagram of the area number, map data and display area of the present invention. Here, the numbers in the X direction represent area numbers, and the numbers in the Y direction represent area numbers. A: represents the map data A, nodes a1, a2, a3, a
It consists of 4.

【0027】B:地図データBを表し、ノードb1、b
2、b3、b4、b5からなる。 C:地図データCを表し、ノードc1、c2、c3、c
4からなる。 D:地図データDを表し、ノードd1、d2、d3、d
4、d5、d6、d 7からなる。D1、D2、D3、D4は、表示領域Eと
地図データDとの交点を表す。
B: represents the map data B, and nodes b1 and b
2, b3, b4 and b5. C: represents the map data C, and the nodes c1, c2, c3, c
It consists of 4. D: represents the map data D, and the nodes d1, d2, d3, d
4, d5, d6 and d7. D1, D2, D3, and D4 represent intersections between the display area E and the map data D.

【0028】E:表示領域Eを表す。 図5は、本発明のビット列作成フローチャートを示す。
これは、図4の地図上の地図データA、B、C、Dが内
在する矩形の地域番号をビット列として作成するときの
手順を説明したものである。
E: represents a display area E. FIG. 5 shows a flowchart for creating a bit string of the present invention.
This illustrates a procedure for creating a rectangular area number in which the map data A, B, C, and D on the map of FIG. 4 are contained as a bit string.

【0029】図5において、S11は、地図データを読
み込む。これは、図6の(a)に示すように、地図デー
タAを読み込む。S12は、地図データのノード(a
1、a2、a3、a4)が存在しているメッシュから地
図データのビット列を算出する。これは、図4の地図デ
ータAのノードa1、a2、a3、a4について、X方
向およびY方向のビット列21をそれぞれ算出する。例
えばノードa1は、 ・X方向の地域番号0が1 ・Y方向の地域番号7が1 であるので、図6の(b−1)に示すように、 X方向のビット列 Y方向のビット列 0000 0001 1000 0000 と算出する。同様に、ノードa2、a3、a4について
もX方向およびY方向のビット列21を算出する。
In FIG. 5, S11 reads the map data. This reads the map data A as shown in FIG. S12 is a map data node (a
The bit string of the map data is calculated from the mesh in which 1, a2, a3, a4) exist. This calculates the bit strings 21 in the X direction and the Y direction for the nodes a1, a2, a3, and a4 of the map data A of FIG. 4, respectively. For example, in the node a1, since the region number 0 in the X direction is 1 and the region number 7 in the Y direction is 1, as shown in (b-1) of FIG. 6, an X direction bit string Y direction bit string 0000 0001 Calculated as 1000 0000. Similarly, the bit strings 21 in the X and Y directions are calculated for the nodes a2, a3, and a4.

【0030】S13は、地図データのノードと、1つ前
のノードとの線分が存在しているメッシュから地図デー
タのビット列を算出する。これは、図6の(b−3)に
示すように、例えばノードa1とノードa2を結ぶ線分
が交差するメッシュのビットを1としたビット列を算出
する。これにより、線分が交差するビットを1にしたビ
ット列21が算出されることとなる。
In step S13, the bit string of the map data is calculated from the mesh in which the line segment between the node of the map data and the previous node exists. As shown in (b-3) of FIG. 6, for example, a bit string in which the bit of the mesh where the line segment connecting the nodes a1 and a2 intersects is set to 1 is calculated. As a result, the bit string 21 in which the bit at which the line segment intersects is set to 1 is calculated.

【0031】S14は、地図データのノードと1つ前の
ノードとの線分が交差する領域を判断して、ビット列に
追加する。これは、図6の(b−3)に示すように、こ
こで、ノードa1とノードa2を結ぶ線分が交差するメ
ッシュのビットを1としたビット列を算出し、この算出
したビット列およびS13で算出したノードのビット列
を、前回のビット列にOR演算して追加し、最終的には
図6の(d)に示す全体のビット列を求める。これによ
り、図形データ毎に当該図形データを内包する矩形のビ
ット列が算出されたこととなる。
In S14, a region where the line segment of the node of the map data and the line segment of the immediately preceding node intersect is determined and added to the bit string. As shown in (b-3) of FIG. 6, here, a bit string in which the bit of the mesh where the line segment connecting the node a1 and the node a2 intersects is set to 1 is calculated, and in this calculated bit string and S13. The calculated bit string of the node is ORed and added to the previous bit string to finally obtain the entire bit string shown in (d) of FIG. As a result, a rectangular bit string including the graphic data is calculated for each graphic data.

【0032】S15は、全てのノードを処理したか判別
する。YESの場合には、S16に進む。NOの場合に
は、S12に戻り、次のノードについて繰り返す。S1
6は、地図データに書き込む。これは、S15で1つの
地図データのビット列(図6の(d)参照)が生成でき
たので、地図データに対応づけて書き込む。この書き込
んだビット列21は、表示時の領域判定にビット列の演
算によって表示対象となるか否かの判定に利用する。
In step S15, it is determined whether all the nodes have been processed. In the case of YES, it progresses to S16. In the case of NO, the process returns to S12 and is repeated for the next node. S1
6 writes in the map data. Since a bit string of one map data (see (d) of FIG. 6) can be generated in S15, this is written in association with the map data. The written bit string 21 is used to determine whether to be a display target by calculating the bit string in the area determination at the time of display.

【0033】S17は、地図データを全て読み終えたか
判別する。YESの場合には、終了する。NOの場合に
は、S11に戻り、次の地図データについて繰り返す。
以上によって、地図上の地図データを1つ1つ取り出
し、この取り出した地図データ毎に、各ノードのビット
列、およびノードとノードを結ぶ線分のビット列をそれ
ぞれ算出し、ビット列を全てOR演算したビット列を地
図データに対応づけて書き込む。これにより、全ての地
図データには、地図データを内包する矩形を表すビット
列が付加されたこととなる。
In step S17, it is determined whether all map data has been read. If YES, then end. In the case of NO, the process returns to S11 and is repeated for the next map data.
By the above, the map data on the map is extracted one by one, and the bit string of each node and the bit string of the line segment connecting the nodes are calculated for each of the extracted map data, and the bit string obtained by ORing all the bit strings is calculated. Is written in association with the map data. As a result, a bit string representing a rectangle including the map data is added to all the map data.

【0034】図6は、本発明のビット列の作成説明図を
示す。これは、図4の地図上の地図データAについてノ
ードのビット列((b−1)、(b−2))、ノードと
ノードを結ぶ線分のビット列((b−3)、(b−
4))、全体のビット列((d))を順次算出する様子
を示したものである。
FIG. 6 is a diagram for explaining the creation of the bit string of the present invention. This is the bit string of nodes ((b-1), (b-2)) for the map data A on the map of FIG. 4, and the bit strings of line segments connecting nodes ((b-3), (b-
4)), the state of sequentially calculating the entire bit string ((d)) is shown.

【0035】図6の(a)は、地図データを示す。これ
は、図4の地図データAについてのものであって、 ・総ノード数が4個 ・ノードa1の座標(a1x、a1y)、 ・ノードa2の座標(a2x、a2y)、 ・ノードa3の座標(a3x、a3y)、 ・ノードa4の座標(a4x、a4y)、 である。
FIG. 6A shows map data. This is for the map data A in FIG. 4, the total number of nodes is 4, the coordinates of the node a1 (a1x, a1y), the coordinates of the node a2 (a2x, a2y), the coordinates of the node a3. (A3x, a3y), coordinates of the node a4 (a4x, a4y) ,.

【0036】図6の(b)は、ビット列を示す。図6の
(b−1)は、ノードa1のビット列を示す。ノードa
1は、図4の地図データAのノードa1であって、X方
向の地域番号0が1、Y方向の地域番7が1であるの
で、図示のように X方向のビット列 Y方向のビット列 0000 0001 1000 0000 となる。
FIG. 6B shows a bit string. FIG. 6B-1 shows the bit string of the node a1. Node a
1 is the node a1 of the map data A in FIG. 4, and the region number 0 in the X direction is 1 and the region number 7 in the Y direction is 1. Therefore, as shown in the drawing, the bit string in the X direction, the bit string in the Y direction, 0000. 0001 1000 0000.

【0037】図6の(b−2)は、ノードa2のビット
列を示す。ノードa2は、図4の地図データAのノード
a2であって、X方向の地域番号2が1、Y方向の地域
番6が1であるので、図示のように X方向のビット列 Y方向のビット列 0000 0100 0100 0000 となる。
FIG. 6B-2 shows the bit string of the node a2. The node a2 is the node a2 of the map data A in FIG. 4, and the area number 2 in the X direction is 1 and the area number 6 in the Y direction is 1. Therefore, as shown in the drawing, the bit string in the X direction and the bit string in the Y direction. It becomes 0000 0100 0100 0000.

【0038】図6の(b−3)は、a1−a2の線分交
差のビット列を示す。これは、ノードa1とノードa2
を結ぶ線分と交差する地域番号がX方向で1である(ノ
ードa1、ノードa2と同一の地域番号を除く)ので、
図示の下記のように X方向のビット列 Y方向のビット列 0000 0010 0000 0000 となる。
FIG. 6B-3 shows a bit string of line segment intersections a1-a2. This is node a1 and node a2
Since the area number that intersects the line segment that connects is 1 in the X direction (excluding the area numbers that are the same as node a1 and node a2),
As shown below, the bit string in the X direction is the bit string in the Y direction 0000 0010 0000 0000.

【0039】図6の(b−4)は、(b−1)、(b−
2)、(b−3)をOR演算したビット列を示す。これ
により、ノードa1とノードa2を内包をする矩形の地
域番号を1にしたビット列が得られたこととなる。
(B-4) of FIG. 6 shows (b-1) and (b-
2) shows a bit string obtained by ORing (b-3). As a result, a bit string in which the area number of a rectangle including the nodes a1 and a2 is set to 1 is obtained.

【0040】図6の(c)は、同様に、a2−a3、a
3−a4のビット列を求める。図6の(d)は、a1−
a2、a2−a3、a3−a4のビット列をORする。
これにより、地図データAの全てのノードa1、a2、
a3、a4についてのビット列のOR演算し、これら全
てのノードを内包する矩形の地域番号をビット列として
算出できたこととなる。その結果は、a1−a4として
図示の X方向のビット列 Y方向のビット列 0111 1111 1100 0000 となる。
Similarly, FIG. 6C shows a2-a3, a
3-A4 bit string is obtained. FIG. 6D shows a1-
The bit strings of a2, a2-a3, and a3-a4 are ORed.
As a result, all the nodes a1, a2 of the map data A,
This means that the OR operation of the bit strings for a3 and a4 was performed, and the rectangular area number including all these nodes could be calculated as the bit string. The result is a bit string in the X direction and a bit string in the Y direction 0111 1111 1100 0000 shown as a1-a4.

【0041】尚、本実施例は、地図全体をX方向および
Y方向に分割して地域番号をそれぞれ付与(実施例では
8分割して0から7の地域番号をX方向およびY方向に
付与)し、地図上に存在する地図データについて、当該
地図データを内包する矩形の地域番号をビット列で表現
しているが、この他に、地図データの内包する領域を先
に求めてから、当該求めた領域がいずれの地域番号に該
当するかを判断してビット列を作成するようにしてもよ
い。
In this embodiment, the entire map is divided into the X direction and the Y direction, and the area numbers are given respectively (in the embodiment, the area number is divided into 8 and the area numbers from 0 to 7 are given to the X direction and the Y direction). However, regarding the map data existing on the map, the rectangular area number that includes the map data is represented by a bit string. In addition to this, the area included in the map data is first obtained and then the relevant area is obtained. A bit string may be created by determining which area number the area corresponds to.

【0042】[0042]

【発明の効果】以上説明したように、本発明によれば、
地図の全体をメッシュ状に分割して地域番号を付与し、
各地図データが存在する地域番号を求めてビット列21
を算出して地図データに付加する構成を採用しているた
め、地図データ毎に属する地域番号がビット列で保存
し、地図上のいずれの領域に地図データが存在するか否
かをビット列のビット演算によって極めて高速に判定す
ることが可能となる。特に、表示時に表示領域の地域番
号と保存した地図データの地域番号とをビット対応で論
理演算し、一致したときに表示対象と決めて迅速かつ簡
単に地図表示することができる。
As described above, according to the present invention,
Divide the whole map into a mesh shape and assign a regional number,
The bit string 21 is searched for the area number where each map data exists.
Since the map number is calculated and added to the map data, the region number belonging to each map data is saved as a bit string, and the bit operation of the bit string is performed to determine in which area on the map the map data exists. This makes it possible to make an extremely fast determination. In particular, at the time of display, the area number of the display area and the area number of the stored map data are logically operated in bit correspondence, and when they match, the area is determined as the display target and the map can be displayed quickly and easily.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明の動作説明フローチャートである。FIG. 2 is a flowchart explaining the operation of the present invention.

【図3】本発明の地域番号/ビット列の説明図である。FIG. 3 is an explanatory diagram of area numbers / bit strings according to the present invention.

【図4】本発明の地域番号、地図データと表示領域の説
明図である。
FIG. 4 is an explanatory diagram of area numbers, map data, and display areas according to the present invention.

【図5】本発明のビット列作成フローチャートである。FIG. 5 is a flowchart for creating a bit string of the present invention.

【図6】本発明のビット列の作成説明図である。FIG. 6 is an explanatory diagram of creating a bit string of the present invention.

【図7】従来技術の説明フローチャートである。FIG. 7 is an explanatory flowchart of a conventional technique.

【符号の説明】[Explanation of symbols]

1:地図システム 2:地域番号作成手段 3:入出力手段 4:表示手段 5、6:地図データ 7:表示装置 1: Map system 2: Area number creating means 3: Input / output means 4: Display means 5, 6: Map data 7: Display device

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】地図の全体をX方向およびY方向に複数に
それぞれ分割して地域番号を付与し、地図データ毎に存
在する地域番号を設定するX方向およびY方向のビット
列(21)と、 地図上の各地図データ毎に当該地図データを内包する矩
形内に存在する上記地域番号のビットを1にしたX方向
およびY方向のビット列(21)を作成する地域番号作
成手段(2)とを備え、 この作成したX方向およびY方向のビット列(21)を
地図データに付加することを特徴とする地図システム。
1. An X-direction and Y-direction bit string (21) for dividing an entire map into a plurality of regions in the X and Y directions and assigning region numbers, and setting region numbers existing for each map data. Area number creating means (2) for creating a bit string (21) in the X and Y directions in which the bit of the area number existing in a rectangle containing the map data is set to 1 for each map data on the map. A map system comprising: the created X-direction and Y-direction bit strings (21) added to map data.
【請求項2】上記地域番号作成手段(2)が地図上の各
地図データ毎に当該地図データを構成する各ノードおよ
びノードとノードを結ぶ線分が交差する上記地域番号の
ビットを1にしたX方向およびY方向のビット列(2
1)をそれぞれ作成し、これら作成したX方向およびY
方向のビット列(21)をそれぞれOR演算したX方向
およびY方向のビット列(21)を作成することを特徴
とする請求項1に記載の地図システム。
2. The area number creating means (2) sets, for each piece of map data on the map, each node constituting the map data and the bit of the area number at which the line segment connecting the nodes intersects to each other. Bit strings in the X and Y directions (2
1) are created respectively, and the created X direction and Y are created.
The map system according to claim 1, wherein a bit string (21) in the X and Y directions is created by ORing the bit strings (21) in each direction.
【請求項3】上記ノードとノードを結ぶ線分が交差する
上記地域番号のビットとして、当該ノードの地域番号か
ら他のノードの地域番号までの間のX方向およびY方向
の地域番号のビットを1にしてX方向およびY方向のビ
ット列(21)を作成することを特徴とする請求項2に
記載の地図システム。
3. The bits of the area number in the X direction and the Y direction from the area number of the node to the area numbers of other nodes are used as the area number bits at which the line segments connecting the nodes intersect. 3. The map system according to claim 2, wherein a bit string (21) in the X direction and the Y direction is set to 1.
JP6074160A 1994-03-20 1994-03-20 Map system Expired - Fee Related JP3066703B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6074160A JP3066703B2 (en) 1994-03-20 1994-03-20 Map system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6074160A JP3066703B2 (en) 1994-03-20 1994-03-20 Map system

Publications (2)

Publication Number Publication Date
JPH07262344A true JPH07262344A (en) 1995-10-13
JP3066703B2 JP3066703B2 (en) 2000-07-17

Family

ID=13539133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6074160A Expired - Fee Related JP3066703B2 (en) 1994-03-20 1994-03-20 Map system

Country Status (1)

Country Link
JP (1) JP3066703B2 (en)

Also Published As

Publication number Publication date
JP3066703B2 (en) 2000-07-17

Similar Documents

Publication Publication Date Title
JPH0251786A (en) Scan converting system
AU618128B2 (en) Method and apparatus for decomposing a quadrilateral figure for display and manipulation by a computer system
JPH0640259B2 (en) Data processing device
JPH07262344A (en) Map system
US6580429B1 (en) Method of generating data for three-dimensional graphic recording medium and three-dimensional graphic system
JP3012862B2 (en) Map display system
JPH0767136B2 (en) Image processing device
JPH0668270A (en) Picture processing method and picture processor
JP3593016B2 (en) Straight line drawing device, straight line drawing method, and coordinate generation device
JPH09128198A (en) Method for displaying plural pictures
KR0145709B1 (en) Computer graphic system
JPH06266339A (en) Character output device
JPH05210744A (en) Device and method for plotting computer graphics
JPH05135038A (en) Method and device for processing document
JP2787487B2 (en) Circuit for determining the position of a line segment displayed and operated on a computer system
JP2595196B2 (en) Table setting method
JPH07105390A (en) System for controlling outer circumferential line drawing data
JPH07219516A (en) Plotting device and plotting method therefor
JPH07325927A (en) Image data processor and system using same
JPH04310190A (en) Void hatching processing system
JPH1145083A (en) Image data processing device and system using the same
JPH06325139A (en) Method for retrieving line drawing data
JPH10228531A (en) Automatic leader line setting method, automatic leader line setting device for it and program storage medium
JPH0668267A (en) Plotting device
JPH07140962A (en) Method of outputting character string

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees