JP3373145B2 - Contour line connection method and recording medium - Google Patents

Contour line connection method and recording medium

Info

Publication number
JP3373145B2
JP3373145B2 JP35675597A JP35675597A JP3373145B2 JP 3373145 B2 JP3373145 B2 JP 3373145B2 JP 35675597 A JP35675597 A JP 35675597A JP 35675597 A JP35675597 A JP 35675597A JP 3373145 B2 JP3373145 B2 JP 3373145B2
Authority
JP
Japan
Prior art keywords
contour vector
contour
path
route
vector graphics
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
Application number
JP35675597A
Other languages
Japanese (ja)
Other versions
JPH11185010A (en
Inventor
裕之 妹尾
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP35675597A priority Critical patent/JP3373145B2/en
Publication of JPH11185010A publication Critical patent/JPH11185010A/en
Application granted granted Critical
Publication of JP3373145B2 publication Critical patent/JP3373145B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、地図図面を扱うコ
ンピュータシステムにおいて地図図面上の等高線が分断
された箇所をコンピュータ処理によって連結する等高線
連結方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a contour line connecting method for connecting, by computer processing, locations where contour lines are divided on a map drawing in a computer system for handling map drawings.

【0002】[0002]

【従来の技術】現在実用されている地図図面を扱うコン
ピュータシステムにおいては、図面上に、地図を構成す
る家枠、建物名称、道路、等高線等の様々な図形を作図
する際に、紙地図をイメージスキャナ等により画像デー
タとして入力し、それを元にベクトル化するという方法
が多く採られている。このベクトル化の際に、画像に見
られる等高線のかすれ等による分断がある場合、どうし
ても、その作図結果は図10に示すように分断個所10
0が存在する等高線になることが多い。従って、分断さ
れた箇所の無い等高線を得るためには、ベクトル化する
際に、分断された箇所を接続する必要がある。しかし、
等高線の形状は多様であり、またその分断のされかたも
多様である。人の目から見れば、分断されている部分を
補間する経路は一目瞭然であっても、コンピュータがそ
れを判断するのは難しい場合が多い。
2. Description of the Related Art In a computer system for handling map drawings currently in practical use, a paper map is used to draw various figures such as house frames, building names, roads, and contour lines that compose the map. A method of inputting as image data by an image scanner or the like and vectorizing based on the data is often adopted. In this vectorization, if there is a division due to blurring of contour lines or the like seen in the image, the drawing result is inevitable as shown in FIG.
It is often a contour line where 0 exists. Therefore, in order to obtain a contour line having no broken points, it is necessary to connect the broken points when vectorizing. But,
There are various shapes of contour lines, and there are various ways of dividing them. From the human eye's point of view, it is often difficult for a computer to judge a path for interpolating a divided portion even if it is obvious.

【0003】従来、このような分断された等高線間を接
続する技術としては、特開平2−146681号公報
「等高線抽出法式」に開示されているように、分断され
ている等高線の端点から所定の範囲内にある等高線ベク
トル図形で最短距離に接続するものが知られている。
Conventionally, as a technique for connecting such divided contour lines, as disclosed in Japanese Unexamined Patent Publication No. 146681/1990, "Contour line extraction method", a predetermined point is defined from the end points of the divided contour lines. It is known that contour vector graphics within a range are connected at the shortest distance.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来技術にあっては、分断個所があった場合、分断されて
いる等高線の一端を起点として、その起点から所定の範
囲内の最短距離の等高線に連結するため、例えば図11
(a)に示すように、分断された等高線L1、L2を連
結しようとした場合、Box1のように所定範囲が設定さ
れ、その範囲内で、L1の端点から最短距離の等高線ベ
クトル図形の端点を検出して、その端点と接続する連結
経路で分断された等高線L1、L2を連結することにな
る。この従来方法によれば、Box1内では、L1の右端
点とL2の左端点とを結ぶ経路W2,L1の右端点とL
2の右端点とを結ぶ経路W1,L2の右端点とL3の左
端点とを結ぶ経路W3,L2の左端点とL3の左端点と
を結ぶ経路W4があるが、このうちL1、L2を結ぶ経
路についてはW2よりW1の方が短いので、このW1が
選択される。その結果、分断された等高線L1、L2
は、図11(b)に示すように、W1の経路で連結され
てしまい、正しい連結ができないという問題があった。
However, in the above prior art, when there is a dividing point, one end of the divided contour line is used as the starting point and the contour line with the shortest distance within a predetermined range from the starting point is formed. To connect, eg FIG.
As shown in (a), when attempting to connect the divided contour lines L1 and L2, a predetermined range is set like Box1, and within this range, the end points of the contour vector graphic with the shortest distance from the end points of L1 are set. The contour lines L1 and L2, which are detected and are separated by the connecting path connected to the end point, are connected. According to this conventional method, in Box 1, the right end points of routes W2 and L1 connecting the right end point of L1 and the left end point of L2 and L
There is a path W3 connecting the right end points of the paths W1 and L2 connecting to the right end point of 2 and the left end point of L3, and a path W4 connecting the left end point of L2 and the left end point of L3. Among them, L1 and L2 are connected. Since W1 is shorter than W2 for the route, this W1 is selected. As a result, the divided contour lines L1 and L2
However, as shown in FIG. 11 (b), there is a problem in that they are connected via the route W1 and cannot be connected correctly.

【0005】本発明は、分断された等高線ベクトル図形
を、操作者にとって容易にかつ正しく連結できる等高線
連結方法を提供することを目的とするものである。
An object of the present invention is to provide a contour line connecting method by which an operator can easily and correctly connect divided contour line vector figures.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、分断された等高線のうち外部から指定さ
れた複数の等高線ベクトル図形の各端点同士を連結する
連結経路の全てを連結経路の候補として算出し、それら
の連結経路の候補の中から、既存の等高線と交差せず、
かつ経路長が最短のものを連結経路として決定し、この
決定された連結経路上に新たな等高線ベクトル図形を生
成し、分断された等高線を連結することを特徴とする。
In order to achieve the above object, the present invention connects all of the connecting paths connecting the respective end points of a plurality of contour vector figures designated from the outside among the divided contour lines. Calculate as a route candidate, and do not intersect with existing contour lines from among these connected route candidates,
The shortest route length is determined as a connection route, a new contour vector graphic is generated on the determined connection route, and the divided contour lines are connected.

【0007】[0007]

【発明の実施の形態】以下、本発明の一実施の形態を図
面を参照して詳細に説明する。図1は、本発明による等
高線の連結処理を行うためのシステム構成図である。図
1において、110は等高線の連結を行うための中央処
理装置(CPU)、120はイメージスキャナ等によっ
て読み込んだ地図等のベクトル図形を図面として格納す
るファイル装置、130は図面と図面上のベクトル図形
を表示するための表示装置、140は操作者により、連
結対象とする分断された等高線を指示するための指示装
置、150はCPU110での処理を行うのに必要なプ
ログラムを格納するプログラムメモリ、160は指示装
置140上で座標位置などの指定を行なうポインティン
グデバイスである。プログラムメモリ150には、図面
上におけるベクトル図形の各制御点の座標値を獲得する
座標獲得部151、指定等高線の連結処理部152が格
納されている。この座標獲得部151および連結処理部
152は、CPU110が実行可能なプログラムで構成
されるものである。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a system configuration diagram for performing contour line connection processing according to the present invention. In FIG. 1, 110 is a central processing unit (CPU) for connecting contour lines, 120 is a file device for storing a vector graphic such as a map read by an image scanner or the like as a drawing, and 130 is a drawing and a vector graphic on the drawing. Is a display device for displaying, 140 is an instruction device for instructing the divided contour lines to be connected by the operator, 150 is a program memory for storing a program necessary for performing processing in the CPU 110, 160 Is a pointing device for designating a coordinate position and the like on the pointing device 140. The program memory 150 stores a coordinate acquisition unit 151 that acquires the coordinate values of each control point of a vector graphic on the drawing, and a designated contour line connection processing unit 152. The coordinate acquisition unit 151 and the connection processing unit 152 are composed of programs that the CPU 110 can execute.

【0008】まず、操作者が連結対象となる分断された
等高線を2本選んだ場合について図2の説明図および図
3のフローチャートを参照して説明する。図3に示す処
理は、座標獲得部151および連結処理部152が共同
して行なう処理内容を示したものである。
First, the case where the operator selects two divided contour lines to be connected will be described with reference to the explanatory view of FIG. 2 and the flowchart of FIG. The processing shown in FIG. 3 shows the processing content that the coordinate acquisition unit 151 and the connection processing unit 152 jointly perform.

【0009】本発明では、操作者は対象となる等高線を
指定するだけで、2本の等高線のどの端点同士を連結す
るのかは指示しない。図2の例では、L1,L2が操作
者により指定された等高線である。まず、指定された等
高線L1,L2間の連結経路の候補を算出する(ステッ
プ301)。図2の例の場合、等高線L1,L2間を結
ぶ連結経路の候補としては、L1の右端点C3とL2の
左端点c4とを結ぶ経路W1,L1の左端点とL2の左
端点C4とを結ぶ経路W2,L1の右端点C3とL2の
右端点とを結ぶ経路W3,L1の左端点とL2の右端点
とを結ぶ経路W4の4つが抽出される。
In the present invention, the operator only specifies the target contour lines and does not indicate which end points of the two contour lines are to be connected. In the example of FIG. 2, L1 and L2 are contour lines designated by the operator. First, candidates for a connecting route between the designated contour lines L1 and L2 are calculated (step 301). In the case of the example in FIG. 2, as the candidate of the connecting path connecting the contour lines L1 and L2, the left end points of the paths W1 and L1 connecting the right end point C3 of L1 and the left end point c4 of L2 and the left end point C4 of L2 are connected. Four paths W3 connecting the right end point C3 of the connecting paths W2 and L1 and the right end point of L2 and the path W4 connecting the left end point of L1 and the right end point of L2 are extracted.

【0010】次に、4つの連結経路候補W1,W2,W
3,W4のうち、既存の等高線と交差する連結経路候補
は、候補から除外する(ステップ302)。このステッ
プで、W3、W4については既存の等高線L2にそれぞ
れC1、C2で交差するため、連結経路候補から除外さ
れる。これは、等高線はそれ自体が持つ性質として、途
中で交差することはないためである。
Next, four connection route candidates W1, W2, W
Among 3 and W4, the connecting route candidates that intersect the existing contour lines are excluded from the candidates (step 302). In this step, since W3 and W4 intersect the existing contour line L2 at C1 and C2, respectively, they are excluded from the connecting route candidates. This is because the contour lines do not intersect in the middle because of their own property.

【0011】次に、残った連結経路候補W1,W2の中
で経路長が最短のものを連結経路として決定する(ステ
ップ303)。ここでは、W1、W2のうち短い方は、
W1であるので、このW1が連結経路として決定され
る。
Next, of the remaining connecting route candidates W1 and W2, the one having the shortest route length is determined as the connecting route (step 303). Here, the shorter one of W1 and W2 is
Since it is W1, this W1 is determined as the connection path.

【0012】次に、決定された連結経路W1のベクトル
図形データを生成し、このベクトル図形データにより、
分断された経路W1を連結する(ステップ304)。これ
により、図2(a)の分断された等高線L1,L2は図
2(b)に示すように連結される。
Next, vector graphic data of the determined connecting route W1 is generated, and by this vector graphic data,
The divided route W1 is connected (step 304). As a result, the divided contour lines L1 and L2 in FIG. 2A are connected as shown in FIG. 2B.

【0013】以上のように、2本の等高線を連結する際
の経路を決定する際に、「分断された等高線の端点同士
を結ぶ連結経路候補のうち、既存の等高線に交差しない
連結経路候補を抽出し、さらに、その中で経路長が最短
のものを適切な連結経路として採用する」という方法を
とるとこにより、分断された等高線を合理的に連結する
ことができる。その場合、操作者は、連結対象となる分
断された等高線を指定するだけであるため、操作も極め
て簡単である。
As described above, when deciding a route for connecting two contour lines, "a connection route candidate that does not intersect with existing contour lines among the connection route candidates connecting the end points of the divided contour lines is selected. It is possible to rationally connect the divided contour lines by using the method of "extracting and adopting the path with the shortest path length among them as an appropriate connection path". In that case, since the operator only specifies the divided contour lines to be connected, the operation is extremely simple.

【0014】次に、操作者が、連結対象となる分断され
た等高線を3本以上選んだ場合について説明する。以
下、説明を簡単にするため3本の等高線を連結する場合
を述べる。
Next, a case where the operator selects three or more divided contour lines to be connected will be described. Hereinafter, a case of connecting three contour lines will be described in order to simplify the description.

【0015】図4(a)は、分断されている3本の等高
線L1、L2、L3を示すものである。図4(a)にお
いて、操作者が連結対象としてL1、L2、L3の順番
で連結対象を指定したとき、3本の分断等高線を1本に
連結する手順は、次のようになる。まず、L1とL2を
連結してCLとする。すなわち、L1の右端点C3とL
2の左端点C4とを連結してCLとする。この状態を図
4(b)に示す。このように操作者が指定したL1→L
2→L3の順序で等高線を連結していく。従って、図4
(a)において、L1の右端点C3とL3の左端点C6
とを結ぶ経路は、L1とL2とを連結するに際しては連
結候補として採用されない。
FIG. 4A shows three contour lines L1, L2 and L3 which are divided. In FIG. 4A, when the operator designates the connection target in the order of L1, L2, and L3 as the connection target, the procedure for connecting the three dividing contour lines into one is as follows. First, L1 and L2 are connected to form CL. That is, the right end points C3 and L of L1
The left end point C4 of 2 is connected to be CL. This state is shown in FIG. In this way, L1 → L designated by the operator
Contour lines are connected in the order of 2 → L3. Therefore, FIG.
In (a), the right end point C3 of L1 and the left end point C6 of L3
The path connecting the and is not adopted as a connection candidate when connecting L1 and L2.

【0016】次に、CLの右端点C5とL3の左端点C
6とを連結して1本の等高線とする。以上で3本の分断
等高線は1本に連結される。ここで、L1とL2とを連
結する処理と、CLとL3とを連結する処理は、上述し
た図3の処理に従う。
Next, the right end point C5 of CL and the left end point C of L3
6 is connected to form one contour line. With the above, the three dividing contour lines are connected to one. Here, the process of connecting L1 and L2 and the process of connecting CL and L3 follow the process of FIG. 3 described above.

【0017】ところが、3本の等高線L1、L2、L3
が図5(a)のような状態であった場合、図3の処理だ
けでは適切に連結されない。この場合、連結の結果は図
5(b)に示すようなものとなる。これは、L1とL2
を連結する際に期待される連結経路候補はL1の右端点
C7とL2の左端点C8とを結ぶW2であるのに、L1
の右端点C7とL2の右端点C9とを結ぶW1の方がW
2よりも経路長が短いために、結果的に、W1が採用さ
れてしまうからである。
However, the three contour lines L1, L2, L3
5 is in the state as shown in FIG. 5A, the process shown in FIG. In this case, the result of the connection is as shown in FIG. This is L1 and L2
Although the connection route candidate expected when connecting L1 is W2 that connects the right end point C7 of L1 and the left end point C8 of L2,
W1 connecting the right end point C7 of L and the right end point C9 of L2 is W
This is because W1 is eventually adopted because the path length is shorter than 2.

【0018】図5のような結果は、連結経路を決定する
際の考慮対象の等高線数を2本から3本に増やすことに
より、回避することができる。図6(a)は、図5
(a)と同じ状態を示しているが、ここでの比較経路
は、「W1、W4」のペアと「W2、W3」のペアであ
る。すなわち、L1とL2を連結する際の経路にW1
(L1の右端点C7とL2の右端点C9とを結ぶ経路)
を選ぶとすれば、L2とL3を連結する際に選ばれる経
路はW4(L2の左端点C8とL3の左端点C10とを
結ぶ経路)になり、一方、L1とL2を連結する際の経
路にW2(L1の右端点C7とL2の左端点C8とを結
ぶ経路)を選ぶとすれば、L2とL3を連結する際に選
ばれる経路はW3(L2の右端点C9とL3の左端点C
10とを結ぶ経路)になることから、「W1、W4」の
ペアと「W2、W3」のペアを比較する。
The result as shown in FIG. 5 can be avoided by increasing the number of contour lines to be considered in determining the connection route from two to three. FIG. 6A is a diagram of FIG.
Although the same state as (a) is shown, the comparison route here is a pair of “W1, W4” and a pair of “W2, W3”. That is, W1 is added to the route when connecting L1 and L2
(Route connecting the right end point C7 of L1 and the right end point C9 of L2)
If is selected, the route selected when connecting L2 and L3 is W4 (route connecting the left end point C8 of L2 and the left end point C10 of L3), while the route used when connecting L1 and L2 If W2 (the route connecting the right end point C7 of L1 and the left end point C8 of L2) is selected, the route selected when connecting L2 and L3 is W3 (the right end point C9 of L2 and the left end point C of L3.
10), the pair of “W1, W4” and the pair of “W2, W3” are compared.

【0019】比較の方法は、各経路ペアの経路長の和を
比較し、短いほうの経路ペアを採用するというものであ
る。図6(a)では、経路長の和が短いのは「W2、W
3」の経路ペアである。この「W2、W3」の経路ペア
を採用して連結することにより、連結結果は図6(b)
のような合理的なものになる。
The comparison method is to compare the sum of the route lengths of the route pairs and adopt the shorter route pair. In FIG. 6A, the shortest route length is “W2, W
3 ”route pair. By adopting and connecting the route pair of "W2, W3", the connection result is shown in FIG.
Would be rational.

【0020】ここで、図6の例では、連結候補経路W
1、W2、W3、W4の全てが、既存の等高線と交差す
ることはなかったが、これが図7(a)のような状態で
あった場合、経路W3は既存の等高線とC1で交差する
ため、採用される経路は(W1、W4)のペアとなる。
Here, in the example of FIG. 6, the connection candidate route W
All of 1, W2, W3, and W4 did not intersect with the existing contour line, but if this is the state as shown in FIG. 7A, the route W3 intersects with the existing contour line at C1. , The routes to be adopted are a pair of (W1, W4).

【0021】このように、ペアとなる経路のうち1つで
も既存の等高線に交差するものがあれば、そのペアは破
棄される。よって、連結結果は図7(b)に示すような
ものとなる。
As described above, if even one of the routes forming a pair intersects with the existing contour line, the pair is discarded. Therefore, the connection result is as shown in FIG.

【0022】次に図8に、この方法を実現するプログラ
ムの処理を図8のフローチャートを参照して説明する。
Next, the processing of the program for realizing this method will be described with reference to the flowchart of FIG. 8 in FIG.

【0023】まず、連結対象となる等高線の配列を入力
する。配列名L[ ](ただし、[ ]=1〜Ln)とし、配
列の要素数をLn(ただし、Ln≧2)とする(ステッ
プ801)。
First, an array of contour lines to be connected is input. The array name L [] (where [] = 1 to Ln) is set, and the number of elements in the array is set to Ln (where Ln ≧ 2) (step 801).

【0024】次に、出力用データ領域を初期化し(ステ
ップ802)、nに1を代入する(ステップ803)。
次に、(n+2)とLnを比較する(ステップ804)、
ここで、Lnが「n+2」よりも大きい場合は、L
[n]、L[n+1]、L[n+2]の等高線を比較し、L
[n]、L[n+1]を連結する経路を決定する(ステップ
805)。次に、L[n]と、決定した連結経路を出力用
データ領域に追加し(ステップ806)、nを「1」カ
ウントアップする(ステップ807)。
Next, the output data area is initialized (step 802) and 1 is substituted for n (step 803).
Next, (n + 2) is compared with Ln (step 804),
Here, when Ln is larger than “n + 2”, Ln
Compare the contour lines of [n], L [n + 1], and L [n + 2] to obtain L
The route connecting [n] and L [n + 1] is determined (step 805). Next, L [n] and the determined connection path are added to the output data area (step 806), and n is incremented by "1" (step 807).

【0025】ステップ804で(n+2)が、Ln以上の
場合は、L[n]とL[n+1]を連結する経路を決定する
(ステップ808)。
If (n + 2) is greater than or equal to Ln in step 804, a route connecting L [n] and L [n + 1] is determined (step 808).

【0026】L[n]と決定した連結経路と、L[n+1]
を出力用データ領域に追加する(ステップ809)。次
に、出力用データを元に等高線を図面上に定義する(ス
テップ810)。L[ ]の等高線を全て削除する(ステッ
プ811)。
The connection path determined to be L [n] and L [n + 1]
Is added to the output data area (step 809). Next, contour lines are defined on the drawing based on the output data (step 810). All contour lines of L [] are deleted (step 811).

【0027】次に、上記ステップ804〜807の処理
を図9を用いて具体的に説明する。図9は、4本の分断
された等高線ベクトル図形が連結対象として操作者に指
定された場合の処理の具体例を示した図である。図9に
示すように、まず、L1とL2とL3を比較し、W1と
W2を決定し、W1を採用する。次に、L1とL2の連
結結果であるL1−2とL3とL4を比較し、W1とW
2を決定し、W1を採用する。次に、L1〜L3の連結
結果であるL1−3とL4とL5を比較し、W1とW2
を決定し、W1を採用する。次に、L1〜L4の連結結
果であるL1−4とL5を比較し、W4を決定し、W1
を採用する。
Next, the processing of steps 804 to 807 will be specifically described with reference to FIG. FIG. 9 is a diagram showing a specific example of the processing in the case where the operator has designated the four divided contour line vector figures as connection targets. As shown in FIG. 9, first, L1, L2, and L3 are compared, W1 and W2 are determined, and W1 is adopted. Next, L1 and L3, which are the connection results of L1 and L2, are compared, and W1 and W
Determine 2 and adopt W1. Next, L1-3, L4, and L5, which are the connection results of L1 to L3, are compared, and W1 and W2 are compared.
And W1 is adopted. Next, L1-4, which is the result of linking L1 to L4, and L5 are compared, W4 is determined, and W1
To adopt.

【0028】このようにして、図9(a)で分断されて
いたL1〜L5が接続され、1本の等高線ベクトル図形
となる。
In this way, L1 to L5, which have been divided in FIG. 9A, are connected to form one contour line vector figure.

【0029】以上、説明したように、本発明では、3本
の等高線を連結する2本の経路を決定する際には、考え
られる経路のペアの中から、既存の等高線に交差する経
路を含まず経路長の和が最短のものを採用して連結し、
操作者が、連結対象となる分断された等高線を4本以上
選んだ場合は、まず1番目と2番目と3番目、次に「1
番目と2番目の連結線」と3番目と4番目、次に「1番
目と2番目と3番目の連結線」と4番目と5番目、とい
う具合に、順次3本ずつに対して上記の方法で連結経路
を決定していき、3本の等高線を連結する2本の経路を
仮に決定して、2本の経路のうち、若い順番の等高線を
連結する方の1本を採用し、もう一方の経路は、次回の
経路決定の際に採用される。
As described above, in the present invention, when determining two routes that connect three contour lines, a route that intersects with existing contour lines is included from among possible pairs of routes. The one with the shortest sum of path lengths is adopted and connected,
If the operator selects four or more separated contour lines to be connected, the first, second and third, then "1
For the 3rd and 2nd connecting line "and the 3rd and 4th, then the" 1st, 2nd and 3rd connecting line "and the 4th and 5th, etc. Determine the connection route by the method, and temporarily determine the two routes that connect the three contour lines, and then use the one of the two routes that connects the youngest contour lines. One route is adopted in the next route determination.

【0030】すなわち、対象等高線の1番目と2番目と
3番目の比較では、1番目と2番目を連結する経路を決
定し、「1番目と2番目の連結線」と3番目と4番目の
比較では「1番目と2番目の連結線」と3番目を連結す
る経路を決定する。言い換えると、2本の等高線を連結
する経路を決定するために、その先のもう1本の等高線
の位置についても考慮に入れる、ということである。
That is, in the comparison of the first, second and third object contours, the route connecting the first and second is determined, and the "first and second connecting lines" and the third and fourth In the comparison, the route connecting the “first and second connecting lines” and the third is determined. In other words, in order to determine the path connecting the two contour lines, the position of the other contour line ahead is also taken into consideration.

【0031】以上の方法により、操作者が指定する連結
対象の等高線が何本であっても、合理的に連結経路を決
定することができる。等高線の分断のされ方によって
は、連結経路を直線で引いてしまっては好ましくない結
果になる場合があるが、このような場合、上述した本発
明の処理によって経路を決定した後に、連結経路の「通
過点」を入力するようにしてもよい。
By the above method, the connection route can be rationally determined regardless of the number of contour lines to be connected specified by the operator. Depending on how the contour lines are divided, it may result in an unfavorable result if the connecting route is drawn by a straight line, but in such a case, after determining the route by the processing of the present invention described above, The “passing point” may be input.

【0032】なお、上述した連結処理を行なうプログラ
ムは、CD−ROM等の記録媒体に記録し、地図処理を
行なう既存のコンピュータシステムのユーザに提供し、
等高線の連結処理ツールとして使用することが可能であ
る。
The program for performing the above-mentioned linking process is recorded on a recording medium such as a CD-ROM and provided to a user of an existing computer system for map processing.
It can be used as a tool for connecting contour lines.

【0033】[0033]

【発明の効果】以上説明したように、本発明によれば、
連結経路を操作者が指定することなく、連結したい等高
線を指定するだけの簡単な操作を行なうことにより、分
断されている等高線を合理的に連結させることができ
る。また、連結対象とする等高線の数について理論上の
上限はないため、連結対象の等高線を連結順に全て指定
することが可能である。これにより、1つの図面上に多
数存在する等高線に対する処理にかかる操作者の負担を
大幅に軽減することができる。
As described above, according to the present invention,
It is possible to rationally connect the divided contour lines by performing a simple operation of designating the contour lines to be connected without the operator designating the connection path. Further, since there is no theoretical upper limit on the number of contour lines to be connected, it is possible to specify all the contour lines to be connected in the order of connection. As a result, it is possible to significantly reduce the operator's burden on processing for many contour lines existing on one drawing.

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

【図1】本発明による等高線の連結を行うためのシステ
ムの実施形態を示すブロック図である。
FIG. 1 is a block diagram illustrating an embodiment of a system for performing contour line concatenation according to the present invention.

【図2】2本の等高線を連結する方法の説明図である。FIG. 2 is an explanatory diagram of a method of connecting two contour lines.

【図3】本発明の基本的な処理手順を示すフローチャー
トである。
FIG. 3 is a flowchart showing a basic processing procedure of the present invention.

【図4】3本の等高線を連結する方法の説明図(その
1)である。
FIG. 4 is an explanatory diagram (part 1) of a method of connecting three contour lines.

【図5】3本の等高線を連結する方法の説明図(その
2)である。
FIG. 5 is an explanatory view (No. 2) of the method of connecting three contour lines.

【図6】3本の等高線を連結する方法の説明図(その
3)である。
FIG. 6 is an explanatory view (No. 3) of a method of connecting three contour lines.

【図7】3本の等高線を連結する方法の説明図(その
4)である。
FIG. 7 is an explanatory view (No. 4) of the method of connecting three contour lines.

【図8】本発明の処理手順を示すフローチャートであ
る。
FIG. 8 is a flowchart showing a processing procedure of the present invention.

【図9】4本以上の等高線を連結する方法の説明図であ
る。
FIG. 9 is an explanatory diagram of a method of connecting four or more contour lines.

【図10】分断されている等高線の例を示す図である。FIG. 10 is a diagram showing an example of divided contour lines.

【図11】従来技術の処理例を示した説明図である。FIG. 11 is an explanatory diagram showing a processing example of a conventional technique.

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

110…中央処理装置、120…ファイル装置、130
…表示装置、140…指示装置、150…プログラムメ
モリ、151…座標値獲得部、152…等高線連結処理
部。
110 ... Central processing unit, 120 ... File unit, 130
... display device, 140 ... instruction device, 150 ... program memory, 151 ... coordinate value acquisition unit, 152 ... contour line connection processing unit.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 - 5/50 G06T 9/00 - 9/40 G06T 11/60 - 17/50 ─────────────────────────────────────────────────── ─── Continuation of front page (58) Fields investigated (Int.Cl. 7 , DB name) G06T 1/00-5/50 G06T 9/00-9/40 G06T 11/60-17/50

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】図面ファイルに格納されたベクトル化地図
データを表示装置画面上に表示し、表示装置画面に表示
されている分断された等高線ベクトル図形をコンピュー
タ処理によって連結する方法であって、 表示装置画面上に表示されているベクトル化地図データ
上の分断された等高線ベクトル図形のうち連結対象とな
る複数の等高線ベクトル図形の指示を指示装置から受付
け、指示された複数の等高線ベクトル図形の各端点の座
標を前記図面ファイルから獲得し、各端点同士を連結す
る経路の全てを連結経路の候補として抽出するステップ
と、 抽出した連結経路の候補の中から、既存の等高線ベクト
ル図形と交差せず、かつ経路長が最短のものを連結経路
として決定するステップと、 決定された連結経路上に新たな等高線ベクトル図形を生
成し、分断された等高線ベクトル図形を連結するステッ
プとを備えることを特徴とする等高線連結方法。
1. A method of displaying vectorized map data stored in a drawing file on a display device screen and connecting the divided contour vector graphics displayed on the display device screen by computer processing. Accepts an instruction from a pointing device for a plurality of contour vector graphics to be connected among the divided contour vector graphics on the vectorized map data displayed on the device screen, and each end point of the designated contour vector graphics Acquiring the coordinates of the above from the drawing file and extracting all of the routes connecting the respective end points as the candidate of the connecting route, and from the extracted candidates of the connecting route, without intersecting with the existing contour line vector figure, And the step of determining the path with the shortest path length as a connected path, and a new contour vector figure on the determined connected path. Form, contour connecting method characterized by comprising the step of coupling the shed contour vector graphic.
【請求項2】図面ファイルに格納されたベクトル化地図
データを表示装置画面上に表示し、表示装置画面に表示
されている分断された等高線ベクトル図形をコンピュー
タ処理によって連結する方法であって、 表示装置画面上に表示されているベクトル化地図データ
上の分断された等高線ベクトル図形のうち連結対象とな
る複数の等高線ベクトル図形の指示を指示装置から受付
け、連結対象の等高線ベクトル図形が3つ指示された場
合、指示された等高線ベクトル図形の各端点の座標を前
記図面ファイルから獲得し、各端点同士を連結する経路
の全てを連結経路の候補として抽出する第1のステップ
と、 抽出した連結経路の候補の中から、既存の等高線ベクト
ル図形と交差する候補は除外し、残りの連結経路の候補
から連結経路候補のペアを作成する第2のステップと、 作成された連結経路候補のペアの中で経路長が最短のも
のを連結経路ペアとして決定する第3のステップと、 決定された連結経路ペアの連結経路上に新たな等高線ベ
クトル図形を生成し、 分断された等高線ベクトル図形を連結する第4のステッ
プとを備えることを特徴とする等高線連結方法。
2. A method for displaying vectorized map data stored in a drawing file on a screen of a display device and connecting the divided contour vector graphics displayed on the screen of the display device by computer processing. From the instructing device, an instruction for a plurality of contour vector graphics to be connected among the divided contour vector graphics on the vectorized map data displayed on the device screen is received, and three contour vector graphics to be connected are instructed. In this case, the first step of acquiring the coordinates of each end point of the designated contour vector graphic from the drawing file and extracting all the paths connecting the end points as connection path candidates, and the extracted connection path from among the candidates, the candidate which intersects the existing contour vector graphic is excluded, the pair of the connecting path candidate from the candidate of the remaining connection channel And a third step of determining the shortest path length of the created pair of connecting path candidates as a connecting path pair, and a new step on the connecting path of the determined connecting path pair. And a fourth step of connecting the divided contour vector figures, and connecting the divided contour vector figures.
【請求項3】前記第1のステップにおいて連結対象の等
高線ベクトル図形が4つ以上指示された場合、連結順に
3つの等高線ベクトル図形を選出する第5のステップ
と、 選出した3つの等高線ベクトル図形について前記第1〜
第4のステップによって連結した後、連結された等高線
ベクトル図形と未連結の等高線ベクトル図形とを連結順
に選んで新たな3つの組を作り、前記第1〜第4のステ
ップによって連結する処理を繰り返し、4つ以上の分断
された等高線ベクトル図形を連結する第6のステップと
を備えることを特徴とする請求項2に記載の等高線連結
方法。
3. When, in the first step, four or more contour vector figures to be connected are designated, a fifth step of selecting three contour vector figures in the order of connection, and three selected contour vector figures The first to
After the connection in the fourth step, the connected contour vector figure and the unconnected contour vector figure are selected in the order of connection to make three new sets, and the steps of connecting in the first to fourth steps are repeated. 6. The contour connecting method according to claim 2, further comprising a sixth step of connecting four or more divided contour vector figures.
【請求項4】図面ファイルに格納されたベクトル化地図
データを表示装置画面上に表示し、表示装置画面に表示
されている分断された等高線ベクトル図形をコンピュー
タ処理によって連結するプログラムを記録した媒体であ
って、 表示装置画面上に表示されているベクトル化地図データ
上の分断された等高線ベクトル図形のうち連結対象とな
る複数の等高線ベクトル図形の指示を指示装置から受付
け、指示された複数の等高線ベクトル図形の各端点の座
標を前記図面ファイルから獲得し、各端点同士を連結す
る経路の全てを連結経路の候補として抽出する処理と、 抽出した連結経路の候補の中から、既存の等高線ベクト
ル図形と交差せず、かつ経路長が最短のものを連結経路
として決定する処理と、 決定された連結経路上に新たな等高線ベクトル図形を生
成し、分断された等高線ベクトル図形を連結する処理と
をコンピュータに実行させるためのプログラムが記録さ
れていることを特徴とするコンピュータが読取り可能な
記録媒体。
4. A medium in which a program for displaying vectorized map data stored in a drawing file on a display screen and connecting the divided contour vector graphics displayed on the display screen by computer processing is recorded. The display device screen accepts instructions from the pointing device for a plurality of contour vector graphics to be connected among the divided contour vector graphics on the vectorized map data displayed on the display screen, and the designated contour vectors The process of acquiring the coordinates of each end point of the figure from the drawing file and extracting all the routes that connect each end point as candidates for the connection route, and the existing contour vector graphics from the extracted candidates for the connection route. The process of determining a route that does not intersect and has the shortest route length as a connecting route, and a new contour line map on the determined connecting route. It generates a torque figure, shed computer readable recording medium characterized in that a program for executing a process of connecting the contour vector graphic in a computer is recorded.
【請求項5】図面ファイルに格納されたベクトル化地図
データを表示装置画面上に表示し、表示装置画面に表示
されている分断された等高線ベクトル図形をコンピュー
タ処理によって連結するプログラムを記録した媒体であ
って、 表示装置画面上に表示されているベクトル化地図データ
上の分断された等高線ベクトル図形のうち連結対象とな
る複数の等高線ベクトル図形の指示を指示装置から受付
け、連結対象の等高線ベクトル図形が3つ指示された場
合、指示された等高線ベクトル図形の各端点同士を連結
する経路の全てを連結経路の候補として抽出する第1の
処理と、 抽出した連結経路の候補の中から、既存の等高線ベクト
ル図形と交差する候補は除外し、残りの連結経路の候補
から連結経路候補のペアを作成する第2の処理と、 作成された連結経路候補のペアの中で経路長が最短のも
のを連結経路ペアとして決定する第3の処理と、 決定された連結経路ペアの連結経路上に新たな等高線ベ
クトル図形を生成し、分断された等高線ベクトル図形を
連結する第4の処理とをコンピュータに実行させるため
のプログラムが記録されていることを特徴とするコンピ
ュータが読取り可能な記録媒体。
5. A medium in which a program for displaying vectorized map data stored in a drawing file on a display device screen and connecting the divided contour line vector graphics displayed on the display device screen by computer processing is recorded. Therefore, from the indicating device, an instruction for a plurality of contour vector graphics to be connected among the divided contour vector graphics on the vectorized map data displayed on the display device screen is received, and the contour vector graphics to be connected are When three instructions are given, the first process of extracting all the routes connecting the endpoints of the designated contour vector graphics as the candidate of the coupling route, and the existing contour lines from the extracted candidates of the coupling route. candidate intersecting the vector graphic is excluded, a second processing for creating a pair of connecting path candidate from the candidate of the rest of the connecting path, creating The third process of determining the shortest path length among the selected pair of connected path candidates as a connected path pair, and generating a new contour vector graphic on the connected path of the determined connected path pair, and dividing it. A computer-readable recording medium having recorded thereon a program for causing a computer to execute a fourth process for connecting the formed contour vector graphics.
【請求項6】前記第1の処理において連結対象の等高線
ベクトル図形が4つ以上指示された場合、連結順に3つ
の等高線ベクトル図形を選出する第5の処理と、 選出した3つの等高線ベクトル図形について前記第1〜
第4の処理によって連結した後、連結された等高線ベク
トル図形と未連結の等高線ベクトル図形とを連結順に選
んで新たな3つの組を作り、前記第1〜第4の処理によ
って連結する処理を繰り返し、4つ以上の分断された等
高線ベクトル図形を連結する第6の処理とをコンピュー
タに実行させるためのプログラムが記録されていること
を特徴とする請求項5に記載のコンピュータが読取り可
能な記録媒体。
6. A fifth process of selecting three contour vector graphics in the order of connection when four or more contour vector graphics to be connected are designated in the first processing, and three selected contour vector graphics The first to
After connecting by the fourth process, the connected contour vector figure and the unconnected contour vector figure are selected in the order of connection to create three new sets, and the steps of connecting by the first to fourth steps are repeated. 6. The computer-readable recording medium according to claim 5, wherein a program for causing a computer to execute a sixth process for connecting four or more divided contour vector graphics is recorded. .
JP35675597A 1997-12-25 1997-12-25 Contour line connection method and recording medium Expired - Fee Related JP3373145B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35675597A JP3373145B2 (en) 1997-12-25 1997-12-25 Contour line connection method and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35675597A JP3373145B2 (en) 1997-12-25 1997-12-25 Contour line connection method and recording medium

Publications (2)

Publication Number Publication Date
JPH11185010A JPH11185010A (en) 1999-07-09
JP3373145B2 true JP3373145B2 (en) 2003-02-04

Family

ID=18450614

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35675597A Expired - Fee Related JP3373145B2 (en) 1997-12-25 1997-12-25 Contour line connection method and recording medium

Country Status (1)

Country Link
JP (1) JP3373145B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050006173A (en) * 2002-04-22 2005-01-15 가부시키가이샤 디지에스 컴퓨터 Digital altimetric map drawing method and device
JP5658963B2 (en) * 2010-09-29 2015-01-28 オリンパス株式会社 Image processing apparatus, image processing method, and image processing program

Also Published As

Publication number Publication date
JPH11185010A (en) 1999-07-09

Similar Documents

Publication Publication Date Title
US10139236B2 (en) Route generation program, route generation method and route generation apparatus
US6744431B2 (en) Storage medium for use with a three-dimensional map display device
US20040145594A1 (en) Information presentation apparatus and information processing method thereof
JP4825836B2 (en) Road map data creation system
JPH01304588A (en) Clipping processing system
JP3373145B2 (en) Contour line connection method and recording medium
CN110389992B (en) Visualization method, device and equipment of navigation vector data and storage medium
JP2000331156A (en) Method for automatically deciding tracker set along outline and storage medium storing program for execution of the method
JPH04220781A (en) Apparatus for decomposing small polygon into trapezoid in accelerating mode
JP4771807B2 (en) Computer-aided design apparatus, program and method thereof
JP4850161B2 (en) Road map data creation device
JPH1049688A (en) Method for partial erasing method and partial detection method for picture data
JP2729699B2 (en) Tracking start point input method and device
JPH0668270A (en) Picture processing method and picture processor
JP3353212B2 (en) Leader automatic creation method and leader automatic creation system
JPS61194571A (en) Graphic recognition mode
JPH02245886A (en) Pattern plotting method, pattern processor and pattern processing system using the same processor
JP2695657B2 (en) Pipe dimension diagram creation device
JP3286366B2 (en) Inspection apparatus for contour data and automatic drawing input system including the same
JP2637923B2 (en) Method for correcting stripe pattern direction data and information processing apparatus for executing the same, and method for correcting stripe pattern pitch data and information processing apparatus for executing the same
JP3597583B2 (en) Animation path creation device
JPH09269948A (en) Map management system
JPS63116279A (en) Method for extracting building graphic from drawing reader
JPH09185700A (en) Method and device for automatically preparing polygon around reference line
JPH05324793A (en) Cursor display system for graphic processing system

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081122

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111122

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141122

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees