JP3703257B2 - Closed area data management method, closed area recognition method, and computer readable recording medium recording closed area recognition program - Google Patents

Closed area data management method, closed area recognition method, and computer readable recording medium recording closed area recognition program Download PDF

Info

Publication number
JP3703257B2
JP3703257B2 JP18170697A JP18170697A JP3703257B2 JP 3703257 B2 JP3703257 B2 JP 3703257B2 JP 18170697 A JP18170697 A JP 18170697A JP 18170697 A JP18170697 A JP 18170697A JP 3703257 B2 JP3703257 B2 JP 3703257B2
Authority
JP
Japan
Prior art keywords
line
data
closed region
point
closed
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 - Lifetime
Application number
JP18170697A
Other languages
Japanese (ja)
Other versions
JPH1115959A (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 Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP18170697A priority Critical patent/JP3703257B2/en
Publication of JPH1115959A publication Critical patent/JPH1115959A/en
Application granted granted Critical
Publication of JP3703257B2 publication Critical patent/JP3703257B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

【0001】
【産業上の利用分野】
本発明は地理情報処理システムにおいて、座標列によって表わされる線図形データによって囲まれる閉領域を管理する方法及び閉領域の認識方法及び閉領域認識プログラムを記録したコンピュータ読み取り可能な記録媒体に関する。
【0002】
【従来の技術】
座標列により表わされた線図形データを境界線として囲まれた閉領域の例(閉領域S)を図1に示す。このとき境界線は一個の閉曲線、または複数の折れ線の組み合わせによって表わされる。
このような閉領域を管理するために、
(1)閉領域ごとに境界線の座標データを線図形データとは別に閉領域データとしてすべてテーブルに管理する方法、
(2)線図形データを線図形どうしが交差する点の間で分割して線図形データを再構成し、得られる複数の境界線に番号のラベルを付加しリスト管理する方法、が既に提案されている。
【0003】
【発明が解決しようとする課題】
しかし、(1)の方法では、閉領域が隣接して境界線を共有する場合には、閉領域ごとに境界線の座標を管理しなければならないため共有境界線のデータが重複しデータ量が大きくなる。
さらに閉領域の形状が変化した場合には、その閉領域の座標データを変更するだけでは不十分であり、境界線を共有していた閉領域の座標データも変更していく必要がある。
さらに、線図形データと閉領域データを別々に管理する場合には、変更した図形データと閉領域データにおける座標の一致を常に補償する必要がある。
このようにデータ量の増加、整合性管理の処理量増加に問題点が発生する。
【0004】
また、(2)の方法では、新たに閉領域の中を通過する図形が追加された場合に、境界線データの再分割とそれにともなうラベルの再交付が必要になる。
この場合、閉領域の数が多い場合には、再分割、ラベル再交付に要する処理量は大きくなる問題点が発生する。
【0005】
本発明の目的は、データの重複なしに且つ少ないデータ量で閉領域情報を管理することにある。
本発明の他の目的は、上記のように管理された閉領域情報を用いて閉領域の認識をすることにある。
本発明のさらに他の目的は、閉領域の形状が変化しても、閉領域情報の維持管理を容易にすることにある。
【0006】
【課題を解決するための手段】
上記の問題点を解決するため、本発明は、
処理装置と記憶装置と入力装置と出力装置を備える計算機システムにおける座標データ列によって構成される線図形データを境界線とする閉領域のデータを管理する閉領域データ管理方法であり、
前記座標データ列によって構成される線図形データを前記記憶装置に保持し、
前記閉領域に包含される点(代表点)の座標と、該閉領域の境界線の属性とを組み合わせて閉領域データを構成し、該構成された閉領域データを前記記憶装置に保持することにより閉領域データを管理するようにしている。
さらに、前記境界線が互いに交差する場合には、交差点の座標点を仮想点座標データとし、交差する各境界線の線図形データに該仮想点座標データを挿入し、該仮想点座標データを挿入した線図形データを前記記憶装置に保持するようにしている。
【0007】
また、処理装置と記憶装置と入力装置と出力装置を備える計算機システムにおける座標データ列によって構成される線図形データを境界線とする閉領域のデータに基づき閉領域を認識する閉領域認識方法であり、
前記座標データ列によって構成される線図形データを前記記憶装置に保持しておき、
前記閉領域に包含される点(代表点)の座標と、該閉領域の境界線の属性とを組み合わせて構成された閉領域データを前記記憶装置に保持しておき、
前記記憶装置に保持した線図形データに対して、境界線を構成する線図形と他の境界線を構成する線図形との交差を検出し、交差点を仮想点として各線図形データに挿入するステップと、前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の線上の点を追跡開始点とするステップと、該追跡開始線図形データで表される境界線を追跡するステップと、該追跡開始線図形データにおける仮想点または図形特徴点の交点と重なる他の境界線の線図形データを検索し、該線図形データを新たに追跡する境界線の線図形データとして選択するステップと、
該新たに追跡する境界線の線図形データとして前記追跡開始線図形データが選択され、追跡の結果、前記第2代表点に達したとき、閉領域が認識されたと判定するステップと、からなるようにしている。
【0008】
また、処理装置と記憶装置と入力装置と出力装置を備える計算機システムにおける座標データ列によって構成される線図形データを境界線とする閉領域のデータに基づき閉領域を認識する閉領域認識方法であり、
前記座標データ列によって構成される線図形データを前記記憶装置に保持しておき、
前記閉領域に包含される点(代表点)の座標と、該閉領域の境界線の属性とを組み合わせて構成された閉領域データを前記記憶装置に保持しておき、
前記境界線が互いに交差する場合の交差点の座標点を仮想点座標データとして交差する各境界線の線図形データに該仮想点座標データを挿入して該仮想点座標データを挿入した線図形データを前記記憶装置に保持しておき、
前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の線上の点を追跡開始点とするステップと、該追跡開始線図形データで表される境界線を追跡するステップと、該追跡開始線図形データにおける仮想点または図形特徴点の交点と重なる他の境界線の線図形データを検索し、該線図形データを新たに追跡する境界線の線図形データとして選択するステップと、該新たに追跡する境界線の線図形データとして前記追跡開始線図形データが選択され、追跡の結果、前記第2代表点に達したとき、閉領域が認識されたと判定するステップと、からなるようにしている。
【0009】
さらに、前記した、前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の線上の点を追跡開始点とするステップを、
前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の特徴点または線上の点を追跡開始点とし、該追跡開始点を前記閉領域データの第2代表点として該閉領域データに登録するステップに代え、2回目以降の閉領域認識は第2代表点から開始できるようにし、第2代表点を登録した後は追跡開始線図形データを選択する処理をしなくてもよいようにしている。
【0010】
さらに、前記境界線の追跡において通過した特徴点および仮想点の座標を表示/利用データとして前記記憶装置に一時保存するステップを設け、閉領域の表示を繰り返し行わなければならない場合に閉領域表示を高速に行えるようにしている。
また、閉領域の形状が変化し閉領域内部に代表点が含まれなくなった場合には、閉領域内部に代表点が含まれるように代表点の座標を変更するようにしている。
また、閉領域が1つの領域の中に留まることなく複数の領域にわたって存在する場合には、該複数の各領域に代表点を付加することにより閉領域データを管理するようにしている。
また、複数の閉領域の各代表点を代表点群としてグループ化することにより閉領域データを管理することにより閉領域の組み合わせを管理するようにしている。
【0011】
【発明の実施の形態】
本発明において扱う線図形データは、2次元座標データ列によって構成されるベクトルデータである。
従って、以下の記述において線図形データや境界線データはベクトルデータを意味する。
また閉領域とはこのような線図形データによって囲まれる領域を示す。
【0012】
閉領域データの管理方法と閉領域の認識方法について説明する。
図1に閉領域データの管理および閉領域の認識の概要を示す。
閉領域は複数の境界線によって囲まれる。
図1の例では、閉領域S106は、境界線の線図形データF1 101、線図形データF2 102、線図形データF3 103、線図形データF4 104によって囲まれる。
閉領域データを一意的に管理するために代表点P105と境界線の属性(境界線属性)を用いる。
代表点はあらかじめ指定される閉領域内部の点である。これより閉領域は代表点を包含し、指定の属性を持つ境界線で囲まれる領域を意味する。
境界線属性は図形線分の表示属性(線色、線種(実線、点線等))や主題を表わす番号によって表される。
閉領域認識とは代表点と境界線の属性が指定された後、境界線を追跡し閉領域を検出することを意味する。
【0013】
代表点と境界線属性を管理するために閉領域定義テーブル(RDT:Region Definition Table)を用いる。
RDT108は、代表点P105の座標と第2代表点P2 107の座標、境界線属性111によって構成される。
第2代表点107は境界線上の点であり、最初から指定されるのではなく代表点と境界線属性が指定され最初の(1回目の)閉領域認識を行うときに取得する。そして閉領域を再認識する場合に境界線の追跡の始点および終点として利用する。第2代表点は境界線の特徴点(屈曲点、端点)が主に選択される。
境界線属性は境界線の全てについて指定される。
図1における線図形データF1 101、F2 102、F3 103、F4 104はそれぞれ属性C、C、B、Aを持つ。そのためRDT108には境界線属性A、B、Cが格納される。
指定された属性を持っていない線図形データが閉領域と交差していてもRDTに格納された境界線属性と一致しないため無視される。
RDTには第2代表点以外、境界線の座標情報は格納されない。
例えば図1に示す座標(X2,Y2)〜(X6,Y6)は、RDTの中に登録されていない。
従って閉領域の大きさや範囲を求めるときには境界線を追跡して閉領域を認識する必要がある。
【0014】
一時保存閉領域定義テーブル(TRT:Temporally Saved Region Definition
Table)は境界線データの座標を管理する。
TRT109に格納された座標は線図形データの座標と一致し、重複して格納されるが、TRTは表示/検索に利用され更新の対象としない。
従って閉領域の形状が変化した場合には廃棄し、閉領域形状が確定した場合に閉領域認識によって作成し直す。
【0015】
閉領域認識を実施するための機能構成を図2に示す。
テータ記憶部201はデータテーブルを格納するメモリである。データ記憶部201は、図形データ記憶部202、RDT記憶部203、TRT記憶部204より構成される。
図形データ記憶部202は線図形データを格納する。この線図形データには線の属性も含まれる。
RDT記憶部203はRDTを格納する。
TRT記憶部204はTRTを格納する。
認識制御部205は閉領域認識のフローを制御する。
仮想点付加部206は境界線データの交差を検出して得られた交差点座標を仮想点座標として線図形データに挿入登録する。この場合、交差する相手の境界線は予め指定された所定の属性を有するものとする。
開始境界線選択部207は、代表点から半直線を設定し交差する最初の境界線データを検索する。この場合、最初の境界線は予め指定された所定の属性を有するものとする。
図形追跡部208は線図形データを検索し、その境界線を構成する線分や特徴点を選択する。
交差図形検索部209は、線図形と交差する線図形の検索を行う。
この交差図形検索部209は、線分と交差する他の線分を検索する線図形検索部211と図形の特徴点と一致する他の特徴点を検索する特徴点検索部210より構成される。
【0016】
線図形検索部211は仮想点を検出するときに使用する。
特徴点検索部210は仮想点が付加されている図形を用いた閉領域認識で使用し境界線の選択に用いる。
閉領域判定部212は境界線の追跡によって閉図形を取得したかどうかを判定する。
第2代表点登録部213は閉領域を判定した場合に開始境界線選択部207で選択した境界線から第2代表点を特定しRDTに格納する。第2代表点は境界線の特徴点(屈曲点、端点)を選択する。特徴点が得られない場合は仮想点を選択する。
この第2代表点は2回目以降の閉領域認識における境界線追跡の開始/終了点とする。これにより開始境界線選択部207による境界線選択処理を省くことができる。
一時保存閉領域データ登録部214は、閉領域を判定した場合に境界線を構成する特徴点および境界線交差点(仮想点)の座標をTRTに格納する。
【0017】
図10は、閉領域データ管理、閉領域認識処理を実行するための計算機システムのハードウェア構成を示す。
図2に示すデータ記憶部201は図10の記憶装置1014に相当し、また、認識制御部205、仮想点付加部206、開始境界線選択部207、図形追跡部208、交差図形検索部209、特徴点検索部210、線図形検索部211、閉領域判定部212、第2代表点登録部213、そして一時保存閉領域データ登録部214はプログラムとして図10の記憶装置1014に格納される。
これら記憶装置に格納されたデータとプログラムにより処理装置1012において閉領域データ管理、閉領域認識処理が実行される。
外部記憶装置1015は、通常は記憶装置1014に記憶された情報が保持されており、システム起動時に該情報を記憶装置1014にロードする。
入力装置1011は処理に必要な情報をシステムに入力するものであり、ディスプレイ1015は図形等の情報を表示するものである。
【0018】
閉領域を認識する処理は仮想点を付加していない場合と閉領域認識によって仮想点を付加した場合で異なる。
図3に仮想点を付加していない場合の閉領域認識を行う処理フロー、図4に仮想点を付加している場合の閉領域認識を行う処理フローを示す。
また閉領域の認識過程を図6に示す。
【0019】
仮想点を付加していない場合の閉領域認識処理を図3を参照して説明する。
この処理は仮想点を付加するステップと付加した仮想点を利用して閉領域を認識するステップより構成される。
この仮想点の付加は仮想点付加部206の処理に対応する。
【0020】
仮想点を付加するステップは、まず、図形データ記憶部202に格納されている境界線図形データを選択し(S301:Sは「ステップ」を意味する)、境界線図形の構成線分を選択して(S302)、該構成線分に交差する予め指定された所定の属性を有する交差境界線図形データを検索する(S303)。
この検索は線図形検索部211で行う。
交差境界線がある場合(S304)には、交差点を計算して(S305)、仮想点として図形データテーブルに挿入する(S306)。
この仮想点は閉領域の認識のためだけに利用する。
【0021】
図5に仮想点付加の状況を示す。
図5(a)は選択された線図形データF1 501と、該F1 501と交差するF2 502においての交差点が付加されていない状況を示す。
図形データテーブル503および504は、交差点が付加されていない状況におけるそれぞれの線図形データF1およびF2の座標の登録状況を示す。
図5(b)は線図形データF1およびF2が交差しているため、点Pv505が付加された状態を示す。
図形データテーブル506および507は仮想点の座標(Xv,Yv)が挿入された状態を示す。
もし線分どうしがT字型の接続となる場合は、端点が接している方の線分上に仮想点を発生させる。
ただし、仮想点が特徴点と一致する場合は仮想点は挿入しなくてもよい。
仮想点を挿入することは新たな特徴点が付加されたことを意味する。
【0022】
図6では交差点606、607、608、609が仮想点として登録される。
ここで線図形データ610は予め指定された所定の属性を有する境界線データではないため線図形と境界線との交点は仮想点にはならない。
全ての境界線どうしの交差が検出されてると閉領域の認識を実行する。
【0023】
閉領域を認識するステップは、まず閉領域定義テーブル RDTから代表点を検索し(S307)、開始境界線選択部207を起動して追跡開始境界線および第2代表点を選択する。
図6に示す代表点601をRDTより検索し(S308)、その点から半直線602を設定する(S309)。
そしてその半直線602と交差する境界線データ603を検索する。この境界線データ603としてはRDTに記述された境界線属性を有するものを対象とする。
境界線データを選択できた場合(S310)にはこれを追跡開始線分とし、さらに第2代表点603を検索する(S311、S312)。
第2代表点は半直線602と追跡開始線603の交点に最も近い追跡開始線603の特徴点とする。特徴点が境界線上にない場合には線上の点とする。
【0024】
次に、図形追跡部208を起動して第2代表点を境界線追跡の開始点として引き続く特徴点および仮想点を選択する(S313)。
このとき閉領域の向きが右周りになるように追跡する。
特徴点検索部210では、特徴点が仮想点の場合に(S314)追跡線分を同一座標の仮想点を持つ境界線に変更する(S315)。
同一の仮想点境界線が複数個ある場合には右周り方向にある線図形データ(線図形データはベクトルデータであるため方向性を持つ)を選択する。
追跡線分を変更した後、その点から特徴点の追跡を実行する(S313)。
【0025】
また、閉領域判定部212は閉領域をチェックする。
すなわち、追跡開始点に戻った場合には(S316)、閉領域が認識されたとして第2代表点登録部213により第2代表点をRDTに格納する(S317)。
さらに、一時保存閉領域データ登録部214により、全境界線の特徴点および仮想点の座標をTRTに格納する(S318)。
ここで閉領域の認識は終了であり、次の代表点を検索する(S319)。
図6では第2代表点604から開始して境界線605や仮想点606、607、608、609を経由し、第2代表点604へ戻ることによって閉領域を認識する。
【0026】
次に仮想点が付加されている場合の閉領域認識処理を図4を参照して説明する。
RDTから代表点座標データを検索する(S401)。
次にRDTから第2代表点座標データを検索する(S402)。
そして第2代表点から境界線の追跡を開始する。
まず、線図形データから第2代表点と一致する特徴点を持つ線図形を検索する(S403、S404)、一致する線図形データが得られた場合には(S404)、線図形データを選択し追跡開始線とする(S405、S406)。
検索した線図形データから特徴点を選択して(S407)、それが仮想点かどうかをチェックする(S408)。
仮想点ならば同一の仮想点を有する別の線図形データを検索して追跡線分を更新する(乗り換える)(S409)。
仮想点ではなく追跡開始点すなわち第2代表点(S410)を選択した場合には、閉領域データを認識したとして処理を終了し(S411)、次の閉領域の認識を開始する。
【0027】
上記に説明した例では、閉領域データは1つの領域内に含まれる閉領域データであったが、閉領域データは複数の領域にまたがる場合がある。
この場合は各々の領域において代表点を付加する。
複数の各領域単位にデータがメモリに記憶される場合、閉領域データの一部のみが各領域単位対応のメモリに記憶されることになり、このような場合に各々の領域において代表点を付加することは有効になる。
図7は複数領域にまたがる閉領域を示す。
ここでは9個の領域にまたがる閉領域境界線701に囲まれた閉領域702を示す。
各領域には閉領域の代表点が付加されており、どの領域から図3または図4に示す閉領域認識処理を適用して閉領域認識を開始しても全領域を認識することができる。
ただし、領域をまたがる時点で相手領域の端点が一致する図形データを検索することになる。
【0028】
これまで示した閉領域認識は、代表点を包含する閉領域の中で指定の属性を持つ境界線で囲まれた最小の閉領域である。
そのため、複数の閉領域(部分領域)からなる閉領域(統合閉領域)を定義するために、統合閉領域定義テーブルIRT(Integrated Region Definition Table)により部分領域の代表点をグループ化することにより部分領域を統合して統合閉領域を定義する。
図8は閉領域C1 801、C2 802、C3 803、C4 804を統合して閉領域S805を定義するために、IRTにC1、C2、C3、C4の代表点座標を格納する。
これにより、互いに関連する閉領域のうちに飛び地のような閉領域が発生した場合でも各領域の代表点をグループ化することにより管理することができる。
この場合、閉領域認識処理は、各閉領域C1〜C4毎に行われる。
【0029】
また、領域は時々刻々変化する場合がある。
この例として植性(植物の棲息)を表す例が上げられる。
図9に示すように、時間T1からT2の間に存在していた領域S1は、時間T2以降、領域SN1に変化する。
また、時間T1からT2の間に存在していた領域S2は、時間T2以降、領域SN2に変化する。
領域S1の代表点P1は時間T1からT2の間には領域S1には含まれるが、時間T2以降は領域SN1には含まれない。そのため領域SN1は管理されないことになり不具合が生じる。そのため代表点P1は座標を更新してP2とする。
一方、代表点P2は時間T2以降でも領域SN2に含まれるため座標の更新は必要としない。
このように代表点を移動させることのみにより領域の変更は対処できる。
【0030】
代表点は面に含まれるかどうかは、一般に知られている包含判定アルゴリズムを用いることによって判断できる。
包含判定アルゴリズムは次のようになる。
領域境界線を構成する各線分の2個の端点と代表点からなる三角形に注目する。領域を構成する境界線の線分数をN個とする三角形はN個できる。そしてN個の三角形に対して次のような値Siを計算する。

Figure 0003703257
(Xi1,Yi1)(Xi2,Yi2)(Xp,Yp)はそれぞれ境界線構成線分iの始点座標、境界線構成線分iの終点座標、代表点Pの座標である。
そしてSiの符号、Sign(Si)(i=1,…,N)を参照する。Sign(Si)は正値または負値かを判定する。(Xi1,Yi1)(Xi2,Yi2)の順序を意識することによってSign(Si)による結果はiごとに異なる。
Sign(Si)において正値と負値が混在する場合には代表点は領域の外にあると判定し、正値または負値の一つのみしか得られない場合は領域の内部にあると判定する。境界線には特徴点または仮想点が付加されているため(1)式の計算は容易に行える。
【0031】
図9では代表点はP1からPNへ移動している。この代表点の移動は手操作、または計算による自動配置によって行う。自動配置による方法について示す。
まず領域SN1の重心を計算する。そして重心に代表点の座標を設定し(1)式を計算して面の内部にあることを確認する。
面が凹部を持つ場合には重心は面の内部に含まれない場合がある。この場合には配置点座標のX値、Y値を少しずつ変化させながら(1)式を計算することにより領域に含まれるように調整する。
【0032】
従来方式では、領域形状の変化に伴って領域情報として管理されている境界線の座標を全て更新するなどの手間が生じる。とくに更新された境界線が複数の領域によって共有されている場合には、これらすべての領域に対して確実に境界線の座標更新をすることが必要になり更新が複雑で時間を要するという問題点があった。一方、本方法に従えば、領域の形状が変化しても代表点の配置変更によって対処できるため、領域情報の維持管理は容易でかつ従来方式と比較して早く処理できる。
【0033】
【発明の効果】
本発明に示す代表点と境界線属性の管理に基づく閉領域データの管理方法により、データの重複なしに且つ少ないデータ量で閉領域情報を管理することができる。
また、上記の閉領域データ管理方法により管理される閉領域データを用いて閉領域の認識をすることができる。
また、領域の形状が変化しても代表点の配置変更によって対処できるため、領域情報の維持管理は容易であり、かつ維持管理処理も早くできる。
【図面の簡単な説明】
【図1】閉領域データの管理方法を説明するための図である。
【図2】閉領域認識機能を示す図である。
【図3】仮想点が付加されていない場合の閉領域認識処理を示すPAD図である。
【図4】仮想点が付加されている場合の閉領域認識処理を示すPAD図である。
【図5】仮想点の付加を説明するための図である。
【図6】閉領域認識に利用する特徴点と認識過程を説明するための図である。
【図7】複数領域にまたがる閉領域データの管理方法を説明するための図である。
【図8】閉領域の統合管理方法を説明するための図である。
【図9】時間の経過に伴い変化する閉領域の代表点の変更を説明するための図である。
【図10】図2に示す機能を実現するハードウェア構成を示す図である。
【符号の説明】
201 データ記憶部
202 図形データ記憶部
203 RDT記憶部
204 TRT記憶部
205 認識制御部
206 仮想点付加部
207 開始境界線選択部
208 図形追跡部
209 交差図形検索部
210 特徴点検索部
211 線図形検索部
212 閉領域判定部
213 第2代表点登録部
214 一時保存閉領域データ登録部
1011 入力装置
1012 処理装置(CPU)
1013 ディスプレイ
1014 記憶装置
1015 外部記憶装置[0001]
[Industrial application fields]
The present invention relates to a method for managing a closed region surrounded by line graphic data represented by a coordinate sequence, a method for recognizing a closed region, and a computer-readable recording medium recording a closed region recognition program in a geographic information processing system.
[0002]
[Prior art]
FIG. 1 shows an example of a closed region (closed region S) surrounded by the line graphic data represented by the coordinate string as a boundary line. At this time, the boundary line is represented by one closed curve or a combination of a plurality of broken lines.
To manage such closed areas,
(1) A method for managing coordinate data of boundary lines for each closed area as a closed area data separately from the line figure data in a table,
(2) A method has already been proposed in which line graphic data is divided between points where the line graphic intersects to reconstruct the line graphic data, and a number label is added to the obtained boundary lines to manage the list. ing.
[0003]
[Problems to be solved by the invention]
However, in the method (1), when closed regions are adjacent and share a boundary line, the coordinates of the boundary line must be managed for each closed region. growing.
Further, when the shape of the closed region changes, it is not sufficient to change the coordinate data of the closed region, and it is necessary to change the coordinate data of the closed region that shared the boundary line.
Furthermore, when managing line graphic data and closed area data separately, it is necessary to always compensate for the coincidence of coordinates in the changed graphic data and the closed area data.
As described above, a problem occurs in an increase in the amount of data and an increase in the processing amount of consistency management.
[0004]
In the method (2), when a figure that passes through the closed region is newly added, it is necessary to re-divide the boundary line data and re-issue the label accordingly.
In this case, when the number of closed regions is large, there is a problem that the processing amount required for re-division and label re-issuance increases.
[0005]
An object of the present invention is to manage closed region information without duplication of data and with a small amount of data.
Another object of the present invention is to recognize a closed region using the closed region information managed as described above.
Still another object of the present invention is to facilitate the maintenance and management of closed area information even when the shape of the closed area changes.
[0006]
[Means for Solving the Problems]
In order to solve the above problems, the present invention provides:
A closed region data management method for managing closed region data having a line figure data constituted by a coordinate data string in a computer system including a processing device, a storage device, an input device, and an output device as a boundary line,
Holding the line figure data constituted by the coordinate data string in the storage device;
Combining the coordinates of points (representative points) included in the closed region and the boundary line attribute of the closed region to form closed region data, and holding the configured closed region data in the storage device Is used to manage closed area data.
Further, when the boundary lines intersect with each other, the coordinate point of the intersection is used as virtual point coordinate data, the virtual point coordinate data is inserted into the line figure data of each intersecting boundary line, and the virtual point coordinate data is inserted. The line graphic data is held in the storage device.
[0007]
A closed region recognition method for recognizing a closed region based on closed region data having a line figure data composed of coordinate data strings in a computer system having a processing device, a storage device, an input device, and an output device as a boundary line. ,
Line graphic data constituted by the coordinate data string is held in the storage device,
The closed area data configured by combining the coordinates of the points (representative points) included in the closed area and the boundary line attribute of the closed area are held in the storage device,
Detecting the intersection of a line figure constituting a boundary line and a line figure constituting another boundary line with respect to the line figure data held in the storage device, and inserting the intersection point into each line figure data as a virtual point; , Reading the closed region data held in the storage device, setting a half line from the representative point of the closed region of the closed region data, and the boundary line figure data having the boundary line attribute of the closed region intersecting the straight line In the tracking start line graphic data, a point on the line of the tracking start line as a tracking start point, a step of tracking a boundary line represented by the tracking start line graphic data, Searching line graphic data of other boundary lines that overlap the intersections of virtual points or graphic feature points, and selecting the line graphic data as line graphic data of the boundary line to be newly tracked;
The tracking start line graphic data is selected as the line graphic data of the boundary line to be newly tracked, and it is determined that the closed region is recognized when the second representative point is reached as a result of tracking. I have to.
[0008]
A closed region recognition method for recognizing a closed region based on closed region data having a line figure data composed of coordinate data strings in a computer system having a processing device, a storage device, an input device, and an output device as a boundary line. ,
Line graphic data constituted by the coordinate data string is held in the storage device,
The closed area data configured by combining the coordinates of the points (representative points) included in the closed area and the boundary line attribute of the closed area are held in the storage device,
Line figure data in which the virtual point coordinate data is inserted by inserting the virtual point coordinate data into the line figure data of each boundary line intersecting with the coordinate point of the intersection when the boundary lines intersect with each other as virtual point coordinate data Held in the storage device,
Read the closed region data held in the storage device, set a half line from the representative point of the closed region of the closed region data, and the line graphic data of the boundary line having the boundary line attribute of the closed region intersecting the straight line Tracking start line graphic data, a point on the line of the tracking start line as a tracking start point, a step of tracking a boundary line represented by the tracking start line graphic data, and a virtual in the tracking start line graphic data Searching for line figure data of another boundary line that overlaps an intersection of a point or a graphic feature point, selecting the line figure data as the line figure data of the boundary line to be newly traced, and the boundary line to be newly traced The tracking start line graphic data is selected as the line graphic data, and it is determined that the closed region is recognized when the second representative point is reached as a result of tracking.
[0009]
Further, the boundary line having the boundary line attribute of the closed region intersecting with the straight line is set by reading out the closed region data held in the storage device, setting a half line from the representative point of the closed region of the closed region data, and The step of setting the line figure data of the tracking start line figure data and the point on the line of the tracking start line as the tracking start point,
Read the closed region data held in the storage device, set a half line from the representative point of the closed region of the closed region data, and the line graphic data of the boundary line having the boundary line attribute of the closed region intersecting the straight line In place of the tracking start line graphic data, the tracking start line feature point or a point on the line as a tracking start point, and the tracking start point as a second representative point of the closed area data is registered in the closed area data, The second and subsequent closed region recognitions can be started from the second representative point, and after the second representative point is registered, the process of selecting the tracking start line graphic data need not be performed.
[0010]
Furthermore, a step of temporarily storing the coordinates of the feature points and virtual points that have passed in the tracking of the boundary line as display / use data in the storage device is provided, and the closed region display is displayed when the display of the closed region must be repeated. It can be done at high speed.
Further, when the shape of the closed region changes and the representative point is no longer included in the closed region, the coordinates of the representative point are changed so that the representative point is included in the closed region.
In addition, when a closed area exists over a plurality of areas without staying in one area, the closed area data is managed by adding a representative point to each of the plurality of areas.
Further, the combination of closed areas is managed by managing closed area data by grouping representative points of a plurality of closed areas as a representative point group.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
The line figure data handled in the present invention is vector data composed of a two-dimensional coordinate data string.
Accordingly, in the following description, line figure data and boundary line data mean vector data.
The closed region is a region surrounded by such line figure data.
[0012]
A closed area data management method and a closed area recognition method will be described.
FIG. 1 shows an outline of closed area data management and closed area recognition.
The closed region is surrounded by a plurality of boundary lines.
In the example of FIG. 1, the closed region S106 is surrounded by the line graphic data F1 101, the line graphic data F2 102, the line graphic data F3 103, and the line graphic data F4 104.
In order to uniquely manage the closed region data, the representative point P105 and the boundary line attribute (boundary line attribute) are used.
The representative point is a point inside the closed region designated in advance. Thus, a closed region means a region that includes a representative point and is surrounded by a boundary line having a specified attribute.
The boundary line attribute is represented by a display attribute (line color, line type (solid line, dotted line, etc.)) of a graphic line segment and a number representing the subject.
Closed region recognition means that after the attributes of the representative point and the boundary line are designated, the boundary line is traced to detect the closed region.
[0013]
A closed region definition table (RDT) is used to manage representative points and boundary line attributes.
The RDT 108 includes the coordinates of the representative point P105, the coordinates of the second representative point P2 107, and the boundary line attribute 111.
The second representative point 107 is a point on the boundary line, and is not specified from the beginning, but is acquired when the representative point and the boundary line attribute are specified and the first (first) closed region recognition is performed. When the closed region is re-recognized, it is used as the start point and end point of the boundary line tracking. As the second representative point, feature points (bending points, end points) of the boundary line are mainly selected.
The boundary attribute is specified for all of the boundary lines.
Line graphic data F1 101, F2 102, F3 103, and F4 104 in FIG. 1 have attributes C, C, B, and A, respectively. Therefore, boundary line attributes A, B, and C are stored in the RDT 108.
Even if the line graphic data that does not have the specified attribute intersects the closed region, it is ignored because it does not match the boundary attribute stored in the RDT.
The RDT stores no coordinate information of the boundary line other than the second representative point.
For example, the coordinates (X2, Y2) to (X6, Y6) shown in FIG. 1 are not registered in the RDT.
Therefore, when obtaining the size or range of the closed region, it is necessary to recognize the closed region by tracking the boundary line.
[0014]
Temporarily Saved Region Definition Table (TRT)
Table) manages the coordinates of the boundary data.
The coordinates stored in the TRT 109 coincide with the coordinates of the line figure data and are stored redundantly, but the TRT is used for display / search and is not subject to updating.
Accordingly, when the shape of the closed region changes, it is discarded, and when the closed region shape is determined, it is recreated by recognition of the closed region.
[0015]
FIG. 2 shows a functional configuration for implementing the closed region recognition.
The data storage unit 201 is a memory that stores a data table. The data storage unit 201 includes a graphic data storage unit 202, an RDT storage unit 203, and a TRT storage unit 204.
The graphic data storage unit 202 stores line graphic data. The line graphic data includes line attributes.
The RDT storage unit 203 stores the RDT.
The TRT storage unit 204 stores the TRT.
The recognition control unit 205 controls the flow of closed region recognition.
The virtual point addition unit 206 inserts and registers the intersection coordinates obtained by detecting the intersection of the boundary line data in the line figure data as the virtual point coordinates. In this case, the boundary line of the intersecting partner has a predetermined attribute specified in advance.
The start boundary line selection unit 207 searches for the first boundary line data that intersects by setting a half line from the representative point. In this case, the first boundary line has a predetermined attribute specified in advance.
The figure tracking unit 208 searches for line figure data and selects line segments and feature points constituting the boundary line.
The intersecting figure search unit 209 searches for a line figure that intersects the line figure.
The intersecting figure search unit 209 includes a line figure search unit 211 that searches for other line segments that intersect the line segment, and a feature point search unit 210 that searches for other feature points that match the feature points of the figure.
[0016]
The line figure search unit 211 is used when detecting a virtual point.
The feature point search unit 210 is used for closed region recognition using a graphic to which a virtual point is added, and is used to select a boundary line.
The closed region determination unit 212 determines whether a closed figure has been acquired by tracking the boundary line.
When the second representative point registration unit 213 determines the closed region, the second representative point registration unit 213 identifies the second representative point from the boundary line selected by the start boundary line selection unit 207 and stores it in the RDT. As the second representative point, a feature point (bending point, end point) of the boundary line is selected. If no feature point is obtained, a virtual point is selected.
The second representative point is a boundary line start / end point in the second and subsequent closed region recognition. Thereby, the boundary line selection processing by the start boundary line selection unit 207 can be omitted.
The temporary storage closed region data registration unit 214 stores, in the TRT, the coordinates of feature points and boundary intersections (virtual points) that constitute the boundary line when the closed region is determined.
[0017]
FIG. 10 shows a hardware configuration of a computer system for executing closed area data management and closed area recognition processing.
A data storage unit 201 shown in FIG. 2 corresponds to the storage device 1014 of FIG. 10, and also includes a recognition control unit 205, a virtual point addition unit 206, a start boundary line selection unit 207, a figure tracking unit 208, an intersecting figure search unit 209, The feature point search unit 210, the line figure search unit 211, the closed region determination unit 212, the second representative point registration unit 213, and the temporary storage closed region data registration unit 214 are stored as programs in the storage device 1014 of FIG.
The processing unit 1012 executes closed area data management and closed area recognition processing by the data and programs stored in these storage devices.
The external storage device 1015 normally holds information stored in the storage device 1014, and loads the information into the storage device 1014 when the system is activated.
The input device 1011 inputs information necessary for processing to the system, and the display 1015 displays information such as graphics.
[0018]
The process for recognizing a closed region differs depending on whether a virtual point is not added or when a virtual point is added by closed region recognition.
FIG. 3 shows a processing flow for performing closed region recognition when virtual points are not added, and FIG. 4 shows a processing flow for performing closed region recognition when virtual points are added.
The closed region recognition process is shown in FIG.
[0019]
The closed region recognition process when no virtual point is added will be described with reference to FIG.
This process includes a step of adding a virtual point and a step of recognizing a closed region using the added virtual point.
The addition of the virtual point corresponds to the processing of the virtual point adding unit 206.
[0020]
In the step of adding virtual points, first, the boundary line graphic data stored in the graphic data storage unit 202 is selected (S301: S means “step”), and the constituent line segment of the boundary line graphic is selected. (S302), the intersection boundary line graphic data having a predetermined attribute that intersects with the constituent line segment is searched (S303).
This search is performed by the line figure search unit 211.
If there is an intersection boundary line (S304), an intersection is calculated (S305) and inserted as a virtual point into the graphic data table (S306).
This virtual point is used only for recognition of the closed region.
[0021]
FIG. 5 shows the situation of adding virtual points.
FIG. 5A shows a situation in which the selected line figure data F1 501 and the intersection at F2 502 intersecting with the F1 501 are not added.
The graphic data tables 503 and 504 show the registration status of the coordinates of the respective line graphic data F1 and F2 in a situation where no intersection is added.
FIG. 5B shows a state in which the point Pv505 is added because the line figure data F1 and F2 intersect.
The graphic data tables 506 and 507 show a state in which the coordinates (Xv, Yv) of the virtual point are inserted.
If the line segments form a T-shaped connection, a virtual point is generated on the line segment with which the end points are in contact.
However, if the virtual point matches the feature point, the virtual point may not be inserted.
Inserting a virtual point means that a new feature point has been added.
[0022]
In FIG. 6, intersections 606, 607, 608, and 609 are registered as virtual points.
Here, since the line figure data 610 is not boundary line data having a predetermined attribute specified in advance, the intersection of the line figure and the boundary line is not a virtual point.
When all the intersections between the boundary lines are detected, the closed region is recognized.
[0023]
In the step of recognizing the closed region, first, representative points are searched from the closed region definition table RDT (S307), and the start boundary line selection unit 207 is activated to select the tracking start boundary line and the second representative point.
A representative point 601 shown in FIG. 6 is searched from the RDT (S308), and a half line 602 is set from the point (S309).
Then, the boundary line data 603 intersecting with the half line 602 is searched. The boundary line data 603 is intended to have boundary line attributes described in the RDT.
When the boundary line data can be selected (S310), this is set as the tracking start line segment, and the second representative point 603 is searched (S311 and S312).
The second representative point is a feature point of the tracking start line 603 that is closest to the intersection of the half line 602 and the tracking start line 603. If the feature point is not on the boundary line, it is determined as a point on the line.
[0024]
Next, the figure tracking unit 208 is activated to select the subsequent feature points and virtual points using the second representative point as the boundary tracking start point (S313).
At this time, tracking is performed so that the direction of the closed region is clockwise.
In the feature point search unit 210, when the feature point is a virtual point (S314), the tracking line segment is changed to a boundary line having a virtual point of the same coordinate (S315).
If there are a plurality of the same virtual point boundary lines, line figure data in the clockwise direction is selected (the line figure data is vector data and has directionality).
After changing the tracking line segment, the feature point is tracked from that point (S313).
[0025]
Further, the closed region determination unit 212 checks the closed region.
That is, when returning to the tracking start point (S316), the second representative point registration unit 213 stores the second representative point in the RDT, assuming that the closed region is recognized (S317).
Further, the temporary storage closed region data registration unit 214 stores the feature point and virtual point coordinates of all the boundary lines in the TRT (S318).
Here, the recognition of the closed region is completed, and the next representative point is searched (S319).
In FIG. 6, the closed region is recognized by starting from the second representative point 604, passing through the boundary line 605 and the virtual points 606, 607, 608, and 609 and returning to the second representative point 604.
[0026]
Next, the closed region recognition process when a virtual point is added will be described with reference to FIG.
The representative point coordinate data is retrieved from the RDT (S401).
Next, the second representative point coordinate data is searched from the RDT (S402).
Then, the tracking of the boundary line is started from the second representative point.
First, a line figure having a feature point that matches the second representative point is searched from the line figure data (S403, S404). When matching line figure data is obtained (S404), the line figure data is selected. The tracking start line is set (S405, S406).
A feature point is selected from the retrieved line figure data (S407), and it is checked whether it is a virtual point (S408).
If it is a virtual point, another line graphic data having the same virtual point is searched and the tracking line segment is updated (changed) (S409).
When the tracking start point, that is, the second representative point (S410) is selected instead of the virtual point, the process is terminated assuming that the closed region data is recognized (S411), and the recognition of the next closed region is started.
[0027]
In the example described above, the closed area data is closed area data included in one area, but the closed area data may extend over a plurality of areas.
In this case, a representative point is added in each area.
When data is stored in memory for each area unit, only a part of the closed area data is stored in the memory corresponding to each area unit. In such a case, a representative point is added in each area. It becomes effective to do.
FIG. 7 shows a closed region that spans multiple regions.
Here, a closed region 702 surrounded by a closed region boundary line 701 extending over nine regions is shown.
A representative point of the closed area is added to each area, and all areas can be recognized even if the closed area recognition process shown in FIG. 3 or 4 is applied to start the closed area recognition.
However, the graphic data in which the end points of the partner area match at the time of crossing the area is searched.
[0028]
The closed region recognition shown so far is the smallest closed region surrounded by a boundary line having a specified attribute in the closed region including the representative point.
Therefore, in order to define a closed region (integrated closed region) consisting of a plurality of closed regions (partial regions), the partial points are grouped by grouping the representative points of the partial regions by an integrated closed region definition table IRT (Integrated Region Definition Table). Integrate areas to define an integrated closed area.
In FIG. 8, in order to define the closed region S805 by integrating the closed regions C1 801, C2 802, C3 803, and C4 804, the representative point coordinates of C1, C2, C3, and C4 are stored in the IRT.
As a result, even when a closed region such as an enclave occurs among the closed regions related to each other, the representative points of each region can be managed by grouping them.
In this case, the closed region recognition process is performed for each of the closed regions C1 to C4.
[0029]
Also, the region may change from moment to moment.
As an example of this, an example showing plantability (plant habit) can be given.
As shown in FIG. 9, the region S1 that existed between the times T1 and T2 changes to the region SN1 after the time T2.
In addition, the region S2 existing between the times T1 and T2 changes to the region SN2 after the time T2.
The representative point P1 of the region S1 is included in the region S1 between the times T1 and T2, but is not included in the region SN1 after the time T2. For this reason, the area SN1 is not managed and a problem occurs. Therefore, the coordinate of the representative point P1 is updated to P2.
On the other hand, since the representative point P2 is included in the region SN2 even after the time T2, it is not necessary to update the coordinates.
Thus, the change of the region can be dealt with only by moving the representative point.
[0030]
Whether or not the representative point is included in the surface can be determined by using a generally known inclusion determination algorithm.
The inclusion determination algorithm is as follows.
Attention is paid to a triangle composed of two end points and a representative point of each line segment constituting the region boundary line. There can be N triangles where the number of line segments of the boundary line constituting the region is N. Then, the following value Si is calculated for N triangles.
Figure 0003703257
(Xi1, Yi1) (Xi2, Yi2) (Xp, Yp) are the start point coordinates of the boundary line constituent line segment i, the end point coordinates of the boundary line constituent line segment i, and the coordinates of the representative point P, respectively.
Then, reference is made to the sign of Si, Sign (Si) (i = 1,..., N). Sign (Si) determines whether the value is positive or negative. By considering the order of (Xi1, Yi1) (Xi2, Yi2), the result by Sign (Si) differs for each i.
In Sign (Si), when a positive value and a negative value are mixed, it is determined that the representative point is outside the region, and when only one positive value or negative value is obtained, it is determined that the representative point is inside the region. To do. Since feature points or virtual points are added to the boundary line, the calculation of the equation (1) can be easily performed.
[0031]
In FIG. 9, the representative point has moved from P1 to PN. The representative point is moved by manual operation or automatic placement by calculation. The method by automatic placement is shown.
First, the center of gravity of the region SN1 is calculated. Then, the coordinates of the representative point are set at the center of gravity, and the formula (1) is calculated to confirm that it is inside the surface.
If the surface has a recess, the center of gravity may not be included in the surface. In this case, adjustment is made so as to be included in the region by calculating equation (1) while gradually changing the X value and Y value of the arrangement point coordinates.
[0032]
In the conventional method, troubles such as updating all the coordinates of the boundary line managed as the region information occur with the change of the region shape. In particular, when the updated boundary line is shared by multiple areas, it is necessary to update the coordinates of the boundary line reliably for all these areas, and the update is complicated and takes time. was there. On the other hand, according to the present method, even if the shape of the region changes, it can be dealt with by changing the arrangement of the representative points. Therefore, the maintenance and management of the region information is easy and can be processed faster than the conventional method.
[0033]
【The invention's effect】
The closed region data management method based on the management of the representative point and the boundary line attribute shown in the present invention makes it possible to manage the closed region information without duplication of data and with a small amount of data.
Further, the closed area can be recognized using the closed area data managed by the above closed area data management method.
In addition, even if the shape of the region changes, it can be dealt with by changing the arrangement of the representative points. Therefore, the maintenance and management of the region information is easy and the maintenance management process can be accelerated.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining a closed area data management method;
FIG. 2 is a diagram illustrating a closed region recognition function.
FIG. 3 is a PAD showing a closed region recognition process when a virtual point is not added.
FIG. 4 is a PAD showing closed region recognition processing when virtual points are added.
FIG. 5 is a diagram for explaining the addition of virtual points.
FIG. 6 is a diagram for explaining feature points used for closed region recognition and a recognition process;
FIG. 7 is a diagram for explaining a management method of closed area data that extends over a plurality of areas;
FIG. 8 is a diagram for explaining a closed region integrated management method;
FIG. 9 is a diagram for explaining a change of a representative point of a closed region that changes with the passage of time.
FIG. 10 is a diagram illustrating a hardware configuration that implements the functions illustrated in FIG. 2;
[Explanation of symbols]
201 Data storage unit 202 Graphic data storage unit 203 RDT storage unit 204 TRT storage unit 205 Recognition control unit 206 Virtual point addition unit 207 Start boundary line selection unit 208 Graphic tracking unit 209 Intersection graphic search unit 210 Feature point search unit 211 Line graphic search Unit 212 closed region determination unit 213 second representative point registration unit 214 temporary storage closed region data registration unit 1011 input device 1012 processing device (CPU)
1013 Display 1014 Storage device 1015 External storage device

Claims (9)

処理装置と記憶装置と入力装置と出力装置を備える計算機システムにおける座標データ列によって構成される線図形データを境界線とする閉領域のデータを管理する閉領域データ管理方法であって、
前記境界線が互いに交差する場合には、交差点の座標点を仮想点座標データとし、交差する各境界線の線図形データに該仮想点座標データを挿入し、該仮想点座標データを挿入した線図形データを前記記憶装置に保持し、
前記閉領域に包含される点(代表点)の座標と、該閉領域の境界線の属性とを組み合わせて閉領域データを構成し、該構成された閉領域データを前記記憶装置に保持することにより閉領域データを管理することを特徴とする閉領域データ管理方法。
A closed region data management method for managing closed region data having a line figure data constituted by a coordinate data string in a computer system including a processing device, a storage device, an input device, and an output device as a boundary line,
When the boundary lines intersect with each other, the coordinate point of the intersection is set as virtual point coordinate data, the virtual point coordinate data is inserted into the line figure data of each intersecting boundary line, and the virtual point coordinate data is inserted. Holding graphic data in the storage device;
Combining the coordinates of points (representative points) included in the closed region and the boundary line attribute of the closed region to form closed region data, and holding the configured closed region data in the storage device A closed area data management method, comprising: managing closed area data by:
請求項1記載の閉領域データ管理方法において、
閉領域の形状が変化し閉領域内部に代表点が含まれなくなった場合には、閉領域内部に代表点が含まれるように代表点の座標を変更することを特徴とする閉領域データ管理方法。
In the closed region data management method according to claim 1,
When the shape of the closed region changes and no representative point is included in the closed region, the coordinate of the representative point is changed so that the representative point is included in the closed region. .
請求項1記載の閉領域データ管理方法において、
閉領域が1つの領域の中に留まることなく複数の領域にわたって存在する場合には、該複数の各領域に代表点を付加することにより閉領域をデータ管理することを特徴とする閉領域データ管理方法。
In the closed region data management method according to claim 1,
Closed region data management characterized in that when a closed region exists over a plurality of regions without staying within one region, the closed region is managed by adding a representative point to each of the plurality of regions. Method.
請求項1記載の閉領域データ管理方法において、
複数の閉領域の各代表点を代表点群としてグループ化することにより閉領域データを管理することにより閉領域の組み合わせを管理することを特徴とする閉領域データ管理方法。
In the closed region data management method according to claim 1,
A closed area data management method, comprising: managing closed area data by grouping representative points of a plurality of closed areas as a representative point group to manage a combination of closed areas.
処理装置と記憶装置と入力装置と出力装置を備える計算機システムにおける座標データ列によって構成される線図形データを境界線とする閉領域のデータに基づき閉領域を認識する閉領域認識方法であって、
前記座標データ列によって構成される線図形データを前記記憶装置に保持しておき、
前記閉領域に包含される点(代表点)の座標と、該閉領域の境界線の属性とを組み合わせて構成された閉領域データを前記記憶装置に保持しておき、
前記記憶装置に保持した線図形データに対して、境界線を構成する線図形と他の境界線を構成する線図形との交差を検出し、交差点を仮想点として各線図形データに挿入するステップと、
前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の線上の点を追跡開始点とするステップと、
該追跡開始線図形データで表される境界線を追跡するステップと、
該追跡開始線図形データにおける仮想点または図形特徴点の交点と重なる他の境界線の線図形データを検索し、該線図形データを新たに追跡する境界線の線図形データとして選択するステップと、
該新たに追跡する境界線の線図形データとして前記追跡開始線図形データが選択され、追跡の結果、前記追跡開始点に達したとき、閉領域が認識されたと判定するステップと、からなることを特徴とする閉領域認識方法。
A closed region recognition method for recognizing a closed region based on closed region data having a line figure data constituted by a coordinate data string in a computer system comprising a processing device, a storage device, an input device, and an output device as a boundary line,
Line graphic data constituted by the coordinate data string is held in the storage device,
The closed area data configured by combining the coordinates of the points (representative points) included in the closed area and the boundary line attribute of the closed area are held in the storage device,
Detecting the intersection of a line figure constituting a boundary line and a line figure constituting another boundary line with respect to the line figure data held in the storage device, and inserting the intersection point into each line figure data as a virtual point; ,
Read the closed region data held in the storage device, set a half line from the representative point of the closed region of the closed region data, and the line graphic data of the boundary line having the boundary line attribute of the closed region intersecting the straight line A tracking start line graphic data, and a point on the line of the tracking start line as a tracking start point;
Tracking a boundary line represented by the tracking start line graphic data;
Searching line graphic data of other boundary lines that overlap the intersections of virtual points or graphic feature points in the tracking start line graphic data, and selecting the line graphic data as line graphic data of the boundary line to be newly tracked;
The tracking start line graphic data is selected as the line graphic data of the newly tracked boundary line, and when the tracking start point is reached as a result of tracking, it is determined that a closed region has been recognized. A closed region recognition method as a feature.
記憶装置に保持された、座標データ列によって構成される線図形データと、閉領域に包含される点(代表点)の座標と該閉領域の境界線の属性とを組み合わせて構成された閉領域データを用いて、
前記線図形データに対して、境界線を構成する線図形と他の境界線を構成する線図形との交差を検出し、交差点を仮想点として各線図形データに挿入する手順と、
前記閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の線上の点を追跡開始点とする手順と、
該追跡開始線図形データで表される境界線を追跡する手順と、
該追跡開始線図形データにおける仮想点または図形特徴点の交点と重なる他の境界線の線図形データを検索し、該線図形データを新たに追跡する境界線の線図形データとして選択する手順と、
該新たに追跡する境界線の線図形データとして前記追跡開始線図形データが選択され、追跡の結果、前記追跡開始点に達したとき、閉領域が認識されたと判定する手順をコンピュータに実行させ、閉領域認識を行うプログラムを記憶したコンピュータ読み取り可能な記録媒体。
A closed area configured by combining line figure data constituted by a coordinate data string, coordinates of points (representative points) included in the closed area, and boundary line attributes of the closed area held in the storage device Using the data
A procedure for detecting an intersection between a line figure constituting a boundary line and a line figure constituting another boundary line for the line figure data, and inserting the intersection as a virtual point into each line figure data;
Read the closed region data, set a half line from the representative point of the closed region of the closed region data, and trace the line graphic data of the boundary line having the boundary line attribute of the closed region intersecting the straight line. And a procedure that uses a point on the tracking start line as a tracking start point;
A procedure for tracking the boundary line represented by the tracking start line graphic data;
A step of searching line graphic data of another boundary line that overlaps an intersection of a virtual point or graphic feature point in the tracking start line graphic data, and selecting the line graphic data as a line graphic data of a boundary line to be newly tracked;
The tracking start line graphic data is selected as the line graphic data of the newly tracked boundary line, and when the tracking start point is reached as a result of tracking , the computer is caused to execute a procedure for determining that a closed region has been recognized, A computer-readable recording medium storing a program for performing closed area recognition.
記憶装置に保持された、座標データ列によって構成される線図形データと、閉領域に包含される点(代表点)の座標と該閉領域の境界線の属性とを組み合わせて構成された閉領域データと、前記境界線が互いに交差する場合の交差点の座標点を仮想点座標データとして交差する各境界線の線図形データに該仮想点座標データを挿入して該仮想点座標データを挿入した線図形データを用いて、
前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の線上の点を追跡開始点とする手順と、
該追跡開始線図形データで表される境界線を追跡する手順と、
該追跡開始線図形データにおける仮想点または図形特徴点の交点と重なる他の境界線の線図形データを検索し、該線図形データを新たに追跡する境界線の線図形データとして選択する手順と、
該新たに追跡する境界線の線図形データとして前記追跡開始線図形データが選択され、追跡の結果、前記追跡開始点に達したとき、閉領域が認識されたと判定する手順をコンピュータに実行させ、閉領域認識を行うプログラムを記憶したコンピュータ読み取り可能な記録媒体。
A closed area configured by combining line figure data constituted by a coordinate data string, coordinates of points (representative points) included in the closed area, and boundary line attributes of the closed area held in the storage device A line obtained by inserting the virtual point coordinate data by inserting the virtual point coordinate data into the line figure data of each boundary line intersecting with the coordinate point of the intersection when the data and the boundary line intersect with each other as virtual point coordinate data Using figure data,
Read the closed region data held in the storage device, set a half line from the representative point of the closed region of the closed region data, and the line graphic data of the boundary line having the boundary line attribute of the closed region intersecting the straight line A procedure for setting a tracking start line graphic data and a point on the tracking start line as a tracking start point;
A procedure for tracking the boundary line represented by the tracking start line graphic data;
A step of searching line graphic data of another boundary line that overlaps an intersection of a virtual point or graphic feature point in the tracking start line graphic data, and selecting the line graphic data as a line graphic data of a boundary line to be newly tracked;
The tracking start line graphic data is selected as the line graphic data of the newly tracked boundary line, and when the tracking start point is reached as a result of tracking , the computer is caused to execute a procedure for determining that a closed region has been recognized, A computer-readable recording medium storing a program for performing closed area recognition.
請求項6または請求項7記載の閉領域認識を行うプログラムを記憶したコンピュータ読み取り可能な記憶媒体において、
前記した前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の線上の点を追跡開始点とする手順と、
前記記憶装置に保持した閉領域データを読み出し、該閉領域データの閉領域の代表点から半直線を設定し、該直線と交差する前記閉領域の境界線属性を有する境界線の線図形データを追跡開始線図形データとし、該追跡開始線の特徴点または線上の点を追跡開始点とし、該追跡開始点を前記閉領域データの第2代表点として該閉領域データに登録する手順に代えたことを特徴とする閉領域認識を行うプログラムを記憶したコンピュータ読み取り可能な記録媒体。
A computer-readable storage medium storing a program for performing closed region recognition according to claim 6 or 7,
Read the closed region data held in the storage device, set a half line from the representative point of the closed region of the closed region data, and have a boundary line attribute of the closed region intersecting the straight line A procedure in which data is set as tracking start line graphic data, and a point on the tracking start line is set as a tracking start point;
Read the closed region data held in the storage device, set a half line from the representative point of the closed region of the closed region data, and the line graphic data of the boundary line having the boundary line attribute of the closed region intersecting the straight line The tracking start line graphic data is used, the feature point of the tracking start line or a point on the line is set as the tracking start point, and the tracking start point is replaced with the procedure for registering the closed area data as the second representative point in the closed area data. A computer-readable recording medium storing a program for performing closed region recognition.
請求項6乃至請求項7のいずれかの請求項記載の閉領域認識を行うプログラムを記憶したコンピュータ読み取り可能な記録媒体において、
前記境界線の追跡において通過した特徴点および仮想点の座標を表示/利用データとして前記記憶装置に一時保存する手順を追加したことを特徴とする閉領域認識を行うプログラムを記憶したコンピュータ読み取り可能な記録媒体。
A computer-readable recording medium storing a program for performing closed region recognition according to any one of claims 6 to 7,
A computer-readable program storing a program for recognizing a closed region, characterized in that a procedure for temporarily storing the coordinates of feature points and virtual points passed in tracking the boundary line as display / use data is added to the storage device. recoding media.
JP18170697A 1997-06-23 1997-06-23 Closed area data management method, closed area recognition method, and computer readable recording medium recording closed area recognition program Expired - Lifetime JP3703257B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18170697A JP3703257B2 (en) 1997-06-23 1997-06-23 Closed area data management method, closed area recognition method, and computer readable recording medium recording closed area recognition program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18170697A JP3703257B2 (en) 1997-06-23 1997-06-23 Closed area data management method, closed area recognition method, and computer readable recording medium recording closed area recognition program

