JPH0342776A - Graphic data processing device - Google Patents

Graphic data processing device

Info

Publication number
JPH0342776A
JPH0342776A JP1178823A JP17882389A JPH0342776A JP H0342776 A JPH0342776 A JP H0342776A JP 1178823 A JP1178823 A JP 1178823A JP 17882389 A JP17882389 A JP 17882389A JP H0342776 A JPH0342776 A JP H0342776A
Authority
JP
Japan
Prior art keywords
value
segment data
count value
line segment
coordinate values
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.)
Pending
Application number
JP1178823A
Other languages
Japanese (ja)
Inventor
Tetsuo Fujita
哲生 藤田
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP1178823A priority Critical patent/JPH0342776A/en
Publication of JPH0342776A publication Critical patent/JPH0342776A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To eliminate dependence upon the subjectivity of an operator by calculating the X, Y-coordinate values of each segment of line, and giving a count value '1' to segment data whose Y-coordinate values of a beginning point and an end point are the same value and the Y-maximum value or the Y-minimum value and the segment data whose X-coordinate values of the beginning point and the end point are the same value and the X-maximum value or the X-numimum value. CONSTITUTION:A processing device 1 is provided with a first circuit 11, a second circuit 12 and a third circuit 13 in addition to an attribute processing circuit 14, and in the circuit 11, the segment is generated in a form including the X-coordinate and the Y-coordinate to be the maximum value and the minimum value in the upward and downward direction and the right and left direction of graphic data, and in the circuit 12, a curve is turned into a polygonal line, and all lines are divided at intersection points or contact points, and in the circuit 13, the above segment data group is turned into a polygon. Then, the X,Y-coordinate values of each segment are calculated, and the count value '1' is given to the segment data whose Y(X)-coordinate values of the beginning point and the end point are the same value and in addition, the maximum value or the minimum value of the Y(X)-coordinate value, and the count value '2' is given to the segment data other than the above segment data.

Description

【発明の詳細な説明】 A 産業上の利用分ツT 本発明は、図形データ処理方式に関し、特に、市9区、
町、村、小字街区等の各境界を示す図形のポリゴン化(
多角形化)処理方式に関する。
[Detailed Description of the Invention] A. Industrial Applications T The present invention relates to a graphic data processing method, and in particular, to the 9th ward of the city,
Polygonization of shapes that indicate the boundaries of towns, villages, small blocks, etc.
Polygonization) processing method.

B 発明の概要 本発明は、市9区、町、村、小字街区等の境界図形をポ
リゴン化する際の図形データ処理方式において、 各線分のX−Y座標値を演算し、始点及び終点のY座標
値が同一でY最大値又はY最小値である線分データと始
点及び終点のX座標値が同一でX最大値又はX最小値で
ある線分データにカウント値1を付与し、それ以外の線
分データにカウント値2を付与することにより、 ベクトル図形に対するカウント値の付+5方法を明確化
する技術を提供するものである。
B. Summary of the Invention The present invention is a graphic data processing method for polygonizing boundary figures of nine wards of a city, a town, a village, a small block, etc., by calculating the X-Y coordinate values of each line segment, and calculating the A count value of 1 is given to line segment data whose Y coordinate value is the same and the Y maximum value or Y minimum value, and line segment data whose starting point and end point are the same and whose X coordinate value is the same and the X maximum value or X minimum value, and By assigning a count value of 2 to line segment data other than the following, a technique is provided that clarifies the method of assigning a count value of +5 to a vector figure.

