JP3630811B2 - Image creating apparatus and method - Google Patents
Image creating apparatus and method Download PDFInfo
- Publication number
- JP3630811B2 JP3630811B2 JP00279096A JP279096A JP3630811B2 JP 3630811 B2 JP3630811 B2 JP 3630811B2 JP 00279096 A JP00279096 A JP 00279096A JP 279096 A JP279096 A JP 279096A JP 3630811 B2 JP3630811 B2 JP 3630811B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- coordinates
- altitude
- road
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 13
- 238000010586 diagram Methods 0.000 description 25
- 230000006870 function Effects 0.000 description 9
- 102100021334 Bcl-2-related protein A1 Human genes 0.000 description 1
- 101000894929 Homo sapiens Bcl-2-related protein A1 Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は画像作成装置およびその方法に関し、例えば、地図画像を描画・編集する画像作成装置およびその方法に関するものである。
【0002】
【従来の技術】
パソコンやワープロなどで地図を描画し、かつ編集することのできる地図作成装置がある。この装置においては、所定の二地点を指示し、その間を所定の線で結ばせることにより、地図上に道路や鉄道の線路(以下「路」という)が描画される。
【0003】
【発明が解決しようとする課題】
しかし、上述した技術においては、次のような問題点がある。つまり、上記の装置においては、路を曲線で描くのが難しい上、描画した結果、既に描かれている河川や道路とが重なる部分は路が透過表示になったり、路の下の地図画像が消えてしまう欠点がある。さらに、路と橋とトンネルとは、それぞれ別個に描く必要があり、一本の路でも一気に描くことはできない。
【0004】
本発明は、上述の問題を解決するためのもので、路とトンネルの関係に応じて地図画像を作成することを目的とする。
【0005】
【課題を解決するための手段】
本発明は、前記の目的を達成する一手段として、以下の構成を備える。
【0007】
本発明にかかる画像作成方法は、特定の記号の標高情報を入力する標高入力ステップと、座標を入力する座標入力ステップと、前記座標入力ステップにより連続して入力される座標間を線で結ぶ結線ステップと、前記座標入力ステップで入力された座標の標高情報を、既存の線の標高情報から演算する演算ステップと、前記演算ステップで演算された標高情報と、前記標高入力ステップで入力された標高情報とを比較する比較ステップと、前記比較ステップで得られる比較結果に基づき、前記座標入力ステップで入力された座標間に前記特定の記号を描画する描画ステップとを有することを特徴する。
【0011】
本発明にかかる画像作成装置は、所定の線を形成するために連続して入力される座標を記憶する第一の記憶手段と、前記入力された座標の標高情報を、既存の線の標高情報から演算する演算手段と、前記演算手段によって演算された標高情報と、特定の記号の予め入力された標高情報とを比較する比較手段と、前記比較手段により得られた比較結果に基づき、前記二つの標高情報が近似を示す前記入力された座標のうち二つを記憶する第二の記憶手段と、前記第一および第二の記憶手段に記憶されたデータに基づき、前記第二の記憶手段に記憶された二つの座標間に前記特定の記号を描画した地図画像を作成する作図手段とを有することを特徴する。
【0012】
【発明の実施の形態】
以下、本発明にかかる一実施形態の画像作成装置を図面を参照して詳細に説明する。
【0013】
[構成]
図1Aは本発明にかかる一実施形態の画像作成装置の構成例を示すブロック図である。
【0014】
中央処理装置CPU1は、以下に説明する各部とバスラインBL6を介して接続され、ROM8に格納された制御プログラムなどに従って、それらを制御する。KB2は、カーソルの移動や、文字や図形の入力・編集を行うためのキーボードや、マウスなどのポインティングデバイスである。LCD3は、ビデオメモリVRAM4に書込まれた文字や図形情報をカラー表示する液晶ディスプレイなどの表示装置である。PRT7は、文字図形情報などを印刷するためのプリンタである。FDD5は、フロッピディスクなどの記憶メディアをドライブする装置である。CPU1は、FDD5にセットされた記憶メディアから地図作成プログラムなどの各種プログラムや各種のデータを読込んだり、同メディアへ演算結果や演算途中のデータを書込んだりする。なお、記憶メディアは、フロッピディスクに限られるものではなく、CD−ROM,CD−R,光磁気ディスクなどのリムーバルな記憶メディアを利用できることはもちろん、ハードディスクなどであってもよい。
【0015】
RAM9は、不揮発性のメモリであり、そのメモリ領域は幾つかに分割されていて、図1Bに示すように、それぞれ固有の目的に使用される。RAM9の領域WORKは、CPU1が地図作成プログラムなどの各種プログラムを実行する際に使用するワークエリアである。領域DD1,DD2,…,DDnは、各道路の描画データを座標として格納する道路データ領域である。領域TD1,TD2,…,TDnは、各等高線の描画データを座標として格納する等高線データ領域である。領域THは、トンネルの入口および出口の標高を記憶する領域である。領域KD1,KD2,…,KDnは、各河川の描画データを座標として格納する河川データ領域である。
【0016】
また、フラグKFLは、描画中の路と、道路,河川,等高線などとの交差が開始されたか否かを記憶する。座標(KX,KY)はカーソル座標を表す。
【0017】
データBFL1, BFL2, …, BFLmは、交差する線が道路か河川を識別するためのものである。(BX, BY)1, (BX, BY)2, …, (BX, BY)mには、各BFLに対応する路または河川と他の線との交差開始座標が格納され、(EX, EY)1, (EX, EY)2, …, (EX, EY)mには、各BFLに対応する路または河川と他の線との交差終了座標が格納される。なお、詳細は示さないが、(KX, KY)(BX, BY)(EX, EY)はそれぞれ、左右二つのデータ組で構成される。
【0018】
[データ構造]
本装置の動作を説明する前に、道路データDDなどの構造を説明する。
【0019】
図2は道路データDD1の構造例を示す図、図3は道路の描画状態例を示す図で、道路の右端と左端を描画するための座標(XRn,YRn)と(XLn,YLn)から構成されている。これは、一本の道路の幅は常に一定とは限らないためである。このような構造の道路データDD(座標群)が、道路の数nだけ用意される。
【0020】
図4は河川データKD1の構造例を示す図、図5は河川の描画状態例を示す図で、河川データKDも、道路と同様に、河川の右岸と左岸を描画するための座標(XRn,YRn)と(XLn,YLn)から構成され、河川の数nだけ河川データKD(座標群)が用意される。
【0021】
図6は等高線データTD1の構造例を示す図、図7は二本の等高線(標高H1とH2)の描画状態例を示す図で、等高線データTDは、同一標高を結ぶ線であり、等高線を構成する複数の座標(Xn,Yn)と標高Hとからなる。
【0022】
なお、各座標間は、図に示すように、直線で結んでもよいが、ベジェ曲線やスプラインにより結ぶことにより、より自然な曲線を得ることができる。
【0023】
[動作]
図8は本実施形態の動作を説明するためのフローチャートで、CPU1によって実行されるものである。図9Aから9Cは描画状態例を示す図で、図9Aに示すように、既に河川が描画されているものとし、カーソルKSを移動させることにより路を描画するが、ここでは道路を描画する例を説明する。
【0024】
描画の開始が指示されると、ステップS1で交差フラグKFLを‘0’に、カウンタiを1にクリアし、ステップS2で道路を示す座標が入力されるのを待つ。なお、オペレータは、カーソルKSを所望の位置に移動した後、マウスボタンをクリックして例えば道路の左端を指示し、続いて、道路の右端を指示するためにカーソルKSを道路の幅分移動してマウスボタンをクリックする。なお、マウスボタンの代わりに所定のキーを押すことにより座標を入力してもよい。この座標は道路データDDnに順に格納される。
【0025】
座標が入力されると、ステップS3でその座標(KX,KY)と河川または道路を表す線とが交差したか否かを判定し、接していなければステップS10で路を描画、つまり、一つ前に入力された座標と、新たに入力された座標とを線で結んだ後、ステップS2へ戻る。
【0026】
また、図9Bに示すように、交差した場合はステップS4で交差フラグKFLを調べ、KFL=‘0’ならば初めて交差したことになるので、ステップS5で交差座標を開始座標(BX,BY)iにセットするとともに、KFL=‘1’にする。次に、ステップS6で、交差するのが河川か路かを判別し、その結果を分類データBFLiにセットした後、ステップS2へ戻る。図10はBFLの構成例を示す図で、道路ビットや河川ビットなどを備え、ステップS6の判定結果に応じて所定のビットがセットされる。
【0027】
また、ステップS4でKFL=‘1’であった場合は河川または路の反対側の線と交差したことを意味するので、ステップS7で交差座標を終了座標(EX,EY)iにセットする。座標(BX,BY)iと(EX,EY)iが設定されると、橋または交差点を描く座標が決まることになり、ステップS8でBFLiに応じたオブジェクト(橋や交差点などの記号)を描画して、ステップS9でKFLをクリアしカウンタiをインクリメントした後、ステップS2へ戻る。
【0028】
このようにして路の座標を入力していくことにより、図9Cに示すように、路が描画されるとともに、その路が河川と交差する部分には橋の記号が描画される。なお、KB2の所定キーなどを押すことなどにより、路の描画を終了することができる。
【0029】
次に、トンネル記号を描画する場合を説明する。本実施形態は、路を描画中に、等高線の標高Hと、予め入力されているトンネル標高THとに基づいて、トンネル記号を描画するか否かを判定する。つまり、路がトンネルの入口標高TH1に達する部分でトンネル記号の描画を開始し、トンネルの出口標高TH2に達する部分でトンネル記号の描画を終了する。
【0030】
図11は本実施形態の動作を説明するためのフローチャートで、CPU1によって実行されるものである。図12Aから12Cは描画状態例を示す図で、図12Aに示すように、既に等高線が描画されているものとし、カーソルKSを移動させることにより道路を描画する。
【0031】
描画の開始が指示されると、ステップS11で交差フラグKFLを‘0’に、カウンタiを1にクリアし、ステップS12で道路を示す座標が入力されるのを待つ。なお、ここでは交差フラグKFLをトンネル記号を描画するためのフラグに利用する例を説明するが、実際は河川などとの交差も考慮しなくてはならないので、別途、専用のフラグを設けた方がよい。
【0032】
座標が入力されると、ステップS13でその座標(KX,KY)の標高Hを演算する。この場合、入力座標が等高線に接する場合は標高Hを容易に求めることができるが、入力座標が等高線間に挟まれている場合は、例えば一次補間などにより両等高線から標高Hを求める。次に、ステップS14でKFLを判定して、KFL=‘0’(トンネル記号の描画を開始していない)ならばステップS15で標高Hとトンネルの入口標高TH1とを比較して、H≒TH1であればステップS16でトンネル記号の描画を開始するとともに、開始座標(BX,BY)iにカーソル座標(KX,KY)を代入し、ステップS17でKFL=‘1’にする。また、H≠TH1であればステップS18で路を描く。なお、H≒TH1は、具体的には|H−TH|<αで判定し、αには地図の精度に応じた値、例えば10mや100mなどを設定すればよい。
【0033】
また、ステップS14でKFL=‘1’であった場合は、ステップS19で標高Hとトンネルの出口標高TH2とを比較して、H≒TH2であればステップS20でトンネル記号の描画を終了するとともに、終了座標(EX,EY)iにカーソル座標(KX,KY)を代入し、ステップS21でKFLをクリアし、カウンタiをインクリメントする。また、H≠TH2であればステップS18でトンネル記号を描く。
【0034】
このようにしてステップS12からS21を繰り返すことにより、図12Aから12Cに示すように、路およびトンネル記号が描画される。なお、複数のトンネルがある場合は、領域THに、道路を描く順番に沿って複数の入口および出口標高が格納されることになる。
【0035】
[地図の編集]
座標入力間隔が不適切で、期待したような曲線が描けなかった場合は、KB2の所定キーを押すことにより、最後に入力した座標から順番に削除することができる。また、例えば、所定キーを押すことでカーソルをピンセット状にして、線の所定位置をつかみ、所望する位置へ移動することにより、二つの座標間に新たな座標を追加することができる。
【0036】
[地図の描画および保存]
以上の処理により描かれた地図のデータは、RAM9の各領域に、各データを示す連続した座標群として記録される。CPU1は、この座標群を基にVRAM4に地図画像を形成し、その画像データをLCD3へ送って地図を表示させたり、PRT7へ送って地図を印刷させる。また、RAM9の各領域に格納されたデータをFDD5へ送って、記憶メディアに格納することにより、地図データとして保存することができる。
【0037】
また、図には示さないが、バスBL6に接続されたインタフェイスを介して通信回線へ地図データを出力することもできるので、例えばLANを介して他の端末に地図を表示したり、電話回線を介して遠隔地の端末に地図を送ることもできる。このような場合、VRAM4に形成した地図画像を圧縮して送信することもできるが、RAM9に格納された地図データをそのまま送れば伝送量を最小限に抑えることができる。
【0038】
また、構造物や建造物などのオブジェクトを表示するためのデータを格納する領域をRAM9に割り付ければ、それらオブジェクトを地図上に表示することもできるし、文字や記号なども同様に表示することができる。
【0039】
以上説明したように、本実施形態によれば、容易に路を曲線で描くことができ、新たな道路と既に描かれている河川や道路と重なる部分は橋記号やトンネル記号が自動的に書き込まれるとともに、路の下の地図情報が消えてしまうこともない。従って、路と橋とトンネルとは、それぞれ別個に描く必要はなく、一本の路を一気に描くことができる。
【0040】
【他の実施形態】
なお、本発明は、複数の機器(例えばホストコンピュータ,インタフェイス機器,リーダ,プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機,ファクシミリ装置など)に適用してもよい。
【0041】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。
【0042】
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0043】
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0044】
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するプログラムコードを格納することになるが、簡単に説明すると、図13のメモリマップ例に示す各モジュールを記憶媒体に格納することになる。すなわち、少なくとも「座標間結線」「交差判定」および「特定記号描画」の各モジュールのプログラムコードを記憶媒体に格納すればよい。また、少なくとも「座標間結線」「標高演算」「標高比較」および「特定記号描画」の各モジュールのプログラムコードを記憶媒体に格納すればよい。また、少なくとも「入力座標記憶」「交差判定」および「交差座標等記憶」の各モジュールのプログラムコードを記憶媒体に格納すればよい。また、少なくとも「入力座標記憶」「標高演算」「標高比較」および「トンネル座標等記憶」の各モジュールのプログラムコードを記憶媒体に格納すればよい。
【0045】
【発明の効果】
以上説明したように、本発明によれば、路とトンネルの関係に応じて地図画像を作成することができる。
【図面の簡単な説明】
【図1A】本発明にかかる一実施形態の画像作成装置の構成例を示すブロック図、
【図1B】図1に示すRAMに格納されるデータを説明する図、
【図2】道路データの構造例を示す図、
【図3】道路の描画状態例を示す図、
【図4】河川データの構造例を示す図、
【図5】河川の描画状態例を示す図、
【図6】等高線データの構造例を示す図、
【図7】二本の等高線(標高H1とH2)の描画状態例を示す図、
【図8】本実施形態の動作を説明するためのフローチャート、
【図9A】本実施形態による地図の描画状態例を示す図、
【図9B】本実施形態による地図の描画状態例を示す図、
【図9C】本実施形態による地図の描画状態例を示す図、
【図10】データBFLの構成例を示す図、
【図11】本実施形態の動作を説明するためのフローチャート、
【図12A】本実施形態による地図の描画状態例を示す図、
【図12B】本実施形態による地図の描画状態例を示す図、
【図12C】本実施形態による地図の描画状態例を示す図、
【図13】本発明にかかるプログラムコードを格納した記憶媒体のメモリマップ例を示す図である。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image creation apparatus and method, and more particularly to an image creation apparatus and method for drawing / editing a map image.
[0002]
[Prior art]
There are map creation devices that can draw and edit maps on a personal computer or word processor. In this apparatus, two predetermined points are designated and a predetermined line is connected between them to draw a road or railroad track (hereinafter referred to as “road”) on the map.
[0003]
[Problems to be solved by the invention]
However, the above-described technique has the following problems. In other words, in the above device, it is difficult to draw a road with a curved line, and as a result of drawing, the road overlaps with a river or road already drawn, or the map image under the road is displayed. There is a fault that disappears. Furthermore, roads, bridges, and tunnels must be drawn separately, and a single road cannot be drawn at a stretch.
[0004]
The present invention is for solving the above-described problem, and an object thereof is to create a map image according to the relationship between a road and a tunnel.
[0005]
[Means for Solving the Problems]
The present invention has the following configuration as one means for achieving the above object.
[0007]
An image creating method according to the present invention includes an altitude input step for inputting altitude information of a specific symbol, a coordinate input step for inputting coordinates, and a line connecting the coordinates continuously input by the coordinate input step. a step, the elevation information of the coordinates inputted by the coordinate input step, a calculating step of calculating the elevation information of the existing lines, and elevation information calculated by said calculation step, the altitude input in the altitude input step a comparing step of comparing the information, based on the comparison result obtained in the comparing step, characterized by comprising a drawing step of drawing the particular symbol between the inputted coordinates in the coordinate input step.
[0011]
The image creating apparatus according to the present invention, a first storage means for storing the coordinates inputted in succession to form a predetermined line, the altitude information of the input coordinate, elevation information of existing line On the basis of the comparison result obtained by the comparison means, the comparison means for comparing the altitude information calculated by the calculation means, the altitude information calculated by the calculation means, and the altitude information input in advance for a specific symbol. a second storage means for storing two of the coordinates one of altitude information is the input indicating the approximation, based on the data stored in said first and second storage means, to said second storage means And a plotting means for creating a map image in which the specific symbol is drawn between two stored coordinates .
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an image creating apparatus according to an embodiment of the present invention will be described in detail with reference to the drawings.
[0013]
[Constitution]
FIG. 1A is a block diagram illustrating a configuration example of an image creating apparatus according to an embodiment of the present invention.
[0014]
The central processing unit CPU1 is connected to each unit described below via the bus line BL6, and controls them according to a control program stored in the
[0015]
The RAM 9 is a non-volatile memory, and its memory area is divided into several parts, and each is used for a specific purpose as shown in FIG. 1B. The area WORK of the RAM 9 is a work area used when the
[0016]
In addition, the flag KFL stores whether or not the intersection between the road being drawn and the road, river, contour line, or the like has started. Coordinates (KX, KY) represent cursor coordinates.
[0017]
The data BFL1, BFL2,..., BFLm are used for identifying the road or river where the intersecting line is a road. (BX, BY) 1, (BX, BY) 2,..., (BX, BY) m store the intersection start coordinates between the road or river corresponding to each BFL and another line, and (EX, EY ) 1, (EX, EY) 2,..., (EX, EY) m store the intersection end coordinates between the road or river corresponding to each BFL and another line. Although not shown in detail, each of (KX, KY) (BX, BY) (EX, EY) is composed of two left and right data sets.
[0018]
[data structure]
Before describing the operation of this apparatus, the structure of road data DD and the like will be described.
[0019]
FIG. 2 is a diagram showing an example of the structure of the road data DD1, and FIG. 3 is a diagram showing an example of a road drawing state, which is composed of coordinates (XRn, YRn) and (XLn, YLn) for drawing the right and left ends of the road. Has been. This is because the width of one road is not always constant. The road data DD (coordinate group) having such a structure is prepared for the number n of roads.
[0020]
FIG. 4 is a diagram showing an example of the structure of the river data KD1, and FIG. 5 is a diagram showing an example of the river drawing state. The river data KD also has coordinates (XRn, YRn) and (XLn, YLn), and river data KD (coordinate group) is prepared for the number n of rivers.
[0021]
6 is a diagram showing an example of the structure of the contour line data TD1, FIG. 7 is a diagram showing an example of a drawing state of two contour lines (elevation H1 and H2), and the contour line data TD is a line connecting the same elevations. It consists of a plurality of coordinates (Xn, Yn) and altitude H.
[0022]
Each coordinate may be connected with a straight line as shown in the figure, but a more natural curve can be obtained by connecting with a Bezier curve or a spline.
[0023]
[Operation]
FIG. 8 is a flowchart for explaining the operation of this embodiment, which is executed by the
[0024]
When the start of drawing is instructed, the intersection flag KFL is cleared to "0" and the counter i is cleared to 1 in step S1, and the process waits for the coordinates indicating the road to be input in step S2. The operator moves the cursor KS to a desired position, and then clicks the mouse button to indicate the left end of the road, for example, and then moves the cursor KS by the width of the road to indicate the right end of the road. Click the mouse button. The coordinates may be input by pressing a predetermined key instead of the mouse button. These coordinates are sequentially stored in the road data DDn.
[0025]
When the coordinates are input, it is determined in step S3 whether or not the coordinates (KX, KY) intersect a line representing a river or road. If not, the road is drawn in step S10, that is, one After connecting the previously input coordinates and the newly input coordinates with a line, the process returns to step S2.
[0026]
Further, as shown in FIG. 9B, when crossing, the crossing flag KFL is checked in step S4, and if KFL = '0', the crossing is made for the first time. Therefore, in step S5, the crossing coordinates are set to the start coordinates (BX, BY). Set to i and set KFL = '1'. Next, in step S6, it is determined whether the intersection is a river or a road, the result is set in the classification data BFLi, and the process returns to step S2. FIG. 10 is a diagram illustrating a configuration example of the BFL, which includes road bits, river bits, and the like, and predetermined bits are set according to the determination result of step S6.
[0027]
Further, if KFL = '1' in step S4, it means that it intersects with the line on the opposite side of the river or road, so the intersection coordinates are set to end coordinates (EX, EY) i in step S7. When coordinates (BX, BY) i and (EX, EY) i are set, the coordinates for drawing the bridge or intersection are determined, and an object (a symbol such as a bridge or intersection) is drawn according to BFLi in step S8. In step S9, KFL is cleared and the counter i is incremented, and the process returns to step S2.
[0028]
By inputting the coordinates of the road in this manner, as shown in FIG. 9C, the road is drawn, and a bridge symbol is drawn at a portion where the road intersects the river. The drawing of the road can be ended by pressing a predetermined key of KB2 or the like.
[0029]
Next, a case where a tunnel symbol is drawn will be described. In the present embodiment, it is determined whether or not to draw a tunnel symbol based on the elevation H of the contour line and the tunnel elevation TH input in advance while drawing the road. That is, drawing of the tunnel symbol is started when the road reaches the tunnel entrance altitude TH1, and drawing of the tunnel symbol is finished when the road reaches the tunnel exit altitude TH2.
[0030]
FIG. 11 is a flowchart for explaining the operation of this embodiment, which is executed by the
[0031]
When the start of drawing is instructed, the intersection flag KFL is cleared to "0" and the counter i is cleared to 1 in step S11, and the process waits for the coordinates indicating the road to be input in step S12. Here, an example in which the intersection flag KFL is used as a flag for drawing a tunnel symbol will be described. However, since it is actually necessary to consider the intersection with a river or the like, it is better to provide a dedicated flag separately. Good.
[0032]
When the coordinates are input, the altitude H of the coordinates (KX, KY) is calculated in step S13. In this case, when the input coordinates are in contact with the contour line, the elevation H can be easily obtained. However, when the input coordinates are sandwiched between the contour lines, the elevation H is obtained from the contour lines by, for example, primary interpolation. Next, in step S14, KFL is determined. If KFL = '0' (tunnel symbol drawing has not started), the altitude H is compared with the tunnel entrance altitude TH1 in step S15, and H≈TH1. If so, the drawing of the tunnel symbol is started in step S16, and the cursor coordinates (KX, KY) are substituted into the start coordinates (BX, BY) i, and KFL = '1' is set in step S17. If H ≠ TH1, a road is drawn in step S18. Specifically, H≈TH1 is determined by | H−TH | <α, and α may be set to a value according to the accuracy of the map, for example, 10 m or 100 m.
[0033]
If KFL = '1' in step S14, the altitude H is compared with the tunnel exit altitude TH2 in step S19. If H≈TH2, drawing of the tunnel symbol is terminated in step S20. Then, the cursor coordinates (KX, KY) are substituted into the end coordinates (EX, EY) i, KFL is cleared in step S21, and the counter i is incremented. If H ≠ TH2, a tunnel symbol is drawn in step S18.
[0034]
By repeating steps S12 to S21 in this way, roads and tunnel symbols are drawn as shown in FIGS. 12A to 12C. When there are a plurality of tunnels, a plurality of entrance and exit elevations are stored in the area TH in the order in which roads are drawn.
[0035]
[Edit map]
When the coordinate input interval is inappropriate and the expected curve cannot be drawn, the predetermined input coordinates can be deleted in order from the last input coordinate by pressing the predetermined KB2 key. In addition, for example, by pressing a predetermined key, the cursor is tweezers shaped, a predetermined position of the line is grasped, and a new position can be added between the two coordinates by moving to a desired position.
[0036]
[Draw and save map]
The map data drawn by the above processing is recorded in each area of the RAM 9 as a continuous coordinate group indicating each data. The
[0037]
Although not shown in the figure, map data can also be output to a communication line via an interface connected to the bus BL6. For example, a map can be displayed on another terminal via a LAN or a telephone line. You can also send a map to a remote terminal via. In such a case, the map image formed in the
[0038]
Moreover, if an area for storing data for displaying objects such as structures and buildings is allocated to the RAM 9, these objects can be displayed on the map, and characters and symbols can be displayed in the same manner. Can do.
[0039]
As described above, according to this embodiment, a road can be easily drawn with a curve, and a bridge symbol or a tunnel symbol is automatically written in a portion overlapping a new road and a river or road already drawn. In addition, the map information under the road does not disappear. Therefore, it is not necessary to draw the road, the bridge, and the tunnel separately, and a single road can be drawn at a stretch.
[0040]
[Other Embodiments]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), or a device (for example, a copier, a facsimile device, etc.) including a single device. You may apply to.
[0041]
Another object of the present invention is to supply a storage medium storing software program codes for implementing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0042]
Further, by executing the program code read out by the computer, not only the functions of the above-described embodiments are realized, but also the OS operating on the computer based on the instruction of the program code performs the actual processing. Needless to say, a case where the function of the above-described embodiment is realized by performing part or all of the processing is also included.
[0043]
Further, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
[0044]
When the present invention is applied to the above-mentioned storage medium, the program code corresponding to the above-described flowchart is stored in the storage medium. In brief, each module shown in the memory map example of FIG. Is stored in a storage medium. That is, at least “programming between coordinates”, “intersection determination”, and “specific symbol drawing” modules may be stored in the storage medium. Further, it is only necessary to store the program codes of at least the “coordinate connection”, “elevation calculation”, “elevation comparison”, and “specific symbol drawing” modules in the storage medium. Further, the program codes of at least the modules of “input coordinate storage”, “intersection determination”, and “intersection coordinate etc. storage” may be stored in the storage medium. Further, at least the program codes of the modules of “input coordinate storage”, “elevation calculation”, “elevation comparison”, and “storage of tunnel coordinates etc.” may be stored in the storage medium.
[0045]
【The invention's effect】
As described above, according to the present invention, a map image can be created according to the relationship between a road and a tunnel.
[Brief description of the drawings]
FIG. 1A is a block diagram showing a configuration example of an image creating apparatus according to an embodiment of the present invention;
FIG. 1B is a diagram for explaining data stored in the RAM shown in FIG. 1;
FIG. 2 is a diagram showing an example of the structure of road data;
FIG. 3 is a diagram showing an example of a road drawing state;
FIG. 4 is a diagram showing an example of the structure of river data;
FIG. 5 is a diagram showing an example of a river drawing state;
FIG. 6 is a diagram showing an example of the structure of contour line data;
FIG. 7 is a diagram showing an example of a drawing state of two contour lines (elevation H1 and H2);
FIG. 8 is a flowchart for explaining the operation of the embodiment;
FIG. 9A is a diagram showing an example of a map drawing state according to the present embodiment;
FIG. 9B is a diagram showing an example of a map drawing state according to the embodiment;
FIG. 9C is a view showing an example of a map drawing state according to the embodiment;
FIG. 10 is a diagram showing a configuration example of data BFL;
FIG. 11 is a flowchart for explaining the operation of the embodiment;
FIG. 12A is a diagram showing an example of a map drawing state according to the present embodiment;
FIG. 12B is a diagram showing an example of a map drawing state according to the embodiment;
FIG. 12C is a diagram showing an example of a map drawing state according to the embodiment;
FIG. 13 is a diagram showing an example of a memory map of a storage medium storing a program code according to the present invention.
Claims (4)
座標を入力する座標入力ステップと、
前記座標入力ステップにより連続して入力される座標間を線で結ぶ結線ステップと、
前記座標入力ステップで入力された座標の標高情報を、既存の線の標高情報から演算する演算ステップと、
前記演算ステップで演算された標高情報と、前記標高入力ステップで入力された標高情報とを比較する比較ステップと、
前記比較ステップで得られる比較結果に基づき、前記座標入力ステップで入力された座標間に前記特定の記号を描画する描画ステップとを有することを特徴する画像作成方法。 An altitude input step for inputting altitude information of a specific symbol;
A coordinate input step for inputting coordinates;
A connection step connecting the coordinates continuously input by the coordinate input step with a line;
The elevation information of coordinates inputted by the coordinate input step, a calculating step of calculating the elevation information of an existing line,
A comparison step of comparing the altitude information calculated in the calculation step with the altitude information input in the altitude input step ;
Image generation method for; and a drawing step of the comparison based on the comparison result obtained in step, to draw the particular symbol between the inputted coordinates in the coordinate input step.
前記入力された座標の標高情報を、既存の線の標高情報から演算する演算手段と、
前記演算手段によって演算された標高情報と、特定の記号の予め入力された標高情報とを比較する比較手段と、
前記比較手段により得られた比較結果に基づき、前記二つの標高情報が近似を示す前記入力された座標のうち二つを記憶する第二の記憶手段と、
前記第一および第二の記憶手段に記憶されたデータに基づき、前記第二の記憶手段に記憶された二つの座標間に前記特定の記号を描画した地図画像を作成する作図手段とを有することを特徴する画像作成装置。First storage means for storing coordinates that are successively input to form a predetermined line;
Altitude information of the inputted coordinates, and calculating means for calculating the altitude information of the existing line,
Comparison means for comparing the altitude information calculated by the arithmetic means with altitude information input in advance for a specific symbol ;
A second storage means for storing two of the basis of the comparison result obtained by the comparison means, coordinates the two altitude information is the input indicating the approximation,
Drawing means for creating a map image in which the specific symbol is drawn between the two coordinates stored in the second storage means based on the data stored in the first and second storage means; An image creating apparatus characterized by
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP00279096A JP3630811B2 (en) | 1996-01-11 | 1996-01-11 | Image creating apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP00279096A JP3630811B2 (en) | 1996-01-11 | 1996-01-11 | Image creating apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH09190525A JPH09190525A (en) | 1997-07-22 |
JP3630811B2 true JP3630811B2 (en) | 2005-03-23 |
Family
ID=11539164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP00279096A Expired - Fee Related JP3630811B2 (en) | 1996-01-11 | 1996-01-11 | Image creating apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3630811B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050104884A1 (en) * | 2002-04-22 | 2005-05-19 | Kansei Iwata | Digital altimetric map drawing method and device |
JP2008152511A (en) * | 2006-12-18 | 2008-07-03 | Fukui Computer Kk | Contour line editing apparatus, contour line editing method, and contour line editing program |
JP5016740B1 (en) * | 2011-01-27 | 2012-09-05 | 株式会社トヨタマップマスター | Tunnel entrance / exit specifying device and method, computer program for specifying tunnel entrance / exit, and recording medium recording computer program |
CN118247381B (en) * | 2024-05-23 | 2024-08-27 | 北京山维科技股份有限公司 | Method and device for processing geographic information data of line and ground objects |
-
1996
- 1996-01-11 JP JP00279096A patent/JP3630811B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH09190525A (en) | 1997-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4860372A (en) | Real time handwritten character input system | |
JPS6324419A (en) | Composite document processor | |
JP3630811B2 (en) | Image creating apparatus and method | |
JPH06309395A (en) | Picture preparing device | |
JPH0812668B2 (en) | Handwriting proofreading method | |
KR950006476B1 (en) | Pattern coating method using coating pattern generator | |
JP2550300B2 (en) | Character input method and device for real-time handwritten character recognition | |
JPH10124033A (en) | Character processor, character processing method and memory medium | |
JP4963633B2 (en) | Information processing apparatus and information processing method | |
JPS58189688A (en) | Image display system | |
CN110555905B (en) | Method, device, computer equipment and storage medium for generating three-dimensional overpass model | |
JP3376072B2 (en) | Character processing apparatus and method | |
JPS6339086A (en) | Simple image producing device | |
DE60042924D1 (en) | IMPROVEMENT OF S BUFFER PROCEDURES FOR THE AVOIDANCE OF ALIAS DISORDERS | |
JPS6366676A (en) | Picture production system in display device | |
JPS60150179A (en) | Document producer | |
JPS6050589A (en) | Document generation system | |
JPH08297466A (en) | Mapping device | |
JPS6258379A (en) | Graphing reverse simulation device | |
JPH01301457A (en) | Train diagram forming method | |
JPS63228388A (en) | Written input kanji correction method | |
JPH07105210A (en) | Erasure range limiting device | |
Brewer | Computer-Aided Structural Engineering (CASE) Project. User's Guide: Computer Graphics Program for Generation of Engineering Geometry (SKETCH). | |
JPS59165191A (en) | Drawing device of handwriting pattern | |
JPH0550782B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040903 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041014 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20041203 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20041215 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081224 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081224 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091224 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091224 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101224 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111224 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |