JPH07320022A - Map image generation device - Google Patents

Map image generation device

Info

Publication number
JPH07320022A
JPH07320022A JP33953494A JP33953494A JPH07320022A JP H07320022 A JPH07320022 A JP H07320022A JP 33953494 A JP33953494 A JP 33953494A JP 33953494 A JP33953494 A JP 33953494A JP H07320022 A JPH07320022 A JP H07320022A
Authority
JP
Japan
Prior art keywords
font
map image
memory
map
intersection
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
JP33953494A
Other languages
Japanese (ja)
Other versions
JP2571031B2 (en
Inventor
Hiroshi Kurosawa
宏 黒澤
Fusao Nishiura
房夫 西浦
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP6339534A priority Critical patent/JP2571031B2/en
Publication of JPH07320022A publication Critical patent/JPH07320022A/en
Application granted granted Critical
Publication of JP2571031B2 publication Critical patent/JP2571031B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To draw a specific kind of map image at a specified display position. CONSTITUTION:When the kind of the map image is specified through a key input part 11 and the display position and drawing direction of the map image on a display screen are specified by a touch table 8, a CPU 1 judges whether or not the specified display position crosses the display position where a map image is already drawn, and when it is judged that the display positions cross each other, a new map image in overpass relation is drawn at the specified position.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、案内図のような地図を
作成するパーソナルコンピュータやワードプロセッサ等
の地図イメージ作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a map image creating apparatus such as a personal computer or a word processor for creating maps such as guide maps.

【0002】[0002]

【従来の技術】操作性の意味で、ユーザーインターフェ
ースのよいコンピュータシステムは、長年にわたり、大
きな課題の1つとなっている。例えば、案内図のような
幾可図面をパーソナルコンピュータ等のグラフィク機能
を用いて作成する場合に、どのくらい簡単な操作を行う
ことによって、所期の地図等のイメージが完成するかが
問題である。代表的なパソコングラフィクス装置を用い
て、地図のある要素、例えば、鉄道を描く場合、次のよ
うな操作が必要であった。 (イ)まず、2本の平行線を描画する。
2. Description of the Related Art In terms of operability, a computer system having a good user interface has been one of the major problems for many years. For example, when creating a drawing such as a guide map using a graphics function of a personal computer or the like, there is a problem of how simple an operation is to complete an image such as a desired map. When drawing a certain element of a map, for example, a railroad using a typical personal computer graphics device, the following operation was required. (A) First, draw two parallel lines.

【外1】 一般に、これは、各線の始点と終点の位置をマシンに入
力し、両点間に線を引く指示をマシンに与えることによ
って行なわれる。 (ロ)次に、平行線の内部を仕切る。
[Outer 1] Generally, this is done by entering into the machine the positions of the start and end points of each line and instructing the machine to draw a line between the points. (B) Next, partition the inside of the parallel lines.

【外2】 (ハ)さらに、その内側を1個おきに塗りつぶす。[Outside 2] (C) Furthermore, paint the inside of every other one.

【外3】 これは、一般に、塗りつぶしたい閉領域内をロケータデ
バイス(例えばカーソル)で指定し、<ペイント>の指
示をマシンに与えることにより行なわれる。別の例とし
て、十字路を含む道路をつくる場合について述べると、
(イ)まず、2つの平行な直線を描画し、(ロ)この平
行線と交わる(例えば直交する)2本の平行線を描画す
る。この結果、
[Outside 3] This is generally done by designating a closed area to be filled with a locator device (for example, a cursor) and giving a <paint> instruction to the machine. As another example, describing the case of creating a road including a crossroad,
(A) First, two parallel straight lines are drawn, and (b) two parallel lines intersecting (for example, orthogonal to) the parallel lines are drawn. As a result,

【外4】 で示すような交差点ができる。(ハ)交差点内の4本の
線分を消去する
[Outside 4] You can make an intersection as shown in. (C) Delete the four line segments at the intersection

【外5】 。上述のように、従来の代表的なグラフィクス装置で
は、オペレータが作成したい絵を構成する最小単位とな
るような線、領域などの出力プリミティブを個々にオペ
レータからの入力を介して定義し、これらの集合によっ
て所期の絵(幾可モデル)を構築し、各出力プリミティ
ブをイメージ変換(走査変換)することによって、点の
集まりで表現される画像を得ている。
[Outside 5] . As described above, in a typical conventional graphics device, output primitives such as lines and areas that are the smallest units that make up a picture that the operator wants to create are individually defined through input from the operator, and these primitives are defined. An image represented by a set of points is obtained by constructing a desired picture (some model) by a set and performing image conversion (scan conversion) on each output primitive.

【0003】[0003]

【発明が解決しようとする課題】明らかに、上述した従
来のグラフィクス装置は、各出力プリミティブからイメ
ージへの変換のための処理量、処理時間が装置のレゾリ
ューショーン(分解能)に応じて莫大なものになること
を前提としている。のみならず、幾可モデルを定義する
までに必要なユーザー側の非常に大きな操作負担を前提
としている。このような方式は、例えば、アートグラフ
ィクスのように、非常に細かなイメージを作成する場合
には向いているかも知れない。しかし、格別、細かさの
要求されないイメージ、例えば簡易な案内図のような地
図を作成する場合にも手間がかかる、ということは無駄
が多く、問題である。本発明の課題は、指定種類の地図
イメージを指定表示位置に描画できるようにすることで
ある。
Obviously, the above-mentioned conventional graphics device has a huge processing amount and processing time for converting each output primitive into an image depending on the resolution (resolution) of the device. It is supposed to be something. Not only that, it is assumed that the user has a very large operation load required to define the model. Such a method may be suitable for creating a very fine image such as art graphics. However, it is wasteful and problematic that it takes much time to create an image that does not require particularity or detail, for example, a map such as a simple guide map. An object of the present invention is to be able to draw a map image of a specified type at a specified display position.

【0004】[0004]

【課題を解決するための手段】本発明の手段は次の通り
である。道路、鉄道等の地図イメージを描画する装置で
あって、第1の指定手段は、道路、鉄道等の複数種の地
図イメージ地図のうち、描画作成対象の地図イメージの
種類を任意に指定する。第2の指定手段は、上記作成対
象の地図イメージの表示画面上における所望する表示位
置とその描画方向とを任意に指定する。判別手段は、上
記第2の指定手段で指定された表示位置が、既に地図イ
メージが描画作成されていた表示位置と交差するか否か
を判別する。地図イメージ変更手段は、上記判別手段に
より交差すると判別された際に、その交差位置における
既に描画作成済みの地図イメージを、その交差位置にお
ける既に描画作成済みの地図イメージと上記第2の指定
手段によりその表示位置が指定された上記地図イメージ
との立体交差の地図イメージに変更する。地図イメージ
描画手段は、この地図イメージ変更手段により変更され
た立体交差の地図イメージを、上記第2の指定手段で指
定された表示位置に描画作成する。
The means of the present invention are as follows. In a device for drawing a map image of a road, a railroad, etc., the first specifying means arbitrarily specifies the kind of map image to be drawn and created among a plurality of types of map image maps of the road, the railroad, etc. The second designating unit arbitrarily designates a desired display position on the display screen of the map image to be created and its drawing direction. The determining means determines whether or not the display position designated by the second designating means intersects with the display position where the map image has already been drawn and created. The map image changing means, when it is determined by the determining means that there is an intersection, draws the map image that has already been drawn and created at the intersecting position and the map image that has already been drawn and created at the intersecting position by the second specifying means. The display image is changed to a map image of an overpass with the specified map image. The map image drawing means draws and creates the map image of the grade separation changed by the map image changing means at the display position designated by the second designating means.

【0005】[0005]

【作用】本発明の手段の作用は次の通りである。道路、
鉄道等の地図イメージを描画する装置であって、第1の
指定手段によって、道路、鉄道等の複数種の地図イメー
ジのうち、描画作成対象の地図イメージの種類が任意に
指定され、第2の指定手段によって、上記作成対象の地
図イメージの表示画面上における所望する表示位置とそ
の描画方向とが任意に指定される。そして、上記第2の
指定手段で指定された表示位置が、既に地図イメージが
描画作成されていた表示位置と交差するか否かが判別手
段によって判別され、この判別により交差すると判別さ
れた際に、その交差位置における既に描画作成済みの地
図イメージが、その交差位置における既に描画作成済み
の地図イメージと上記第2の指定手段によりその表示位
置が指定された上記地図イメージとの立体交差の地図イ
メージに地図イメージ変更手段によって変更され、この
地図イメージ変更手段により変更された立体交差の地図
イメージが、地図イメージ描画手段によって上記第2の
指定手段で指定された表示位置に描画作成される。従っ
て、地図イメージの種類と、表示位置、描画方向との指
定の際、その指定表示位置が既に作成済みの地図イメー
ジと交差する場合には、既に作成された地図イメージを
新たな指定の地図イメージを立体交差の地図イメージに
自動的に変更し描画することができる。
The operation of the means of the present invention is as follows. road,
A device for drawing a map image of a railway or the like, wherein the first specifying means arbitrarily specifies the type of map image to be drawn and created among a plurality of types of map images of roads, railways, etc. The designating unit arbitrarily designates a desired display position on the display screen of the map image to be created and its drawing direction. Then, the determining unit determines whether or not the display position designated by the second designating unit intersects with the display position on which the map image has already been drawn and created. , The map image which has already been drawn and created at the intersecting position is a map image of a three-dimensional intersection of the map image which has already been drawn and created at the intersecting position and the map image whose display position has been specified by the second specifying means. Is changed by the map image changing means, and the map image of the grade separation changed by the map image changing means is drawn and created by the map image drawing means at the display position specified by the second specifying means. Therefore, when specifying the map image type, display position, and drawing direction, if the specified display position intersects with the already created map image, the already created map image is replaced with the new specified map image. Can be automatically changed into a map image of a grade separation and drawn.

【0006】[0006]

【実施例】以下、この発明の一実施例について詳細に示
す。 <構 成>図1にこの実施例の全体構成を示す。本実施
例を使用することにより、簡易地図を手軽に、速く、容
易に作成することができる。装置全体の制御はCPU1
により行なわれ、表示用メモリ2には一画面分の簡易地
図をビットの集合で表わした表示イメージデータが格納
され、この表示イメージデータは表示部3に送られ、そ
の画面に表示される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below. <Structure> FIG. 1 shows the overall structure of this embodiment. By using this embodiment, a simple map can be created easily, quickly and easily. CPU1 controls the entire device
The display memory 2 stores display image data in which a simple map for one screen is represented by a set of bits, and the display image data is sent to the display unit 3 and displayed on the screen.

【0007】上記表示用メモリ2は格子状のブロックで
仕切られており、各ブロックはN×M画素のサイズを有
し、簡易地図のイメージを構成するように種々のブロッ
ク内に種々のフォントが記入されて用いられる。この表
示用メモリ2のイメージのソースが地図メモリ4と交差
点情報メモリ5に格納される。本例では、地図メモリ4
は表示用メモリ2の各ブロック位置(ブロック番号)を
示す位置に、原則として、フォントのソースコード情報
として1つのフォントコードを記憶する。つまり、この
フォントコードは表示用メモリ2内の対応位置にあるブ
ロック内に記入されるフォントの元になるものである。
フォントコードメモリ6は、このようなフォントコード
の供給源である。
The display memory 2 is divided into grid-shaped blocks, each block has a size of N × M pixels, and various fonts are arranged in various blocks so as to form a simple map image. It is filled out and used. The image source of the display memory 2 is stored in the map memory 4 and the intersection information memory 5. In this example, the map memory 4
In principle, one font code is stored as the source code information of the font at a position indicating each block position (block number) in the display memory 2. That is, this font code is the source of the font written in the block at the corresponding position in the display memory 2.
The font code memory 6 is a supply source of such font codes.

【0008】地図メモリ4の各位置(格納番地)には1
個分のフォントコードしか格納できない。一方、フォン
トが交差して重なりあうようなところは他のところより
情報の密度が高くなる。そこで、このような交差点ソー
スコード情報をアクセス可能に設定するため、交差点情
報(一種のフォントコードの集まり)を交差点情報メモ
リ5に作成し、この交差点情報へのポインタを地図メモ
リ4上の特定の位置、すなわち、イメージ上で交差フォ
ントが記入されるブロックを示す位置に置いている。
1 at each position (storage address) of the map memory 4
Only the font code for each piece can be stored. On the other hand, where the fonts intersect and overlap, the information density is higher than at other places. Therefore, in order to set such intersection source code information as accessible, intersection information (a kind of a collection of font codes) is created in the intersection information memory 5, and a pointer to this intersection information is specified in the map memory 4 as a specific pointer. It is placed at a position, that is, a position on the image indicating a block in which a cross font is written.

【0009】つまり、本例では、地図メモリ4と交差点
情報メモリ5とでイメージのソースコードを記憶する手
段を構成している。もっとも、後述するように、全ての
交差フォントのソースが交差点情報メモリ5に置かれる
のではなく、比較的簡単な交差のフォントはフォントパ
ターンメモリ7に用意されており、この用意されている
交差フォントを特定するソースコードがフォントコード
メモリ6にあり、したがって、比較的単純な交差の場合
には、地図メモリ4にその交差フォントコードが設定さ
れる。
That is, in this example, the map memory 4 and the intersection information memory 5 constitute a means for storing the source code of the image. However, as will be described later, the sources of all intersection fonts are not placed in the intersection information memory 5, but relatively simple intersection fonts are prepared in the font pattern memory 7, and the prepared intersection fonts are prepared. The source code identifying the intersection is in the font code memory 6, and therefore, in the case of a relatively simple intersection, the intersection font code is set in the map memory 4.

【0010】さらに図示の実施例は、軌跡入力手段の一
構成例として、タッチタブレット8、方向成分レジスタ
9、状態成分レジスタ10を備える。タッチタブレット
8は表示部3の画面上に配置され、ユーザーはこのタッ
チタブレット8を介して、イメージ化された簡易地図に
加えたい地図構成要素の軌跡を入力することができる。
タッチタブレット8の入力情報はブロック別に、ブロッ
ク内におけるフォントの方向、貫通か分岐かを示す状態
について解析され、その結果が方向成分レジスタ9と状
態成分レジスタ10に置かれる。
Further, the illustrated embodiment includes a touch tablet 8, a direction component register 9, and a state component register 10 as an example of the configuration of the trajectory input means. The touch tablet 8 is arranged on the screen of the display unit 3, and the user can input the trajectory of the map constituent element to be added to the imaged simple map through the touch tablet 8.
The input information of the touch tablet 8 is analyzed for each block for the font direction in the block, the state indicating the through or branch, and the result is placed in the direction component register 9 and the state component register 10.

【0011】一方、イメージに追記したいフォントの種
類の指定はキー入力部11を介して入力され、種類情報
レジスタ12に置かれる。
On the other hand, the designation of the font type to be additionally written in the image is input through the key input unit 11 and placed in the type information register 12.

【0012】後述するように、これらの入力情報により
定まる入力フォントコードは、CPU1の交差自動解析
機能により、地図メモリ4上の対応する位置の内容と照
し合わされ、交差の有無と態様について解析される。交
差なしのときは、入力フォントコードが地図メモリ4に
セットされる。第1種の交差のときは交差フォントコー
ドが選択され、それが地図メモリ4に置かれる。第2種
の交差のときは(フォントコードメモリやフォントパタ
ーンメモリ中には用意されていないタイプの交差の場合
には)、フォントコードの集まりである交差点情報が交
差点情報メモリ5にセットされる。
As will be described later, the input font code determined by these input information is compared with the content of the corresponding position on the map memory 4 by the automatic intersection analysis function of the CPU 1 to analyze the presence or absence of the intersection and the mode. It When there is no intersection, the input font code is set in the map memory 4. For the first type of intersection, the intersection font code is selected and placed in the map memory 4. At the time of the second type of intersection (in the case of the type of intersection not prepared in the font code memory or the font pattern memory), intersection information which is a collection of font codes is set in the intersection information memory 5.

【0013】このようにして地図メモリ4と交差点情報
メモリ5にセットされたソースコード情報は、フォント
パターンに変換され、表示用メモリ2にセットされる。
即ち、地図メモリ4よりアクセスしたものがフォントコ
ードの場合には、このフォントコードをアドレス変換し
てフォントパターンメモリ7より特定のフォントを読み
出し、読み出したフォントを、フォントコードの格納番
地が示す表示用メモリ2上の特定のブロック内に転送す
る。
The source code information thus set in the map memory 4 and the intersection information memory 5 is converted into a font pattern and set in the display memory 2.
That is, when the font code is accessed from the map memory 4, the font code is subjected to address conversion to read a specific font from the font pattern memory 7, and the read font is displayed for display by the storage address of the font code. Transfer to a specific block on the memory 2.

【0014】一方、地図メモリ4よりアクセスしたもの
が交差点情報メモリ5へのポインタである場合には、フ
ォント作成部13が起動され、この要素13を介して交
差フォントが生成される。より詳しく述べると、フォン
ト作成部13は、交差点情報に含まれるフォントを定義
する情報を用いて、フォントパターンメモリ7より特定
のフォントを抽出し、交差点情報に含まれる位相定義情
報(方向、状態の情報)に従って、抽出したフォント同
士を合成する。合成に際し、所要なマスク処理のため、
マスクパターンメモリ14も適宜使用される。
On the other hand, when the one accessed from the map memory 4 is the pointer to the intersection information memory 5, the font creating section 13 is activated and an intersection font is generated via this element 13. More specifically, the font creation unit 13 extracts a specific font from the font pattern memory 7 using the information defining the font included in the intersection information, and the phase definition information (direction, state According to the information), the extracted fonts are combined with each other. When synthesizing, because of the required mask processing,
The mask pattern memory 14 is also used as appropriate.

【0015】フォントコードとフォントパターン(図
2) フォントコードメモリ6に格納されるフォントコードと
フォントパターンメモリ7に格納されるフォントパター
ン間の対応関係の一例を図2に示す。例えば“10”
(16進表示)のフォントコードは横の道路のパターン
をもつフォントに対応する。図示の例では、縦と横を別
々のフォントで用意しているが、一方のフォントだけと
し、他方のフォントを一方のフォントを回転することで
つくるようにしてもよい。同様のことは、右上りと左上
りの傾きをもつフォント同士についてもいえる。
Font code and font pattern (Fig.
2) FIG. 2 shows an example of the correspondence relationship between the font code stored in the font code memory 6 and the font pattern stored in the font pattern memory 7. For example, "10"
The font code (hexadecimal display) corresponds to a font having a horizontal road pattern. In the illustrated example, vertical and horizontal fonts are prepared separately, but one font may be prepared and the other font may be created by rotating one font. The same thing can be said for fonts having an upper right corner and an upper left corner.

【0016】図示の例では、フォントコードの上位桁に
より、フォントの基本的種類を定義しており、このよう
なフォントの種類はキー入力部11を介して指定される
ものである。例えば、上位桁“2”は国鉄の線路を示
し、上位桁“4”は川を示す。一方、フォントコードの
下位桁はフォントの方向その他の位相を示すもので、下
位桁の選択はタッチタブレット8への軌跡入力を通して
行なわれる(ただし、“50”以降のフォントコード
は、位相が変化しないフォントを示すものであるため、
これらのフォントコードの選択はキー入力部11のみを
介して行なわれる)。
In the illustrated example, the basic type of the font is defined by the upper digit of the font code, and such a type of the font is designated through the key input unit 11. For example, the upper digit “2” indicates a national railway line, and the upper digit “4” indicates a river. On the other hand, the lower digit of the font code indicates the direction of the font and other phases, and the selection of the lower digit is performed through the trajectory input to the touch tablet 8 (however, the font code after "50" does not change the phase. Since it indicates a font,
Selection of these font codes is performed only via the key input unit 11).

【0017】データ構造(図3) 図3はデータの構造を説明するための図である。(イ)
は表示部3の画面に表示されるイメージ化された簡易地
図の一例である(表示用メモリ2の内容と考えてもよ
い)。(ロ)はイメージのソースを記憶する地図メモリ
4の内容を示したものであり、(イ)に示すイメージと
位置対応している。これらのコードのうち“80”、
“81”、“82”で例示されるコードは(ハ)に示す
交差点情報メモリ5の各セグメントに対するポインタと
なっている。各セグメントは複数のメモリセルより成
り、最初のセルには交差するフォントの数が記入され、
2番目以降のセルにはコード形式の各フォントの情報が
入っている。本例ではフォント情報は8ビット構成であ
り、第4図の(ニ)に示すように、上位3ビットがフォ
ントの種類を、4番目のビットが橋の有無を示し、5番
目は貫通か分岐かのビットであり、下位3ビットは方向
を示すデータである。上述したように種別データはキー
入力部11からの種別指定により定められ、状態と方向
はタッチタブレット8への軌跡入力を通して定められ
る。橋のビットはキー入力部を介して選定できる。
[0017]Data structure (Figure 3)  FIG. 3 is a diagram for explaining the structure of data. (I)
Is a simple ground imaged on the screen of the display unit 3.
It is an example of the figure (think of it as the contents of the display memory 2
I). (B) is a map memory that stores the image source
It shows the contents of 4 and the image shown in (a)
It corresponds to the position. "80" of these codes,
Codes exemplified by "81" and "82" are shown in (C).
A pointer to each segment of the intersection information memory 5
Has become. Each segment consists of multiple memory cells.
The number of intersecting fonts is entered in the first cell,
Information on each font in code format is stored in the second and subsequent cells.
It is included. In this example, the font information consists of 8 bits.
As shown in (d) of Fig. 4, the upper 3 bits are
The 4th bit indicates the presence or absence of a bridge, and the 5th
The eye is a bit of through or branch, and the lower 3 bits are direction
Is data indicating. As mentioned above, the type data is the key
State and direction determined by type designation from the input unit 11
Is determined through the trajectory input to the touch tablet 8.
It The bridge bit can be selected via the key input section.

【0018】図3の(イ)と(ロ)から分るように、
“18”、“1A”のフォントコードは比較的単純な交
差のフォントを示すものである(図2も参照のこと)。
残りのフォントコードは交差なしのフォントを発生させ
るフォントコードである。
As can be seen from (a) and (b) of FIG.
The font codes "18" and "1A" indicate relatively simple intersection fonts (see also FIG. 2).
The rest of the font code is the font code that produces a font without intersection.

【0019】<動 作>次に、上記実施例の全体動作に
ついて簡単に述べる。まず、ユーザーはキー入力部11
を介して、これから作図しようとする道路や鉄道といっ
たフォントの種類を選択し、タッチタブレット8により
軌跡や位置指定入力を行う。タッチタブレット8より入
力がなくなると、CPU1は入力完了とみなし、後で詳
述する軌跡入力処理(入力に基づく、地図メモリ4と交
差点情報メモリ5の更新)を行う。
<Operation> Next, the overall operation of the above embodiment will be briefly described. First, the user uses the key input unit 11
The font type such as road or railroad to be drawn is selected via the touch panel 8 and the locus or position is designated by the touch tablet 8. When there is no input from the touch tablet 8, the CPU 1 considers that the input is completed, and performs a locus input process (update of the map memory 4 and the intersection information memory 5 based on the input) described later in detail.

【0020】こうしてソース情報をリフレッシュした
後、CPU1はリフレッシュしたソース情報を逐次、フ
ォントに変換し、表示用メモリ2にセットする。更新さ
れた表示用メモリ2の内容は表示部3の画面に表示され
る。
After refreshing the source information in this way, the CPU 1 sequentially converts the refreshed source information into a font and sets it in the display memory 2. The updated contents of the display memory 2 are displayed on the screen of the display unit 3.

【0021】なお、作画処理中であることや完了したこ
とをメッセージ形式で表示部3等を介してユーザーに知
らせるようにすると便利である。この場合、ユーザーは
入力OKのサインがでてから、次の作画入力に移る。
It is convenient to inform the user via the display unit 3 or the like in the form of a message that the drawing process is in progress or has been completed. In this case, the user moves to the next drawing input after the sign of OK is given.

【0022】軌跡入力処理(図4) 図4に軌跡入力処理の詳細なフローチャートを示す。こ
のフローチャートは、イメージの1ブロック分の処理を
示したものであり、入力装置(8、11)を介して指定
されたあるブロック位置における入力フォントコード
を、地図メモリ4の対応位置の内容と照らし合わせ、解
析し、解析した結果に従って、地図メモリ4の内容を更
新するとともに、所定の交差条件の場合には交差点情報
メモリ5に交差点情報を作成したり、追加したりする。
Trajectory Input Processing (FIG. 4) FIG. 4 shows a detailed flowchart of the trajectory input processing. This flowchart shows the processing for one block of an image, and compares the input font code at a certain block position designated via the input device (8, 11) with the contents of the corresponding position in the map memory 4. According to the analysis result, the contents of the map memory 4 are updated, and in the case of a predetermined intersection condition, intersection information is created or added to the intersection information memory 5.

【0023】さらに詳しく述べると、指定されているフ
ォントの種類の情報及び着目している入力位置のフォン
トの方向や状態情報とから入力フォントコードを求め
(S1)、対応位置にある地図メモリの内容を読み出す
(S2)。
More specifically, the input font code is obtained from the specified font type information and the font direction and status information of the input position of interest (S1), and the contents of the map memory at the corresponding position are obtained. Is read (S2).

【0024】ある条件下では、入力フォントコードが地
図メモリの新しい内容となる(S7、オーバーライ
ト)。すなわち、読み出した地図メモリの内容がデータ
でない場合(S3のNO)、入力フォントコードが異な
る位相をもたないコード、例えば、学校、消防所等の独
立コードの場合(S5のNO)、および入力フォントコ
ードの方向が地図メモリより読み出した古いフォントコ
ードの方向と同じ方向の場合(S6のYES)にそうな
る。
Under certain conditions, the input font code becomes the new contents of the map memory (S7, overwrite). That is, when the contents of the read map memory are not data (NO in S3), the input font code is a code that does not have a different phase, for example, an independent code such as school or fire station (NO in S5) and input This is the case when the direction of the font code is the same as the direction of the old font code read from the map memory (YES in S6).

【0025】別のある条件下では、交差フォントコード
が選ばれ、それが地図メモリに戻される。すなわち、地
図メモリより読み出したものが交差点コード(交差点情
報メモリへのポインタ)以外のフォントコードであり、
かつ上述のオーバーライトの条件がいずれも成立せず、
入力コードや読出コードに橋の指定がなく(S8でYE
S)、縦かまたは横の方向をもち(S9でYES)、貫
通状態のときは(S10でYES)、入力フォントコー
ドと古いフォントコードが同じ種類のフォントに属する
かを検査し(S11)、同種なら十字路フォントコード
を選択し、異種なら、入力フォントの方向に橋をもつブ
リッジフォントコード選択し、地図メモリへセットする
(S12、S13)。例えば、縦の道路を定義する古い
フォントコードに、横の道路を示す新しいフォントコー
ドが入力された場合、<1A>で示す十字路フォントコ
ードが選ばれる(図3(イ)、(ロ)、図2参照)。一
方、縦の国鉄の線路を定義する古いフォントコードのと
ころに、横の道路を示す入力フォントコードが衝突した
ときは、<18>の値をもつ橋つきの横道路を示すフォ
ントコードが選択される。
Under certain other conditions, a cross font code is selected and returned to map memory. That is, what is read from the map memory is a font code other than the intersection code (pointer to the intersection information memory),
And none of the above overwrite conditions are met,
No bridge is specified in the input code or read code (Y in S8
S), it has a vertical or horizontal direction (YES in S9), and when it is in the penetrating state (YES in S10), it is checked whether the input font code and the old font code belong to the same type of font (S11), If it is the same type, the crossroads font code is selected, and if it is different, the bridge font code having a bridge in the direction of the input font is selected and set in the map memory (S12, S13). For example, when a new font code indicating a horizontal road is input to an old font code that defines a vertical road, the crossroads font code indicated by <1A> is selected (Fig. 3 (a), (b), Fig. 3). 2). On the other hand, when an input font code indicating a horizontal road collides with an old font code that defines a vertical railway line, a font code indicating a horizontal road with a bridge having a value of <18> is selected. .

【0026】さらに別の条件下では、交差点情報が交差
点情報メモリ5に創設され、そのポインタが地図メモリ
の元の位置にセットされる。すなわち、橋つきであった
り、斜めの方向をもったり、分岐したりするフォント同
士の衝突の場合は(S8、S9、S10でNO)、交差
点情報メモリ5を3バイト分増やし重なり合う(交差す
る)フォントの数として最初のバイトに“2”を置き、
読出しコードに対応する8ビットのフォント情報(図3
(ニ)に示すフォーマットをもつ情報)を2番目のバイ
トに入れ、入力フォントコードに対応する8ビットフォ
ント情報を3番目のバイトに入れ、これらのバイトより
成る交差点セグメントを指し示すポインタを地図メモリ
4の元の位置にセットする(S14〜S18)。
Under yet another condition, intersection information is created in the intersection information memory 5 and its pointer is set to the original position in the map memory. That is, in the case of a collision between fonts such as a bridge, an oblique direction, or a branch (NO in S8, S9, and S10), the intersection information memory 5 is increased by 3 bytes and overlaps (intersects). Put "2" in the first byte as the number of fonts,
8-bit font information corresponding to the read code (Fig. 3
(Information having the format shown in (d)) is placed in the second byte, 8-bit font information corresponding to the input font code is placed in the third byte, and a pointer pointing to the intersection segment consisting of these bytes is placed in the map memory 4 To the original position of (S14 to S18).

【0027】地図メモリ4より読み出した内容がポイン
タの値をもつ場合には(本例では<80>以上の場
合)、このポインタを使って、交差点情報メモリの交差
点セグメントをアクセスし、最初のバイトにある重なり
合いのフォント数をプラス1し、さらに、交差点セグメ
ントを1バイト分長くして、そこに入力フォントコード
に対応する8ビットフォント情報を記入する(S19〜
S21)。以上の処理を、全ての入力位置について実行
することにより、フォントのソースコード情報のリフレ
ッシュが完了する。
When the content read from the map memory 4 has the value of the pointer (<80> or more in this example), the pointer is used to access the intersection segment of the intersection information memory, and the first byte 1 is added to the number of overlapping fonts, the intersection segment is lengthened by 1 byte, and 8-bit font information corresponding to the input font code is written therein (S19-).
S21). By executing the above processing for all input positions, the refresh of the font source code information is completed.