Publications (2)

Publication Number Publication Date
JPH1115959A JPH1115959A (en) 1999-01-22
JP3703257B2 true JP3703257B2 (en) 2005-10-05

Family

ID=16105442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18170697A Expired - Lifetime JP3703257B2 (en) 1997-06-23 1997-06-23 Closed area data management method, closed area recognition method, and computer readable recording medium recording closed area recognition program

Country Status (1)

Country Link
JP (1) JP3703257B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5103955B2 (en) 2007-03-09 2012-12-19 富士通株式会社 Image search method, apparatus and program

Also Published As

Publication number Publication date
JPH1115959A (en) 1999-01-22

Similar Documents

Publication Publication Date Title
US10302437B2 (en) Navigation device and navigation method
KR100971778B1 (en) Method, system and computer-readable recording medium for matching of panoramic image using graph structure
CN107329962A (en) Image retrieval data library generating method, the method and device of augmented reality
JPH05334438A (en) Method for mapping object position in camera image and method for identifying object
JPH01161481A (en) Display
US5815150A (en) Display apparatus
JP3978962B2 (en) Information search method and information search apparatus
JP3703257B2 (en) Closed area data management method, closed area recognition method, and computer readable recording medium recording closed area recognition program
JP4232055B1 (en) Map data processing program and computer-readable recording medium recording the program
CN106776745A (en) The processing method of business paper, the processing unit of business paper and terminal
JP6996200B2 (en) Image processing method, image processing device, and image processing program
JP2544330B2 (en) Management method of drawing data
CN112629546B (en) Position adjustment parameter determining method and device, electronic equipment and storage medium
JP2004177862A (en) Map location correction apparatus and method
JP2629578B2 (en) Map data maintenance system
JPS635795B2 (en)
JP2923707B2 (en) Drawing management device
JPH0896001A (en) Flowchart editing device
JPS61200586A (en) Display system for drawing
JP2004355505A (en) Spatiotemporal data management device and method
JPH10124674A (en) Map matching device
JP2016011891A (en) Data structure of guide data, information processor, guide system, guide data creation method, and computer program
CN116465392A (en) Method for grouping crossing lines, storage medium and device
JP2928513B2 (en) Structure and search method of drawing data
JPH02146681A (en) Contour line extracting system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040318

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050315

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050516

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: 20050628

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050719

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: 20080729

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090729

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090729

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100729

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100729

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110729

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110729

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120729

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130729

Year of fee payment: 8

EXPY Cancellation because of completion of term