C5従来の技術 市1区、町、村、小字街区等の各境界を閉図形化するポ
リゴン化処理に際し、従来の図形データ処理方式では、
各ベクトル図形への属性として、閉図形の周辺部にはカ
ウント値“1”を付与し、中央部に(まカウント値°“
2“を(−1与して、任意のベクトルを基準に接続対象
のベクトルを検索し、接続が確認されたものは前記カウ
ント値を減じてゆき、すべてのカウント値が0”となっ
たとき処理を終了するものとしていた。
C5 Conventional technology When polygonizing the boundaries of each city, town, village, small block, etc. into closed shapes, in the conventional graphic data processing method,
As an attribute for each vector figure, a count value of "1" is assigned to the periphery of a closed figure, and a count value of "1" is assigned to the central part (or a count value °"
2" by (-1), search for a vector to be connected based on an arbitrary vector, and if the connection is confirmed, the count value is decreased, and when all the count values become 0" The process was supposed to end.

即ち、例えば第3図に示す図形では、すべての境界図形
を閉図形とし、その交点、接点における分割処理を行っ
たのち、それらのベクトル線分に対し、属性として周辺
部(a −> b −> (+ −) d −) c→
f −+−g →g−+h−> a)にはカウント値1
を、内部(1→b、i−+h、i→j、j−d、j→f
)には2を付与する。次に、任意のべりトル(例えばa
 −= b )を選択し、そのベクトルを基準にして、
接続すべきベクトルを予め設定された方向に検索する。
That is, for example, in the figure shown in FIG. 3, all boundary figures are closed figures, and after division processing is performed at their intersections and contact points, the peripheral part (a -> b - > (+ −) d −) c→
f -+-g →g-+h-> a) has a count value of 1
inside (1→b, i-+h, i→j, j-d, j→f
) is given 2. Next, select an arbitrary berittle (e.g. a
−= b ) and based on that vector,
Search for vectors to be connected in a preset direction.

接続するベクトルが複数存在する場合には接続する角度
により選択を行い、ポリゴン同志が重ならないようにす
る。検索を繰り返し、基準ベクトルに戻ったならば、検
出したベクトルの図形データをポリゴンとして記憶する
。処理を行ったときはカウント値を1減じる。Oであっ
た場合は処理対象としない。この処理をすべてのベクト
ルのカウント値がOとなるまで繰り返すことにより図示
の如くポリゴン化は完成される。
If there are multiple vectors to connect, selection is made based on the angle of connection to prevent polygons from overlapping. When the search is repeated and the reference vector is returned, the graphic data of the detected vector is stored as a polygon. When processing is completed, the count value is decremented by 1. If it is O, it is not processed. By repeating this process until the count values of all vectors reach O, polygonization is completed as shown.

D 発明が解決しようとする課題 しかし、上記の方式で、従来は、カウント値を最初に付
与する凰準が曖昧て、オペレータの任意の判断と手入力
に依存していた。そのため、判断が間追った場合や入力
ミスの場合、例えば“l”とすべき図形データのカウン
ト値を“2”とすると、処理し終わった筈の線分のカウ
ント値が“0”にならず、もう−度検索したり更には線
分の接続が非現実的になったりする課題を生じていた。
D. Problems to be Solved by the Invention However, in the above-mentioned method, the rules for initially assigning count values were unclear and relied on the operator's arbitrary judgment and manual input. Therefore, if you make a premature decision or make an input error, for example, if the count value of figure data that should be "l" is set to "2", the count value of the line segment that should have been processed becomes "0". In addition, problems such as repeated searches and unrealistic connection of line segments have arisen.

本発明は、このような課題に鑑みて創案されたもので、
ベクトル図形に対するカウント値の付与方法を明確化し
、オペレータの主観に依存しなくて済む図形データ処理
方式を提供することを目的としている。
The present invention was created in view of these problems, and
The purpose of this invention is to clarify the method of assigning count values to vector figures and to provide a figure data processing method that does not depend on the operator's subjectivity.

E5課題を解決するための手段 本発明における上記課題を解決するための手段は、周辺
線分を含む閉図形を所要数作成し、それら閉図形を形成
するすべての線分のうち周辺線分のデータにカウント値
lを付与し、それ以外の線分データにカウント値2を付
すし、各線分データを多角形処理する都度そのカウント
値を1ずつ減算し、カウント値が0になった線分データ
の処理を終了する図形データ処理方式において、各線分
のX−Y座標値を演算し、始点及び終点のY座標値が同
一でY最大値又はY最小値である線分データと始点及び
終点のX座標値が同一てX最大値又はX最小値である線
分データにカウント値lをイ」与し、それ以外の線分デ
ータにカウント値2を付ちする図形データ処理方式によ
るものとする。
E5 Means for Solving the Problem The means for solving the above problem in the present invention is to create a required number of closed figures including peripheral line segments, and to select the peripheral line segments among all the line segments forming the closed figure. A count value l is assigned to the data, a count value 2 is assigned to other line segment data, and the count value is subtracted by 1 each time each line segment data is processed into a polygon, and the line segment whose count value becomes 0 In a graphic data processing method that finishes data processing, the X-Y coordinate values of each line segment are calculated, and the starting point and ending point are line segment data whose starting point and ending point have the same Y coordinate value and the maximum Y value or the minimum Y value. It is based on a graphic data processing method that assigns a count value l to line segment data whose X coordinate value is the same maximum X value or minimum X value, and assigns a count value 2 to other line segment data. do.

10作用 本発明は、線分ベクトルの始点と終点の座標値に着目し
、カウント値を付与する基準を確立するものである。
10 Effects The present invention focuses on the coordinate values of the starting point and ending point of a line segment vector, and establishes a standard for assigning count values.

即ち、第1図に実施例を兼ねて本発明の原理を示す如く
、各線分にX−Y座標を設定し、始点と終点のY座標値
が同一でかつその値が全Y座標値の最大値又は最小値で
あるような線分データにはカウント値1を付与する。ま
た、始点と終点のX座標値が同一でかつその値が全Y座
標値の最大値又は最小値であるような線分データにもカ
ウント値Iを付与する。それ以外の線分データにはカウ
ント値2をイ」与する。
That is, as shown in FIG. 1, which also serves as an example and illustrates the principle of the present invention, X-Y coordinates are set for each line segment, and the Y-coordinate values of the starting point and the ending point are the same and the value is the maximum of all Y-coordinate values. A count value of 1 is assigned to line segment data that is a value or a minimum value. Further, a count value I is also given to line segment data in which the X coordinate values of the starting point and the ending point are the same and that value is the maximum value or minimum value of all Y coordinate values. A count value of 2 is given to other line segment data.

このように、カウント値を付与する基準を確立すれば、
オペレータの主観に依存する必要はなくなり、自動的な
処理の可能性も開拓される。
In this way, if you establish the criteria for assigning count values,
There is no need to rely on the operator's subjectivity, and the possibility of automatic processing is also opened up.

G 実施例 以下、図面を参照して、本発明の実施例を詳細に説明す
る。
G. Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は、本発明の一実施例の構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.

同図において、Iは周辺図形の線分を含む閉図形を所要
数作成し、それらの閉図形を形成する全ての線分を分割
して多角形処理する処理装置、2は処理の都度各線分デ
ータを格納する記憶装置としてのディスクユニット、3
はシステムのメモリ、4は各部で多角形化された区画と
未処理の区画とを識別するモニタ部、5はモニタ部4に
表示された図形を訂正するため情報を入力する操作入力
部である。
In the figure, I is a processing device that creates a required number of closed figures including line segments of peripheral figures, divides all the line segments forming these closed figures, and processes them into polygons, and 2 is a processing device that processes each line segment each time it is processed. Disk unit as a storage device for storing data, 3
4 is a system memory, 4 is a monitor section that identifies polygonized sections and unprocessed sections, and 5 is an operation input section for inputting information to correct the figure displayed on the monitor section 4. .

処理装置1は、図形データの上下方向及び左右方向に最
大値又は最小値となるX座標とY座標を含む形で線分を
発生させろ第1の回路部IIと、曲線を折れ線化し、発
生した全ての線を交点又は接点で分割する第2の回路部
12と、分割された線分データ群をポリコン化する第3
の回路部13とを備え、各線分データにカウント値を付
与し、それらのカウント値を属性処理する。
The processing device 1 generates line segments in a form that includes the X and Y coordinates that are the maximum or minimum values in the vertical and horizontal directions of the graphic data, converts the curve into a polygonal line, and converts the generated line segment into a polygonal line. A second circuit section 12 that divides all lines at intersections or contact points, and a third circuit section that converts the divided line segment data group into polyconverters.
A circuit unit 13 is provided, which assigns a count value to each line segment data and performs attribute processing on the count values.

またディスク2は、境界図形データを格納する第1の記
憶部2Iと、分割された線分データ群を格納する第2の
記憶部22と、ポリコン化された図形データを格納する
第3の記憶部23とで構成されている。
The disk 2 also includes a first storage section 2I that stores boundary graphic data, a second storage section 22 that stores divided line segment data groups, and a third storage section that stores polygonized graphic data. 23.

」二記の装置で、まず第1の回路部11で全ての境界図
形を閉図形とし、第2の回路部12で111」線を折れ
線化し、発生した全ての線を交点又は接点で分割する。
In the device described in ``2'', first, the first circuit section 11 converts all boundary figures into closed figures, and the second circuit section 12 converts the 111'' lines into polygonal lines, and divides all the generated lines at intersections or contact points. .

ポリコン化された各線分データは、第1図で既に説明し
たように、X−Y座標を設定され、始点及び終点の座標
値を演算される。
As already explained with reference to FIG. 1, each polygonized line segment data has its X-Y coordinates set, and the coordinate values of its starting point and ending point are calculated.

第1図において、例えば、yl=y2=y3でかつ線分
データのY座標中最大値なので、線分A及びBにカウン
ト値1を付与する。y5=y6y7でかつ線分データの
Y座標中最小値なので、線分E及びFにカウント値1を
付Ljする。また、x3=x4=x5でかつ線分データ
のX座標中最大値なので、線分C及びDにカウント値I
をf」与する。x7=x8=x+でかつ線分データのX
座標中最小値なので、線分G及びI]にカウント値】を
付与する。それ以外の線分データT、J、KL、Mには
カウント値2を(=J与する。線分データMの始点及び
終点のX座標値はx6=x9であるが、その値はx7<
x6=x9<x5で、最大値でも最小値でもないので、
カウント値は“2”を付与される。
In FIG. 1, for example, since yl=y2=y3 and this is the maximum value among the Y coordinates of line segment data, a count value of 1 is given to line segments A and B. Since y5=y6y7 and this is the minimum value among the Y coordinates of the line segment data, a count value of 1 is assigned to the line segments E and F, Lj. Also, since x3=x4=x5 and is the maximum value among the X coordinates of the line segment data, the count value I for line segments C and D
give f'. x7=x8=x+ and line segment data
Since this is the minimum value among the coordinates, a count value] is given to the line segments G and I]. A count value of 2 (=J is given to other line segment data T, J, KL, and M.The X coordinate values of the starting point and ending point of line segment data M are x6=x9, but the value
Since x6=x9<x5, neither the maximum value nor the minimum value,
A count value of "2" is assigned.

続く各工程は従来例と同様で、所望のベクトル例えばA
を基準にして、接続するベクトルを検索する。検索を繰
り返し、基準ベクトルに戻ったならば、検出したベクト
ルの図形データをポリゴンとして第3の記憶部23に記
憶する。処理を行ったときはカウント値を1減じる。0
であった場合は処理対象としない。この処理をすべての
ベクトルのカウント値がOとなるまで繰り返す。ポリゴ
ン化はカウント値により処理の終了が判断されるので、
同一部分を2回処理したり、未処理の区画を残したりす
ることがなく、過不足ないポリゴン化か行われる。
Each subsequent step is similar to the conventional example, and the desired vector, for example, A
Search for connecting vectors based on . When the search is repeated and the reference vector is returned, the graphic data of the detected vector is stored in the third storage unit 23 as a polygon. When processing is completed, the count value is decremented by 1. 0
If so, it will not be processed. This process is repeated until the count values of all vectors reach O. The end of polygonization is determined by the count value, so
There is no need to process the same part twice or leave unprocessed sections, and just the right amount of polygonization is performed.

本発明では、カウント値を(;I’ ”jする基準を確
立するので、オペレータの主観に左右されることかなく
、自動的な処理の可能性も開拓される。
In the present invention, since a criterion for determining the count value (;I'''j) is established, the possibility of automatic processing is developed without being influenced by the operator's subjectivity.

■] 発明の効果 以上述べたとおり、本発明によれは、ヘクトル図形に対
するカウント値の付与方法を明確化し、オペレータの主
観に左右されない図形データ処理方式を提供することが
できる。
[1] Effects of the Invention As described above, according to the present invention, it is possible to clarify the method of assigning count values to a hector figure, and to provide a figure data processing method that is not influenced by the operator's subjectivity.

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

第1図は本発明原理の説明図、第2図は本発明の一実施
例の構成図、第3図は従来例の説明図である。 ■ 処理装置、2 ・ディスク、3 システムメモリ、
4・モニタ部、5 ・操作人力部。
FIG. 1 is an explanatory diagram of the principle of the present invention, FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIG. 3 is an explanatory diagram of a conventional example. ■ Processing unit, 2 ・Disk, 3 System memory,
4.Monitor section, 5.Manual operation section.

Claims (1)

【特許請求の範囲】[Claims] (1)周辺線分を含む閉図形を所要数作成し、それら閉
図形を形成するすべての線分のうち周辺線分のデータに
カウント値1を付与し、それ以外の線分データにカウン
ト値2を付与し、各線分データを多角形処理する都度そ
のカウント値を1ずつ減算し、カウント値が0になった
線分データの処理を終了する図形データ処理方式におい
て、各線分のX−Y座標値を演算し、始点及び終点のY
座標値が同一でY最大値又はY最小値である線分データ
と始点及び終点のX座標値が同一でX最大値又はX最小
値である線分データにカウント値1を付与し、それ以外
の線分データにカウント値2を付与することを特徴とす
る図形データ処理方式。
(1) Create the required number of closed figures that include peripheral line segments, give a count value of 1 to the data of the peripheral line segments among all the line segments that form these closed figures, and give count values to the data of other line segments. 2, subtracts the count value by 1 each time polygon processing is performed on each line segment data, and terminates the processing of line segment data whose count value becomes 0. Calculate the coordinate values and calculate the Y of the starting point and ending point.
A count value of 1 is given to line segment data whose coordinate values are the same and the Y maximum value or Y minimum value, and line segment data where the X coordinate values of the start point and end point are the same and the X maximum value or the X minimum value, and other than that. A graphic data processing method characterized by assigning a count value of 2 to line segment data.
JP1178823A 1989-07-11 1989-07-11 Graphic data processing device Pending JPH0342776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1178823A JPH0342776A (en) 1989-07-11 1989-07-11 Graphic data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1178823A JPH0342776A (en) 1989-07-11 1989-07-11 Graphic data processing device

Publications (1)

Publication Number Publication Date
JPH0342776A true JPH0342776A (en) 1991-02-22

Family

ID=16055288

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1178823A Pending JPH0342776A (en) 1989-07-11 1989-07-11 Graphic data processing device

Country Status (1)

Country Link
JP (1) JPH0342776A (en)

Similar Documents

Publication Publication Date Title
WO2019167650A1 (en) Method and device for generating tool paths
WO2018062465A1 (en) Program development assistance device, program development assistance method, and program development assistance program
JPH0342776A (en) Graphic data processing device
JPS63245576A (en) Plane graphic clipping circuit
JPH04199368A (en) Count value generating system in pattern data processing
JPH0769966B2 (en) Image processing method
JPH01274285A (en) Graphic data processing system
JP2914025B2 (en) LSI automatic placement and routing processing method
JPH03278274A (en) Method for determining wiring order or wiring board and wiring method
JPH0896001A (en) Flowchart editing device
JPH04299464A (en) Wiring state identifying method
JP3175686B2 (en) Process flow check system and process flow check method
JPH02146681A (en) Contour line extracting system
JP3681240B2 (en) Three-dimensional shape display method and three-dimensional CAD system using the method
JP2932844B2 (en) Multi-branch shape figure display method
JPS59142664A (en) Corner position detector
JP2789604B2 (en) Multi-area input device
JPH0732243A (en) Recognition of unchipped remaining range
JPH1021330A (en) Document picture processing system
JPH0652262A (en) Apparel cad device
JPH0394378A (en) Method and system for automatically forming net diagram
JPH03230274A (en) Graphic data processing system
JPH09160626A (en) Nc data generation system
JPH0687252B2 (en) Three-dimensional figure data calculation method
JPH01223571A (en) Circuit diagram wiring system