【0028】表示処理 地図メモリ4と交差点情報メモリ5の更新が完了した
ら、今度はこれらを使って、表示用メモリ2の内容を更
新する。例えば、地図メモリ4より順次コードを読み出
して行う。読み出した内容が交差点情報メモリへのポイ
ンタ以外のフォントコードの場合には、単純にイメージ
に変換される。すなわち、フォントコードをアドレス変
換してフォントパターンメモリ7より対応するフォント
を読み出し、それを、フォントコード格納位置(アドレ
ス)により定められる表示用メモリ2上のブロック内に
書き込む。
When the updating of the display processing map memory 4 and the intersection information memory 5 is completed, the contents of the display memory 2 are updated using them. For example, the code is sequentially read from the map memory 4 to perform the processing. If the read content is a font code other than the pointer to the intersection information memory, it is simply converted into an image. That is, the font code is converted into an address, the corresponding font is read from the font pattern memory 7, and it is written in the block on the display memory 2 which is defined by the font code storage position (address).

【0029】地図メモリ4より読み出した内容が交差点
情報メモリ5へのポインタになっているときは、フォン
ト作成部13を起動し、そのポインタを使って交差点情
報メモリ5より交差点情報を読み出す。例えば、図3に
おいて<81>の値をもつポインタで指し示される交差
点セグメントでは、フォント数が2であり、第1フォン
ト情報が、貫通したよこの道路と成るフォントを定義し
ており、第2フォント情報が、右上へ分岐した道路のフ
ォントを定義している。この場合、フォント作成部13
は例えば、次のようにして、図3(イ)のイメージ上に
示すような右上へ分岐した3つ角の道路のパターンを合
成する。まず、第1フォント情報を使ってよこの道路の
フォントをフォントパターンメモリから読み出し、道路
のところを塗りつぶす。次に、第2フォント情報を使っ
て右上に傾斜する道路のフォントをフォントパターンメ
モリ7より読み出し、同様に塗りつぶす。さらに、フォ
ント作成部13は第2フォント情報に含まれる右上分岐
の情報を使ってマスクパターンメモリ14よりマスクパ
ターン情報を選択し、これを使って、塗りつぶされた右
上に傾斜する道路の左下半分をクリアし、右上のところ
だけ残す。そして、この残された右上傾斜道路と、最初
のよこの塗りつぶされた道路のパターン同士をORで合
成し、その結果のパターンを白抜きする。この結果、水
平の道路より右上へ分岐する道路をもつ3つ角のパター
ンが得られる。このパターンは表示用メモリ2の対応ブ
ロック内にセットされる。その他のフォント同士の合成
も交差点情報を使用することで容易に行うことができ
る。
When the content read from the map memory 4 is a pointer to the intersection information memory 5, the font creating section 13 is activated and the pointer is used to read the intersection information from the intersection information memory 5. For example, in the intersection segment pointed by the pointer having the value <81> in FIG. 3, the number of fonts is 2 and the first font information defines the font which is the road that has been penetrated. The font information defines the font of the road that branches to the upper right. In this case, the font creation unit 13
For example, in the following manner, as shown in the image of FIG. 3A, the patterns of the roads of the three corners branched to the upper right are synthesized. First, the font of this road is read from the font pattern memory using the first font information, and the road is filled. Next, using the second font information, the road font inclined to the upper right is read from the font pattern memory 7 and similarly painted. Further, the font creation unit 13 selects the mask pattern information from the mask pattern memory 14 using the information on the upper right branch included in the second font information, and uses this to select the lower left half of the filled sloped road to the upper right. Clear and leave only the upper right part. Then, the patterns of the remaining upper right sloping road and the first filled road are combined by OR, and the resulting pattern is outlined. As a result, a three-cornered pattern having a road that branches to the upper right from a horizontal road is obtained. This pattern is set in the corresponding block of the display memory 2. Other fonts can be easily combined by using the intersection information.

【0030】<実施例のまとめと変形>上記実施例は、
いわば張り絵風にイメージを作成するものであり、連続
する軌跡をもつイメージ要素を作成するのが非常に簡易
にできる。すなわち、ユーザーは軌跡入力と種類の指定
だけすればよく、操作が極めて楽である。また、装置側
の処理としてもソースコード情報の更新と、ソースコー
ド情報からイメージへの変換、更新だけでよい。特に、
フォントメモリを使用しているので、イメージへの変換
が高速にできる。
<Summary and Modification of Embodiments>
The image is created in a so-called upholstery style, and it is very easy to create an image element having a continuous trajectory. That is, the user only needs to input the trajectory and specify the type, and the operation is extremely easy. Further, as the processing on the device side, it is only necessary to update the source code information and convert and update the source code information into an image. In particular,
The font memory is used, so conversion to an image can be done at high speed.

【0031】また、フォントの種類の指定により、基本
的なことが決まり、軌跡入力により位置とともに、細か
いこと(位相)が決まる。ブロック位置におけるフォン
トの位相として、実施例では方向と、貫通/分岐の区別
だけであるが、ブロック内に占める位置をも含ませるこ
とができる。いずれにしろ、従来のように、一線分、一
領域ずつ入力していくやり方に比べはるかに能率がよ
い。
Further, by specifying the font type, basic things are decided, and by the locus input, fine things (phase) are decided together with the position. As the font phase at the block position, in the embodiment, only the direction and the distinction between the through / branch are included, but the position occupied in the block can be included. In any case, it is much more efficient than the conventional method of inputting one line segment and one area at a time.

【0032】交差に関し、上記実施例では同一の種類を
もつフォント同士の立体的交差を想定していないが、こ
れもできるようにしてもよい。例えば、キーボードに立
体交差のコマンドキーを設け、このキー入力ごとに交差
の前後関係を切り換えるようにする。例えば、道路と道
路の交差であれば、最初は平面交差が選ばれるように
し、1回押すと、片方の道路の方が前面にくるかたちに
し、もう一度押すと、別の方が前面にくるかたちにす
る。
Regarding the intersection, although the three-dimensional intersection between the fonts having the same type is not assumed in the above embodiment, this may be possible. For example, a command key for three-dimensional intersection is provided on the keyboard, and the context of the intersection is switched for each key input. For example, if it is a road-to-road intersection, select a level intersection first, and press it once to make one road come to the front, and press it again to make another come to the front. To

【0033】交差の検出と解析に関し、上記実施例で
は、交差の検出と解析を、フォントのソースであるフォ
ントコード同士を照らし合わせることによって行ってい
る。そして、照らし合わされるフォントコードにはフォ
ントの種類を定義する情報とフォントの位相を定義する
情報とが含まれている。したがって、非常に簡易にフォ
ント同士の交差の有無と態様を検出、識別することがで
きる。仮に、従来にみられるように、ベクトルの集合を
もって、イメージを定義するようなものにあっては、パ
ターン同士の衝突とその態様を自動的に検出、識別する
ことが非常に困難であり、できるにしてもその解析に時
間を要する。
Regarding the detection and analysis of the intersection, in the above embodiment, the detection and the analysis of the intersection are performed by comparing the font codes which are the sources of the fonts. The matched font code includes information defining the font type and information defining the font phase. Therefore, it is possible to very easily detect and identify the presence / absence and the mode of the font intersection. If the image is defined by a set of vectors as is conventionally seen, it is very difficult to automatically detect and identify the collision between patterns and their modes. However, the analysis takes time.

【0034】[0034]

【発明の効果】本発明によれば、地図イメージの種類
と、表示位置、描画方向との指定の際、その指定表示位
置が既に作成済みの地図イメージと交差する場合には、
既に作成された地図イメージを新たな指定の地図イメー
ジを立体交差の地図イメージに自動的に変更し描画する
ことができ、立体交差の地図イメージを簡単に得ること
ができる。
According to the present invention, when the type of map image, the display position, and the drawing direction are designated, if the designated display position intersects with the already created map image,
A map image already created can be automatically changed to a new designated map image and drawn, and a map image of a grade separation can be easily obtained.

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

【図1】本発明の一実施例の全体構成図。FIG. 1 is an overall configuration diagram of an embodiment of the present invention.

【図2】フォントコードとフォントとの対応図。FIG. 2 is a correspondence diagram between font codes and fonts.

【図3】実施例のデータ構造の説明図。FIG. 3 is an explanatory diagram of a data structure of the embodiment.

【図4】実施例の動作の主要部のフローチャート。FIG. 4 is a flowchart of a main part of the operation of the embodiment.

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

1 CPU 2 表示用メモリ 4 地図メモリ 5 交差点情報メモリ 8 タッチタブレット 11 キー入力部 1 CPU 2 display memory 4 map memory 5 intersection information memory 8 touch tablet 11 key input section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】道路、鉄道等の地図イメージを描画する装
置であって、 道路、鉄道等の複数種の地図イメージ地図のうち、描画
作成対象の地図イメージの種類を任意に指定する第1の
指定手段と、 上記作成対象の地図イメージの表示画面上における所望
する表示位置とその描画方向とを任意に指定する第2の
指定手段と、 上記第2の指定手段で指定された表示位置が、既に地図
イメージが描画作成されていた表示位置と交差するか否
かを判別する判別手段と、 上記判別手段により交差すると判別された際に、その交
差位置における既に描画作成済みの地図イメージを、そ
の交差位置における既に描画作成済みの地図イメージと
上記第2の指定手段によりその表示位置が指定された上
記地図イメージとの立体交差の地図イメージに変更する
地図イメージ変更手段と、 この地図イメージ変更手段により変更された立体交差の
地図イメージを、上記第2の指定手段で指定された表示
位置に描画作成する地図イメージ描画手段と、 を有することを特徴とする地図イメージ作成装置。
1. A device for drawing a map image of a road, a railroad, etc., which is a first device for arbitrarily designating a kind of a map image to be drawn and created among a plurality of types of map image maps such as a road, a railroad, etc. A designating means, a second designating means for arbitrarily designating a desired display position on the display screen of the map image to be created and its drawing direction; and a display position designated by the second designating means, A discriminating means for discriminating whether or not the map image already intersects the display position which has been drawn and created, and when it is discriminated that the map image intersects by the discriminating means, the map image already drawn and drawn at the intersecting position is A map that is changed to a map image of a three-dimensional intersection between a map image that has already been drawn and created at the intersection position and the map image whose display position has been specified by the second specifying means. Image changing means and map image drawing means for drawing and creating a map image of the grade separation changed by the map image changing means at the display position designated by the second designating means. Map image creation device.
JP6339534A 1994-12-29 1994-12-29 Map image creation device Expired - Lifetime JP2571031B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6339534A JP2571031B2 (en) 1994-12-29 1994-12-29 Map image creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6339534A JP2571031B2 (en) 1994-12-29 1994-12-29 Map image creation device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP18198386A Division JPH0831125B2 (en) 1986-08-04 1986-08-04 Map drawing device

Publications (2)

Publication Number Publication Date
JPH07320022A true JPH07320022A (en) 1995-12-08
JP2571031B2 JP2571031B2 (en) 1997-01-16

Family

ID=18328392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6339534A Expired - Lifetime JP2571031B2 (en) 1994-12-29 1994-12-29 Map image creation device

Country Status (1)

Country Link
JP (1) JP2571031B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10288944A (en) * 1997-04-16 1998-10-27 Nof Corp Method and device for converting map image
JPH11202762A (en) * 1998-01-09 1999-07-30 Hitachi Ltd Generation method and device for simplified map

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10288944A (en) * 1997-04-16 1998-10-27 Nof Corp Method and device for converting map image
JPH11202762A (en) * 1998-01-09 1999-07-30 Hitachi Ltd Generation method and device for simplified map

Also Published As

Publication number Publication date
JP2571031B2 (en) 1997-01-16

Similar Documents

Publication Publication Date Title
JP2609744B2 (en) Image display method and image display device
US5796866A (en) Apparatus and method for editing handwritten stroke
JPS6075873A (en) Display unit
JP2509733B2 (en) Database system
JP2571032B2 (en) Map image creation device
JP2571031B2 (en) Map image creation device
JPH0831125B2 (en) Map drawing device
JPH07111618B2 (en) Scroll screen display method and device
JPH0827792B2 (en) Document editing method
US5727224A (en) Document image processor for inserting and editing bracket symbols and associated text
JPH0981032A (en) Map information system and method for controlling screen scroll
JPH0357079A (en) Graphic register control system
JP2663967B2 (en) Information storage control method
JP3193635B2 (en) Image processing apparatus, system, method and map processing apparatus
JP3493016B2 (en) Different-scale map management device
JPH06110991A (en) Graphic plotting device
JPH0816804A (en) Picture processing method
JPH09230784A (en) Map display system
JPH0348975A (en) Graphic designating system for display device
JPS63178319A (en) Display device with multiwindow display function
JPH09190524A (en) Graphic processor and method therefor
JPH09293135A (en) Method and device for automatically generating construction area management drawing
JPH11120330A (en) Method and device for drawing data management
JPH09231391A (en) Information processor
JPH06149979A (en) Three-dimensional image processing method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term