JP2006195172A - Binary tree map data creating device, method and program thereof, recording medium and map output device - Google Patents

Binary tree map data creating device, method and program thereof, recording medium and map output device Download PDF

Info

Publication number
JP2006195172A
JP2006195172A JP2005006574A JP2005006574A JP2006195172A JP 2006195172 A JP2006195172 A JP 2006195172A JP 2005006574 A JP2005006574 A JP 2005006574A JP 2005006574 A JP2005006574 A JP 2005006574A JP 2006195172 A JP2006195172 A JP 2006195172A
Authority
JP
Japan
Prior art keywords
line
divided
degree
separation
point
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
JP2005006574A
Other languages
Japanese (ja)
Inventor
Hitoshi Nagamochi
仁 永持
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.)
Kyoto University
Original Assignee
Kyoto University
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 Kyoto University filed Critical Kyoto University
Priority to JP2005006574A priority Critical patent/JP2006195172A/en
Publication of JP2006195172A publication Critical patent/JP2006195172A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a map data creating device for creating a map data permitting to easily thin out an inner point data from a line, to provide a method therefor, a program therefor, and a recording medium therefor, and also to provide a map output device. <P>SOLUTION: The binary tree map data creating and outputting device 1 of this invention creates a binary tree map data comprising: each coordinate value of a starting point and an end-point in a divided line; the greatest alienation degree among alienation degrees of inner points in the divided line between the starting point and the end-point of this divided line; and parent-child relationship information representing a parent-child relationship which is a correspondent relation between this divided line and the 1st and 2nd dividing lines produced from this divided line, while being made correspondent to each other. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、地理情報システムの技術に関する。   The present invention relates to a technology of a geographic information system.

旅行や訪問等で地理空間を移動する場合、災害の被害予測や被害状況等を表示する場合、人口密度や土地利用実態等の統計結果を表示する場合、及び、避難経路やゴミの収集経路等の行動経路を表示する場合等、様々な目的で地図が利用されている。地図は、地理空間の構成要素を所定の規約(図式)に従って紙やディスプレイ等の2次元媒体に可視的に表示したものであるが、これらの利用目的に応じて地図を加工する必要がある。また、地理空間の構成要素は、自然な事象により、あるいは、人為的な事象により、時間経過と共に変化するものであることから、地図を更新する必要もある。   When traveling in a geography space, traveling, visiting, etc., displaying disaster damage predictions and damage status, displaying demographic density, land use statistics, etc., evacuation routes, garbage collection routes, etc. The map is used for various purposes such as displaying the action route. The map is a visual representation of the components of the geospatial space on a two-dimensional medium such as paper or a display according to a predetermined rule (schematic), and it is necessary to process the map according to the purpose of use. In addition, since the components of the geospatial change with the passage of time due to natural events or artificial events, it is also necessary to update the map.

このため、ディジタル形式で記述された地理情報を管理、分析及び表示するコンピュータシステムである地理情報システム(Geographic Information System、以下、「GIS」と略記する。)が開発され、実用化されている(例えば、非特許文献1)。GISにおいて、地理情報は、地理空間の構成要素(エンティティ(Entity)又は空間エンティティという。)の特性を記述した情報の総称であり、一般に、位置、形状、物理的又は社会的な特性である属性、機能、年月日及び相互関係を備えて構成される。   For this reason, a geographic information system (hereinafter abbreviated as “GIS”), which is a computer system that manages, analyzes, and displays geographic information described in a digital format, has been developed and put into practical use ( For example, Non-Patent Document 1). In GIS, geographic information is a general term for information describing the characteristics of geospatial components (referred to as entities or spatial entities), and is generally an attribute that is a location, shape, physical or social characteristic. Configured with functions, dates and interrelationships.

GISでは、例えば、地理情報を一定の規則に従って分類された複数の層(レイヤ)を重ね合わせることで地図が表現される。この地図を構成するレイヤは、点(ポイント)、線(ライン)、面(ポリゴン)でエンティティの位置と形状を表現する方法であるベクタ方式、地理空間を隙間なく分割して規則的なセルの集合でエンティティの位置と形状とを表現する方法であるラスタ方式、及び、規則的なセルの集合で表面を区分して表面を表現する方法であるTIN(Triangulated Irregular Network)方式のうちの何れかによって記述される。行政界を表示するレイヤ、道路を表示するレイヤ、水系を表示するレイヤ及び建物を表示するレイヤ等の、離散的なエンティティが集まるレイヤは、通常、ベクタ方式で記述され、地形等の連続的に変化する表面は、通常、ラスタ方式やTIN方式で記述される。   In GIS, for example, a map is expressed by superimposing a plurality of layers (layers) obtained by classifying geographic information according to a certain rule. The layers that make up this map are vector methods that represent the position and shape of entities by points (points), lines (lines), and faces (polygons). One of a raster method that is a method of expressing the position and shape of an entity by a set, and a TIN (Triangulated Irregular Network) method that is a method of expressing a surface by dividing the surface by a set of regular cells Described by. Layers where discrete entities gather, such as layers that display administrative boundaries, layers that display roads, layers that display water systems, and layers that display buildings, are usually described in vector format, and are continuously described as terrain. The changing surface is usually described by a raster method or a TIN method.

このベクタ方式では、地図上又は実地上のエンティティの輪郭がデータ化され、位置及び形状が図形データとしてデータ化され、属性、機能及び年月日が属性データとしてデータ化され、そして、相互関係がトポロジデータとしてデータ化される。この図形データにおいて、ポイントは、当該ポイントの座標値でデータ化され、ラインは、始点、ライン上の1又は複数の内点(中間点)及び終点の各座標値でデータ化され、そして、ポリゴンは、例えば、ポリゴンを構成するラインのデータでデータ化される。このように、ラインは、始点、内点及び終点の各座標値でデータ化されるため、曲線は、折れ線によって表現されることになる。   In this vector method, the contours of entities on the map or on the ground are converted into data, the position and shape are converted into graphic data, the attributes, functions, and dates are converted into attribute data. Data is generated as topology data. In this graphic data, the point is converted into data with the coordinate value of the point, the line is converted into data with the coordinate values of the start point, one or more internal points (intermediate points) on the line, and the end point, and the polygon For example, data is converted into data of lines constituting a polygon. As described above, since the line is converted into data by each coordinate value of the start point, the inner point, and the end point, the curve is expressed by a broken line.

GISの基本データ(メタデータ)となる基本的な地理情報は、日本では陸域について国土地理院が整備を行っており、海域について海上保安庁水路部が整備を行っている。例えば、国土地理院は、数値地図2500、数値地図10000総合及び数値地図25000等を発行している。
巌網林、「GISの原理と応用」、日科技連、2003年5月26日発行
Basic geographical information that is basic data (metadata) of GIS is maintained by the Geographical Survey Institute for land areas in Japan, and by the Coast Guard Department of Japan Coast Guard for sea areas. For example, the Geographical Survey Institute issues a numerical map 2500, a numerical map 10000 general, a numerical map 25000, and the like.
Namibayashi, “The Principles and Applications of GIS”, Nikka Giren, May 26, 2003

ところで、地図は、上述したように様々な目的に利用されており、その利用目的に応じて地理情報を取捨選択する必要がある。即ち、利用目的に応じて、データ化されている総ての情報を盛り込んで地図を作成する必要もあるし、また、データ化されている総ての情報のうち一部の情報のみを盛り込んで地図を作成する必要もある。   Incidentally, the map is used for various purposes as described above, and it is necessary to select geographic information according to the purpose of use. In other words, depending on the purpose of use, it is necessary to create a map that includes all information that has been converted into data, and also includes only a portion of the information that has been converted into data. You also need to create a map.

また、地図には、周知のように大縮尺や小縮尺等の様々な縮尺があり、この縮尺に応じて、データ化されている総ての情報を盛り込んで地図を作成する必要もあるし、また、データ化されている総ての情報のうち一部の情報のみを盛り込んで地図を作成する必要もある。   In addition, there are various scales such as a large scale and a small scale as is well known, and it is necessary to create a map by incorporating all the information that has been converted into data according to this scale, In addition, it is necessary to create a map that includes only a part of the information that has been converted into data.

さらに、地図を表示するディスプレイには、周知のように様々なサイズや解像度があり、このサイズや解像度に応じて、データ化されている総ての情報を盛り込んで地図を表示する必要もあるし、また、データ化されている総ての情報のうち一部の情報のみを盛り込んで地図を作成する必要もある。   Furthermore, there are various sizes and resolutions of displays that display maps, and it is necessary to display maps with all the information that has been converted into data according to these sizes and resolutions. In addition, it is necessary to create a map that includes only a part of the information that has been converted into data.

このような場合、従来では、人手で地理情報を取捨選択することによって、利用目的に応じた、縮尺に応じた、あるいは、サイズや解像度に応じた地図を作成していた。そのため、地図の作成及び保守(メンテナンス)に多大な時間と手間を要していた。   In such a case, conventionally, a map according to the purpose of use, according to the scale, or according to the size or resolution has been created by manually selecting geographic information. Therefore, a great deal of time and effort is required for creating and maintaining the map (maintenance).

本発明は、上述の事情に鑑みて為された発明であり、ベクタ方式のラインデータから内点のデータを簡単に間引き得る地図データを作成する地図データ作成装置、地図データ作成方法、地図データ作成プログラム及び地図データ作成プログラムを記録したコンピュータに読取り可能な記録媒体を提供することを目的とする。そして、本発明に係る地図データからデータを間引いた地図を出力することができる地図出力装置を提供することを目的とする。さらに、ベクタ方式のラインデータから内点のデータを簡単に間引き得る地図データを記録したコンピュータに読取り可能な記録媒体を提供することを目的とする。   The present invention has been made in view of the above-described circumstances, and is a map data creation device, map data creation method, and map data creation for creating map data that can easily thin out the internal point data from vector-type line data. An object of the present invention is to provide a computer-readable recording medium in which a program and a map data creation program are recorded. And it aims at providing the map output apparatus which can output the map which thinned data from the map data which concerns on this invention. It is another object of the present invention to provide a computer-readable recording medium in which map data capable of easily thinning out internal point data from vector line data is recorded.

上述の目的を達成するために、本発明の一態様に係る二分木地図データ作成装置は、被分割ラインにおける始点及び終点の各座標値と、該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度と、該被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記第1及び第2分割ラインが、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成され、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における当該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、第1及び第2分割ラインのうちの内点を持たない分割ラインを除く分割ラインとである二分木地図データを作成することを特徴とする。   In order to achieve the above object, a binary tree map data creation device according to an aspect of the present invention provides each coordinate value of a start point and an end point of a divided line, and the covered point between the start point and the end point of the divided line. The maximum separation degree among the separation degrees of the inner points on the dividing line and the parent-child relationship which is a correspondence relation between the divided line and the first and second dividing lines generated from the divided line. It is associated with parent-child relationship information, and the degree of separation is determined from the line segment connecting the start point and end point of the split line between the start point and end point of the split line and the inner point on the split line. The first and second divided lines are generated by dividing the divided line into two at the inner point having the maximum degree of separation, and the divided line is a starting point. And each coordinate value of the end point and the start point And a line that can be represented by a line on the map with the coordinate value of the internal point on the line between the end points and the division line excluding the division line that does not have the internal point of the first and second division lines And generating binary tree map data.

そして、本発明の他の一態様に係る二分木地図データ作成装置は、被分割ラインにおける始点及び終点の各座標値と、親離間度として該被分割ラインを生成する際に用いられた離間度と、子離間度として該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成される総ての第1及び第2分割ラインであって、前記親離間度及び子離間度が、被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係を親子関係とした場合に、前記ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換えた値である二分木地図データを作成することを特徴とする。   Then, the binary tree map data creation device according to another aspect of the present invention includes the coordinate values of the start point and the end point of the divided line and the separation degree used when generating the divided line as the parent separation degree. And the maximum separation degree of the separation points of the inner points on the divided line between the start point and the end point of the divided line as the child separation degree. A scale representing how far an inner point on the split line between the start point and end point of the split line is from a line segment connecting the start point and end point of the split line, and the split line is Divided by a line that can be represented by a line on a map with each coordinate value of the start point and end point and the coordinate value of the inner point on the line between the start point and end point, and the inner point with the maximum degree of separation Generated by dividing a line into two All of the first and second divided lines, wherein the parent separation degree and the child separation degree indicate a correspondence relationship between the divided line and the first and second divided lines generated from the divided line. When the separation degree used in dividing the divided line into the first and second divided lines from the parent to the descendant from the line to the divided line having no interior point is sequentially traced, Binary tree map data which is a value replaced with the maximum value of the degree of separation on the descendant side including the degree of separation when dividing is created.

また、本発明の他の一態様に係る、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備え地図上に線で表されるラインの地図データを二分木地図データに変換する二分木地図データ作成装置は、被分割ラインにおける始点及び終点を結ぶ線分から該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点がどれだけ離れているかを表す尺度である離間度を演算する離間度演算部と、前記離間度演算部で演算した離間度のうちの最大の離間度を持つ内点で前記被分割ラインを2個の第1及び第2分割ラインに分割する被分割ライン分割処理部と、前記ラインを最初の被分割ラインとすると共に前記被分割ライン分割処理部で分割することによって生成された分割ラインを新たな被分割ラインとすることで、分割ラインに内点が無くなるまで順次に前記ラインを分割するライン分割処理部と、前記ライン分割処理部で被分割ラインとされた前記ライン及び分割ラインにおける始点及び終点の各座標値と、前記被分割ライン分割処理部で前記被分割ラインを分割する際に用いた前記最大の離間度と、前記被分割ライン分割処理部で生成された第1及び第2分割ラインと前記被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える前記二分木地図データを作成する作成処理部とを備えることを特徴とする。   Further, according to another aspect of the present invention, each coordinate value of the start point and the end point and the coordinate value of the inner point on the line between the start point and the end point are provided, and a line represented by a line on the map A binary tree map data creation device that converts map data into binary tree map data includes an internal point on the split line between the start point and end point of the split line from a line segment connecting the start point and end point of the split line. A separation degree computing unit that computes a separation degree that is a measure representing how far is separated, and an inner point that has the largest separation degree among the separation degrees calculated by the separation degree computing unit, A divided line division processing unit that divides the first and second divided lines, and a new divided line generated by dividing the line by the divided line division processing unit as the first divided line. Split line The line division processing unit that sequentially divides the line until there is no inner point on the division line, and the coordinate values of the start point and the end point of the line and the division line that are the divided lines by the line division processing unit The maximum degree of separation used when the divided line is divided by the divided line division processing unit, the first and second divided lines generated by the divided line division processing unit, and the divided And a creation processing unit for creating the binary tree map data provided with the parent-child relationship information representing the parent-child relationship that is a correspondence relationship with the line.

さらに、上述の二分木地図データ作成装置において、前記被分割ライン分割処理部で前記被分割ラインを分割する際に用いた前記最大の離間度を子離間度とすると共に前記被分割ラインを生成する際に用いられた離間度を親離間度として、前記親離間度及び子離間度を、前記ラインから前記内点を持たない分割ラインまでの親から子孫まで前記被分割ラインを前記第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換える置換処理部をさらに備え、前記作成処理部は、前記ライン及び総ての分割ラインにおける始点及び終点の各座標値と、前記置換処理部で処理された親離間度と、前記置換処理部で処理された子離間度とを対応付けて備える前記二分木地図データを作成することを特徴とする。   Furthermore, in the above binary tree map data creation device, the split line is generated by using the maximum separation degree used when the divided line division processing unit divides the divided line as a child separation degree. The separation degree used at the time is defined as the parent separation degree, and the parent separation degree and the child separation degree are defined as the first and second divided lines from the parent to the descendants from the line to the division line having no internal point. And further comprising a replacement processing unit that, when the separation degree used for dividing the line into two divided lines is sequentially traced, is replaced with the maximum value of the separation degree on the descendant side including the separation degree for the division. The processing unit associates the coordinate values of the start point and the end point of the line and all the divided lines with the parent separation degree processed by the replacement processing unit and the child separation degree processed by the replacement processing unit. Prepare for Characterized in that it created a minute tree map data.

そして、本発明の他の一態様に係る、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備え地図上に線で表されるラインの地図データを二分木地図データに変換する二分木地図データ作成方法、コンピュータに実行させるための二分木地図データ作成プログラム、及び、コンピュータに実行させるための二分木地図データ作成プログラムを記録した記録媒体における該二分木地図データ作成プログラムは、被分割ラインにおける始点及び終点を結ぶ線分から該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点がどれだけ離れているかを表す尺度である離間度を演算する離間度演算ステップと、前記離間度演算ステップで演算した離間度のうちの最大の離間度を持つ内点で前記被分割ラインを2個の第1及び第2分割ラインに分割する被分割ライン分割処理ステップと、前記ラインを最初の被分割ラインとすると共に前記被分割ライン分割処理ステップで分割することによって生成された分割ラインを新たな被分割ラインとすることで、分割ラインに内点が無くなるまで順次に前記ラインを分割するライン分割処理ステップと、前記ライン分割処理ステップで被分割ラインとされた前記ライン及び分割ラインにおける始点及び終点の各座標値と、前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度と、前記被分割ライン分割処理ステップで生成された第1及び第2分割ラインと前記被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える前記二分木地図データを作成する作成処理ステップとを備えることを特徴とする。   And, according to another aspect of the present invention, each coordinate value of the starting point and the ending point and the coordinate value of the inner point on the line between the starting point and the ending point, and a line represented by a line on the map In a binary tree map data creation method for converting map data into binary tree map data, a binary tree map data creation program to be executed by a computer, and a recording medium recording the binary tree map data creation program to be executed by a computer The binary tree map data creation program is a scale representing how far an inner point on the divided line between the start point and the end point of the divided line is separated from a line segment connecting the start point and the end point of the divided line. A separation degree calculating step for calculating a separation degree, and an inner point having a maximum separation degree among the separation degrees calculated in the separation degree calculation step. Divided line division processing step for dividing IN into two first and second divided lines, and a division generated by dividing the line into the first divided line and dividing in the divided line division processing step By setting the line as a new divided line, a line division processing step that sequentially divides the line until there is no inner point in the divided line, and the line and the divided line that are set as the divided lines in the line division processing step Each coordinate value of the start point and the end point in the above, the maximum degree of separation used when the divided line is divided in the divided line division processing step, and the first and second generated in the divided line division processing step The binary tree ground provided in association with parent-child relationship information representing a parent-child relationship that is a correspondence relationship between the second divided line and the divided line. Characterized in that it comprises a creation process step of creating the data.

また、上述の二分木地図データ作成方法、コンピュータに実行させるための二分木地図データ作成プログラム、及び、コンピュータに実行させるための二分木地図データ作成プログラムを記録した記録媒体における該二分木地図データ作成プログラムにおいて、前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度を子離間度とすると共に前記被分割ラインを生成する際に用いられた離間度を親離間度として、前記親離間度及び子離間度を、前記ラインから前記内点を持たない分割ラインまでの親から子孫まで前記被分割ラインを前記第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換える置換処理ステップをさらに備え、前記作成処理ステップは、前記ライン及び総ての分割ラインにおける始点及び終点の各座標値と、前記置換処理ステップで処理された親離間度と、前記置換処理ステップで処理された子離間度とを対応付けて備える前記二分木地図データを作成することを特徴とする。   Further, the above binary tree map data creation method, binary tree map data creation program to be executed by a computer, and binary tree map data creation in a recording medium recording the binary tree map data creation program to be executed by a computer In the program, the maximum separation degree used when dividing the divided line in the divided line division processing step is set as a child separation degree, and the separation degree used when generating the divided line is set as a parent degree. As the degree of separation, the parent separation degree and the child separation degree are used when dividing the divided line into the first and second divided lines from the parent to the descendant from the line to the dividing line having no inner point. When the separation degree is sequentially traced, the replacement processing step is replaced with the maximum value of the separation degree on the descendant side, including the separation degree at the time of the division. The creation processing step is processed in the replacement processing step and the coordinate values of the start point and the end point in the line and all the divided lines, the parent separation degree processed in the replacement processing step, and the replacement processing step. The binary tree map data including the child separation degree associated with each other is created.

さらに、本発明の他の一態様に係る、被分割ラインにおける始点及び終点の各座標値と、該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度と、該被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記第1及び第2分割ラインが、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成され、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における当該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、第1及び第2分割ラインのうちの内点を持たない分割ラインを除く分割ラインとである二分木地図データから、所定の内点を間引いて出力する地図出力装置は、前記ラインの内点を間引く度合いである間引き度を入力するための入力部と、前記ラインから内点を持たない分割ラインまでの親から子孫まで前記被分割ラインの前記最大の離間度と前記入力部で入力された間引き度とを順次に比較し、比較した結果、前記間引き度以下の前記最大の離間度を持つ被分割ラインにおける始点及び終点の座標値を取得する出力地図作成処理部と、前記出力地図作成処理部で取得した前記始点及び終点の座標値を結ぶ線分を出力する出力部とを備えることを特徴とする。   Furthermore, according to another aspect of the present invention, each of the coordinate values of the start point and the end point of the divided line and the degree of separation of the inner point on the divided line between the start point and the end point of the divided line A maximum degree of separation, and parent-child relationship information representing a parent-child relationship that is a correspondence relationship between the divided line and the first and second divided lines generated from the divided line, The degree is a scale representing how far the inner point on the split line between the start point and end point of the split line is away from the line segment connecting the start point and end point of the split line, The first and second divided lines are generated by dividing the divided line into two at the inner point having the maximum degree of separation, and the divided line has the coordinate values of the start point and the end point and the start point and the end point. Seat of the inner point on the line in between A predetermined internal point from binary tree map data that is a line that can be represented by a line on a map having a value and a divided line that does not have an internal point of the first and second divided lines The map output device for thinning out and outputting outputs an input unit for inputting a thinning degree that is a degree of thinning out the inner point of the line, and the divided line from a parent to a descendant from the line to a dividing line having no inner point. As a result of sequentially comparing the maximum degree of separation and the thinning degree input at the input unit, the coordinate values of the start point and the end point of the divided line having the maximum degree of separation equal to or less than the thinning degree are obtained. An output map creation processing unit to be acquired, and an output unit that outputs a line segment connecting the coordinate values of the start point and the end point acquired by the output map creation processing unit are provided.

そして、本発明の他の一態様に係る、被分割ラインにおける始点及び終点の各座標値と、親離間度として該被分割ラインを生成する際に用いられた離間度と、子離間度として該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成される総ての第1及び第2分割ラインであって、前記親離間度及び子離間度が、被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係を親子関係とした場合に、前記ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換えた値である二分木地図データから、所定の内点を間引いて出力する地図出力装置は、前記ラインの内点を間引く度合いである間引き度を入力するための入力部と、前記被分割ラインの前記親離間度及び前記子離間度と前記入力部で入力された間引き度とを順次に比較し、比較した結果、前記間引き度より大きい前記親離間度を持ち、かつ、前記間引き度以下の前記子離間度を持つ被分割ラインにおける始点及び終点の座標値を取得する出力地図作成処理部と、前記出力地図作成処理部で取得した前記始点及び終点の座標値を結ぶ線分を出力する出力部とを備えることを特徴とする。   Then, according to another aspect of the present invention, the coordinate values of the start point and end point of the divided line, the separation degree used when generating the divided line as the parent separation degree, and the child separation degree as the child separation degree A maximum degree of separation of the inner points on the line to be divided between the start point and the end point of the line to be divided. Is a scale representing how far an inner point on the split line between them is from a line segment connecting the start point and the end point of the split line, and the split line has each coordinate value of the start point and the end point The line to be divided is divided into two by a line that can be represented by a line on the map comprising the coordinate value of the inner point on the line between the start point and the end point, and the inner point having the maximum degree of separation All the first and second divisions generated by And when the correspondence between the divided line and the first and second divided lines generated from the divided line is a parent-child relationship, When the separation degree used to divide the divided line into the first and second division lines from the parent to the descendant up to the division line having no point is sequentially traced, the descendants including the separation degree when the division is performed A map output device that thins out and outputs a predetermined inner point from binary tree map data that is a value replaced with the maximum value of the side separation degree inputs a thinning degree that is a degree of thinning out the inner point of the line The parent separation degree greater than the thinning degree as a result of sequentially comparing and comparing the parent separation degree and the child separation degree of the divided line with the thinning degree input at the input unit And the thinning-out degree An output map creation processing unit that obtains the coordinate values of the start point and the end point in the divided line having the child separation below, and a line segment that connects the coordinate values of the start point and the end point obtained by the output map creation processing unit And an output unit.

また、上述の地図出力装置において、前記二分木地図データは、所定の間隔が空けられて増加していく複数の整数に所定の規則で前記親離間度及び前記子離間度をそれぞれ丸めた丸め親離間度及び丸め子離間度を対応付けてさらに備え、前記出力地図作成処理部は、前記被分割ラインの前記丸め親離間度及び前記丸め子離間度と前記入力部で入力された間引き度を前記複数の整数に前記所定の規則で丸めた丸め間引き度とを用いて前記所定の規則に応じた等式により前記始点及び終点の座標値を取得すべき被分割ラインを判別することを特徴とする。   In the map output device described above, the binary tree map data includes a rounding parent obtained by rounding the parent separation degree and the child separation degree according to a predetermined rule to a plurality of integers that increase with a predetermined interval. The output map creation processing unit further includes a separation degree and a rounding element separation degree in association with each other, and the output map creation processing unit calculates the rounding parent separation degree and the rounding element separation degree of the divided line and the thinning degree input by the input unit. The divided line from which the coordinate values of the start point and the end point are to be acquired is determined by an equation according to the predetermined rule using a rounding thinning degree rounded to a plurality of integers according to the predetermined rule. .

さらに、これら上述の地図出力装置において、前記入力部は、前記出力部に出力すべき矩形の出力範囲がさらに入力され、前記出力地図作成処理部は、前記入力部で入力された矩形の出力範囲に一部又は全部がかかるラインにおける被分割ラインを前記比較の対象とすることを特徴とする。   Furthermore, in these map output devices described above, the input unit further receives a rectangular output range to be output to the output unit, and the output map creation processing unit receives the rectangular output range input by the input unit. In this case, the line to be divided in a line that partially or entirely includes is used as the comparison target.

そして、これら上述の地図出力装置において、前記二分木地図データは、前記二分木地図データに設けられたxy座標系において、一定間隔の格子を備える複数の層であって各層間で該格子の間隔が所定の間隔を空けられて増加していく複数の層における該格子点の座標値に所定の規則で前記被分割ラインの始点及び終点の座標値を丸めた丸め座標値を対応付けてさらに備え、前記入力部は、前記出力部に出力すべき矩形の出力範囲がさらに入力され、前記出力地図作成処理部は、前記格子によって形成される格子領域のうちの前記入力部で入力された矩形の出力範囲に一部又は全部がかかる格子領域における格子点の座標値に丸められた丸め座標値を持つ被分割ラインを前記比較の対象とすることを特徴とする。   In the above-described map output device, the binary tree map data is a plurality of layers having lattices with a constant interval in the xy coordinate system provided for the binary tree map data, and the interval of the lattices between the layers. Is associated with rounded coordinate values obtained by rounding the coordinate values of the start point and end point of the divided line according to a predetermined rule to the coordinate values of the grid points in a plurality of layers that increase with a predetermined interval. The input unit further receives a rectangular output range to be output to the output unit, and the output map creation processing unit receives the rectangular input from the input unit of the grid area formed by the grid. A division line having a rounded coordinate value rounded to a coordinate value of a grid point in a grid area in which a part or all of the output range is applied is set as the comparison target.

また、本発明の他の一態様に係るコンピュータに読み取り可能な記録媒体は、被分割ラインにおける始点及び終点の各座標値と、該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度と、該被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記第1及び第2分割ラインが、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成され、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における当該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、第1及び第2分割ラインのうちの内点を持たない分割ラインを除く分割ラインとである二分木地図データが記録されていることを特徴とする。   In addition, a computer-readable recording medium according to another aspect of the present invention includes a coordinate value of a start point and an end point of a divided line and the divided line between the start point and the end point of the divided line. Parent-child relationship information representing a parent-child relationship that is a correspondence relationship between the split line and the first and second split lines generated from the split line; The degree of separation indicates how far the inner point on the split line between the start point and end point of the split line is away from the line segment connecting the start point and end point of the split line The first and second divided lines are generated by dividing the divided line into two at the inner point having the maximum degree of separation, and the divided line is represented by each of the start point and the end point. Coordinate values and the start and end points A line that can be represented by a line on the map with the coordinate value of the inner point on the line in between, and a dividing line excluding the dividing line that does not have an inner point among the first and second dividing lines Certain binary tree map data is recorded.

さらに、本発明の他の一態様に係るコンピュータに読み取り可能な記録媒体は、被分割ラインにおける始点及び終点の各座標値と、親離間度として該被分割ラインを生成する際に用いられた離間度と、子離間度として該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成される総ての第1及び第2分割ラインであって、前記親離間度及び子離間度が、被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係を親子関係とした場合に、前記ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換えた値である二分木地図データが記録されていることを特徴とする。   Furthermore, the computer-readable recording medium according to another aspect of the present invention includes a start point and an end point coordinate value of a divided line and a separation used when the divided line is generated as a parent separation degree. And the maximum degree of separation among the degree of separation of the inner points on the divided line between the start point and the end point of the divided line as the child separation degree, A scale representing how far an inner point on the split line between the start point and end point of the split line is away from a line segment connecting the start point and end point of the split line, and the split line is A line that can be represented by a line on the map comprising the coordinate values of the start point and end point and the coordinate value of the inner point on the line between the start point and end point, and the inner point having the maximum degree of separation. By dividing the dividing line into two All of the first and second divided lines generated in the above-mentioned manner, the parent separation degree and the child separation degree correspond to the divided line and the first and second divided lines generated from the divided line. When the relationship is a parent-child relationship, the degree of separation used to divide the divided line into the first and second divided lines from the parent to the descendant from the line to the divided line having no inner point is sequentially traced. In this case, binary tree map data that is a value replaced with the maximum value of the degree of separation on the descendant side including the degree of separation at the time of the division is recorded.

本発明に係る二分木地図データ作成装置、該方法、該方法のプログラム、及び記録媒体に記録された該方法のプログラムは、被分割ラインにおける始点及び終点の各座標値と、該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度と、該被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える二分木地図データや、被分割ラインにおける始点及び終点の各座標値と、親離間度として該被分割ラインを生成する際に用いられた離間度と、子離間度として該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度とを対応付けて備える二分木地図データを作成する。このため、本発明に係る地図出力装置は、この作成された二分木地図データや記録媒体に記憶されている二分木地図データを用いて、表示する地図の範囲、縮尺、または、解像度に応じて、ラインから内点のデータを間引いたデータを高速に取り出すことができ、高速に地図を作成することができる。   The binary tree map data creation device, the method, the program of the method, and the program of the method recorded on a recording medium according to the present invention include the coordinate values of the start point and the end point of the divided line, and the divided line The maximum degree of separation of the inner points on the divided line between the start point and the end point, and the first and second divided lines generated from the divided line and the divided line Binary tree map data provided in association with parent-child relationship information representing a parent-child relationship that is a correspondence relationship, each coordinate value of a start point and an end point of a divided line, and used when generating the divided line as a parent separation degree A binary tree map having a degree of separation and a maximum degree of separation of inner points on the divided line between the start point and the end point of the divided line as child separation degrees in association with each other Create data . For this reason, the map output device according to the present invention uses the created binary tree map data or the binary tree map data stored in the recording medium, according to the range, scale, or resolution of the map to be displayed. The data obtained by thinning out the data of the inner point from the line can be taken out at high speed, and the map can be created at high speed.

以下、本発明に係る実施形態を図面に基づいて説明する。なお、各図において同一の符号を付した構成は、同一の構成であることを示し、その説明を省略する。
(第1の実施形態の構成)
第1の実施形態における二分木地図データ作成表示装置は、元地図データから二分木地図データを作成する場合には、ラインを最大離間度Smaxの内点で第1及び第2分割ラインに分割する二分木処理を行い、この分割した第1及び第2分割ラインを新たな二分木処理の対象とするラインとして二分木処理を再帰的に繰り返すことにより、ツリー構造の二分木地図データを作成し、そして、二分木地図データに基づいて間引き度に応じた地図を出力する場合には、二分木地図データのツリー構造における各ラインデータに対し、ラインの離間度と間引き度とを比較してラインの離間度が間引き度以下である場合には当該ラインを出力する間引き処理をツリー構造の根(ルート)から末端に向けて深さ優先探索を行うことにより、間引き度に応じた地図を出力するものである。
Embodiments according to the present invention will be described below with reference to the drawings. In addition, the structure which attached | subjected the same code | symbol in each figure shows that it is the same structure, The description is abbreviate | omitted.
(Configuration of the first embodiment)
When creating binary tree map data from original map data, the binary tree map data creation / display apparatus in the first embodiment divides a line into first and second divided lines at the inner point of the maximum separation degree Smax. By performing binary tree processing and recursively repeating the binary tree processing using the divided first and second divided lines as new binary tree processing targets, binary tree map data having a tree structure is created, When outputting a map according to the thinning degree based on the binary tree map data, the line separation degree and the thinning degree are compared with respect to each line data in the tree structure of the binary tree map data. When the degree of separation is equal to or less than the degree of thinning, the thinning processing for outputting the line is performed by depth-first search from the root (root) to the end of the tree structure. Flip was and outputs the map.

図1は、第1の実施形態に係る二分木地図データ作成出力装置の構成を示すブロック図である。図1において、二分木地図データ作成出力装置1は、例えば、演算処理部11と、入力部12と、出力部13と、記憶部14と、バス15とを備えて構成される。   FIG. 1 is a block diagram showing a configuration of a binary tree map data creation / output device according to the first embodiment. In FIG. 1, the binary tree map data creation / output device 1 includes, for example, an arithmetic processing unit 11, an input unit 12, an output unit 13, a storage unit 14, and a bus 15.

入力部12は、二分木地図データの作成開始を指示する作成開始コマンドや地図の出力開始を指示する出力開始コマンド等の各種コマンド、及び、元地図データや間引き度の値等の各種データを二分木地図データ作成出力装置1に入力する機器であり、例えば、キーボードやマウス等である。元地図データは、本発明に係る二分木地図データを作成するための基礎となる、ベクタ方式におけるラインのデータ(ラインデータ)から構成される地図データであり、例えば、上述した国土地理院発行の数値地図データが利用される。ラインは、道路、水道管、下水路、川等の水系、等高線及び水深線等の離散的なエンティティを表すものである。ラインが閉ループを構成する場合でも当該ラインを複数のラインで表現することによって適用可能である。間引き度Tは、二分木地図データに基づく地図を生成する場合においてラインの内点を間引く度合いであり、間引き度Tは、後述から分かるように、元ラインデータにおける内点のデータを採用するか否かを判別する閾値となる。出力部13は、入力部12から入力されたコマンドやデータ、及び、本二分木地図データ作成出力装置1によって作成された二分木地図データのファイル名や二分木地図データに基づく間引き度Tに応じた地図等を出力する機器であり、例えばCRTディスプレイ、LCD、有機ELディスプレイ又はプラズマディスプレイ等の表示装置やプリンタ等の印字装置等である。   The input unit 12 bisects various commands such as a creation start command for instructing the start of creation of binary tree map data and an output start command for instructing the start of map output, and various data such as the original map data and the value of the thinning degree. A device that inputs to the tree map data creation / output device 1, such as a keyboard or a mouse. Original map data is map data composed of line data (line data) in a vector system, which is the basis for creating binary tree map data according to the present invention. Numerical map data is used. Lines represent discrete entities such as roads, water pipes, sewers, rivers and other water systems, contour lines and depth lines. Even when a line constitutes a closed loop, it can be applied by expressing the line by a plurality of lines. The thinning-out degree T is the degree of thinning out the inner points of the line when generating a map based on the binary tree map data. As will be described later, the thinning-out degree T uses the data of the inner points in the original line data. It becomes a threshold value for determining whether or not. The output unit 13 corresponds to the command and data input from the input unit 12 and the thinning degree T based on the file name of the binary tree map data generated by the binary tree map data generation output device 1 and the binary tree map data. For example, a display device such as a CRT display, LCD, organic EL display or plasma display, a printing device such as a printer, or the like.

記憶部14は、元地図データから二分木地図データを作成する本発明に係る二分木地図データ作成プログラムを記憶する二分木地図データ作成プログラム記憶部31と、二分木地図データに基づく間引き度Tに応じた地図を作成してこの作成した地図を出力部13に出力する出力地図作成プログラムを記憶する出力地図作成プログラム記憶部32と、元地図データを記憶する元地図データ記憶部33と、本発明に係る二分木地図データを記憶する二分木地図データ記憶部34とを備え、各種プログラム及び各種プログラムの実行中に生じるデータ等の各種データを記憶する。記憶部14は、例えば、演算処理部11の所謂ワーキングメモリとなるRAM(Random Access Memory)等の揮発性の記憶素子、及び、ROM(Read Only Memory)や書換え可能なEEPROM(Electrically Erasable Programmable Read Only Memory)等の不揮発性の記憶素子を備えて構成される。   The storage unit 14 includes a binary tree map data creation program storage unit 31 that stores a binary tree map data creation program according to the present invention that creates binary tree map data from original map data, and a thinning degree T based on the binary tree map data. An output map creation program storage unit 32 that stores an output map creation program that creates a corresponding map and outputs the created map to the output unit 13, an original map data storage unit 33 that stores original map data, and the present invention A binary tree map data storage unit 34 for storing the binary tree map data according to the above, and stores various programs and various data such as data generated during the execution of the various programs. The storage unit 14 includes, for example, a volatile storage element such as a RAM (Random Access Memory) serving as a so-called working memory of the arithmetic processing unit 11, and a ROM (Read Only Memory) or a rewritable EEPROM (Electrically Erasable Programmable Read Only). Non-volatile memory elements such as “Memory”.

演算処理部11は、例えば、マイクロプロセッサ及びその周辺回路等を備えて構成され、機能的に、二分木地図データ作成処理部21と、出力地図作成処理部22とを備えると共に、制御プログラムに従い入力部12、出力部13及び記憶部14を当該機能に応じてそれぞれ制御する。   The arithmetic processing unit 11 includes, for example, a microprocessor and its peripheral circuits, and functionally includes a binary tree map data creation processing unit 21 and an output map creation processing unit 22, and inputs according to a control program. The unit 12, the output unit 13, and the storage unit 14 are controlled according to the functions.

二分木地図データ作成処理部21は、後述の動作によって元地図データから第1の実施形態に係る二分木地図データを作成するものであり、本実施形態では、被分割ラインにおける始点及び終点の各座標値と、この被分割ラインの始点及び終点の間における被分割ライン上に在る内点の離間度Sのうちの最大の離間度Smaxと、この最大の離間度Smaxを持つ内点で被分割ラインを2個に分割することによって生成された第1及び第2分割ラインと被分割ラインとの親子関係を表す親子関係情報とを対応付けて備え、この被分割ラインが、ライン及び被分割ラインを最大の離間度Smaxを持つ内点で2個に分割することによって生成される第1及び第2分割ラインのうちの内点を持たない分割ラインを除く分割ラインである第1の実施形態に係る二分木地図データを作成するものである。より具体的には、二分木地図データ作成処理部21は、例えば、本実施形態では、離間度Sを演算する離間度演算部211と、離間度演算部211で演算した離間度Sのうちの最大の離間度Smaxを持つ内点で被分割ラインを2個の第1及び第2分割ラインに分割する被分割ライン分割処理部212と、ラインを最初の被分割ラインとすると共に被分割ライン分割処理部で分割することによって生成された分割ラインを新たな被分割ラインとすることで、分割ラインに内点が無くなるまで順次にラインを分割するライン分割処理部213と、ライン分割処理部213で被分割ラインとされた被分割ラインにおける始点及び終点の各座標値と、被分割ライン分割処理部212で被分割ラインを分割する際の最大の離間度Smaxと、被分割ライン分割処理部212で生成された第1及び第2分割ラインと被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える二分木地図データを作成する作成処理部214とを備える。   The binary tree map data creation processing unit 21 creates binary tree map data according to the first embodiment from the original map data by the operation described later. In this embodiment, each of the start point and the end point in the divided line The maximum separation degree Smax of the coordinate values and the separation degree S of the inner point on the divided line between the start point and the end point of the divided line, and the inner point having the maximum separation degree Smax. The first and second divided lines generated by dividing the divided line into two and the parent-child relationship information representing the parent-child relationship between the divided lines are provided in association with each other. 1st execution which is a division line except a division line which does not have an internal point among the 1st and 2nd division lines generated by dividing a line into two by an internal point with the maximum separation degree Smax It is intended to create a binary tree map data according to the state. More specifically, for example, in this embodiment, the binary tree map data creation processing unit 21 includes a separation degree calculation unit 211 that calculates a separation degree S and a separation degree S calculated by the separation degree calculation unit 211. A divided line division processing unit 212 that divides the divided line into two first and second divided lines at the inner point having the maximum separation degree Smax, and sets the line as the first divided line and the divided line division A line division processing unit 213 that sequentially divides a line until there is no inner point in the division line by using the division line generated by dividing by the processing unit as a new divided line, and a line division processing unit 213 The coordinate values of the start point and the end point of the divided line that is the divided line, the maximum separation degree Smax when the divided line is divided by the divided line division processing unit 212, and the divided line A creation processing unit 214 that creates binary tree map data that includes the parent-child relationship information that represents the parent-child relationship that is the correspondence relationship between the first and second divided lines and the line to be divided, generated by the second partition processing unit 212. With.

ここで、ラインの始点及び終点とその間に位置する内点とについて考えると、仮に内点が総て始点及び終点を結ぶ線分上に乗っていれば、内点を総て間引いて、つまり、内点を総て採用することなく始点、終点及びこれら両点を結ぶ線分でラインを描画したとしても、始点から終点に向けて内点を順に線分で結んでラインを描画した場合と見た目は、同一である。従って、内点を間引くか否かは、始点及び終点を結ぶ線分と当該内点と離れ度合いによって判定することができる。そこで、本発明では、始点及び終点を結ぶ線分から各内点がどれだけ離れているかを表す尺度として離間度Sが定義される。例えば、本実施形態では、離間度Sは、簡易に演算可能であるという観点から、内点から始点及び終点を通る直線までの距離Dである。   Here, considering the starting point and ending point of the line and the inner point located between them, if all the inner points are on the line segment connecting the starting point and the ending point, all the inner points are thinned out, that is, Even if the line is drawn with the start point, the end point, and the line connecting these points without adopting all the internal points, it looks as if the line is drawn by connecting the internal points in order from the start point to the end point. Are identical. Therefore, whether or not to thin out the inner point can be determined by the line segment connecting the start point and the end point and the degree of separation from the inner point. Therefore, in the present invention, the degree of separation S is defined as a measure representing how far each internal point is away from the line segment connecting the start point and the end point. For example, in the present embodiment, the separation degree S is a distance D from the inner point to a straight line passing through the start point and the end point from the viewpoint that it can be easily calculated.

出力地図作成処理部22は、後述の動作によって二分木地図データに基づく間引き度Tに応じた地図を作成してこの作成した地図を出力部13に出力するものであり、本実施形態では、ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインの最大の離間度Smaxと入力部12で入力された間引き度Tとを順次に比較し、比較した結果、間引き度T以下の最大の離間度Smaxを持つ被分割ラインにおける始点及び終点の各座標値を取得し、出力部13に出力するものである。   The output map creation processing unit 22 creates a map corresponding to the thinning degree T based on the binary tree map data by the operation described later, and outputs the created map to the output unit 13. In the present embodiment, the output map creation processing unit 22 The maximum separation degree Smax of the line to be divided from the parent to the descendant having no interior point to the descendant line is sequentially compared with the thinning degree T input at the input unit 12, and as a result of comparison, the thinning degree T or less The coordinate values of the start point and end point in the divided line having the maximum separation degree Smax are acquired and output to the output unit 13.

これら演算処理部11、入力部12、出力部13及び記憶部14は、データを相互に交換することができるようにバス15でそれぞれ接続される。   The arithmetic processing unit 11, the input unit 12, the output unit 13, and the storage unit 14 are connected by a bus 15 so that data can be exchanged with each other.

このような二分木地図データ作成出力装置1は、例えば、コンピュータ、より具体的にはノート型やディスクトップ型等のパーソナルコンピュータ等によって構成可能である。   Such a binary tree map data creation / output device 1 can be configured by, for example, a computer, more specifically, a personal computer such as a notebook type or a desktop type.

なお、必要に応じて二分木地図データ作成出力装置1は、破線で示すように、外部記憶部16及び/又は通信インタフェース部17をさらに備えてもよい。外部記憶部16は、例えば、フレキシブルディスク、CD−ROM(Compact Disc Read Only Memory)、CD−R(Compact Disc Recordable)及びDVD−R(Digital Versatile Disc Recordable)等の記録媒体との間でデータを読み込み及び/又は書き込みを行う装置であり、例えば、フレキシブルディスクドライブ、CD−ROMドライブ、CD−Rドライブ及びDVD−Rドライブ等である。通信インタフェース部17は、ローカル・エリア・ネットワークや外部のネットワーク(例えば、インターネット)等のネットワークに接続され、このネットワークを介して他の通信端末装置との間で通信信号を送受信するためのインターフェース回路であり、演算処理部11からのデータに基づいてネットワークの通信プロトコルに従った通信信号を作成すると共にネットワークからの通信信号を演算処理部11が処理可能な形式のデータに変換する。   Note that the binary tree map data creation / output device 1 may further include an external storage unit 16 and / or a communication interface unit 17 as indicated by a broken line as necessary. The external storage unit 16 stores data with a recording medium such as a flexible disk, a CD-ROM (Compact Disc Read Only Memory), a CD-R (Compact Disc Recordable), and a DVD-R (Digital Versatile Disc Recordable). An apparatus that performs reading and / or writing, such as a flexible disk drive, a CD-ROM drive, a CD-R drive, and a DVD-R drive. The communication interface unit 17 is connected to a network such as a local area network or an external network (for example, the Internet), and is an interface circuit for transmitting and receiving communication signals to and from other communication terminal devices via this network. Based on the data from the arithmetic processing unit 11, a communication signal in accordance with the communication protocol of the network is created and the communication signal from the network is converted into data in a format that can be processed by the arithmetic processing unit 11.

ここで、二分木地図データ作成プログラムや地図出力プログラム等の各プログラム及び元地図データや二分木地図データ等の各データが格納されていない場合には、各プログラムや各データがこれらを記録した記録媒体から外部記憶部16を介して記憶部14にインストールされるように構成してもよく、また、これら各プログラムや各データを管理するサーバ(不図示)からネットワーク及び通信インターフェース部17を介して各プログラムや各データがダウンロードされるように構成してもよい。あるいは、作成した二分木地図データが外部記憶部16を介して記録媒体に記録されるように構成してもよく、また、作成した二分木地図データがネットワーク及び通信インターフェース部17を介してサーバにアップロードされるように構成してもよい。   Here, when each program such as binary tree map data creation program and map output program and each data such as original map data and binary tree map data are not stored, each program and each data record that records them It may be configured to be installed in the storage unit 14 from the medium via the external storage unit 16, or from a server (not shown) that manages these programs and data via the network and communication interface unit 17. You may comprise so that each program and each data may be downloaded. Alternatively, the created binary tree map data may be recorded in a recording medium via the external storage unit 16, and the created binary tree map data may be stored in the server via the network and communication interface unit 17. It may be configured to be uploaded.

次に、本実施形態の動作について説明する。
(第1の実施形態の動作)
まず、二分木地図データ作成出力装置1が元地図データから二分木地図データを作成する動作について説明する。
Next, the operation of this embodiment will be described.
(Operation of the first embodiment)
First, an operation in which the binary tree map data creation / output device 1 creates binary tree map data from the original map data will be described.

図2は、第1の実施形態に係る二分木地図データ作成出力装置における二分木地図データを作成する動作を示すフローチャートである。   FIG. 2 is a flowchart showing an operation of creating binary tree map data in the binary tree map data creation / output device according to the first embodiment.

例えば、ユーザが元地図データを入力部12から二分木地図データ作成出力装置1に入力することによって、元地図データが記憶部14の元地図データ記憶部33に記憶される。そして、記憶部14の二分木地図データ作成プログラム記憶部31から二分木地図データ作成プログラムが呼び出されて実行され、例えば、ユーザが、元地図データから二分木地図データを二分木地図データ作成出力装置1に作成させるべく、二分木地図データの作成開始コマンドを入力部12から入力すると、演算処理部11の二分木地図データ作成処理部21は、記憶部14の元地図データ記憶部33に記憶されている元地図データに基づいて二分木地図データを作成する。   For example, when the user inputs original map data from the input unit 12 to the binary tree map data creation / output device 1, the original map data is stored in the original map data storage unit 33 of the storage unit 14. Then, the binary tree map data creation program is called from the binary tree map data creation program storage unit 31 of the storage unit 14 and executed. For example, the user outputs binary tree map data from the original map data to the binary tree map data creation output device. When the binary tree map data creation start command is input from the input unit 12 so that the binary tree map data is created, the binary tree map data creation processing unit 21 of the arithmetic processing unit 11 is stored in the original map data storage unit 33 of the storage unit 14. Binary tree map data is created based on the original map data.

即ち、図2において、まず、演算処理部11の二分木地図データ作成処理部21は、ライン分割処理部213によって、元地図データのラインデータを本発明に係る二分木地図データに変換すべく、元地図データから一のラインデータを取り出す(S10)。なお、元地図データのラインデータを重複して後述の処理S11乃至処理S14の二分木処理を実行することを避けるため、この処理S10において、ラインデータを元地図データから順に取り出したり、取出し済みであることを示す符号(1又は複数の記号列)を元地図データのラインデータに付したり等する。   That is, in FIG. 2, first, the binary tree map data creation processing unit 21 of the arithmetic processing unit 11 uses the line division processing unit 213 to convert the line data of the original map data into the binary tree map data according to the present invention. One line data is extracted from the original map data (S10). In order to avoid executing the binary tree processing of processing S11 to processing S14, which will be described later, by duplicating the line data of the original map data, in this processing S10, the line data is sequentially extracted from the original map data or has been extracted. A code (one or a plurality of symbol strings) indicating that it is present is added to the line data of the original map data.

次に、二分木地図データ作成処理部21は、離間度演算部211によって、この取り出したラインを被分割ラインとしてその各内点の離間度Sを演算する(S11)。   Next, the binary tree map data creation processing unit 21 uses the separation degree calculation unit 211 to calculate the separation degree S of each inner point using the extracted line as a divided line (S11).

次に、二分木地図データ作成処理部21は、被分割ライン分割処理部212によって、各内点の離間度Sのうち最大の離間度Smaxを持つ内点を検索し、抽出する(S12)。   Next, the binary tree map data creation processing unit 21 uses the divided line division processing unit 212 to search for and extract an interior point having the maximum separation degree Smax among the separation degrees S of the interior points (S12).

次に、二分木地図データ作成処理部21は、被分割ライン分割処理部212によって、処理S12で抽出した内点で被分割ラインを二分する(S13)。このラインを二分することによって生成されたラインを分割ラインと、この分割ラインのうち始点と処理S12で抽出した内点とを結ぶラインを第1分割ラインと、この分割ラインのうち処理S12で抽出した内点と終点とを結ぶラインを第2分割ラインと、それぞれ呼称することとする。   Next, the binary tree map data creation processing unit 21 bisects the divided line by the inner point extracted in step S12 by the divided line division processing unit 212 (S13). A line generated by dividing the line into two is extracted as a divided line, a line connecting the starting point of the divided lines and the inner point extracted in the process S12, and a extracted line is extracted in the process S12. The line connecting the inner point and the end point is referred to as a second divided line.

次に、二分木地図データ作成処理部21は、作成処理部214によって、当該ラインを描画するためのデータと、当該ラインと分割ライン(第1及び第2分割ライン)との対応関係である親子関係と、当該ラインを分割する内点の離間度S(最大の離間度Smax)との対応関係を表す第1の実施形態に係る二分木データを作成し、記憶部14に一時的に記憶する(S14)。   Next, the binary tree map data creation processing unit 21 uses the creation processing unit 214 to draw data for drawing the line, and the parent and child corresponding to the line and the divided line (first and second divided lines). The binary tree data according to the first embodiment representing the correspondence between the relationship and the separation degree S (maximum separation degree Smax) of the inner points dividing the line is created and temporarily stored in the storage unit 14. (S14).

処理S11乃至処理S14を実行することより、被分割ラインを最大離間度Smaxの内点で二分することにより、被分割ラインを親とし第1及び第2分割ラインを子とする木構造(ツリー構造)のデータが作成されるので、この処理S11乃至処理S14の処理を二分木処理と呼称することとする。   By executing the processes S11 to S14, the divided line is divided into two by the inner point of the maximum separation degree Smax, whereby a tree structure (tree structure) having the divided line as a parent and the first and second divided lines as children. ) Is created, the processing from S11 to S14 is referred to as binary tree processing.

次に、二分木地図データ作成処理部21は、ライン分割処理部213によって、第1及び第2分割ラインに内点が存在するか否かを判断する(S15)。   Next, the binary tree map data creation processing unit 21 uses the line division processing unit 213 to determine whether or not an internal point exists in the first and second divided lines (S15).

処理S15における判断の結果、第1及び第2分割ラインの双方に内点が存在する場合(双方有り)には、二分木地図データ作成処理部21は、ライン分割処理部213によって、一方の分割ラインを新たな被分割ラインとすると共に他方の分割ラインを記憶部14に一時的に記憶し(S21)、処理を処理S11に戻して二分木処理を続行する。   If the result of determination in step S15 is that there are internal points on both the first and second divided lines (both are present), the binary tree map data creation processing unit 21 uses the line division processing unit 213 to perform one division. The line is set as a new divided line and the other divided line is temporarily stored in the storage unit 14 (S21), and the process returns to process S11 to continue the binary tree process.

また、処理S15における判断の結果、第1及び第2分割ラインの一方に内点が存在する場合(一方有り)には、二分木地図データ作成処理部21は、ライン分割処理部213によって、内点の存在する分割ラインを新たな被分割ラインとし(S22)、処理を処理S11に戻して二分木処理を続行する。ここで、処理S21及び処理S22おいて、第1分割ラインが新たな被分割ラインとされる場合には、第1分割ラインの内点が新たな被分割ラインにおける終点とされ、第2分割ラインが新たな被分割ラインとされる場合には、第2分割ラインの内点が新たな被分割ラインにおける始点とされる。後述の処理S23も同様である。   If the result of determination in step S15 is that there is an inner point on one of the first and second divided lines (one is present), the binary tree map data creation processing unit 21 uses the line division processing unit 213 to The divided line where the point exists is set as a new divided line (S22), and the process returns to the process S11 to continue the binary tree process. Here, in the processing S21 and the processing S22, when the first division line is a new division line, the inner point of the first division line is the end point in the new division line, and the second division line Is a new split line, the inner point of the second split line is the starting point of the new split line. The same applies to processing S23 described later.

さらに、処理S15における判断の結果、第1及び第2分割ラインの双方に内点が存在しない場合(双方なし)には、二分木地図データ作成処理部21は、ライン分割処理部213によって、処理S16を実行し、記憶部14を参照することで二分木処理を施されていない分割ラインが記憶部14に記憶されているか否かを判断することで総ての分割ラインについて二分木処理が終了したか否かを判断する。   Furthermore, if the result of determination in step S15 is that there are no interior points on both the first and second divided lines (no both), the binary tree map data creation processing unit 21 performs processing by the line division processing unit 213. Execute S16 and refer to the storage unit 14 to determine whether or not the divided lines that have not been subjected to the binary tree processing are stored in the storage unit 14, and the binary tree processing is completed for all the divided lines. Determine whether or not.

この処理S16における判断の結果、総ての分割ラインについて二分木処理が終了していない場合(No)には、二分木地図データ作成処理部21は、ライン分割処理部213によって、記憶部14に記憶されている二分木処理が未処理の分割ラインを新たな被分割ラインとし(S23)、処理を処理S11に戻して二分木処理を続行する。   As a result of the determination in step S16, when the binary tree processing has not been completed for all the divided lines (No), the binary tree map data creation processing unit 21 stores in the storage unit 14 by the line division processing unit 213. The stored divided tree unprocessed divided line is set as a new divided line (S23), the process is returned to step S11, and the binary tree processing is continued.

一方、処理S16における判断の結果、総ての分割ラインについて二分木処理が終了している場合(Yes)には、二分木地図データ作成処理部21は、作成処理部214によって、処理S17を実行し、これら作成した各被分割ラインの二分木データを纏めて二分木地図データとして記憶部14の二分木地図データ記憶部34にファイル名を付して記憶する。   On the other hand, if the result of determination in step S16 is that the binary tree processing has been completed for all the divided lines (Yes), the binary tree map data creation processing unit 21 executes the processing S17 by the creation processing unit 214. Then, the created binary tree data of each divided line is collected and stored as binary tree map data in the binary tree map data storage unit 34 of the storage unit 14 with a file name.

次に、二分木地図データ作成処理部21は、ライン分割処理部213によって、元地図データを構成する総てのラインについて二分木地図データを作成したか否かを判断する(S18)。   Next, the binary tree map data creation processing unit 21 determines whether or not the binary tree map data has been created for all the lines constituting the original map data by the line division processing unit 213 (S18).

この処理S18における判断の結果、元地図データの総てのラインについて二分木地図データが作成されていない場合(No)には、二分木地図データ作成処理部21は、ライン分割処理部213によって、元地図データの他のラインについて二分木地図データを作成すべく、処理を処理S10に戻して上述の処理S10乃至処理S17の処理を続行する。   If binary tree map data has not been created for all lines of the original map data as a result of the determination in step S18 (No), the binary tree map data creation processing unit 21 uses the line division processing unit 213 to In order to create binary tree map data for other lines of the original map data, the process is returned to the process S10, and the processes of the above-described processes S10 to S17 are continued.

一方、処理S18における判断の結果、元地図データの総ての元ラインについて二分木データが作成されている場合(Yes)には、二分木地図データ作成処理部21は、処理を終了する。   On the other hand, if the result of determination in step S18 is that binary tree data has been created for all original lines of the original map data (Yes), the binary tree map data creation processing unit 21 ends the process.

このように動作することによって元地図データから、二分木地図データ作成出力装置1は、被分割ラインを描画するためのデータと、被分割ラインを分割した内点の離間度S(最大の離間度Smax)と、被分割ラインと第1及び第2分割ラインとの親子関係との対応関係を表すツリー構造又はテーブル形式の二分木地図データを作成し記憶することができる。そして、このような二分木地図データは、後述するように、間引き度Tに応じた地図を作成するために必要なデータを高速に取り出され得る。   By operating in this way, from the original map data, the binary tree map data creation / output device 1 outputs the data for drawing the divided line and the separation degree S (maximum separation degree) of the inner point dividing the divided line. Smax) and binary tree map data in a tree structure or table format representing the correspondence between the divided line and the parent-child relationship between the first and second divided lines can be created and stored. As such binary tree map data, as will be described later, data necessary for creating a map corresponding to the thinning-out degree T can be extracted at high speed.

上述から分かるように、元地図データから生成される二分木地図データは、元地図データを構成する各ラインデータに対し二分木処理を実行し、その結果得られた二分木データをツリー構造に纏めたものである。このため、図2に示す処理をより具体的に説明するために、一のラインデータから二分木データを作成する一具体例について以下で説明する。   As can be seen from the above, binary tree map data generated from the original map data is subjected to binary tree processing for each line data constituting the original map data, and the resulting binary tree data is collected into a tree structure. It is a thing. Therefore, in order to describe the process shown in FIG. 2 more specifically, a specific example of creating binary tree data from one line data will be described below.

図3は、ラインを示す図である。図3(A)は、実地上のエンティティにおける輪郭を相似で略輪郭通りの曲線で記述した場合であり、図3(B)は、この曲線を折れ線のラインで記述した場合である。図4乃至図6は、二分木地図データ作成出力装置における二分木地図データを作成する動作を説明するための図である。図4(A)は、ライン(最初の被分割ライン、元のライン)を1回目の内点で分割する場合であり、図4(B)は、1回目の内点でラインを分割することによって生成された第1及び第2分割ラインを2回目の内点で分割する場合である。図5(A)は、2回目の内点で被分割ラインを分割することによって生成された第1及び第2分割ラインを3回目の内点で分割する場合であり、図5(B)は、3回目の内点で被分割ラインを分割することによって生成された第1及び第2分割ラインを4回目の内点で分割する場合である。図6(A)は、4回目の内点で被分割ラインを分割することによって生成された第1及び第2分割ラインを5回目の内点で分割する場合であり、図6(B)は、5回目の内点で被分割ラインを分割することによって生成された第1及び第2分割ラインを6回目の内点で分割する場合である。図7は、第1の実施形態に係るテーブルで表現した二分木地図データを示す図である。図8は、第1の実施形態に係るツリー構造で表現した二分木地図データを示す図である。   FIG. 3 is a diagram showing lines. FIG. 3A shows a case where the contour of the entity on the ground is described by a similar and substantially contoured curve, and FIG. 3B shows a case where this curve is described by a broken line. 4 to 6 are diagrams for explaining the operation of creating binary tree map data in the binary tree map data creation / output device. 4A shows a case where a line (first divided line, original line) is divided at the first inner point, and FIG. 4B shows that the line is divided at the first inner point. In this case, the first and second dividing lines generated by the above are divided at the second inner point. FIG. 5A shows a case where the first and second divided lines generated by dividing the divided line at the second inner point are divided at the third inner point, and FIG. This is a case where the first and second divided lines generated by dividing the divided line at the third inner point are divided at the fourth inner point. FIG. 6A shows a case where the first and second divided lines generated by dividing the divided line at the fourth inner point are divided at the fifth inner point, and FIG. This is a case where the first and second divided lines generated by dividing the divided line at the fifth inner point are divided at the sixth inner point. FIG. 7 is a diagram showing binary tree map data expressed by a table according to the first embodiment. FIG. 8 is a diagram illustrating binary tree map data expressed in a tree structure according to the first embodiment.

例えば、図3(A)に示す、実地上のエンティティにおける輪郭を略輪郭通りに相似で記述された曲線ABは、曲線の曲がり度合いに応じて内点が設定され、例えば、図3(A)に示すようにP2乃至P17の16個の内点が設定される。ここで、曲線ABの始点A及び終点Bも内点と同様の表記とするために、始点AにP1を割り当て、終点BにP18を割り当てている。このように内点を設定することにより、曲線ABは、図3(B)に示す折れ線で記述され、各点P1〜P18の座標値を求めることにより、ベクタ方式の図形データにおけるラインデータが作成される。この各点P1〜P18の座標値からなる図形データにおけるラインデータが元地図データに相当する。 For example, in the curve AB described in FIG. 3A in which the contour of the entity on the ground is similar to the outline, the inner point is set according to the degree of curve bending. For example, FIG. As shown in FIG. 16, 16 inner points P 2 to P 17 are set. Here, P 1 is assigned to the start point A and P 18 is assigned to the end point B so that the start point A and the end point B of the curve AB are also expressed in the same manner as the inner point. By setting the inner points in this way, the curve AB is described by the broken line shown in FIG. 3B, and by obtaining the coordinate values of the points P 1 to P 18 , the line data in the vector graphic data is obtained. Is created. The line data in the graphic data composed of the coordinate values of the points P 1 to P 18 corresponds to the original map data.

このような各点P1〜P18の座標値からなる図形データのラインデータから二分木地図データを作成すべく、二分木地図データ作成出力装置1が動作すると、演算処理部11の二分木地図データ作成処理部21は、処理S10でラインP118のラインデータを被分割ラインのデータとして取り出し、処理S11を実行することにより、図4(A)に示すように、各点P2〜P17に対し、各点P2〜P17から始点P1及び終点P18を通る線分までの距離Dを離間度Sとしてそれぞれ演算する。内点xの離間度SをS(x)で表記するとすると、この例では、S(P2)=6.4、S(P3)=10.8、S(P4)=8.4、S(P5)=1.2、S(P6)=2.8、S(P7)=5.0、S(P8)=2.4、S(P9)=5.6、S(P10)=9.4、S(P11)=11.2、S(P12)=9.8、S(P13)=5.8、S(P14)=1.2、S(P15)=4.8、S(P16)=7.6、S(P17)=5.2である。 When the binary tree map data creation / output device 1 operates to create binary tree map data from line data of graphic data consisting of the coordinate values of the respective points P 1 to P 18 , the binary tree map of the arithmetic processing unit 11 is operated. data creation processing section 21 takes out the line data of the line P 1 P 18 in the processing S10 as the data of the division line, by executing the processing S11, as shown in FIG. 4 (a), the points P 2 ~ to P 17, and calculates each distance D from the points P 2 to P 17 to the line passing through the start point P 1 and the end point P 18 as the degree of separation S. If the separation degree S of the inner point x is expressed by S (x), in this example, S (P 2 ) = 6.4, S (P 3 ) = 10.8, S (P 4 ) = 8.4 , S (P 5 ) = 1.2, S (P 6 ) = 2.8, S (P 7 ) = 5.0, S (P 8 ) = 2.4, S (P 9 ) = 5.6 , S (P 10 ) = 9.4, S (P 11 ) = 11.2, S (P 12 ) = 9.8, S (P 13 ) = 5.8, S (P 14 ) = 1.2 , S (P 15 ) = 4.8, S (P 16 ) = 7.6, and S (P 17 ) = 5.2.

このため、二分木地図データ作成処理部21は、処理S12を実行することにより、最大離間度Smax=11.2の内点P11が検索され、抽出される。このため、二分木地図データ作成処理部21は、処理S13を実行することにより、図4(B)に示すように、被分割ラインP118を内点P11で二分し、第1分割ラインP111及び第2分割ラインP1118を生成する。そして、二分木地図データ作成処理部21は、処理S14を実行することにより、被分割ラインP118を描画するためのデータと、被分割ラインP118と第1及び第2分割ラインP111、P1118との親子関係と、被分割ラインP118を分割した内点P11の離間度S(P11)=11.2との対応関係を表す二分木データを作成し、記憶部14に一時的に記憶する。 Therefore, the binary tree map data creation processing unit 21 searches for and extracts the inner point P 11 having the maximum degree of separation Smax = 11.2 by executing the processing S12. For this reason, the binary tree map data creation processing unit 21 executes the process S13 to bisect the divided line P 1 P 18 by the inner point P 11 as shown in FIG. A line P 1 P 11 and a second divided line P 11 P 18 are generated. The binary tree map data creating unit 21 executes the process S14, and data for rendering the split line P 1 P 18, the parting line P 1 P 18 and the first and second division line Binary tree data representing the correspondence between the parent-child relationship with P 1 P 11 and P 11 P 18 and the degree of separation S (P 11 ) = 11.2 of the inner point P 11 obtained by dividing the divided line P 1 P 18. Is temporarily stored in the storage unit 14.

第1の実施形態に係る二分木データは、そのまま二分木地図データとすべく、例えば、図7に示すようにテーブル形式で記憶される。この図7に示す二分木地図データテーブル101は、テーブルの各レコードを識別し特定するための識別子である管理番号を登録する管理番号フィールド111、被分割ラインに関するデータを登録する被分割ラインフィールド112、及び、分割ラインに関するデータを登録する分割ラインフィールド113の各フィールドを備えて構成され、被分割ラインごとにレコードが作成される。被分割ラインフィールド111は、さらに、被分割ラインを識別し特定するための識別子である被分割ラインの名称を登録する被分割ライン名称サブフィールド121、被分割ラインにおける始点の座標値を登録する始点座標サブフィールド122、被分割ラインにおける終点の座標値を登録する終点座標サブフィールド123、被分割ラインを分割する内点の離間度Sを登録する離間度サブフィールド124の各サブフィールドを備えて構成される。そして、始点座標サブフィールド122及び終点座標サブフィールド123は、それぞれ、x座標サブフィールド131、133及びy座標サブフィールド132、134の各サブフィールドを備えて構成される。また、分割ラインフィールド113は、第1及び第2分割ラインを識別し特定するための識別子である第1及び第2分割ラインにおけるラインの名称を登録する第1及び第2分割ライン名称サブフィールド125、126の各サブフィールドを備えて構成される。被分割ライン及び分割ラインの名称は、任意の符号(1又は複数の記号列)でよいが、本実施形態では、ラインの始点及び終点を表す符合の組合わせで表記され、例えば、ラインの始点P1及び終点P18のラインの名称は、P118となる。 The binary tree data according to the first embodiment is stored in a table format as shown in FIG. 7, for example, as binary tree map data as it is. The binary tree map data table 101 shown in FIG. 7 includes a management number field 111 for registering a management number that is an identifier for identifying and specifying each record in the table, and a divided line field 112 for registering data related to the divided line. And a division line field 113 for registering data relating to division lines, and a record is created for each division line. The split line field 111 further includes a split line name subfield 121 for registering the name of the split line, which is an identifier for identifying and specifying the split line, and a start point for registering the coordinate value of the start point of the split line. Each of the subfields includes a coordinate subfield 122, an end point coordinate subfield 123 for registering the coordinate value of the end point in the divided line, and a separation degree subfield 124 for registering the separation degree S of the inner point dividing the divided line. Is done. The start point coordinate subfield 122 and the end point coordinate subfield 123 are configured by including subfields of an x coordinate subfield 131 and 133 and a y coordinate subfield 132 and 134, respectively. The division line field 113 is a first and second division line name subfield 125 for registering line names in the first and second division lines, which are identifiers for identifying and specifying the first and second division lines. , 126 subfields. The names of the line to be divided and the divided lines may be arbitrary codes (one or a plurality of symbol strings), but in the present embodiment, they are represented by a combination of codes representing the start point and end point of the line, for example, the start point of the line The name of the line of P 1 and end point P 18 is P 1 P 18 .

このように二分木地図データテーブル101が構成されるので、被分割ラインを描画するためのデータとして始点の座標値及び終点の座標値が始点座標サブフィールド122及び終点座標サブフィールド123にそれぞれ登録され、被分割ラインと分割ラインとの親子関係として被分割ラインの名称、第1分割ラインの名称及び第2分割ラインの名称が被分割ライン名称サブフィールド121、第1及び第2分割ライン名称サブフィールド125、126にそれぞれ登録され、被分割ラインを分割する内点の離間度Sが離間度サブフィールド124に登録され、これらが同一のレコードに登録されることでこれらの対応関係が示される。   Since the binary tree map data table 101 is configured in this way, the start point coordinate value and the end point coordinate value are registered in the start point coordinate subfield 122 and the end point coordinate subfield 123 as data for drawing the divided line, respectively. As the parent-child relationship between the split line and the split line, the split line name, the first split line name, and the second split line name are split line name subfield 121, first and second split line name subfields. 125, 126 are registered respectively, and the separation degree S of the inner point dividing the line to be divided is registered in the separation degree subfield 124, and these are registered in the same record to indicate the corresponding relationship.

そして、二分木地図データ作成処理部21は、処理S15を実行することにより、第1及び第2分割ラインP111、P1118に内点が存在するか否かを判断する。この判断の結果、第1分割ラインP111には内点P2〜P10が存在し、第2分割ラインP1118には内点P12〜P17が存在するから、二分木地図データ作成処理部21は、処理S21を実行することにより、例えば、第1分割ラインP111を新たな被分割ラインP111に置換え、処理を処理S11に戻すと共に、第2分割ラインP1118の名称P1118を記憶部14に記憶する。 Then, the binary tree map data creation processing unit 21 determines whether or not there is an interior point on the first and second divided lines P 1 P 11 and P 11 P 18 by executing the process S15. As a result of the determination, inner points P 2 to P 10 exist in the first divided line P 1 P 11 and inner points P 12 to P 17 exist in the second divided line P 11 P 18. The map data creation processing unit 21 executes the process S21, for example, replaces the first divided line P 1 P 11 with a new divided line P 1 P 11 , returns the process to the process S11, and performs the second division. stores the name P 11 P 18 of the line P 11 P 18 in the storage unit 14.

このため、二分木地図データ作成処理部21は、処理S11を実行することにより、図4(B)に示すように、各点P2〜P10に対し、各点P2〜P10から始点P1及び終点P11を通る線分までの距離Dを離間度Sとしてそれぞれ演算する。この例では、S(P2)=5.6、S(P3)=8.8、S(P4)=5.6、S(P5)=2.8、S(P6)=7.2、S(P7)=10.4、S(P8)=9.2、S(P9)=3.2、S(P10)=0.4である。 Therefore, binary tree map data creating unit 21 executes the process S11, as shown in FIG. 4 (B), for each point P 2 to P 10, starting from the points P 2 to P 10 The distance D to the line segment passing through P 1 and the end point P 11 is calculated as the separation degree S. In this example, S (P 2 ) = 5.6, S (P 3 ) = 8.8, S (P 4 ) = 5.6, S (P 5 ) = 2.8, S (P 6 ) = 7.2, S (P 7 ) = 10.4, S (P 8 ) = 9.2, S (P 9 ) = 3.2, S (P 10 ) = 0.4.

このため、二分木地図データ作成処理部21は、処理S12を実行することにより、最大離間度Smax=10.4の内点P7が検索され、抽出される。このため、二分木地図データ作成処理部21は、処理S13を実行することにより、図5(A)に示すように、被分割ラインP111を内点P7で二分し、第1分割ラインP17及び第2分割ラインP711を生成する。そして、二分木地図データ作成処理部21は、処理S14を実行することにより、被分割ラインP111を描画するためのデータと、被分割ラインP111と第1及び第2分割ラインP17、P711との親子関係と、被分割ラインP111を分割した内点P7の離間度S(P7)=10.4との対応関係を表す二分木データを作成し、記憶部14に一時的に記憶する。 Therefore, the binary tree map data creation processing unit 21 searches for and extracts the inner point P 7 having the maximum degree of separation Smax = 10.4 by executing the processing S12. For this reason, the binary tree map data creation processing unit 21 executes the process S13 to bisect the divided line P 1 P 11 by the inner point P 7 as shown in FIG. A line P 1 P 7 and a second divided line P 7 P 11 are generated. The binary tree map data creating unit 21 executes the process S14, and data for rendering the split line P 1 P 11, the parting line P 1 P 11 and the first and second division line Binary tree data representing the correspondence between the parent-child relationship with P 1 P 7 and P 7 P 11 and the degree of separation S (P 7 ) = 10.4 of the inner point P 7 obtained by dividing the divided line P 1 P 11 Is temporarily stored in the storage unit 14.

そして、二分木地図データ作成処理部21は、処理S15を実行することにより、第1及び第2分割ラインP17、P711に内点が存在するか否かを判断する。この判断の結果、第1分割ラインP17には内点P2〜P6が存在し、第2分割ラインP711には内点P8〜P11が存在するから、二分木地図データ作成処理部21は、処理S21を実行することにより、例えば、第1分割ラインP17を新たな被分割ラインP17に置換え、処理を処理S11に戻すと共に、第2分割ラインP711の名称P711を記憶部14に記憶する。 Then, the binary tree map data creation processing unit 21 determines whether or not there is an interior point on the first and second divided lines P 1 P 7 and P 7 P 11 by executing the process S15. As a result of this determination, the inner points P 2 to P 6 exist in the first divided line P 1 P 7 and the inner points P 8 to P 11 exist in the second divided line P 7 P 11. The map data creation processing unit 21 executes the process S21, for example, replaces the first divided line P 1 P 7 with a new divided line P 1 P 7 , returns the process to the process S11, and performs the second division. storing name P 7 P 11 of the line P 7 P 11 in the storage unit 14.

このため、二分木地図データ作成処理部21は、処理S11を実行することにより、図5(A)に示すように、各点P2〜P6に対し、各点P2〜P6から始点P1及び終点P7を通る線分までの距離Dを離間度Sとして演算する。この例では、S(P2)=6.6、S(P3)=11.8、S(P4)=10.6、S(P5)=4.6、S(P6)=1.2である。 Therefore, binary tree map data creating unit 21 executes the process S11, as shown in FIG. 5 (A), for each point P 2 to P 6, starting from the point P 2 to P 6 The distance D to the line segment passing through P 1 and the end point P 7 is calculated as the separation degree S. In this example, S (P 2 ) = 6.6, S (P 3 ) = 11.8, S (P 4 ) = 10.6, S (P 5 ) = 4.6, S (P 6 ) = 1.2.

このため、二分木地図データ作成処理部21は、処理S12を実行することにより、最大離間度Smax=11.8の内点P3が検索され、抽出される。このため、二分木地図データ作成処理部21は、処理S13を実行することにより、図5(B)に示すように、被分割ラインP17を内点P3で二分し、第1分割ラインP13及び第2分割ラインP37を生成する。そして、二分木地図データ作成処理部21は、処理S14を実行することにより、被分割ラインP17を描画するためのデータと、被分割ラインP17と第1及び第2分割ラインP13、P37との親子関係と、被分割ラインP17を分割した内点P3の離間度S(P3)=11.8との対応関係を表す二分木データを作成し、記憶部14に一時的に記憶する。 Therefore, the binary tree map data creation processing unit 21 searches for and extracts the inner point P 3 having the maximum degree of separation Smax = 11.8 by executing the process S12. Therefore, the binary tree map data creation processing unit 21 executes the process S13 to bisect the divided line P 1 P 7 by the inner point P 3 as shown in FIG. A line P 1 P 3 and a second divided line P 3 P 7 are generated. The binary tree map data creating unit 21 executes the process S14, and data for rendering the split line P 1 P 7, the parting line P 1 P 7 and the first and second division line Binary tree data representing the correspondence between the parent-child relationship with P 1 P 3 and P 3 P 7 and the degree of separation S (P 3 ) = 11.8 of the inner point P 3 obtained by dividing the divided line P 1 P 7 Is temporarily stored in the storage unit 14.

そして、二分木地図データ作成処理部21は、処理S15を実行することにより、第1及び第2分割ラインP13、P37に内点が存在するか否かを判断する。この判断の結果、第1分割ラインP13には内点P2が存在し、第2分割ラインP37には内点P4〜P6が存在するから、二分木地図データ作成処理部21は、処理S21を実行することにより、第1分割ラインP13を新たな被分割ラインP13に置換え、処理を処理S11に戻すと共に、第2分割ラインP37の名称P37を記憶部14に記憶する。 Then, the binary tree map data creation processing unit 21 determines whether or not there is an interior point in the first and second divided lines P 1 P 3 and P 3 P 7 by executing step S15. As a result of this determination, the inner point P 2 exists in the first divided line P 1 P 3 and the inner points P 4 to P 6 exist in the second divided line P 3 P 7. The processing unit 21 executes the process S21 to replace the first divided line P 1 P 3 with a new divided line P 1 P 3 , returns the process to the process S11, and also performs the second divided line P 3 P 7. The name P 3 P 7 is stored in the storage unit 14.

このため、二分木地図データ作成処理部21は、処理S11を実行することにより、図5(B)に示すように、点P2に対し、点P2から始点P1及び終点P3を通る線分までの距離Dを離間度Sとして演算する。この例では、S(P2)=1.4である。 Therefore, binary tree map data creating unit 21 executes the process S11, as shown in FIG. 5 (B), with respect to the point P 2, passing through the start point P 1 and the end point P 3 from the point P 2 The distance D to the line segment is calculated as the separation degree S. In this example, S (P 2 ) = 1.4.

このため、二分木地図データ作成処理部21は、処理S12を実行することにより、最大離間度Smax=1.4の内点P2が検索され、抽出される。このため、二分木地図データ作成処理部21は、処理S13を実行することにより、図6(A)に示すように、被分割ラインP13を内点P2で二分し、第1分割ラインP12及び第2分割ラインP23を生成する。そして、二分木地図データ作成処理部21は、処理S14を実行することにより、被分割ラインP13を描画するためのデータと、被分割ラインP13と第1及び第2分割ラインP12、P23との親子関係と、被分割ラインP13を分割した内点P2の離間度S(P2)=1.4との対応関係を表す二分木データを作成し、記憶部14に一時的に記憶する。 Therefore, the binary tree map data creation processing unit 21 searches for and extracts the inner point P 2 having the maximum degree of separation Smax = 1.4 by executing the processing S12. Therefore, the binary tree map data creation processing unit 21 executes the process S13 to bisect the divided line P 1 P 3 by the inner point P 2 as shown in FIG. A line P 1 P 2 and a second divided line P 2 P 3 are generated. The binary tree map data creating unit 21 executes the process S14, and data for rendering the split line P 1 P 3, the split line P 1 P 3 and the first and second division line Binary tree data representing the correspondence between the parent-child relationship with P 1 P 2 and P 2 P 3 and the degree of separation S (P 2 ) = 1.4 of the inner point P 2 obtained by dividing the divided line P 1 P 3 Is temporarily stored in the storage unit 14.

そして、二分木地図データ作成処理部21は、処理S15を実行することにより、第1及び第2分割ラインP12、P23に内点が存在するか否かを判断する。この判断の結果、第1及び第2分割ラインP12、P23の双方に内点が存在しないから、二分木地図データ作成処理部21は、処理S16を実行することにより、記憶部14を参照することによって、総ての分割ラインについて二分木処理が終了したか否かを判断する。記憶部14には、分割ラインの名称P37、P711、P1118が記憶されているから、二分木地図データ作成処理部21は、総ての分割ラインについて二分木処理が終了していないと判断され、処理S23を実行することにより、記憶部14に記憶されている二分木処理が未処理の分割ライン、例えば、分割ラインP37を新たな被分割ラインに置換え、処理を処理S11に戻す。ここで、処理S21における分割ラインの名称を記憶部14に記憶する場合は、分割ラインの名称を順にスタックし、処理S23における新たな被分割ラインに置き換える分割ラインの取り出しは、ラースト・イン・ファースト・アウト(Last In First Out)としてもよい。 Then, the binary tree map data creation processing unit 21 determines whether or not there are internal points in the first and second divided lines P 1 P 2 and P 2 P 3 by executing step S15. As a result of this determination, since there are no interior points in both the first and second divided lines P 1 P 2 and P 2 P 3 , the binary tree map data creation processing unit 21 stores the memory by executing the process S16. By referring to the unit 14, it is determined whether or not the binary tree processing has been completed for all the divided lines. Since the storage unit 14 stores division line names P 3 P 7 , P 7 P 11 , and P 11 P 18 , the binary tree map data creation processing unit 21 performs binary tree processing for all division lines. By executing the process S23, the binary tree process stored in the storage unit 14 is changed to an unprocessed divided line, for example, the divided line P 3 P 7 as a new divided line. Replace and return the process to step S11. Here, when the names of the divided lines in the process S21 are stored in the storage unit 14, the names of the divided lines are stacked in order, and the divided lines to be replaced with the new divided lines in the process S23 are extracted in the last in first. -It is good also as Out (Last In First Out).

分割ラインP37、P711、P1118についても同様に処理され、処理S16を実行することにより二分木地図データ作成処理部21が総ての分割ラインについて二分木処理が終了したと判断されると、記憶部14には、ラインP118に対し図7に示す二分木地図データテーブル101が作成、完成され、記憶部14の二分木地図データ記憶部34に記憶される。 The divided lines P 3 P 7 , P 7 P 11 , and P 11 P 18 are processed in the same manner, and the binary tree map data creation processing unit 21 completes the binary tree processing for all the divided lines by executing the process S16. If it is determined that the binary tree map data table 101 shown in FIG. 7 is created and completed in the storage unit 14 for the line P 1 P 18 , it is stored in the binary tree map data storage unit 34 of the storage unit 14. The

ラインP118に対しこのような二分木処理が実行されると、ラインP118のラインデータは、図7に示す二分木地図データテーブル101の二分木地図データに変換される。 When such a binary tree process on line P 1 P 18 is executed, the line data of the line P 1 P 18 is converted into binary tree map data binary tree map data table 101 shown in FIG.

また、被分割ラインの名称及び被分割ラインを分割する内点の離間度Sを上位層の節点である親節点に割り当て、第1及び第2分割ラインの各名称を親節点から2個に分岐した下位層の節点である第1及び第2子節点にそれぞれ割り当てると共に、被分割ラインと第1及び第2分割ラインとの親子関係を親節点と第1及び第2子節点とを結ぶ線分(「枝」と呼称する。)で表すツリー構造で示すと、ラインP118のラインデータを変換した二分木地図データは、図8に示すツリー構造になる。なお、最初の親節点を「根」と呼称し、2個に分岐しない末端の節点を「葉」と呼称する。 Also, the name of the divided line and the separation degree S of the inner point that divides the divided line are assigned to the parent node that is the upper layer node, and the names of the first and second divided lines are branched from the parent node into two. Line segments connecting the parent node and the first and second child nodes with the parent-child relationship between the divided line and the first and second divided lines, respectively, assigned to the first and second child nodes that are the nodes of the lower layer Referring to a tree structure represented by “branch”, the binary tree map data obtained by converting the line data of the lines P 1 P 18 has the tree structure shown in FIG. The first parent node is called “root”, and the terminal node that does not branch into two is called “leaf”.

図8に示すツリー構造は、第0階層及び第1階層において、ラインP118をツリー構造の根(ルート)として、まず、ラインP118が離間度S(P11)=11.2で子の第1分割ラインP111及び第2分割ラインP1118に分かれている。第1階層及び第2階層において、第1分割ラインP111を新たな被分割ラインP111とすると共に親として、ラインP111が離間度S(P7)=10.4で子の第1分割ラインP17及び第2分割ラインP711に分かれ、そして、第2分割ラインP1118を新たな被分割ラインP1118とすると共に親として、ラインP1118が離間度S(P16)=9.8で子の第1分割ラインP1116及び第2分割ラインP1618に分かれている。第2階層及び第3階層において、第1分割ラインP17を新たな被分割ラインP17とすると共に親として、ラインP17が離間度S(P3)=11.8で子の第1分割ラインP13及び第2分割ラインP37に分かれ、第2分割ラインP711を新たな被分割ラインP711とすると共に親として、ラインP711が離間度S(P10)=1.2で子の第1分割ラインP710及び第2分割ラインP1011に分かれている。そして、第1分割ラインP1116を新たな被分割ラインP1116とすると共に親として、ラインP1116が離間度S(P13)=2.2で子の第1分割ラインP1113及び第2分割ラインP1316に分かれ、第2分割ラインP1618を新たな被分割ラインP1618とすると共に親として、ラインP1618が離間度S(P17)=1.6で子の第1分割ラインP1617及び第2分割ラインP1716に分かれている。第3階層及び第4階層において、第1分割ラインP13を新たな被分割ラインP13とすると共に親として、ラインP13が離間度S(P2)=1.4で子の第1分割ラインP12及び第2分割ラインP23に分かれ、第2分割ラインP37を新たな被分割ラインP37とすると共に親として、ラインP37が離間度S(P6)=1.6で子の第1分割ラインP36及び第2分割ラインP67に分かれている。第1分割ラインP710を新たな被分割ラインP710とすると共に親として、ラインP710が離間度S(P8)=1.4で子の第1分割ラインP78及び第2分割ラインP810に分かれている。そして、第1分割ラインP1113を新たな被分割ラインP1113とすると共に親として、ラインP1113が離間度S(P12)=1.0で子の第1分割ラインP1112及び第2分割ラインP1213に分かれ、第2分割ラインP1316を新たな被分割ラインP1316とすると共に親として、ラインP1316が離間度S(P15)=1.2で子の第1分割ラインP1315及び第2分割ラインP1516に分かれている。第4階層及び第5階層において、第1分割ラインP36を新たな被分割ラインP36とすると共に親として、ラインP36が離間度S(P4)=1.2で子の第1分割ラインP34及び第2分割ラインP46に分かれている。第2分割ラインP810を新たな被分割ラインP810とすると共に親として、ラインP810が離間度S(P9)=0.3で子の第1分割ラインP89及び第2分割ラインP910に分かれている。そして、第1分割ラインP1315を新たな被分割ラインP1315とすると共に親として、ラインP1315が離間度S(P14)=0.1で子の第1分割ラインP1314及び第2分割ラインP1415に分かれている。第5階層及び第6階層において、第2分割ラインP46を新たな被分割ラインP46とすると共に親として、ラインP46が離間度S(P5)=0.1で子の第1分割ラインP45及び第2分割ラインP56に分かれている。 In the tree structure shown in FIG. 8, in the 0th hierarchy and the 1st hierarchy, the line P 1 P 18 is set as the root (root) of the tree structure. First, the line P 1 P 18 has a separation degree S (P 11 ) = 11. 2 is divided into a child first division line P 1 P 11 and a second division line P 11 P 18 . In the first hierarchy and the second hierarchy, the first divided line P 1 P 11 is set as a new divided line P 1 P 11 and the parent, and the line P 1 P 11 is separated by S (P 7 ) = 10.4. Is divided into a child first divided line P 1 P 7 and a second divided line P 7 P 11 , and the second divided line P 11 P 18 is used as a new divided line P 11 P 18 and a parent line. P 11 P 18 is divided into child first division line P 11 P 16 and second division line P 16 P 18 with a separation degree S (P 16 ) = 9.8. In the second and third hierarchies, the first divided line P 1 P 7 is set as a new divided line P 1 P 7 and the parent, and the line P 1 P 7 has a separation degree S (P 3 ) = 11.8. The first divided line P 1 P 3 and the second divided line P 3 P 7 are divided into the second divided line P 7 P 11 as a new divided line P 7 P 11 and the parent line P 7 P 11 is divided into a child first division line P 7 P 10 and a second division line P 10 P 11 with a separation degree S (P 10 ) = 1.2. Then, the first divided line P 11 P 16 is set as a new divided line P 11 P 16 and the parent is used as a parent, and the line P 11 P 16 is a child first divided line with a separation degree S (P 13 ) = 2.2. divided into P 11 P 13, and the second parting line P 13 P 16, the second parting line P 16 P 18 as a parent with a new object to be split line P 16 P 18, line P 16 P 18 is the degree of separation S ( P 17 ) = 1.6, which is divided into a child first division line P 16 P 17 and a second division line P 17 P 16 . In the third hierarchy and the fourth hierarchy, the first divided line P 1 P 3 is set as a new divided line P 1 P 3 and the parent, and the line P 1 P 3 has a separation degree S (P 2 ) = 1.4. The first divided line P 1 P 2 and the second divided line P 2 P 3 are divided into the second divided line P 3 P 7 as a new divided line P 3 P 7 and the parent line P 3 P 7 is divided into child first division line P 3 P 6 and second division line P 6 P 7 with a separation degree S (P 6 ) = 1.6. The first divided line P 7 P 10 is set as a new divided line P 7 P 10 and the parent, and the line P 7 P 10 has a degree of separation S (P 8 ) = 1.4 and the child first divided line P 7. Divided into P 8 and second dividing line P 8 P 10 . Then, the first divided line P 11 P 13 is set as a new divided line P 11 P 13 and the parent is used as a parent, and the line P 11 P 13 is a child first divided line with a separation degree S (P 12 ) = 1.0. Divided into P 11 P 12 and second divided line P 12 P 13 , the second divided line P 13 P 16 is used as a new divided line P 13 P 16 and the line P 13 P 16 has a separation degree S ( P 15 ) = 1.2, and the first divided line P 13 P 15 and the second divided line P 15 P 16 are divided. In the fourth layer and the fifth layer, the first divided line P 3 P 6 is set as a new divided line P 3 P 6 and the parent, and the line P 3 P 6 has a separation degree S (P 4 ) = 1.2. The first divided line P 3 P 4 and the second divided line P 4 P 6 are divided. The second divided line P 8 P 10 is used as a new divided line P 8 P 10 and the parent, and the line P 8 P 10 is a child first divided line P 8 with a separation degree S (P 9 ) = 0.3. Divided into P 9 and second dividing line P 9 P 10 . Then, the first divided line P 13 P 15 is set as a new divided line P 13 P 15 and the parent is used as a parent, and the line P 13 P 15 is a child first divided line with a separation degree S (P 14 ) = 0.1. It is divided into P 13 P 14 and a second dividing line P 14 P 15 . In the fifth layer and the sixth layer, the second divided line P 4 P 6 is set as a new divided line P 4 P 6 and the parent, and the line P 4 P 6 has a separation degree S (P 5 ) = 0.1. The first divided line P 4 P 5 and the second divided line P 5 P 6 are divided.

このようなツリー構造の二分木地図データは、例えば、被分割ラインを描画するための始点及び終点の各座標値と、離間度Sと、第1及び第2分割ラインのデータを格納するメモリアドレスとを一つのメモリアドレスに格納することによっても表記することができ、親子関係は、メモリアドレスの相互関係で示され、被分割ラインのデータを格納するメモリアドレスと、この被分割ラインのデータにおける第1及び第2分割ラインのデータを格納するメモリアドレスとの関係で示される。より具体的には、ツリー構造の二分木地図データは、例えば、ツリー構造の節点をC言語の構造体に対応させ、構造体に被分割ラインを描画するための始点及び終点の各座標値と、離間度Sと、第1及び第2分割ラインのデータを格納するポインタ変数を含ませることによって表記され、ポインタによって親子関係が示される。   The binary tree map data having such a tree structure is, for example, a memory address that stores the coordinate values of the start point and the end point for drawing the divided line, the degree of separation S, and the data of the first and second divided lines. Can also be expressed by storing them in one memory address, and the parent-child relationship is indicated by the mutual relationship of the memory addresses, and the memory address for storing the data of the divided line and the data of this divided line This is shown in relation to the memory address storing the data of the first and second divided lines. More specifically, the binary tree map data having a tree structure includes, for example, the coordinate values of the start point and the end point for drawing the split line in the structure by associating the nodes of the tree structure with the structure of the C language. The distance S is expressed by including a pointer variable for storing data of the first and second divided lines, and the parent-child relationship is indicated by the pointer.

なお、図4(B)には、分割ラインP1118における各内点P11〜P18の離間度Sも示されている。図5(A)には、分割ラインP711における各内点P8〜P10の離間度Sも示され、分割ラインP1118がその最大離間度の内点P16で分割されている様子、分割ラインP1116における各内点P12〜P15の離間度S及び分割ラインP1618における内点P17の離間度Sも示されている。図5(B)には、分割ラインP37における各内点P4〜P6の離間度Sも示され、分割ラインP711がその最大離間度の内点P10で分割されている様子、及び、分割ラインP710における各内点P8、P9の離間度Sも示され、分割ラインP1116がその最大離間度の内点P13で分割されている様子、分割ラインP1113における内点P12の離間度S、及び、分割ラインP1316における各内点P12〜P15の離間度Sも示され、そして、分割ラインP1618がその最大離間度の内点P17で分割されている様子も示されている。図6(A)には、分割ラインP37がその最大離間度の内点P6で分割されている様子、及び、分割ラインP36における各内点P4、P5の離間度Sも示され、分割ラインP710がその最大離間度の内点P8で分割されている様子、及び、分割ラインP810における内点P9の離間度Sも示され、分割ラインP1113がその最大離間度の内点P12で分割されている様子も示され、そして、分割ラインP1316がその最大離間度の内点P15で分割されている様子、及び、分割ラインP1315における内点P14の離間度Sも示されている。そして、図6(B)には、分割ラインP36がその最大離間度の内点P4で分割されている様子、及び、分割ラインP46における内点P5の離間度Sが示され、分割ラインP810がその最大離間度の内点P9で分割されている様子が示され、分割ラインP1315がその最大離間度の内点P14で分割されている様子が示されている。 FIG. 4B also shows the degree of separation S between the inner points P 11 to P 18 in the dividing line P 11 P 18 . FIG. 5A also shows the separation degree S of the inner points P 8 to P 10 in the dividing line P 7 P 11 , and the dividing line P 11 P 18 is divided at the inner point P 16 of the maximum separation degree. The separation degree S of the inner points P 12 to P 15 in the division line P 11 P 16 and the separation degree S of the inner point P 17 in the division line P 16 P 18 are also shown. FIG. 5B also shows the separation degree S of the inner points P 4 to P 6 in the dividing line P 3 P 7 , and the dividing line P 7 P 11 is divided at the inner point P 10 of the maximum separation degree. And the separation degree S of the inner points P 8 and P 9 in the division line P 7 P 10 are also shown, and the division line P 11 P 16 is divided at the inner point P 13 of the maximum separation degree. state, the degree of separation S of the interior point P 12 in the divided line P 11 P 13, and, the degree of separation S of each interior point P 12 to P 15 in the divided line P 13 P 16 also shown, and, parting line P 16 P A state is also shown in which 18 is divided by an inner point P 17 of the maximum separation degree. FIG. 6A shows that the dividing line P 3 P 7 is divided by the inner point P 6 having the maximum separation degree, and the inner points P 4 and P 5 are separated in the dividing line P 3 P 6 . The degree S is also shown, and the dividing line P 7 P 10 is divided at the maximum separation degree inner point P 8 , and the separation degree S of the inner point P 9 in the division line P 8 P 10 is also shown, It is also shown that the dividing line P 11 P 13 is divided at the inner point P 12 having the maximum separation degree, and the dividing line P 13 P 16 is divided at the inner point P 15 having the maximum separation degree. and, the degree of separation S of the interior point P 14 in the divided line P 13 P 15 are also shown. FIG. 6B shows a state in which the dividing line P 3 P 6 is divided at the inner point P 4 having the maximum separation degree, and the separation degree S of the inner point P 5 in the division line P 4 P 6 . Is shown, and the division line P 8 P 10 is divided at the maximum separation degree inner point P 9 , and the division line P 13 P 15 is divided at the maximum separation degree inner point P 14. The situation is shown.

次に、二分木地図データ作成出力装置1が二分木地図データから間引き度に応じた地図を出力する動作について説明する。   Next, an operation in which the binary tree map data creation / output device 1 outputs a map corresponding to the thinning degree from the binary tree map data will be described.

図9は、第1の実施形態に係る二分木地図データ作成出力装置における二分木地図データから間引き度に応じた地図を出力する動作を示すフローチャートである。   FIG. 9 is a flowchart showing an operation of outputting a map corresponding to the thinning-out degree from the binary tree map data in the binary tree map data creation / output device according to the first embodiment.

例えば、ユーザが上述の動作によって二分木地図データ作成出力装置1に二分木地図データを作成させることによって、あるいは、二分木地図データを記録した記録媒体から外部記憶部16を介してインストールすることによって、第1の実施形態に係る二分木地図データが記憶部14の二分木地図データ記憶部34に記憶される。そして、記憶部14の出力地図作成プログラム記憶部32から第1の実施形態に係る出力地図作成プログラムが呼び出されて実行され、例えば、ユーザが、二分木元地図データから間引き度Tに応じた地図を二分木地図データ作成出力装置1に出力させるべく、地図の出力開始コマンドを入力部12から入力すると、演算処理部11の出力地図作成処理部22は、記憶部14の二分木地図データ記憶部34に記憶されている二分木地図データに基づいて間引き度Tに応じた地図を出力する。   For example, when the user causes the binary tree map data creation output device 1 to create binary tree map data by the above-described operation, or by installing from the recording medium on which the binary tree map data is recorded via the external storage unit 16 The binary tree map data according to the first embodiment is stored in the binary tree map data storage unit 34 of the storage unit 14. And the output map creation program which concerns on 1st Embodiment is called from the output map creation program memory | storage part 32 of the memory | storage part 14, and is executed, for example, a user maps according to the thinning degree T from binary tree original map data. When the map output start command is input from the input unit 12 to output the binary tree map data creation / output device 1, the output map creation processing unit 22 of the arithmetic processing unit 11 causes the binary tree map data storage unit of the storage unit 14. A map corresponding to the thinning degree T is output based on the binary tree map data stored in 34.

即ち、図9において、まず、演算処理部11の出力地図作成処理部22は、ユーザに間引き度Tの入力を促し、ユーザが入力部12から間引き度Tを入力することによって、間引き度を受付ける(S30)。次に、出力地図作成処理部22は、二分木地図データから一のラインのデータを取り出し、この取り出したラインのデータから根のデータを最初の被分割ラインのデータとして取り出す(S31)。ここで、二分木地図データから根のデータを取り出すために、例えば、根のデータであることを示す符号(1又は複数の記号列)を根のデータに付したり、二分木地図データの特定の領域に根のデータを登録したり等すればよい。例えば、図7に示す二分木地図データテーブル101をラインごとに用意し、各二分木地図データにおいて、当該ラインの根のデータを常に管理番号1のレコードに登録するように構成する。   That is, in FIG. 9, first, the output map creation processing unit 22 of the arithmetic processing unit 11 prompts the user to input the thinning degree T and accepts the thinning degree when the user inputs the thinning degree T from the input unit 12. (S30). Next, the output map creation processing unit 22 extracts the data of one line from the binary tree map data, and extracts the root data from the extracted line data as the first divided line data (S31). Here, in order to extract the root data from the binary tree map data, for example, a code (one or a plurality of symbol strings) indicating the root data is added to the root data, or the binary tree map data is specified. For example, root data may be registered in this area. For example, the binary tree map data table 101 shown in FIG. 7 is prepared for each line, and in each binary tree map data, the root data of the line is always registered in the record of management number 1.

次に、出力地図作成処理部22は、被分割ラインのデータにおける離間度Sと間引き度Tとの大小関係を比較し、被分割ラインのデータにおける離間度Sが間引き度T以下であるか否かを判断する(S32)。   Next, the output map creation processing unit 22 compares the size relationship between the separation degree S and the thinning degree T in the data of the divided line, and whether or not the separation degree S in the data of the divided line is equal to or less than the thinning degree T. Is determined (S32).

ここで、被分割ラインのデータにおける離間度Sが間引き度Tより大きい場合では、この離間度Sの内点は、当該被分割ラインの始点と終点とを結ぶ線分から間引き度より大きく離れているので、当該被分割ラインは、少なくともこの離間度Sの内点で折れる折れ線で描画する必要がある。つまり、当該被分割ラインの分割ラインに対してさらにそのデータにおける離間度Sが間引き度T以下であるか否かを判断する必要がある。一方、被分割ラインのデータにおける離間度Sが間引き度T以下である場合では、当該被分割ラインの内点は、当該被分割ラインの始点と終点とを結ぶ線分から間引き度T以下の離間度Sでしか離れていないので、当該被分割ラインの内点は、間引いてよい。つまり、当該被分割ラインの内点は、描画のデータとして採用しなくてもよく、当該被分割ラインを当該被分割ラインの始点及び終点を結ぶ線分で描画してよい。   Here, when the separation degree S in the data of the divided line is larger than the thinning degree T, the inner point of the separation degree S is farther than the thinning degree from the line segment connecting the start point and the end point of the divided line. Therefore, it is necessary to draw the divided line by a broken line that breaks at the inner point of the degree of separation S. That is, it is necessary to determine whether or not the separation degree S in the data is equal to or less than the thinning-out degree T with respect to the division line of the division line. On the other hand, when the separation degree S in the data of the divided line is equal to or smaller than the thinning degree T, the inner point of the divided line is a separation degree equal to or smaller than the thinning degree T from the line segment connecting the start point and the end point of the divided line. Since they are separated only by S, the inner point of the divided line may be thinned out. That is, the inner point of the divided line may not be used as drawing data, and the divided line may be drawn by a line segment connecting the start point and the end point of the divided line.

従って、処理S32における判断の結果、被分割ラインのデータにおける離間度Sが間引き度Tより大きい場合(No)には、出力地図作成処理部22は、当該被分割ラインの分割ラインを未処理データとして記憶部14に記憶する(S33)。そして、出力地図作成処理部22は、記憶部14に記憶されている未処理データから一の分割ラインを取り出し、この取り出した分割ラインを新たな被分割ラインとして置換え(S34)、処理を処理S32に戻す。このように動作することによって被分割ラインの内点がユーザの間引き度Tに対応して間引くことが可能か否かが判断され、ツリー構造で言えば、第0階層の根から末端の下位の階層に向けて順に、深さ優先探索で判断される。   Accordingly, if the result of determination in process S32 is that the separation degree S in the data of the divided line is larger than the thinning degree T (No), the output map creation processing unit 22 sets the divided line of the divided line as unprocessed data. Is stored in the storage unit 14 (S33). Then, the output map creation processing unit 22 extracts one divided line from the unprocessed data stored in the storage unit 14, replaces the extracted divided line with a new divided line (S34), and processes the process S32. Return to. By operating in this way, it is determined whether or not the inner point of the divided line can be thinned out according to the thinning degree T of the user. The depth priority search is performed in order toward the hierarchy.

ここで、処理S33における分割ラインを未処理データとして記憶部14に記憶する場合は、分割ラインにおけるラインの名称を順にスタックし、処理S34における新たな被分割ラインに置き換える分割ラインの取り出しは、ラースト・イン・ファースト・アウトとしてもよい。   Here, when the division line in process S33 is stored in the storage unit 14 as unprocessed data, the line names in the division line are sequentially stacked, and the division line to be replaced with the new division line in process S34 is extracted in the last.・ It may be in first out.

一方、処理S32における判断の結果、被分割ラインの二分木データにおける離間度Sが間引き度T以下である場合では、出力地図作成処理部22は、当該被分割ラインの内点を間引いて、当該被分割ラインを当該被分割ラインの始点及び終点の各座標値を出力部13に出力する(S41)。出力部13は、この始点及び終点を結ぶ線分を描画する。このように動作することによって当該被分割ラインの内点を間引いて当該被分割ラインが出力され、当該被分割ラインに含まれる各分割ラインに対し、当該分割ラインの内点をユーザの間引き度に対応して間引くことが必要であるか否かを判断する必要がない。ツリー構造で言えば、当該被分割ラインの階層より末端の下位の階層における分割ラインに対し、ユーザの間引き度Tに対応して間引くことが必要であるか否かを判断する必要がない。即ち、データの処理時間が省略され、ユーザの間引き度Tに応じた地図が高速に出力される。   On the other hand, as a result of the determination in the process S32, when the separation degree S in the binary tree data of the divided line is equal to or less than the thinning degree T, the output map creation processing unit 22 thins out the inner point of the divided line, The coordinate values of the start point and end point of the divided line are output to the output unit 13 (S41). The output unit 13 draws a line segment connecting the start point and the end point. By operating in this way, the divided line is output by thinning out the inner point of the divided line, and for each divided line included in the divided line, the inner point of the divided line is set to the user's thinning degree. There is no need to determine whether it is necessary to thin out correspondingly. In terms of the tree structure, it is not necessary to determine whether or not it is necessary to thin out the divided lines in the lower hierarchy at the end of the hierarchy of the divided line according to the thinning degree T of the user. That is, the data processing time is omitted, and a map corresponding to the thinning degree T of the user is output at high speed.

そして、出力地図作成処理部22は、分割ラインで未処理データがあるか否かを判断する(S42)。処理S42における判断の結果、未処理データがある場合(Yes)には、出力地図作成処理部22は、記憶部14に記憶されている未処理データから一の分割ラインを取り出し、この取り出した分割ラインを新たな被分割ラインとして置換え(S43)、処理を処理S32に戻す。一方、処理S42における判断の結果、未処理データがない場合(No)には、出力地図作成処理部22は、上述の処理S32乃至処理S34及び処理S41乃至処理S43の間引き処理が未処理の、二分木地図データにおけるラインがあるか否かを判断する(S35)。   Then, the output map creation processing unit 22 determines whether there is unprocessed data in the division line (S42). If there is unprocessed data as a result of the determination in step S42 (Yes), the output map creation processing unit 22 extracts one division line from the unprocessed data stored in the storage unit 14, and the extracted division The line is replaced with a new divided line (S43), and the process returns to the process S32. On the other hand, if there is no unprocessed data as a result of the determination in step S42 (No), the output map creation processing unit 22 has not performed the thinning-out processing of the above-described processing S32 to S34 and processing S41 to S43. It is determined whether there is a line in the binary tree map data (S35).

処理S35における判断の結果、二分木地図データにおいて間引き処理が未処理のラインがある場合(Yes)には、出力地図作成処理部22は、二分木地図データの他のラインについて間引き処理を実行すべく、処理を処理S32に戻して上述の処理S32乃至処理S34及び処理S41乃至処理S43の処理を続行する。一方、処理S35における判断の結果、二分木地図データにおいて間引き処理が未処理のラインがない場合(No)には、出力地図作成処理部22は、処理を終了する。   If the result of determination in step S35 is that there is an unprocessed line in the binary tree map data (Yes), the output map creation processing unit 22 executes the thinning process on other lines of the binary tree map data. Accordingly, the process is returned to the process S32, and the processes of the above-described processes S32 to S34 and processes S41 to S43 are continued. On the other hand, as a result of the determination in step S35, if there is no unprocessed line in the binary tree map data (No), the output map creation processing unit 22 ends the process.

このように動作することによって二分木地図データ作成出力装置1は、二分木地図データからユーザの間引き度Tに応じた地図を出力することができる。そして、二分木地図データ作成出力装置1は、地図の被分割ライン(元のライン及び分割ライン)を出力する場合、被分割ラインを分割する内点の離間度Sとユーザが入力した間引き度Tを比較することにより当該離間度Sが間引き度T以下である場合には、当該被分割ラインに含まれる各分割ラインに対し、当該分割ラインの内点をユーザの間引き度Tに対応して間引くことが必要であるか否かを判断する必要がない。従って、二分木地図データ作成出力装置1は、データの処理時間が省略され、ユーザの間引き度Tに応じた地図を高速に出力し得る。このため、ユーザは、利用目的に応じて間引いた地図を二分木地図データ作成出力装置1によって容易に、高速に得ることができる。そして、間引き度Tと縮尺とを適宜に対応付けることにより、二分木地図データ作成出力装置1は、任意縮尺の地図を容易に、高速に作成することができる。また、間引き度Tとサイズとを適宜に対応付けることにより、二分木地図データ作成出力装置1は、任意サイズに応じた地図を容易に、高速に作成することができる。さらに、間引き度Tと解像度とを適宜に対応付けることにより、二分木地図データ作成出力装置1は、任意解像度に応じた地図を容易に、高速に作成することができる。   By operating in this manner, the binary tree map data creation / output device 1 can output a map corresponding to the thinning degree T of the user from the binary tree map data. When the binary tree map data creation / output device 1 outputs the split line (original line and split line) of the map, the separation degree S of the inner points dividing the split line and the thinning degree T input by the user. If the separation degree S is equal to or less than the thinning-out degree T, the inner points of the divided lines are thinned out corresponding to the thinning-out degree T of the divided lines included in the divided line. There is no need to decide whether or not it is necessary. Therefore, the binary tree map data creation / output device 1 can omit the data processing time and can output a map corresponding to the thinning degree T of the user at high speed. For this reason, the user can easily obtain a map thinned out according to the purpose of use by the binary tree map data creation output device 1 at high speed. Then, by appropriately associating the thinning-out degree T and the scale, the binary tree map data creation / output device 1 can easily create a map of any scale at high speed. Further, by appropriately associating the thinning-out degree T with the size, the binary tree map data creation / output device 1 can easily create a map according to an arbitrary size at high speed. Furthermore, by appropriately associating the thinning-out degree T with the resolution, the binary tree map data creation / output device 1 can easily create a map corresponding to an arbitrary resolution at high speed.

上述から分かるように、二分木地図データから間引き度に応じて作成される地図は、二分木地図データを構成する各ラインデータに対し間引き処理を実行し、その結果得られた各被分割ライン(元のライン及び分割ライン)を順に出力するものである。このため、図9に示す処理をより具体的に説明するために、一具体例として図7に示す二分木地図データテーブル101を用いて、1つのラインを出力する場合について以下に説明する。   As can be seen from the above, the map created according to the degree of thinning from the binary tree map data is subjected to thinning processing on each line data constituting the binary tree map data, and each divided line ( The original line and the divided line) are output in order. Therefore, in order to describe the process shown in FIG. 9 more specifically, a case where one line is output using the binary tree map data table 101 shown in FIG. 7 as a specific example will be described below.

図10は、記憶部14に未処理データとして記憶される分割ラインの様子を示す図である。図11は、間引き処理後のラインを示す図である。   FIG. 10 is a diagram illustrating a state of the divided lines stored as unprocessed data in the storage unit 14. FIG. 11 is a diagram illustrating a line after the thinning process.

図7に示す二分木地図データから間引き度に応じた地図を出力すべく、二分木地図データ作成出力装置1が動作すると、演算処理部11の出力地図作成処理部22は、処理S30を実行する。出力地図作成処理部22は、処理S30で例えば間引き度T=5が入力されると、処理S31を実行することにより、被分割ラインのデータとしてラインP118の根のデータを取り出すべく、図7に示す例では、二分木地図データテーブル101から管理番号1のレコードにおけるデータを取り出す。 When the binary tree map data creation / output device 1 operates to output a map corresponding to the thinning degree from the binary tree map data shown in FIG. 7, the output map creation processing unit 22 of the arithmetic processing unit 11 executes the process S30. . For example, when the decimation degree T = 5 is input in the process S30, the output map creation processing unit 22 executes the process S31 to extract the root data of the line P 1 P 18 as the divided line data. In the example shown in FIG. 7, data in the record with the management number 1 is extracted from the binary tree map data table 101.

そして、出力地図作成処理部22は、処理S32を実行することにより、この取り出した被分割ラインP118のデータにおける離間度S(P11)=11.2が間引き度T=5以下であるか否かを判断する。判断の結果、離間度Sが間引き度Tよりも大きいので、出力地図作成処理部22は、処理S33を実行することにより、被分割ラインP118のデータからその第1及び第2分割ラインP111、P1118を記憶部14に記憶する(図10(A)参照)。次に、出力地図作成処理部22は、処理S34を実行することにより、記憶部14に記憶されている分割ラインP111、P1118から例えばラースト・イン・ファースト・アウトで分割ラインP111を取り出し(図10(B)参照)、この取り出した分割ラインP111を新たな被分割ラインP111に置換え、処理をS32に戻す。 Then, the output map creation processing unit 22 executes the process S32 so that the separation degree S (P 11 ) = 11.2 in the data of the taken-out divided line P 1 P 18 is the thinning degree T = 5 or less. Judge whether there is. As a result of the determination, since the separation degree S is larger than the thinning degree T, the output map creation processing unit 22 executes the process S33 to thereby obtain the first and second divided lines from the data of the divided line P 1 P 18. P 1 P 11 and P 11 P 18 are stored in the storage unit 14 (see FIG. 10A). Next, the output map creation processing unit 22 executes the process S34, thereby dividing the divided lines P 1 P 11 and P 11 P 18 stored in the storage unit 14 into, for example, last-in-first-out divided lines. removed P 1 P 11 (see FIG. 10 (B)), replacing the parting line P 1 P 11 that the take-out to the new the split line P 1 P 11, returns the process to S32.

処理が戻され、出力地図作成処理部22は、処理S32を実行することにより、この被分割ラインP111のデータにおける離間度S(P7)=10.4が間引き度T=5以下であるか否かを判断する。判断の結果、離間度Sが間引き度Tよりも大きいので、出力地図作成処理部22は、処理S33を実行することにより、被分割ラインP111のデータからその第1及び第2分割ラインP17、P711を記憶部14に記憶する(図10(C)参照)。次に、出力地図作成処理部22は、処理S34を実行することにより、記憶部14に記憶されている分割ラインP17、P711、P1118から例えば分割ラインP17を取り出し(図10(D)参照)、この取り出した分割ラインP17を新たな被分割ラインP17に置換え、処理をS32に戻す。 The process is returned, and the output map creation processing unit 22 executes the process S32 so that the separation degree S (P 7 ) = 10.4 in the data of the divided line P 1 P 11 is less than the thinning degree T = 5. It is determined whether or not. As a result of the determination, since the separation degree S is larger than the thinning degree T, the output map creation processing unit 22 executes the process S33 to thereby obtain the first and second divided lines from the data of the divided line P 1 P 11. P 1 P 7 and P 7 P 11 are stored in the storage unit 14 (see FIG. 10C). Next, the output map creation processing unit 22 executes, for example, the divided line P 1 P from the divided lines P 1 P 7 , P 7 P 11 , and P 11 P 18 stored in the storage unit 14 by executing the process S34. 7 was removed (see FIG. 10 (D)), replacing the parting line P 1 P 7 taken out to the new the split line P 1 P 7, returns the processing to S32.

処理が戻され、出力地図作成処理部22は、処理S32を実行することにより、このラインP17のデータにおける離間度S(P3)=11.8が間引き度T=5以下であるか否かを判断する。判断の結果、離間度Sが間引き度Tよりも大きいので、出力地図作成処理部22は、処理S33を実行することにより、被分割ラインP17のデータからその第1及び第2分割ラインP13、P37を記憶部14に記憶する(図10(E)参照)。次に、出力地図作成処理部22は、処理S34を実行することにより、記憶部14に記憶されている分割ラインP13、P37、P711、P1118から例えば分割ラインP13を取り出し(図10(F)参照)、この取り出した分割ラインP13を新たな被分割ラインP13に置換え、処理をS32に戻す。 The process is returned, and the output map creation processing unit 22 executes the process S32 so that the separation degree S (P 3 ) = 11.8 in the data of the line P 1 P 7 is equal to or less than the thinning degree T = 5. Determine whether or not. As a result of the determination, since the separation degree S is larger than the thinning degree T, the output map creation processing unit 22 executes the process S33 to thereby obtain the first and second divided lines from the data of the divided line P 1 P 7. P 1 P 3 and P 3 P 7 are stored in the storage unit 14 (see FIG. 10E). Next, the output map creation processing unit 22 executes, for example, the processing line S34, from the division lines P 1 P 3 , P 3 P 7 , P 7 P 11 , P 11 P 18 stored in the storage unit 14. the parting line P 1 P 3 extraction (see FIG. 10 (F)), replacing the parting line P 1 P 3 taken out to the new the split line P 1 P 3, the process returns to S32.

処理が戻され、出力地図作成処理部22は、処理S32を実行することにより、このラインP13のデータにおける離間度S(P2)=1.4が間引き度T=5以下であるか否かを判断する。判断の結果、離間度Sが間引き度Tよりも小さいので、出力地図作成処理部22は、処理S41を実行することにより、被分割ラインP13のデータからその始点P1の座標値(x1、y1)及び終点P3の座標値(x3、y3)を取り出し、始点P1及び終点P3を結ぶ線分を出力部13に出力する。次に、出力地図作成処理部22は、処理S42を実行することにより、記憶部14に未処理データとして分割ラインが記憶されているか否かを判断する。判断の結果、記憶部14には分割ラインP37、P711、P1118が記憶されているので、未処理データとしての分割ラインがあると判断され、出力地図作成処理部22は、処理S43を実行することにより、例えば分割ラインP37を取り出し(図10(G)参照)、この取り出した分割ラインP37を新たな被分割ラインP37に置換え、処理をS32に戻す。 The process is returned, and the output map creation processing unit 22 executes the process S32 so that the separation degree S (P 2 ) = 1.4 in the data of the line P 1 P 3 is equal to or less than the thinning degree T = 5. Determine whether or not. As a result of the determination, since the separation degree S is smaller than the thinning degree T, the output map creation processing unit 22 executes the process S41 to thereby obtain the coordinate value ( 1) of the start point P 1 from the data of the divided line P 1 P 3. x 1, y 1) and the coordinate values of the end point P 3 and (x 3, y 3) is taken out, and outputs a line segment connecting the start point P 1 and the end point P 3 to the output unit 13. Next, the output map creation processing unit 22 determines whether or not a divided line is stored as unprocessed data in the storage unit 14 by executing step S42. As a result of the determination, since the divided lines P 3 P 7 , P 7 P 11 , and P 11 P 18 are stored in the storage unit 14, it is determined that there is a divided line as unprocessed data, and the output map creation processing unit 22 executes processing S43 to take out, for example, the dividing line P 3 P 7 (see FIG. 10G), and replaces the taken out dividing line P 3 P 7 with a new divided line P 3 P 7 . The process returns to S32.

処理が戻され、未処理データとしての分割ラインP37、P711、P1118についても同様に処理されることにより、記憶部14の記憶内容が図10(H)から図10(L)まで順に変化しながら、分割ラインP37の始点P3及び終点P7を結ぶ線分、分割ラインP711の始点P7及び終点P11を結ぶ線分、分割ラインP1116の始点P11及び終点P16を結ぶ線分、分割ラインP1618の始点P16及び終点P18を結ぶ線分がこの順で出力部13に出力される。なお、図10(I)、図10(L)は、記憶部14に未処理データとしての分割ラインが記憶されていない状態を示している。 The processing is returned, and the divided lines P 3 P 7 , P 7 P 11 , and P 11 P 18 as unprocessed data are processed in the same manner, so that the storage contents of the storage unit 14 are shown in FIG. while changes in the sequence to 10 (L), the line segment connecting the start point P 3 and the end point P 7 of parting line P 3 P 7, line segment connecting the starting point P 7 and the end point P 11 of the parting line P 7 P 11, division lines line segment connecting the start point P 11 and the end point P 16 of P 11 P 16, the line segment connecting the start point P 16 and the end point P 18 of the parting line P 16 P 18 is output to the output section 13 in this order. 10 (I) and 10 (L) show a state in which the division line as unprocessed data is not stored in the storage unit 14.

図3(B)に示すラインP118は、図7に示す二分木地図データテーブル101に基づいてこのように処理されることにより、間引き度T=5の場合には、図11に示すように、分割ラインP13、分割ラインP37、分割ラインP711、分割ラインP1116及び分割ラインP1618を結ぶ線分として出力部13に出力され、描画される。 The line P 1 P 18 shown in FIG. 3B is processed in this manner based on the binary tree map data table 101 shown in FIG. 7, so that the thinning degree T = 5 is shown in FIG. As described above, the divided line P 1 P 3 , the divided line P 3 P 7 , the divided line P 7 P 11 , the divided line P 11 P 16 and the divided line P 16 P 18 are output to the output unit 13 as line segments and drawn. Is done.

ここで、ツリー構造の二分木地図データをC言語の構造体を用いて表記した場合には、例えば、ツリー構造の根から一つの分岐における末端の葉に向けて、当該節点における離間度Sと間引き度Tとを比較しながら各節点のデータを辿り、比較の結果、離間度Sが間引き度T以下になったところで当該節点のデータにおける被分割ラインを描画すべく出力し、未処理の分岐を持つ上位階層の節点に上がる。この未処理の分岐を処理すべく、同様に、末端の葉に向けて当該節点における離間度Sと間引き度Tとを比較しながら各節点のデータを辿り、比較の結果、離間度Sが間引き度T以下になったところで当該節点のデータにおける被分割ラインを描画すべく出力し、未処理の分岐を持つ上位階層の節点に上がる。このような処理を未処理の分岐が無くなるまで繰り返すことによって二分木地図データから間引き度Tに応じた地図を出力する動作が行われる。このとき、出力されるラインに対応する節点とそれより上位階層に位置する節点しか探索しないことから、計算に要するステップ数が出力すべきラインの本数に略比例する数で抑えることができる。ツリー構造の二分木地図データをC言語の構造体を用いて表記した場合には、ポインタを用いて親子関係を辿れるので、より高速に二分木地図データから間引き度Tに応じた地図をそのデータサイズに略比例する計算量だけで出力することができる。   Here, when the tree-structured binary tree map data is expressed using a C language structure, for example, the separation degree S at the corresponding node from the root of the tree structure toward the terminal leaf in one branch The data of each node is traced while comparing with the thinning degree T. When the separation degree S becomes equal to or less than the thinning degree T as a result of the comparison, an output is made to draw the divided line in the data of the node, and an unprocessed branch Go up to a node in the upper hierarchy with. In order to process this unprocessed branch, similarly, the data of each node is traced toward the terminal leaf while comparing the separation degree S and the thinning degree T at the relevant node. When the temperature becomes T or less, the divided line in the data of the node is output to be drawn, and the node goes up to a node in an upper layer having an unprocessed branch. By repeating such processing until there is no unprocessed branch, an operation for outputting a map corresponding to the thinning degree T from the binary tree map data is performed. At this time, since only the node corresponding to the output line and the node positioned higher than that are searched, the number of steps required for the calculation can be suppressed to a number approximately proportional to the number of lines to be output. When tree-structured binary tree map data is expressed using a C language structure, the parent-child relationship can be traced using a pointer, so that a map corresponding to the thinning-out degree T can be obtained from the binary tree map data at a higher speed. It is possible to output with only the calculation amount approximately proportional to the size.

次に、別の実施形態について説明する。
(第2の実施形態の構成)
上述した第1の実施形態に係る二分木地図データ作成出力装置1では、二分木地図データは、被分割ラインとされたライン及び分割ラインについてデータを備えればよいので、二分木地図データの容量は、少なくいて済むが、地図を出力する場合にツリー構造で言えば根のデータから下位の階層に向けて深さ優先探索で各データを間引き処理する必要があり、データ処理効率の点で改善する余地がある。
Next, another embodiment will be described.
(Configuration of Second Embodiment)
In the binary tree map data creation / output device 1 according to the first embodiment described above, the binary tree map data only needs to include data for the lines and the divided lines that are the divided lines. In the tree structure when outputting a map, it is necessary to thin out each data by depth-first search from the root data to the lower hierarchy in the tree structure, which improves the data processing efficiency There is room to do.

そこで、第2の実施形態に係る二分木地図データ作成出力装置2は、元地図データから二分木地図データを作成する場合には、上述のように作成されるツリー構造の二分木地図データに対し、さらにツリー構造における各離間度Sを、ライン(根)から内点を持たない分割ライン(葉)までの親から子孫まで、被分割ラインを第1及び第2分割ラインに分割する際の離間度Sを順次に辿った場合に、当該分割する際の離間度Sを含め子孫側の離間度Sのうちの最大値で置き換え、ライン及び総ての分割ラインのデータを備えるように二分木地図データを構成し、二分木地図データに基づいて間引き度Tに応じた地図を出力する場合には、ライン及び各分割ラインにおける後述の親離間度Sp及び子離間度Scと間引き度Tとを比較し、所定の条件を満たすライン及び分割ラインを抽出することにより、間引き度Tに応じた地図を出力するものである。   Therefore, when creating binary tree map data from the original map data, the binary tree map data creation / output device 2 according to the second embodiment applies to the tree-structured binary tree map data created as described above. Further, each separation degree S in the tree structure is separated when dividing the divided line into first and second divided lines from a parent (from a line (root)) to a divided line (leaf) having no interior point to a descendant. When the degree S is traced sequentially, the binary tree map is replaced with the maximum value of the degree of separation S on the descendant side including the degree of separation S when the division is performed, and the data of the line and all the divided lines are provided. When the data is composed and a map corresponding to the thinning degree T is output based on the binary tree map data, the thinning degree T is compared with the parent separation degree Sp and the child separation degree Sc described later in the line and each divided line. And given By extracting the lines and dividing lines satisfy the matter, and outputs a map corresponding to the thinning of T.

このため、第2の実施形態に係る二分木地図データ作成出力装置2は、第1の実施形態に係る二分木地図データ作成出力装置1における二分木地図データ作成プログラム記憶部31及び出力地図作成プログラム記憶部32の代わりに、後述のように動作する第2の実施形態に係る二分木地図データ作成プログラム及び出力地図作成プログラムをそれぞれ記憶する二分木地図データ作成プログラム記憶部51及び出力地図作成プログラム記憶部52が備えられ、第1の実施形態に係る二分木地図データ作成出力装置1における二分木地図データ作成処理部21及び出力地図作成処理部22の代わりに、第2の実施形態に係る二分木地図データ作成処理部41及び出力地図作成処理部42が備えられ、第1の実施形態に係る二分木地図データ作成出力装置1における二分木地図データ記憶部34の代わりに、二分木地図データ作成処理部41が作成した後述の二分木地図データを記憶する二分木地図データ記憶部54が備えられる点を除き、第1の実施形態に係る二分木地図データ作成出力装置1の構成と同様であるので、その説明を省略する。   Therefore, the binary tree map data creation / output device 2 according to the second embodiment includes the binary tree map data creation program storage unit 31 and the output map creation program in the binary tree map data creation / output device 1 according to the first embodiment. Instead of the storage unit 32, a binary tree map data generation program storage unit 51 and an output map generation program storage for storing a binary tree map data generation program and an output map generation program according to the second embodiment that operate as described below, respectively. A binary tree according to the second embodiment is provided instead of the binary tree map data creation processing unit 21 and the output map creation processing unit 22 in the binary tree map data creation output device 1 according to the first embodiment. A map data creation processing unit 41 and an output map creation processing unit 42 are provided, and binary tree map data creation according to the first embodiment A binary tree map data storage unit 54 for storing binary tree map data (described later) created by the binary tree map data creation processing unit 41 is provided in place of the binary tree map data storage unit 34 in the force device 1, except that Since it is the same as that of the structure of the binary tree map data creation output device 1 which concerns on 1 embodiment, the description is abbreviate | omitted.

この第2の実施形態に係る二分木地図データ作成処理部41は、後述の動作によって元地図データから第2の実施形態に係る二分木地図データを作成するものであり、本実施形態では、被分割ラインにおける始点及び終点の各座標値と、親離間度Spとして被分割ラインを生成する際の離間度Sと、子離間度Scとして被分割ラインの始点及び終点の間における被分割ライン上に在る内点の離間度Sのうちの最大の離間度Smaxと、最大の離間度Smaxを持つ内点で被分割ラインを2個に分割することによって生成された第1及び第2分割ラインと当該被分割ラインを生成した被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備え、被分割ラインが、始点及び終点の各座標値と前記始点及び終点の間における当該線上に在る内点の座標値とを備える地図上に線で表され得るライン、及び、被分割ラインを最大の離間度を持つ内点で2個に分割することによって生成される総ての第1及び第2分割ラインであって、親離間度Sp及び子離間度Scは、ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際の離間度Sを順次に辿った場合に、当該分割する際の離間度Sを含め子孫側の離間度Sのうちの最大値で置き換えた値である第2の実施形態に係る二分木地図データを作成するものである。より具体的には、二分木地図データ作成処理部41は、例えば、本実施形態では、離間度演算部211と、被分割ライン分割処理部212と、ライン分割処理部213と、被分割ライン分割処理部212で被分割ラインを分割する際の最大の離間度Smaxを子離間度Scとすると共に被分割ラインを生成する際の離間度Sを親離間度Spとして、親離間度Sp及び子離間度Scを、ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際の離間度Sを順次に辿った場合に、当該分割する際の離間度Sを含め子孫側の離間度Sのうちの最大値で置き換える置換処理部415(図1に破線で示す。)と、第1の実施形態における作成処理部214の代わりに、ライン及び総ての分割ラインにおける始点及び終点の各座標値と、置換処理部415で処理された親離間度Spと、置換処理部415で処理された子離間度Scと、被分割ライン分割処理部212で生成された第1及び第2分割ラインと当該被分割ラインを生成した被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える二分木地図データを作成する作成処理部414とを備える。   The binary tree map data creation processing unit 41 according to the second embodiment creates the binary tree map data according to the second embodiment from the original map data by the operation described later. Each coordinate value of the start point and end point in the division line, the separation degree S when generating the divided line as the parent separation degree Sp, and the division line between the start point and the end point of the division line as the child separation degree Sc The maximum separation degree Smax among the separation degrees S of the existing internal points, and the first and second divided lines generated by dividing the divided line into two at the internal point having the maximum separation degree Smax, It is provided with a parent-child relationship information representing a parent-child relationship that is a correspondence relationship with the split line that generated the split line, and the split line is between each coordinate value of the start point and the end point and the start point and the end point. A line that can be represented by a line on the map with the coordinate value of the internal point on the line, and all that are generated by dividing the line to be divided into two at the internal point having the greatest degree of separation The parent separation degree Sp and the child separation degree Sc are the first and second divided lines, and the divided line from the parent to the descendant from the line to the divided line having no inner point is changed to the first and second divided lines. When the separation degree S at the time of division is sequentially traced, the binary according to the second embodiment is a value that is replaced with the maximum value of the separation degree S on the descendant side including the separation degree S at the time of division. Creates tree map data. More specifically, the binary tree map data creation processing unit 41, for example, in this embodiment, the separation degree calculation unit 211, the divided line division processing unit 212, the line division processing unit 213, and the divided line division The maximum separation degree Smax when dividing the divided line by the processing unit 212 is set as the child separation degree Sc and the separation degree S when generating the divided line is set as the parent separation degree Sp, and the parent separation degree Sp and the child separation degree When the degree Sc is sequentially traced by the separation degree S when the divided line is divided into the first and second divided lines from the parent to the descendant from the line to the divided line having no interior point, In place of the replacement processing unit 415 (shown by a broken line in FIG. 1) and the creation processing unit 214 in the first embodiment, the replacement processing unit 415 replaces with the maximum value of the descending side separation degree S including the separation degree S of All split lies The coordinate values of the start point and the end point in FIG. 5, the parent separation degree Sp processed by the replacement processing unit 415, the child separation degree Sc processed by the replacement processing unit 415, and the first generated by the divided line division processing unit 212 A creation processing unit 414 that creates binary tree map data that includes parent-child relationship information that represents a parent-child relationship that is a correspondence relationship between the first and second divided lines and the divided line that generated the divided line. .

また、第2の実施形態に係る出力地図作成処理部42は、後述の動作によって二分木地図データに基づく間引き度Tに応じた地図を作成してこの作成した地図を出力部13に出力するものであり、被分割ラインの親離間度Sp及び子離間度Scと入力部12で入力された間引き度Tとを順次に比較し、比較した結果、間引き度Tより大きい親離間度Spを持ち、かつ、間引き度T以下の子離間度Scを持つ被分割ラインにおける始点及び終点の各座標値を取得し、出力部13に出力するものである。   Further, the output map creation processing unit 42 according to the second embodiment creates a map according to the thinning degree T based on the binary tree map data by the operation described later, and outputs the created map to the output unit 13. The parent separation degree Sp and the child separation degree Sc of the divided line are sequentially compared with the thinning degree T inputted at the input unit 12, and as a result of comparison, the parent separation degree Sp larger than the thinning degree T is obtained. In addition, each coordinate value of the start point and the end point in the divided line having a child separation degree Sc equal to or less than the thinning-out degree T is acquired and output to the output unit 13.

次に、本実施形態の動作について説明する。
(第2の実施形態の動作)
まず、二分木地図データ作成出力装置2が元地図データから二分木地図データを作成する動作について説明する。
Next, the operation of this embodiment will be described.
(Operation of Second Embodiment)
First, the operation in which the binary tree map data creation / output device 2 creates binary tree map data from the original map data will be described.

図12は、第2の実施形態に係る二分木地図データ作成出力装置における二分木地図データを作成する動作を示すフローチャートである。図13は、第2の実施形態に係る二分木地図データ作成出力装置における離間度の置換処理の動作を示すフローチャートである。図14は、第2の実施形態に係るテーブルで表現した二分木地図データ(置換処理前)を示す図である。図15は、第2の実施形態に係るテーブルで表現した二分木地図データ(置換処理後)を示す図である。図16は、第2の実施形態に係るツリー構造で表現した二分木地図データを示す図である。   FIG. 12 is a flowchart showing an operation of creating binary tree map data in the binary tree map data creation / output device according to the second embodiment. FIG. 13 is a flowchart showing the operation of the degree-of-separation replacement process in the binary tree map data creation / output device according to the second embodiment. FIG. 14 is a diagram illustrating binary tree map data (before replacement processing) expressed by a table according to the second embodiment. FIG. 15 is a diagram illustrating binary tree map data (after replacement processing) expressed by a table according to the second embodiment. FIG. 16 is a diagram illustrating binary tree map data expressed in a tree structure according to the second embodiment.

例えば、第1の実施形態と同様に、元地図データが記憶部14の元地図データ記憶部33に記憶され、記憶部14の二分木地図データ作成プログラム記憶部51から二分木地図データ作成プログラムが呼び出されて実行され、ユーザが二分木地図データの作成開始コマンドを入力部12から入力すると、演算処理部11の二分木地図データ作成処理部41は、記憶部14の元地図データ記憶部33に記憶されている元地図データに基づいて二分木地図データを作成する。   For example, as in the first embodiment, the original map data is stored in the original map data storage unit 33 of the storage unit 14, and the binary tree map data generation program is stored in the binary tree map data generation program storage unit 51 of the storage unit 14. When called and executed, and the user inputs a binary tree map data creation start command from the input unit 12, the binary tree map data creation processing unit 41 of the arithmetic processing unit 11 is stored in the original map data storage unit 33 of the storage unit 14. Binary tree map data is created based on the stored original map data.

即ち、図12において、まず、演算処理部11の二分木地図データ作成処理部41は、ライン分割処理部213によって、元地図データのラインデータを二分木地図データに変換すべく、元地図データから一のラインデータを取り出す(S50)。   That is, in FIG. 12, first, the binary tree map data creation processing unit 41 of the arithmetic processing unit 11 uses the original map data to convert the line data of the original map data into binary tree map data by the line division processing unit 213. One line data is taken out (S50).

続けて二分木地図データ作成処理部41が実行する、各内点の離間度を演算する処理(S51)、最大離間度の内点を検索し抽出する処理(S52)、及び、ラインを二分する処理(S53)は、図2に基づいて上述した第1の実施形態における二分木地図データ作成処理部21が実行する、処理S11、処理S12及び処理S13とそれぞれ同様であるので、その説明を省略する。   Subsequently, the binary tree map data creation processing unit 41 executes a process of calculating the degree of separation of each interior point (S51), a process of searching for and extracting the interior point of the maximum degree of separation (S52), and a line bisection. The processing (S53) is the same as the processing S11, processing S12 and processing S13 executed by the binary tree map data creation processing unit 21 in the first embodiment described above with reference to FIG. To do.

そして、次に、二分木地図データ作成処理部41は、作成処理部414によって、当該ラインを描画するためのデータ、当該ラインと分割ライン(第1及び第2分割ライン)との関係、当該ラインが生成される際の内点の離間度S(親離間度Sp)、及び、当該ラインを分割する内点の離間度S(子離間度Sc)の対応関係を表す第2の実施形態に係る二分木データを作成し、記憶部14に一時的に記憶する(S54)。   Then, the binary tree map data creation processing unit 41 uses the creation processing unit 414 to draw data for drawing the line, the relationship between the line and the divided line (first and second divided lines), the line According to the second embodiment, the correspondence between the separation degree S (parent separation degree Sp) of the inner point and the separation degree S (child separation degree Sc) of the inner point dividing the line is generated. Binary tree data is created and temporarily stored in the storage unit 14 (S54).

第2の実施形態に係る二分木データは、そのまま二分木地図データとすべく、例えば、図14及び図15に示すようにテーブル形式で記憶される。この図14及び図15に示す二分木地図データテーブル201’、201は、テーブルの各レコードを識別し特定するための識別子である管理番号を登録する管理番号フィールド211、被分割ラインに関するデータを登録する被分割ラインフィールド212、当該被分割ラインに対する親子関係に関するデータを登録する親子関係フィールド213、及び、当該被分割ラインに対する離間度Sに関するデータを登録する離間度フィールド214の各フィールドを備えて構成され、ライン及び総ての分割ラインごとにレコードが作成される。被分割ラインフィールド212は、さらに、被分割ラインを識別し特定するための識別子であるラインの名称を登録する被分割ライン名称サブフィールド221、当該被分割ラインにおける始点の座標値を登録する始点座標サブフィールド222、及び、当該被分割ラインにおける終点の座標値を登録する終点座標サブフィールド223の各サブフィールドを備えて構成される。そして、始点座標サブフィールド222及び終点座標サブフィールド223は、それぞれ、x座標サブフィールド231、233及びy座標サブフィールド232、234の各サブフィールドを備えて構成される。また、親子関係フィールド213は、さらに、最大離間度Smaxの内点で二分割されることによって当該被分割ラインを生成した被分割ライン(親のライン)を識別し特定するための識別子であるラインの名称を登録する被分割ライン名称サブフィールド224、及び、当該被分割ラインを二分割することによって生成される第1及び第2分割ライン(子のライン)に関するデータを登録する分割ラインサブフィールド225の各サブフィールドを備えて構成される。分割ラインサブフィールド225は、第1及び第2分割ラインを識別し特定するための識別子であるラインの名称を登録する第1及び第2分割ライン名称サブフィールド235、236の各サブフィールドを備えて構成される。離間度フィールド214は、さらに、当該被分割ラインを生成する際に被分割ラインを二分割した内点の離間度(親離間度Sp)を登録する親離間度サブフィールド226、及び、当該被分割ラインを二分割する内点の離間度(子離間度Sc)を登録する子離間度サブフィールド227の各サブフィールドを備えて構成される。なお、ツリー構造の根となる最初のラインに対しては、被分割ライン名称及び親離間度Spは、存在しないので、被分割ライン名称サブフィールド224には、値が存在しないことを示す符号、例えば「*」が記憶部14に一時的に記憶され、親離間度サブフィールド226には、間引き度Tとして入力部12から入力されることがないほど、充分に大きな値、例えば「99999」が記憶部14に一時的に記憶される。   The binary tree data according to the second embodiment is stored in a table format as shown in FIGS. 14 and 15, for example, as binary tree map data as it is. The binary tree map data tables 201 ′ and 201 shown in FIGS. 14 and 15 register a management number field 211 for registering a management number which is an identifier for identifying and specifying each record in the table, and registers data related to the divided line. The divided line field 212, the parent-child relationship field 213 for registering data relating to the parent-child relationship for the divided line, and the separation degree field 214 for registering data relating to the separation degree S for the divided line are provided. Then, a record is created for each line and all divided lines. The split line field 212 further includes a split line name subfield 221 for registering the name of a line that is an identifier for identifying and specifying the split line, and a start point coordinate for registering the coordinate value of the start point of the split line. Each subfield includes a subfield 222 and an end point coordinate subfield 223 for registering the coordinate value of the end point in the divided line. The start point coordinate subfield 222 and the end point coordinate subfield 223 are configured to include subfields of x coordinate subfields 231 and 233 and y coordinate subfields 232 and 234, respectively. Further, the parent-child relationship field 213 is a line that is an identifier for identifying and specifying a divided line (parent line) that has generated the divided line by being divided into two at the inner point of the maximum separation degree Smax. A divided line name subfield 224 for registering the name of the divided line, and a divided line subfield 225 for registering data relating to the first and second divided lines (child lines) generated by dividing the divided line into two. Each subfield is configured. The divided line subfield 225 includes subfields of first and second divided line name subfields 235 and 236 for registering the names of lines that are identifiers for identifying and specifying the first and second divided lines. Composed. The separation degree field 214 further includes a parent separation degree subfield 226 for registering a separation degree (parent separation degree Sp) of an inner point obtained by dividing the divided line into two when the divided line is generated, and the divided part. Each of the sub-fields is a sub-field sub-field 227 for registering the inner-point separation degree (child separation degree Sc) for dividing the line into two. For the first line that is the root of the tree structure, the split line name and the parent separation degree Sp do not exist, and therefore, a code indicating that no value exists in the split line name subfield 224, For example, “*” is temporarily stored in the storage unit 14, and a sufficiently large value such as “99999” is stored in the parent separation degree subfield 226 so as not to be input from the input unit 12 as the thinning degree T. It is temporarily stored in the storage unit 14.

このように二分木地図データテーブル201’、201が構成されるので、被分割ラインを描画するためのデータとして始点の座標値及び終点の座標値が始点座標サブフィールド222及び終点座標サブフィールド223にそれぞれ登録され、被分割ラインと分割ラインとの親子関係として被分割ラインの名称、第1及び第2分割ラインの各名称が被分割ライン名称サブフィールド224、第1及び第2分割ライン名称サブフィールド235、236にそれぞれ登録され、親離間度Sp及び子離間度Scが親離間度サブフィールド226及び子離間度サブフィールド227にそれぞれ登録され、これらが同一のレコードに登録されることでこれらの対応関係が示される。   Since the binary tree map data tables 201 ′ and 201 are configured in this way, the start point coordinate value and the end point coordinate value are stored in the start point coordinate subfield 222 and the end point coordinate subfield 223 as data for drawing the divided line. The names of the divided lines are registered as parent-child relationships between the divided lines and the divided lines, and the names of the first and second divided lines are the divided line name subfield 224, the first and second divided line name subfields, respectively. 235 and 236, and the parent separation degree Sp and the child separation degree Sc are registered in the parent separation degree subfield 226 and the child separation degree subfield 227, respectively, and these are registered in the same record. The relationship is shown.

続けて二分木地図データ作成処理部41が実行する、第1及び第2分割ラインに内点が存在するか否かを判断する処理(S55)、この処理S55における判断の結果、双方に内点が存在する場合(双方有り)における一方を新たな被分割ラインとすると共に他方を一時的に記憶する処理(S61)、この処理S55における判断の結果、一方に内点が存在する場合(一方有り)における内点の存在する分割ラインを新たな被分割ラインとする処理(S62)は、図2に基づいて上述した第1の実施形態における二分木地図データ作成処理部21が実行する、処理S15、処理S21及び処理S22とそれぞれ同様であるので、その説明を省略する。   Subsequently, the process executed by the binary tree map data creation processing unit 41 to determine whether or not an internal point exists in the first and second divided lines (S55). As a result of the determination in this process S55, both internal points If one exists as a new divided line and the other is temporarily stored (S61), the result of the determination in S55 is that there is an internal point (one is present). The process (S62) in which the divided line where the inner point exists in () is a new divided line (S62) is executed by the binary tree map data creation processing unit 21 in the first embodiment described above with reference to FIG. Since the processing is the same as the processing S21 and the processing S22, description thereof will be omitted.

一方、処理S55における判断の結果、第1及び第2分割ラインの双方に内点が存在しない場合(双方なし)には、二分木地図データ作成処理部41は、処理S56を実行し、処理S53において被分割ラインを最大離間度の内点によって二分することによって生成された第1及び第2分割ラインに対し、この分割ラインを新たな被分割ラインとみなして、処理S54と同様な二分木データを作成し、記憶部14に一時的に記憶し、処理S57を実行する。なお、この処理S56における分割ラインは、内点が存在せず、これ以上分割することができない分割ラインであるから、分割ラインサブフィールド225に登録すべき分割ラインの名称、及び、子離間度サブフィールド227に登録すべき子離間度Scは、存在しないので、分割ラインサブフィールド225には、値が存在しないことを示す符号、例えば「*」が記憶部14に一時的に記憶され、子離間度サブフィールド227には、「0」が記憶部14に一時的に記憶される。   On the other hand, if the result of determination in step S55 is that there are no internal points on both the first and second divided lines (both are not present), the binary tree map data creation processing unit 41 executes step S56 and step S53. Binary tree data similar to the processing S54 with regard to the first and second divided lines generated by dividing the divided line by the inner point of the maximum separation degree in FIG. Is created, temporarily stored in the storage unit 14, and the process S57 is executed. Note that the division line in this process S56 is a division line that has no inner point and cannot be further divided, so the name of the division line to be registered in the division line subfield 225 and the child separation degree sub Since there is no child separation degree Sc to be registered in the field 227, a code indicating that no value exists, for example, “*”, for example, “*” is temporarily stored in the storage unit 14 in the division line subfield 225, In the degree subfield 227, “0” is temporarily stored in the storage unit 14.

続けて二分木地図データ作成処理部41が実行する、処理S57の総ての分割ラインについて二分木処理が終了したか否かを判断する処理、この処理S57における判断の結果、二分木処理が終了していない場合(No)における二分木処理が未処理の分割ラインを新たな被分割ラインとする(S63)、及び、この処理S57における判断の結果、二分木処理が終了している場合(Yes)における各ラインデータの二分木データを纏めて二分木地図データとして二分木地図データ記憶部54に記憶する処理(S58)は、図2に基づいて上述した第1の実施形態における二分木地図データ作成処理部21が実行する、処理S16、処理S23及び処理S17とそれぞれ同様であるので、その説明を省略する。   Subsequently, the binary tree map data creation processing unit 41 determines whether or not the binary tree process has been completed for all the divided lines in the process S57. As a result of the determination in the process S57, the binary tree process is completed. If not (No), a split line that has not been processed by the binary tree process is set as a new split line (S63), and if the result of the determination in S57 is that the binary tree process has ended (Yes) The processing (S58) of storing the binary tree data of each line data in the binary tree map data storage unit 54 as binary tree map data (S58) in the first embodiment described above with reference to FIG. Since it is the same as the process S16, the process S23, and the process S17 executed by the creation processing unit 21, the description thereof is omitted.

処理S58に続けて、二分木地図データ作成処理部41は、ツリー構造における各離間度を当該離間度Sを含めて子孫側の中の最大値で置き換える離間度Sの置換処理を実行する(S59)。この離間度Sの置換処理については、後述する。   Subsequent to the processing S58, the binary tree map data creation processing unit 41 executes a replacement process of the separation degree S that replaces each separation degree in the tree structure with the maximum value in the descendant side including the separation degree S (S59). ). The replacement process of the degree of separation S will be described later.

次に、二分木地図データ作成処理部41は、元地図データを構成する総てのラインについて二分木地図データを作成したか否かを判断する(S60)。   Next, the binary tree map data creation processing unit 41 determines whether binary tree map data has been created for all the lines constituting the original map data (S60).

この処理S60における判断の結果、元地図データの総てのラインについて二分木地図データが作成されていない場合(No)には、二分木地図データ作成処理部41は、元地図データの他のラインについて二分木地図データを作成すべく、処理を処理S50に戻して上述の処理S50乃至処理S59の処理を続行する。   If binary tree map data has not been created for all the lines of the original map data as a result of the determination in this process S60 (No), the binary tree map data creation processing unit 41 uses other lines of the original map data. In order to create binary tree map data for, the processing is returned to the processing S50, and the processing of the above-described processing S50 to S59 is continued.

一方、処理S60における判断の結果、元地図データの総てのラインについて二分木データが作成されている場合(Yes)には、二分木地図データ作成処理部41は、処理を終了する。   On the other hand, if the result of determination in step S60 is that binary tree data has been created for all lines of the original map data (Yes), the binary tree map data creation processing unit 41 ends the process.

このような処理を実行することにより、第2の実施形態に係る二分木地図データ作成出力装置2は、被分割ラインを描画するためのデータと、当該被分割ラインを生成した親の被分割ライン及び当該被分割ラインから生成された第1及び第2分割ラインの親子関係と、親離間度Spと、子離間度Scとの対応関係を表すツリー構造又はテーブル形式の二分木地図データを作成し記憶することができる。そして、このような二分木地図データは、後述するように、間引き度Tに応じた地図を作成するために必要なデータを高速に取り出され得る。例えば、図3(B)に示すラインに対し、図14に示す置換処理前の二分木地図データテーブル201’が生成され、離間度Sの置換処理により、図15に示す置換処理後の二分木地図データテーブル201が生成される。   By executing such processing, the binary tree map data creating / outputting device 2 according to the second embodiment can generate data for drawing the divided line and the parent divided line that generated the divided line. And a binary tree map data in a tree structure or table format representing the correspondence between the parent-child relationship of the first and second divided lines generated from the split line and the parent separation degree Sp and the child separation degree Sc. Can be remembered. As such binary tree map data, as will be described later, data necessary for creating a map corresponding to the thinning-out degree T can be extracted at high speed. For example, the binary tree map data table 201 ′ before the replacement process shown in FIG. 14 is generated for the line shown in FIG. 3B, and the binary tree after the replacement process shown in FIG. A map data table 201 is generated.

ここで、離間度Sの置換処理について説明する。図13において、二分木地図データ作成処理部41は、二分木地図データ記憶部54に記憶されている処理中のラインにおける二分木地図データの中からツリー構造における端末(葉)二分木データを検索し、抽出する(S71)。この検索は、例えば、二分木地図データテーブル201’における親子関係フィールド213における分割ラインサブフィールド225(第1及び第2分割ライン名称サブフィールド235、236)に値が存在しないことを表す符号、上述の例では「*」が登録されているレコードを探索することによって行うことができる。あるいは、この検索は、例えば、二分木地図データテーブル201’における離間度フィールド214における子離間度サブフィールド227に値が存在しないことを表す符号、上述の例では「0」が登録されているレコードを探索することによって行うことができる。   Here, the replacement process of the separation degree S will be described. In FIG. 13, the binary tree map data creation processing unit 41 searches the binary tree map data in the line being processed stored in the binary tree map data storage unit 54 for terminal (leaf) binary tree data in the tree structure. And extracting (S71). This search is performed by, for example, a code indicating that no value exists in the divided line subfield 225 (first and second divided line name subfields 235 and 236) in the parent-child relationship field 213 in the binary tree map data table 201 ′, as described above. In this example, it can be performed by searching for a record in which “*” is registered. Alternatively, this search is performed by, for example, a record in which a code indicating that there is no value in the child separation degree subfield 227 in the separation degree field 214 in the binary tree map data table 201 ′, “0” in the above example is registered. Can be done by searching.

次に、二分木地図データ作成処理部41は、この抽出した葉の二分木データにおける子離間度Scが親離間度Spよりも大きいか否かを判断する(S72)。この判断の結果、子離間度Scが親離間度Spよりも大きくない場合(No)、即ち、子離間度Scが親離間度Sp以下である場合には、二分木地図データ作成処理部41は、後述の処理S74を実行する。一方、この判断の結果、子離間度Scが親離間度Spよりも大きい場合(Yes)、二分木地図データ作成処理部41は、親離間度Spを子離間度Scで置き換えると共に、この置き換えられた親離間度Spを親離間度Sp又は子離間度Scに持つ他のレコードにおける親離間度Sp及び子離間度Scも置き換えて(S73)、処理S74を実行する。   Next, the binary tree map data creation processing unit 41 determines whether or not the child separation degree Sc in the extracted leaf binary tree data is larger than the parent separation degree Sp (S72). As a result of this determination, if the child separation degree Sc is not greater than the parent separation degree Sp (No), that is, if the child separation degree Sc is equal to or less than the parent separation degree Sp, the binary tree map data creation processing unit 41 Then, a process S74 described later is executed. On the other hand, as a result of this determination, when the child separation degree Sc is larger than the parent separation degree Sp (Yes), the binary tree map data creation processing unit 41 replaces the parent separation degree Sp with the child separation degree Sc and the replacement. The parent separation degree Sp and the child separation degree Sc in other records having the parent separation degree Sp as the parent separation degree Sp or the child separation degree Sc are also replaced (S73), and the process S74 is executed.

処理S74において、二分木地図データ作成処理部41は、親子関係フィールド213の被分割ライン名称サブフィールド224を参照することによって、処理中の二分木データに対し親(一階層上)の二分木データを検索し、抽出する。   In the process S74, the binary tree map data creation processing unit 41 refers to the divided line name subfield 224 of the parent-child relationship field 213, so that the binary tree data of the parent (one level above) the binary tree data being processed. Search for and extract.

次に、二分木地図データ作成処理部41は、この抽出した親の二分木データがツリー構造における根であるか否かを判断する(S75)。この判断は、例えば、親子関係フィールド213の被分割ライン名称サブフィールド224に値が存在しないことを表す符号、上述の例では「*」が登録されているか否かを判断することによって行うことができる。あるいは、この判断は、例えば、離間度フィールド214の親離間度サブフィールド226に値が存在しないことを表す符号、上述の例では「99999」が登録されているか否かを判断することによって行うことができる。   Next, the binary tree map data creation processing unit 41 determines whether or not the extracted parent binary tree data is a root in the tree structure (S75). This determination can be made, for example, by determining whether or not a code indicating that no value exists in the split line name subfield 224 of the parent-child relationship field 213, that is, “*” in the above example is registered. it can. Alternatively, this determination is made, for example, by determining whether or not a code indicating that no value exists in the parent separation degree subfield 226 of the separation degree field 214, that is, “99999” in the above example is registered. Can do.

この判断の結果、親の二分木データがツリー構造における根ではない場合(No)には、二分木地図データ作成処理部41は、さらに、離間度Sの置換処理を行うべく、処理を処理S72に戻す。一方、判断の結果、親の二分木データがツリー構造における根である場合(Yes)には、二分木地図データ作成処理部41は、総ての葉の二分木データに対して処理を実行したか否かを判断する(S76)。   As a result of this determination, if the parent binary tree data is not a root in the tree structure (No), the binary tree map data creation processing unit 41 further performs a process S72 to perform a replacement process of the degree of separation S. Return to. On the other hand, as a result of the determination, when the binary tree data of the parent is the root in the tree structure (Yes), the binary tree map data creation processing unit 41 executed the process on the binary tree data of all the leaves. Whether or not (S76).

処理S76における判断の結果、総ての葉の二分木データに対して処理を実行していない場合には、二分木地図データ作成処理部41は、さらに、他の葉の二分木データに対し離間度Sの置換処理を行うべく、処理を処理S71に戻す。一方。処理S76における判断の結果、総ての葉の二分木データに対して処理を実行している場合には、二分木地図データ作成処理部41は、この離間度Sの置換処理を終了する。   If the result of determination in step S76 is that processing has not been performed on all leaf binary tree data, the binary tree map data creation processing unit 41 further separates from other leaf binary tree data. In order to perform the replacement process of degree S, the process returns to process S71. on the other hand. If the result of determination in step S76 is that processing has been executed for all leaf binary tree data, the binary tree map data creation processing unit 41 ends this separation degree S replacement processing.

このような処理を実行することにより、第2の実施形態に係る二分木地図データ作成出力装置2は、例えば、図14に示す置換処理前の二分木地図データテーブル201’を図15に示す置換処理後の二分木地図データテーブル201を生成する。図14に示す置換処理前の二分木地図データテーブル201’と図15に示す置換処理後の二分木地図データテーブル201とを比較すると分かるように、管理番号「1」乃至「5」の各レコード(図中、矢印で示す。)における離間度Sの値が置換されている。また、図15に示す二分木地図データをツリー構造で示すと、図16に示すツリー構造となり、節点P111の離間度Sが「10.4」から「11.8」に置換され、そして、節点P118の離間度が「11.2」から「11.8」に置換されている。 By executing such processing, the binary tree map data creation / output device 2 according to the second embodiment, for example, replaces the binary tree map data table 201 ′ before the replacement processing shown in FIG. 14 with the replacement shown in FIG. A binary tree map data table 201 after processing is generated. As can be seen by comparing the binary tree map data table 201 ′ before the replacement process shown in FIG. 14 and the binary tree map data table 201 after the replacement process shown in FIG. 15, each record of the management numbers “1” to “5”. The value of the separation degree S in (shown by an arrow in the figure) is replaced. Further, when the binary tree map data shown in FIG. 15 is shown in a tree structure, the tree structure shown in FIG. 16 is obtained, and the separation degree S of the nodes P 1 P 11 is replaced from “10.4” to “11.8”. The degree of separation of the node P 1 P 18 is replaced from “11.2” to “11.8”.

このように動作することによって元地図データから、二分木地図データ作成出力装置2は、被分割ラインを描画するためのラインの名称と、被分割ラインを分割する際の最大の離間度Smaxとを備え、被分割ラインを親とすると共に第1及び第2分割ラインを子とし、さらにツリー構造における離間度Sを当該離間度Sを含めて子孫側の中の最大値で置き換えたツリー構造の二分木地図データを作成し、記憶することができる。   By operating in this way, from the original map data, the binary tree map data creation output device 2 obtains the name of the line for drawing the divided line and the maximum degree of separation Smax when dividing the divided line. A half of the tree structure in which the divided line is a parent and the first and second divided lines are children, and the separation degree S in the tree structure is replaced with the maximum value in the descendant side including the separation degree S Tree map data can be created and stored.

次に、二分木地図データ作成出力装置2が二分木地図データから間引き度に応じた地図を出力する動作について説明する。   Next, the operation in which the binary tree map data creation / output device 2 outputs a map corresponding to the thinning degree from the binary tree map data will be described.

図17は、第2の実施形態に係る二分木地図データ作成出力装置における二分木地図データを作成する動作を示すフローチャートである。   FIG. 17 is a flowchart showing an operation of creating binary tree map data in the binary tree map data creation / output device according to the second embodiment.

例えば、ユーザが上述の動作によって二分木地図データ作成出力装置2に二分木地図データを作成させること等によって、第2の実施形態に係る二分木地図データが記憶部14の二分木地図データ記憶部54に記憶される。そして、記憶部14の出力地図作成プログラム記憶部52から第2の実施形態に係る出力地図作成プログラムが呼び出されて実行され、例えば、ユーザが、二分木元地図データから間引き度Tに応じた地図を二分木地図データ作成出力装置2に出力させるべく、地図の出力開始コマンドを入力部12から入力すると、演算処理部11の出力地図作成処理部42は、記憶部14の二分木地図データ記憶部54に記憶されている二分木地図データに基づいて間引き度Tに応じた地図を出力する。   For example, when the user causes the binary tree map data creation / output device 2 to create binary tree map data by the above-described operation, the binary tree map data according to the second embodiment is stored in the binary tree map data storage unit of the storage unit 14. 54. And the output map creation program which concerns on 2nd Embodiment is called from the output map creation program memory | storage part 52 of the memory | storage part 14, and is executed, for example, a user maps according to the thinning degree T from binary tree original map data. When the map output start command is input from the input unit 12 to output the binary tree map data creation / output device 2, the output map creation processing unit 42 of the arithmetic processing unit 11 causes the binary tree map data storage unit of the storage unit 14 to be output. Based on the binary tree map data stored in 54, a map corresponding to the thinning degree T is output.

即ち、図17において、まず、演算処理部11の出力地図作成処理部42は、ユーザに間引き度Tの入力を促し、ユーザが入力部12から間引き度Tを入力することによって、間引き度Tを受付ける(S80)。   That is, in FIG. 17, first, the output map creation processing unit 42 of the arithmetic processing unit 11 prompts the user to input the thinning degree T, and the user inputs the thinning degree T from the input unit 12. Accept (S80).

ユーザによって間引き度Tが入力されると、出力地図作成処理部42は、二分木地図データから一のラインのデータを取り出す(S81)。例えば、図15に示す二分木地図データテーブル201をラインごとに用意し、一の二分木地図データテーブル201を取り出す。   When the thinning-out degree T is input by the user, the output map creation processing unit 42 extracts one line of data from the binary tree map data (S81). For example, a binary tree map data table 201 shown in FIG. 15 is prepared for each line, and one binary tree map data table 201 is taken out.

次に、出力地図作成処理部42は、この取り出した二分木地図データにおいて、一の被分割ラインのデータを選択し、取り出す(S82)。例えば、図15に示す二分木地図データテーブル201において、一のレコードのデータを取り出す。なお、第1の実施形態では、処理S31で説明したように、ツリー構造の根のデータを登録するレコード、上述では、管理番号「1」のレコードを常に選択する必要があったが、第2の実施形態では、特に、必ずしも最初に根のデータのレコードを選択する必要はなく、総てのレコードのデータに対して後述の処理を実行すればよい。このため、第1の実施形態よりも二分木地図データの取り扱いが容易である。   Next, the output map creation processing unit 42 selects and extracts data of one divided line from the extracted binary tree map data (S82). For example, in the binary tree map data table 201 shown in FIG. In the first embodiment, as described in step S31, it is necessary to always select the record for registering the root data of the tree structure, that is, the record having the management number “1” in the above description. In particular, in the embodiment, it is not always necessary to first select the record of the root data, and the processing described later may be executed on the data of all records. For this reason, it is easier to handle binary tree map data than in the first embodiment.

次に、出力地図作成処理部42は、取り出したレコードのデータにおける親離間度Sp及び子離間度Scと間引き度Tとの大小関係を比較し、このデータにおける親離間度Spが間引き度Tより大きく、かつ、子離間度Scが間引き度T以下であるか否かを判断する(S83)。   Next, the output map creation processing unit 42 compares the parent separation degree Sp and the child separation degree Sc in the data of the extracted record with the thinning degree T, and the parent separation degree Sp in this data is greater than the thinning degree T. It is determined whether or not the child separation degree Sc is equal to or smaller than the thinning-out degree T (S83).

ここで、被分割ライン(元のライン及び分割ライン)における親離間度Sp及び子離間度Scが第2の実施形態では上述したように子孫側の離間度Sが当該被分割ラインの子離間度Sc以下の値であることから、親離間度Spが間引き度T以下か、あるいは、子離間度Scが間引き度Tより大きい場合では、当該被分割ラインは、間引いてよい。つまり、当該被分割ラインは、描画のデータとして採用しなくてもよい。   Here, in the second embodiment, the parent separation degree Sp and the child separation degree Sc in the divided line (the original line and the dividing line) are the descendant side separation degrees S and the child separation degree of the divided line as described above. Since the value is not more than Sc, when the parent separation degree Sp is equal to or less than the thinning degree T or the child separation degree Sc is larger than the thinning degree T, the divided line may be thinned. That is, the divided line may not be used as drawing data.

従って、処理S83における判断の結果、このデータにおける親離間度Spが間引き度T以下であるか、あるいは、子離間度Scが間引き度Tより大きい場合(No)には、出力地図作成処理部42は、処理S85を実行し、一方、このデータにおける親離間度Spが間引き度Tより大きく、かつ、子離間度Scが間引き度T以下である場合(Yes)には、出力地図作成処理部42は、当該データの始点及び終点の各座標値を出力部13に出力してから(S84)、処理S85を実行する。出力部13は、始点及び終点を結ぶ線分を描画する。   Therefore, as a result of the determination in the process S83, when the parent separation degree Sp in this data is equal to or less than the thinning degree T or the child separation degree Sc is larger than the thinning degree T (No), the output map creation processing unit 42 On the other hand, if the parent separation degree Sp in this data is larger than the thinning degree T and the child separation degree Sc is equal to or smaller than the thinning degree T (Yes), the output map creation processing unit 42 Outputs the respective coordinate values of the start point and end point of the data to the output unit 13 (S84), and then executes the process S85. The output unit 13 draws a line segment connecting the start point and the end point.

そして、出力地図作成処理部42は、未処理の被分割ラインのデータがあるか否かを判断する。判断の結果、未処理の被分割ラインのデータがある場合(Yes)には、出力地図作成処理部42は、処理を処理S82に戻す。一方、判断の結果、未処理の被分割ラインのデータがない場合(No)には、出力地図作成処理部42は、上述の処理S82乃至処理S85の間引き処理が未処理のラインがあるか否かを判断する(S86)。   Then, the output map creation processing unit 42 determines whether there is unprocessed divided line data. If there is unprocessed divided line data as a result of the determination (Yes), the output map creation processing unit 42 returns the process to step S82. On the other hand, if the result of the determination is that there is no unprocessed divided line data (No), the output map creation processing unit 42 determines whether there is a line that has not been subjected to the above-described thinning-out process S82 to S85. Is determined (S86).

この処理S86における判断の結果、間引き処理が未処理のラインがある場合(Yes)には、出力地図作成処理部42は、他のラインについて間引き処理を実行すべく、処理を処理S81に戻して上述の処理S82乃至処理S85の間引き処理を続行する。一方、処理S86における判断の結果、間引き処理が未処理のラインがない場合(Yes)には、出力地図作成処理部42は、処理を終了する。   As a result of the determination in the process S86, if there is a line that has not been subjected to the thinning process (Yes), the output map creation processing unit 42 returns the process to the process S81 to execute the thinning process for other lines. The thinning-out process of the above-described processes S82 to S85 is continued. On the other hand, if there is no unprocessed line as a result of the determination in step S86 (Yes), the output map creation processing unit 42 ends the process.

このように動作することによって二分木地図データ作成出力装置2は、二分木地図データからユーザの間引き度Tに応じた地図を出力することができる。そして、二分木地図データ作成出力装置2は、間引き処理を実行する場合、第1の実施形態に係る二分木地図データ作成出力装置1のように、深さ優先探索を行う必要がなく、ラインの各被分割ラインデータに対して描画するか否かを判断するだけでよいので、二分木地図データ作成出力装置2は、ユーザの間引き度Tに応じた地図を高速に出力することができる。このため、ユーザは、利用目的に応じて間引いた地図を二分木地図データ作成出力装置2によって容易に、高速に得ることができる。そして、間引き度Tと縮尺とを適宜に対応付けることにより、二分木地図データ作成出力装置2は、任意縮尺の地図を容易に、高速に作成することができる。また、間引き度Tとサイズとを適宜に対応付けることにより、二分木地図データ作成出力装置2は、任意サイズに応じた地図を容易に、高速に作成することができる。さらに、間引き度Tと解像度とを適宜に対応付けることにより、二分木地図データ作成出力装置2は、任意解像度に応じた地図を容易に、高速に作成することができる。   By operating in this way, the binary tree map data creation / output device 2 can output a map according to the thinning degree T of the user from the binary tree map data. The binary tree map data creation / output device 2 does not need to perform a depth-first search, unlike the binary tree map data creation / output device 1 according to the first embodiment, when executing the thinning process. Since it is only necessary to determine whether or not to draw each divided line data, the binary tree map data creation / output device 2 can output a map according to the thinning degree T of the user at high speed. For this reason, the user can easily obtain a map thinned out according to the purpose of use by the binary tree map data creation output device 2 at high speed. Then, by appropriately associating the thinning-out degree T with the scale, the binary tree map data creation / output device 2 can easily create a map of any scale at high speed. Further, by appropriately associating the thinning-out degree T with the size, the binary tree map data creation / output device 2 can easily create a map according to an arbitrary size at high speed. Furthermore, by appropriately associating the thinning-out degree T with the resolution, the binary tree map data creation / output device 2 can easily create a map corresponding to the arbitrary resolution at high speed.

一具体例として図15に示す二分木地図データテーブル201を用いて1つのラインを出力する場合について説明すると、ユーザによって間引き度T=5が入力され、図17に示す処理S82乃至処理S85が実行されることにより、P711、P1116、P1618、P13及びP37が出力部13に出力され、描画される。 As a specific example, a case where a single line is output using the binary tree map data table 201 shown in FIG. 15 will be described. When the user inputs a thinning degree T = 5, the processes S82 to S85 shown in FIG. 17 are executed. As a result, P 7 P 11 , P 11 P 16 , P 16 P 18 , P 1 P 3 and P 3 P 7 are output to the output unit 13 and drawn.

ここで、上述の第2の実施形態では、処理S83で不等式の判断によって、当該被分割ラインのデータを間引くか否かを判断している。一般に、コンピュータは、不等式を満たすか否かの判断よりも、等式を満たすか否かの判断の方が演算処理速度が高速である。そのため、処理S83の判断を等式も用いて判断することができるように二分木地図データ作成出力装置2を構成してもよい。   Here, in the above-described second embodiment, whether or not the data of the divided line is to be thinned is determined by an inequality determination in step S83. In general, a computer has a higher calculation processing speed when determining whether or not an equation is satisfied than when determining whether or not an inequality is satisfied. Therefore, the binary tree map data creation / output device 2 may be configured so that the determination in step S83 can also be determined using an equation.

このような構成の二分木地図データ作成出力装置2の場合では、まず、所定の間隔が空けられて増加していく複数の正の整数(丸め値)を用意し、二分木地図データ記憶部54に記憶されている二分木地図データの親離間度Sp及び子離間度Scの値をこの複数の整数の何れかに切り上げる離間度丸め処理を行う離間度丸め処理部416(図1に破線で示す。)を二分木地図データ作成処理部41にさらに設ける。   In the case of the binary tree map data creation / output device 2 having such a configuration, first, a plurality of positive integers (rounded values) increasing at predetermined intervals are prepared, and the binary tree map data storage unit 54 is prepared. The degree-of-separation rounding processing unit 416 (shown by a broken line in FIG. 1) performs a degree-of-separation rounding process that rounds up the values of the parent separation degree Sp and the child separation degree Sc of the binary tree map data stored in FIG. .) Is further provided in the binary tree map data creation processing unit 41.

複数の整数は、例えば、5の間隔を空けて増加していく5、10、15、20、・・・のような数値列や10の間隔を空けて増加していく10、20、30、・・・のような数値列等の任意の数値列でよい。例えば、ここでは、複数の整数として、10の累乗(べき乗)(指数=0、1、2、3、・・・)の関係で増加していく整数群、1、10、100、1000、・・・を用意し、二分木地図データの親離間度Sp及び子離間度Scの値をこの複数の整数の何れかに切り上げることによって丸め、この丸めた親離間度(丸め親離間度)Sp’及び子離間度(丸め子離間度)Sc’を二分木地図データにさらに追加する。例えば、親離間度Sp及び子離間度Scが1以下である場合には、1に切り上げ、親離間度Sp及び子離間度Scが1より大きく10以下である場合には、10に切り上げ、親離間度Sp及び子離間度Scが10より大きく100以下である場合には、100に切り上げ、そして、親離間度Sp及び子離間度Scが100より大きく1000以下である場合には、1000に切り上げる。そして、図15に破線で示すように、二分木地図データテーブル201に、丸め親離間度Sp’を登録する丸め親離間度サブフィールド228及び丸め子離間度Sc’を登録する丸め子離間度サブフィールド229から成る丸め離間度フィールド215をさらに備えさせる。   A plurality of integers are, for example, numerical sequences such as 5, 10, 15, 20,... Increasing with an interval of 5, and 10, 20, 30, increasing with an interval of 10. Any numerical sequence such as a numerical sequence such as... For example, here, as a plurality of integers, a group of integers increasing in the relationship of powers of 10 (exponents = 0, 1, 2, 3,...) 1, 10, 100, 1000,. .. Is prepared and rounded by rounding up the value of the parent separation degree Sp and the child separation degree Sc of the binary tree map data to any one of the plurality of integers, and this rounded parent separation degree (rounding parent separation degree) Sp ′ And the child separation degree (rounding element separation degree) Sc ′ are further added to the binary tree map data. For example, when the parent separation degree Sp and the child separation degree Sc are 1 or less, they are rounded up to 1. When the parent separation degree Sp and the child separation degree Sc are greater than 1 and 10 or less, they are rounded up to 10. When the separation degree Sp and the child separation degree Sc are greater than 10 and less than or equal to 100, round up to 100, and when the parent separation degree Sp and the child separation degree Sc are greater than 100 and less than or equal to 1000, round up to 1000. . Then, as indicated by a broken line in FIG. 15, the rounding parent separation degree subfield 228 for registering the rounding parent separation degree Sp ′ and the rounder separation degree sub for registering the rounding element separation degree Sc ′ are registered in the binary tree map data table 201. A rounding distance field 215 including a field 229 is further provided.

そして、上述の処理S83に代えて次のように処理を行う。まず、出力地図作成処理部42は、被分割ラインの丸め親離間度Sp’及び丸め子離間度Sc’と入力部12で入力された間引き度Tに基づく丸め間引き度T’とを用いて所定の規則に応じた等式により始点及び終点の座標値を取得すべき被分割ラインを判別する。   Then, the following process is performed instead of the above-described process S83. First, the output map creation processing unit 42 uses a rounding decimation degree Sp ′ and a rounding element separation degree Sc ′ of the divided line and a rounding decimation degree T ′ based on the decimation degree T input by the input unit 12. The divided line from which the coordinate values of the start point and the end point are to be acquired is determined by an equation according to the above rule.

即ち、丸める所定の規則が切り上げである場合には、出力地図作成処理部42は、丸め親離間度Sp’が、入力された間引き度Tを切り上げた場合の丸め間引き度T’より複数の整数の中で一段階下位の丸め値以上の丸め値と等しく、かつ、丸め子離間度Sc’が、入力された間引き度Tを切り上げた場合の丸め間引き度T’より複数の整数の中で一段階下位の丸め値以下の丸め値と等しいデータを抽出する。例えば、入力された間引き度が「50」である場合には、これを切り上げた場合の丸め間引き度T’は、100となるので、出力地図作成処理部42は、丸め親離間度Sp’が10、100、1000、・・・と等しく、かつ、丸め子離間度Sc’が10、1と等しいデータを抽出する。   That is, when the predetermined rule for rounding is rounding up, the output map creation processing unit 42 determines that the rounding parent separation degree Sp ′ is a plurality of integers from the rounding thinning degree T ′ when the input thinning degree T is rounded up. Is equal to the rounding value equal to or higher than the rounding value one level lower than the rounding value, and the rounding element separation degree Sc ′ is one of a plurality of integers than the rounding thinning degree T ′ when the inputted thinning degree T is rounded up. Extract data that is equal to the rounding value below the rounding value at the lower level. For example, when the input thinning degree is “50”, the rounding thinning degree T ′ when this is rounded up is 100, and therefore the output map creation processing unit 42 has the rounding parent separation degree Sp ′. Data that is equal to 10, 100, 1000,... And the rounding element separation degree Sc ′ is equal to 10, 1.

次に、この抽出したデータのうち、丸め親離間度Sp’が100、1000、・・・と等しく、かつ、丸め子離間度Sc’が1と等しいデータは、丸める前の親離間度Sp及び子離間度Scを用いたとしても、親離間度Spが間引き度Tより大きく、かつ、子離間度Scが間引き度T以下である条件を必ず満たすので、出力地図作成処理部42は、これらデータを出力部13に出力して描画する。一方、この抽出したデータのうち、丸め親離間度Sp’が10に等しいデータ、及び、丸め子離間度Sc’が10に等しいデータは、必ずしも、親離間度Spが間引き度Tより大きく、かつ、子離間度Scが間引き度T以下である条件を満たすとは限らないので、これら丸め親離間度Sp’が10に等しいデータ、及び、丸め子離間度Sc’が10と等しいデータに対してのみ、丸める前の元の親離間度Sp及び子離間度Scを用いて、親離間度Spが間引き度Tより大きく、かつ、子離間度Scが間引き度T以下であるか否かを判断する。そして、出力地図作成処理部42は、親離間度Spが間引き度Tより大きく、かつ、子離間度Scが間引き度T以下であるデータのみを出力部13に出力して描画する。   Next, among the extracted data, data having a rounding parent separation degree Sp ′ equal to 100, 1000,... And a rounding child separation degree Sc ′ equal to 1, Even if the child separation degree Sc is used, since the parent separation degree Sp is larger than the thinning-out degree T and the child separation degree Sc is always equal to or smaller than the thinning-out degree T, the output map creation processing unit 42 does not store these data. Is output to the output unit 13 and rendered. On the other hand, among the extracted data, the data having the rounding parent separation degree Sp ′ equal to 10 and the data having the rounding child separation degree Sc ′ equal to 10, the parent separation degree Sp is necessarily larger than the thinning degree T, and Since the condition that the child separation degree Sc is equal to or less than the thinning-out degree T is not always satisfied, the rounding parent separation degree Sp ′ is equal to 10 and the roundness separation degree Sc ′ is equal to 10. Only when the original parent separation degree Sp and the child separation degree Sc before rounding are used, it is determined whether or not the parent separation degree Sp is larger than the thinning degree T and the child separation degree Sc is equal to or smaller than the thinning degree T. . Then, the output map creation processing unit 42 outputs only the data in which the parent separation degree Sp is larger than the thinning degree T and the child separation degree Sc is equal to or smaller than the thinning degree T to the output unit 13 for drawing.

このように構成することにより、不等式によって判断するデータの個数が減るので、より高速に間引き度Tに応じた地図を出力することができる。   By configuring in this way, the number of data determined by the inequality is reduced, so that a map corresponding to the thinning-out degree T can be output at higher speed.

なお、上述では、丸める際に切り上げたが切り下げる場合でも同様に等式を用いた処理を行うことができる。   In the above description, even when rounded up, processing using an equation can be performed similarly even when rounded up.

また、上述の第1及び第2の実施形態に係る二分木地図データ作成出力装置1、2において、ユーザが二分木地図データの総てのデータを用いて地図を作成する場合には、図9や図17を用いて上述したように、二分木地図データの総てのデータに対して間引き処理を実行して地図を出力すればよいが、ユーザが二分木地図データにデータ化されている地域における一定の地域内の地図を作成する場合等には、出力範囲を決定する必要がある。   Further, in the binary tree map data creation output devices 1 and 2 according to the first and second embodiments described above, when the user creates a map using all the binary tree map data, FIG. As described above with reference to FIG. 17 and FIG. 17, it is sufficient to execute a thinning process on all the binary tree map data and output a map. When creating a map in a certain area, it is necessary to determine the output range.

例えば、図9の処理S31及び図17の処理S81において、次の出力範囲に応じてラインを選択するライン選択処理を実行する。   For example, in the process S31 of FIG. 9 and the process S81 of FIG. 17, a line selection process for selecting a line according to the next output range is executed.

図18は、出力範囲に応じたライン選択処理を説明するための図である。図18において、出力範囲は、矩形ABCDであり、矩形ABCDの各頂点A、B、C、Dの各座標値A(XA、YA)、B(XB、YB)、C(XC、YC)、D(XD、YD)が入力部12から入力されることによって指定される。例えば、マウスを用いて矩形ABCDにおける対角関係にある2頂点(例えば、頂点A及び頂点C)を指定することにより、あるいは、キーボードから直接各頂点のA、B、C、Dの各座標値A(XA、YA)、B(XB、YB)、C(XC、YC)、D(XD、YD)を入力することによって、二分木地図データ作成出力装置1、2に入力される。 FIG. 18 is a diagram for explaining line selection processing according to the output range. In FIG. 18, the output range is a rectangle ABCD, and the coordinate values A (X A , Y A ), B (X B , Y B ), C (X C , Y C ) and D (X D , Y D ) are specified by being input from the input unit 12. For example, by specifying two vertices (for example, vertex A and vertex C) having a diagonal relationship in the rectangle ABCD using the mouse, or by directly specifying the coordinate values of A, B, C, D of each vertex from the keyboard By inputting A (X A , Y A ), B (X B , Y B ), C (X C , Y C ), D (X D , Y D ), the binary tree map data creation output device 1, 2 is input.

そして、出力地図作成処理部22、42は、図18のラインL11、L12、L13のように、ラインの一部又は全部が出力範囲の矩形ABCDにかかる場合には、当該ラインを取り出し、図18のラインL21、L22、L23、L24のように、ラインが全く出力範囲の矩形ABCDにかからない場合には、当該ラインを取り出さない。 Then, the output map creation processing units 22 and 42 take out the line when a part or all of the line covers the rectangular ABCD of the output range as in the lines L 11 , L 12 , and L 13 in FIG. When the line does not cover the rectangular ABCD in the output range as in the case of the lines L 21 , L 22 , L 23 , and L 24 in FIG. 18, the line is not taken out.

即ち、図18のように矩形の各頂点ABCDが与えられている場合には、出力地図作成処理部22、42は、ラインの根の二分木データにおける始点及び終点のx座標XRが辺ABの左側にあってXR<XA(=XB)を満たす場合、及び、根の二分木データにおける始点及び終点のx座標XRが辺CDの右側にあってXR>XC(=XD)を満たす場合には、当該ラインを取り出さない。出力地図作成処理部22、42は、ラインの根の二分木データにおける始点及び終点のy座標YRが辺DAの上側にあってYR>YD(=YA)を満たす場合、及び、根の二分木データにおける始点及び終点のy座標YRが辺BCの下側にあり、YR<YB(=YC)を満たす場合には、当該ラインを取り出さない。そして、出力地図作成処理部22、42は、ラインの根の二分木データがこのような各条件を満たさない場合に当該ラインを取り出す。 That is, when each rectangular vertex ABCD is given as shown in FIG. 18, the output map creation processing units 22 and 42 indicate that the start and end x-coordinates X R in the binary tree data of the line root are side AB. X R <X A (= X B ), and the x-coordinate X R of the start point and end point in the root binary tree data is on the right side of the side CD, and X R > X C (= If X D ) is satisfied, the line is not taken out. The output map creation processing units 22 and 42, when the y coordinate Y R of the start point and the end point in the binary tree data of the line root is above the side DA and satisfies Y R > Y D (= Y A ), and When the y-coordinate Y R of the start point and end point in the root binary tree data is below the side BC and satisfies Y R <Y B (= Y C ), the line is not taken out. Then, the output map creation processing units 22 and 42 take out the line when the binary tree data at the root of the line does not satisfy such conditions.

このような処理を行うことによって、出力範囲として指定された範囲内のラインの二分木地図データを確実に取り出すことができる。そして、出力範囲として指定された範囲以内で厳密にラインを選択したり、ラインを分断したりする処理を行う必要がないので、簡易にライン選択処理を実行することができる。   By performing such processing, it is possible to reliably extract the binary tree map data of the line within the range specified as the output range. Since it is not necessary to select a line strictly within the range specified as the output range or to divide the line, it is possible to easily execute the line selection process.

なお、図9の処理S31及び図17の処理S81においてこのようなライン選択処理を実行する代わりに、図9の処理S41及び図17の処理S84において出力部13に被分割ラインの始点及び終点の各座標値を出力する際に、このようなライン選択処理を被分割ラインに対して行っても同様に出力範囲として指定された範囲内のラインの二分木地図データを確実に取り出すことができる。   In place of executing such a line selection process in the process S31 of FIG. 9 and the process S81 of FIG. 17, the output unit 13 in the process S41 of FIG. 9 and the process S84 of FIG. When outputting each coordinate value, even if such a line selection process is performed on the divided line, the binary tree map data of the line within the range specified as the output range can be reliably extracted.

さらに、このようなライン選択処理においても、等式による判定によって出力範囲を決定するように構成してもよい。図19は、ラインの始点及び終点の各座標値を丸める座標値丸め処理を説明するための図である。図20は、丸め座標値を備える二分木地図データを用いた場合のライン選択処理を説明するための図である。   Further, even in such a line selection process, the output range may be determined by determination based on an equation. FIG. 19 is a diagram for explaining a coordinate value rounding process for rounding the coordinate values of the start point and the end point of a line. FIG. 20 is a diagram for describing line selection processing when binary tree map data including rounded coordinate values is used.

例えば、図形データに設けられたxy座標系において、一定間隔の格子を備える複数の層を用意し、これら複数の層における格子の間隔を所定の間隔を空けて増加していくように構成する。これら複数の層において、相対的に格子の間隔が小さい方の層を下位層と呼称し、相対的に格子の間隔が大きい方の層を上位層と呼称することとする。そして、ラインが完全に格子によって囲まれた領域である格子領域Q以内に含まれる場合に、当該格子領域Qを構成する4つの格子点におけるx座標値及びy座標値が最も大きい値の格子点(格子の右上の格子点)の座標値に当該ラインの始点及び終点の各座標値を丸める座標値丸め処理を行う座標値丸め処理部417(図1に破線で示す。)を二分木地図データ作成処理部21、41にさらに設ける。   For example, in the xy coordinate system provided in the graphic data, a plurality of layers having lattices with a constant interval are prepared, and the intervals between the lattices in the plurality of layers are increased with a predetermined interval. Of these layers, a layer having a relatively small lattice spacing is referred to as a lower layer, and a layer having a relatively large lattice spacing is referred to as an upper layer. When the line is included within the lattice region Q that is a region completely surrounded by the lattice, the lattice point having the largest x coordinate value and y coordinate value at the four lattice points constituting the lattice region Q. A coordinate value rounding processing unit 417 (indicated by a broken line in FIG. 1) that performs a coordinate value rounding process for rounding the coordinate values of the start point and end point of the line to the coordinate value of (the upper right grid point of the grid) is binary tree map data. Further provided in the creation processing units 21 and 41.

各層の格子の間隔は、例えば、5の間隔を空けて増加していく5、10、15、20、・・・のような間隔や10の間隔を空けて増加していく10、20、30、・・・のような間隔等の任意の間隔でよい。ここでは、例えば、10の累乗(指数=0、1、2、3、・・・)の関係で増加していく間隔群1、10、100、1000、・・・を用意し、二分木地図データにおけるラインの始点及び終点の各座標値を丸め、この丸めたラインの始点及び終点の各座標値を二分木地図データにさらに追加する。例えば、図示しないが、二分木地図データテーブル201に、丸めた始点及び終点の各座標値(丸め座標値)を登録する丸め座標値フィールドをさらに備えさせる。この丸め座標値フィールドは、図15に示す始点座標サブフィールド222及び終点座標サブフィールド223と同様に、x座標サブフィールド及びy座標サブフィールドをそれぞれ備えている。   The interval between the lattices of each layer increases, for example, with an interval of 5, 10, 15, 20,... Increasing at intervals of 5, or 10, 20, 30 increasing at intervals of 10. An arbitrary interval such as an interval such as. Here, for example, interval groups 1, 10, 100, 1000,... That increase with a power of 10 (index = 0, 1, 2, 3,...) Are prepared, and a binary tree map is prepared. The coordinate values of the start point and end point of the line in the data are rounded, and the coordinate values of the start point and end point of the rounded line are further added to the binary tree map data. For example, although not shown, the binary tree map data table 201 is further provided with a rounded coordinate value field for registering the respective coordinate values (rounded coordinate values) of the rounded start point and end point. This rounded coordinate value field includes an x-coordinate subfield and a y-coordinate subfield, respectively, similarly to the start point coordinate subfield 222 and the end point coordinate subfield 223 shown in FIG.

図19は、格子間隔10の層にxy座標値が丸められるラインを例示する図であり、例えば、座標値丸め処理部417は、図19のラインL31のように、ラインの全部が完全に格子領域Q21以内に含まれる場合に、当該格子領域Q21を構成する4つの格子点におけるx座標値及びy座標値が共に最も大きい値の格子点q21(右上の格子点)の座標値(820、540)に当該ラインの始点及び終点の各座標値を丸める座標値丸め処理を行う。このラインの始点及び終点の各座標値を丸める先の格子点を格子領域Qの代表点qと呼称することとする。ここで、図19のラインL32のようにラインが格子領域Q11及び格子領域Q12に亘る場合や図19のラインL33のようにラインが格子領域Q22及び格子領域Q12に亘る場合等のように、当該格子間隔10の層において複数の格子領域Qに亘る場合には、より上位層の格子領域Qに含まれ、この上位層における格子領域Qの代表点qに座標値が丸められることになる。例えば、図19のラインL32及びラインL33は、格子間隔100の層における格子領域に完全に含まれることになる。 FIG. 19 is a diagram exemplifying a line in which xy coordinate values are rounded in a layer having a lattice interval of 10. For example, the coordinate value rounding processing unit 417 is configured such that all of the lines are completely as shown by a line L 31 in FIG. when included within the grating region Q 21, coordinates of the grid area Q 21 of the four together the largest value x and y coordinate values at the grid points constituting the grid point q 21 (top right of the grid points) At (820, 540), a coordinate value rounding process for rounding the coordinate values of the start point and end point of the line is performed. A lattice point to which each coordinate value of the start point and end point of the line is rounded is referred to as a representative point q of the lattice region Q. Here, the case where the line extends over the lattice region Q 11 and the lattice region Q 12 as shown by the line L 32 in FIG. 19 or the case where the line extends over the lattice region Q 22 and the lattice region Q 12 as shown by the line L 33 in FIG. As described above, when a plurality of lattice regions Q are included in the layer having the lattice interval 10, the coordinate value is rounded to the representative point q of the lattice region Q in the upper layer. Will be. For example, the line L 32 and the line L 33 in FIG. 19 are completely included in the lattice region in the layer having the lattice interval 100.

なお、図19において、格子領域Q11は、座標(810、530)、(810、520)、(820、520)、(820、530)の4点から成る格子によって囲まれた領域であり、格子領域Q12は、座標(820、530)、(820、520)、(830、520)、(830、530)の4点から成る格子によって囲まれた領域であり、格子領域Q21は、座標(810、540)、(810、530)、(820、530)、(820、540)の4点から成る格子によって囲まれた領域であり、そして、格子領域Q22は、座標(820、540)、(820、530)、(830、530)、(830、540)の4点から成る格子によって囲まれた領域である。格子領域Q11の代表点q11は、座標(820、530)であり、格子領域Q12の代表点q12は、座標(830、530)であり、格子領域Q21の代表点q21は、座標(820、540)であり、そして、格子領域Q22の代表点q22は、座標(830、550)である。 In FIG. 19, a lattice region Q 11 is a region surrounded by a lattice composed of four points of coordinates (810, 530), (810, 520), (820, 520), and (820, 530). The lattice region Q 12 is a region surrounded by a lattice composed of four points of coordinates (820, 530), (820, 520), (830, 520), (830, 530), and the lattice region Q 21 is It is a region surrounded by a grid consisting of four points of coordinates (810, 540), (810, 530), (820, 530), (820, 540), and the lattice region Q 22 is represented by coordinates (820, 540), (820, 530), (830, 530), and (830, 540). Representative point q 11 of the grating region Q 11 are the coordinates (820,530), the representative point q 12 of the grating region Q 12 are the coordinates (830,530), the representative point q 21 of the grating region Q 21 is the coordinates (820,540), and the representative point q 22 of the grating region Q 22 are the coordinates (830,550).

そして、ライン選択処理を行う場合には、出力地図作成処理部22、42は、入力された出力範囲がかかる格子領域Qを取り出し、この取り出した格子領域Qの代表点qにおける座標値と等しい丸められた座標値を持つラインを選択する。   When the line selection process is performed, the output map creation processing units 22 and 42 take out the lattice area Q to which the input output range is applied, and round the same as the coordinate value at the representative point q of the extracted lattice area Q. Select the line with the specified coordinate value.

例えば、図20に例示するように、出力範囲が矩形ABCDである場合には、図20に網掛で示す格子領域Q21、Q22、Q23、Q24、Q31、Q32、Q33、Q34、Q41、Q42、Q43、Q44に出力範囲がかかり、図20に●で示すそれらの代表点q21、q22、q23、q24、q31、q32、q33、q34、q41、q42、q43、q44の各座標値q21(820、540)、q22(830、540)、q23(840、540)、q24(850、540)、q31(820、550)、q32(830、550)、q33(840、550)、q34(850、550)、q41(820、560)、q42(830、560)、q43(840、560)、q44(850、560)と等しい丸められた座標値を持つラインを選択する。 For example, as illustrated in FIG. 20, when the output range is rectangular ABCD, the lattice regions Q 21 , Q 22 , Q 23 , Q 24 , Q 31 , Q 32 , Q 33 , which are shaded in FIG. An output range is applied to Q 34 , Q 41 , Q 42 , Q 43 , and Q 44, and their representative points q 21 , q 22 , q 23 , q 24 , q 31 , q 32 , q 33 are indicated by ● in FIG. , Q 34 , q 41 , q 42 , q 43 , q 44 coordinate values q 21 (820, 540), q 22 (830, 540), q 23 (840, 540), q 24 (850, 540) , Q 31 (820, 550), q 32 (830, 550), q 33 (840, 550), q 34 (850, 550), q 41 (820, 560), q 42 (830, 560), q Select a line with rounded coordinate values equal to 43 (840, 560), q 44 (850, 560).

このような処理を行うことによって、出力範囲として指定された範囲内のラインの二分木地図データを等式を用いて確実に取り出すことができるので、より高速に間引き度Tに応じた地図を出力することができる。   By performing such processing, the binary tree map data of the line within the range specified as the output range can be reliably extracted using an equation, so a map corresponding to the thinning degree T is output at higher speed. can do.

なお、上述では、ラインが完全に格子領域Q以内に含まれる場合に、当該格子領域Qを構成する4つの格子点におけるx座標値及びy座標値が共に最も大きい値の格子点(格子の右上の格子点)の座標値に当該ラインの始点及び終点の各座標値を丸めたが、当該格子領域Qを構成する4つの格子点のうちの他の格子点における座標値に当該ラインの始点及び終点の各座標値を丸めても、同様に等式を用いた処理を行うことができる。例えば、丸める先の格子点として、x座標値のみが最も大きい値である格子の右下の格子点や、y座標値のみが最も大きい値である格子の左上の格子点や、x座標値及びy座標値が共に最も小さい格子の左下の格子点を用いてもよい。   In the above description, when the line is completely included in the lattice region Q, the lattice point having the largest x coordinate value and y coordinate value at the four lattice points constituting the lattice region Q (upper right corner of the lattice). The coordinate values of the start point and end point of the line are rounded to the coordinate values of the grid points), but the start point of the line and the coordinate values at the other grid points of the four grid points constituting the grid region Q are rounded off. Even if each coordinate value of the end point is rounded, processing using an equation can be performed similarly. For example, as the grid points to be rounded, the grid point at the lower right of the grid where only the x coordinate value is the largest, the grid point at the upper left of the grid where only the y coordinate value is the largest, the x coordinate value, The lower left lattice point of the lattice having the smallest y coordinate value may be used.

そして、上述の第1及び第2の実施形態に係る二分木地図データ作成出力装置1、2は、元地図データから二分木地図データを作成すると共に、二分木地図データに基づく間引き度Tに応じた地図を作成し出力したが、元地図データから二分木地図データを作成する二分木地図データ作成装置と、二分木地図データに基づく間引き度Tに応じた地図を作成し出力する二分木地図データ出力装置とで別体で構成してもよい。このような二分木地図データ作成装置は、機能的に上述の二分木地図データ作成処理部21、41を備える演算処理部11と、入力部12と、出力部13と、機能的に二分木地図データ作成プログラム記憶部31、51、元地図データ記憶部33及び二分木地図データ記憶部34、54を供える記憶部14と、バス15とを備えて構成される。そして、このような二分木地図データ出力装置は、機能的に上述の出力地図作成処理部22、42を備える演算処理部11と、入力部12と、出力部13と、機能的に出力地図作成プログラム記憶部32、52及び二分木地図データ記憶部34、54を供える記憶部14と、バス15とを備えて構成される。   The binary tree map data creation output devices 1 and 2 according to the first and second embodiments described above create binary tree map data from the original map data, and according to the thinning degree T based on the binary tree map data. Binary map data that creates and outputs a binary tree map data from the original map data, and a binary tree map data that creates and outputs a map according to the thinning degree T based on the binary tree map data You may comprise separately with an output device. Such a binary tree map data creation device functionally includes an arithmetic processing unit 11 including the above-described binary tree map data creation processing units 21 and 41, an input unit 12, an output unit 13, and a functional binary tree map. The data generation program storage units 31 and 51, the original map data storage unit 33 and the binary tree map data storage units 34 and 54, and the bus 15 are provided. Such a binary tree map data output device functionally includes an arithmetic processing unit 11 including the above-described output map creation processing units 22 and 42, an input unit 12, an output unit 13, and a functional output map creation. The storage unit 14 includes the program storage units 32 and 52 and the binary tree map data storage units 34 and 54, and the bus 15.

第1の実施形態に係る二分木地図データ作成出力装置の構成を示すブロック図である。It is a block diagram which shows the structure of the binary tree map data creation output device which concerns on 1st Embodiment. 第1の実施形態に係る二分木地図データ作成出力装置における二分木地図データを作成する動作を示すフローチャートである。It is a flowchart which shows the operation | movement which produces binary tree map data in the binary tree map data creation output device which concerns on 1st Embodiment. ラインを示す図である。It is a figure which shows a line. 二分木地図データ作成出力装置における二分木地図データを作成する動作を説明するための図(その1)である。It is FIG. (1) for demonstrating the operation | movement which produces binary tree map data in a binary tree map data creation output device. 二分木地図データ作成出力装置における二分木地図データを作成する動作を説明するための図(その2)である。It is FIG. (2) for demonstrating the operation | movement which produces binary tree map data in a binary tree map data creation output device. 二分木地図データ作成出力装置における二分木地図データを作成する動作を説明するための図(その3)である。It is FIG. (3) for demonstrating the operation | movement which produces binary tree map data in a binary tree map data creation output device. 第1の実施形態に係るテーブルで表現した二分木地図データを示す図である。It is a figure which shows binary tree map data expressed with the table which concerns on 1st Embodiment. 第1の実施形態に係るツリー構造で表現した二分木地図データを示す図である。It is a figure which shows binary tree map data expressed with the tree structure which concerns on 1st Embodiment. 第1の実施形態に係る二分木地図データ作成出力装置における二分木地図データから間引き度に応じた地図を出力する動作を示すフローチャートである。It is a flowchart which shows the operation | movement which outputs the map according to the thinning degree from the binary tree map data in the binary tree map data creation output device which concerns on 1st Embodiment. 記憶部14に未処理データとして記憶される分割ラインの様子を示す図である。It is a figure which shows the mode of the division line memorize | stored in the memory | storage part 14 as unprocessed data. 間引き処理後のラインを示す図である。It is a figure which shows the line after a thinning process. 第2の実施形態に係る二分木地図データ作成出力装置における二分木地図データを作成する動作を示すフローチャートである。It is a flowchart which shows the operation | movement which produces binary tree map data in the binary tree map data creation output device which concerns on 2nd Embodiment. 第2の実施形態に係る二分木地図データ作成出力装置における離間度の置換処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the replacement process of the degree of separation in the binary tree map data creation output device which concerns on 2nd Embodiment. 第2の実施形態に係るテーブルで表現した二分木地図データ(置換処理前)を示す図である。It is a figure which shows binary tree map data (before substitution process) expressed with the table which concerns on 2nd Embodiment. 第2の実施形態に係るテーブルで表現した二分木地図データ(置換処理後)を示す図である。It is a figure which shows binary tree map data (after replacement process) expressed with the table which concerns on 2nd Embodiment. 第2の実施形態に係るツリー構造で表現した二分木地図データを示す図である。It is a figure which shows binary tree map data expressed with the tree structure which concerns on 2nd Embodiment. 第2の実施形態に係る二分木地図データ作成出力装置における二分木地図データを作成する動作を示すフローチャートである。It is a flowchart which shows the operation | movement which produces binary tree map data in the binary tree map data creation output device which concerns on 2nd Embodiment. 出力範囲に応じたライン選択処理を説明するための図である。It is a figure for demonstrating the line selection process according to an output range. ラインの始点及び終点の各座標値を丸める座標値丸め処理を説明するための図である。It is a figure for demonstrating the coordinate value rounding process which rounds each coordinate value of the starting point of a line, and an end point. 丸め座標値を備える二分木地図データを用いた場合のライン選択処理を説明するための図である。It is a figure for demonstrating the line selection process at the time of using binary tree map data provided with a rounded coordinate value.

符号の説明Explanation of symbols

1、2 二分木地図データ作成出力装置 211 離間度演算部
11 演算処理部 212 被分割ライン分割処理部
12 入力部 213 ライン分割処理部
13 出力部 214、414 作成処理部
14 記憶部 415 置換処理部
15 バス 416 離間度丸め処理部
16 外部記憶部 417 座標値丸め処理部
17 通信インタフェース部
21、41 二分木地図データ作成処理部
22、42 出力地図作成処理部
31、51 二分木地図データ作成プログラム記憶部
32、52 出力地図作成プログラム記憶部
33 元地図データ記憶部
34、54 二分木地図データ記憶部
DESCRIPTION OF SYMBOLS 1, 2 Binary tree map data creation output device 211 Separation degree calculation part 11 Calculation processing part 212 Divided line division | segmentation process part 12 Input part 213 Line division | segmentation process part 13 Output part 214, 414 Creation process part 14 Storage part 415 Replacement process part 15 Bus 416 Separation degree rounding processing unit 16 External storage unit 417 Coordinate value rounding processing unit 17 Communication interface unit 21, 41 Binary tree map data creation processing unit 22, 42 Output map creation processing unit 31, 51 Binary tree map data creation program storage Units 32 and 52 Output map creation program storage unit 33 Original map data storage units 34 and 54 Binary tree map data storage unit

Claims (17)

被分割ラインにおける始点及び終点の各座標値と、該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度と、該被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備え、
前記離間度は、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、
前記第1及び第2分割ラインは、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成され、
前記被分割ラインは、始点及び終点の各座標値と該始点及び終点の間における当該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、第1及び第2分割ラインのうちの内点を持たない分割ラインを除く分割ラインとである二分木地図データを作成する二分木地図データ作成装置。
Each coordinate value of the start point and end point in the line to be divided, and the maximum degree of separation of the inner points on the line to be divided between the start point and end point of the line to be divided, and the line to be divided And a parent-child relationship information representing a parent-child relationship that is a correspondence relationship between the first and second divided lines generated from the divided line,
The degree of separation is a measure representing how far an inner point on the split line between the start point and end point of the split line is away from a line segment connecting the start point and end point of the split line,
The first and second dividing lines are generated by dividing the divided line into two at the inner point having the maximum degree of separation,
The line to be divided includes a line that can be represented by a line on a map including each coordinate value of a start point and an end point and a coordinate value of an inner point on the line between the start point and the end point; A binary tree map data creation device for creating binary tree map data that is a divided line excluding a divided line having no interior point among divided lines.
被分割ラインにおける始点及び終点の各座標値と、親離間度として該被分割ラインを生成する際に用いられた離間度と、子離間度として該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度とを対応付けて備え、
前記離間度は、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、
前記被分割ラインは、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成される総ての第1及び第2分割ラインであって、
前記親離間度及び子離間度は、被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係を親子関係とした場合に、前記ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換えた値である二分木地図データを作成する二分木地図データ作成装置。
The coordinate values of the start point and end point of the line to be divided, the degree of separation used when generating the line to be divided as the parent separation degree, and the degree of separation between the start point and end point of the line to be divided as the degree of child separation. The maximum separation degree among the separation degrees of the inner points on the dividing line is associated with,
The degree of separation is a measure representing how far an inner point on the split line between the start point and end point of the split line is away from a line segment connecting the start point and end point of the split line,
The divided line includes a line that can be represented by a line on a map including each coordinate value of a start point and an end point and a coordinate value of an inner point on the line between the start point and the end point, and a maximum degree of separation. All of the first and second split lines generated by splitting the split line into two at the inner point it has,
The parent separation degree and the child separation degree are divisions that do not have an inner point from the line when the correspondence between the divided line and the first and second divided lines generated from the divided line is a parent-child relationship. When the separation degree used to divide the divided line into the first and second divided lines from the parent to the descendant up to the line is sequentially followed, the separation degree of the descendant side including the separation degree when the division is performed A binary tree map data creation device for creating binary tree map data that is the value replaced by the maximum value.
始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備え地図上に線で表されるラインの地図データを二分木地図データに変換する二分木地図データ作成装置において、
被分割ラインにおける始点及び終点を結ぶ線分から該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点がどれだけ離れているかを表す尺度である離間度を演算する離間度演算部と、
前記離間度演算部で演算した離間度のうちの最大の離間度を持つ内点で前記被分割ラインを2個の第1及び第2分割ラインに分割する被分割ライン分割処理部と、
前記ラインを最初の被分割ラインとすると共に前記被分割ライン分割処理部で分割することによって生成された分割ラインを新たな被分割ラインとすることで、分割ラインに内点が無くなるまで順次に前記ラインを分割するライン分割処理部と、
前記ライン分割処理部で被分割ラインとされた前記ライン及び分割ラインにおける始点及び終点の各座標値と、前記被分割ライン分割処理部で前記被分割ラインを分割する際に用いた前記最大の離間度と、前記被分割ライン分割処理部で生成された第1及び第2分割ラインと前記被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える前記二分木地図データを作成する作成処理部とを備えること
を特徴とする二分木地図データ作成装置。
A binary tree for converting the map data of a line represented by a line on the map into binary tree map data, each coordinate value of the start point and the end point and the coordinate value of the inner point on the line between the start point and the end point In the map data creation device,
The degree of separation for calculating the degree of separation, which is a measure of how far the inner point on the divided line between the start point and the end point of the divided line is from the line segment connecting the start point and the end point of the divided line An arithmetic unit;
A divided line division processing unit that divides the divided line into two first and second divided lines at an inner point having the largest degree of separation calculated by the separation degree calculating unit;
By making the divided line generated by dividing the line into the first divided line and dividing by the divided line division processing unit as a new divided line, the divided lines are sequentially sequentially until there is no inner point. A line division processing unit for dividing the line;
The coordinate values of the start point and the end point of the line and the divided line that have been divided into lines by the line dividing processing unit, and the maximum separation used when the divided line is divided by the divided line dividing processing unit. The binary tree map data including the degree and the parent-child relationship information representing the parent-child relationship that is the correspondence relationship between the first and second divided lines generated by the divided line division processing unit and the divided line. A binary tree map data creation device, comprising: a creation processing unit that creates a map.
請求項3に記載の二分木地図データ作成装置において、
前記被分割ライン分割処理部で前記被分割ラインを分割する際に用いた前記最大の離間度を子離間度とすると共に前記被分割ラインを生成する際に用いられた離間度を親離間度として、前記親離間度及び子離間度を、前記ラインから前記内点を持たない分割ラインまでの親から子孫まで前記被分割ラインを前記第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換える置換処理部をさらに備え、
前記作成処理部は、前記ライン及び総ての分割ラインにおける始点及び終点の各座標値と、前記置換処理部で処理された親離間度と、前記置換処理部で処理された子離間度とを対応付けて備える前記二分木地図データを作成すること
を特徴とする二分木地図データ作成装置。
In the binary tree map data creation device according to claim 3,
The maximum separation degree used when the divided line is divided by the divided line division processing unit is set as a child separation degree, and the separation degree used when the divided line is generated is set as a parent separation degree. The parent separation degree and the child separation degree are the separation degrees used when the divided line is divided into the first and second divided lines from the parent to the descendant from the line to the dividing line having no inner point. Are sequentially replaced with the maximum value of the degree of separation on the descendant side including the degree of separation when the division is performed,
The creation processing unit includes the coordinate values of the start point and the end point of the line and all the divided lines, the parent separation degree processed by the replacement processing unit, and the child separation degree processed by the replacement processing unit. A binary tree map data creation device, characterized in that the binary tree map data provided in association with each other is created.
始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備え地図上に線で表されるラインの地図データを二分木地図データに変換する二分木地図データ作成方法において、
被分割ラインにおける始点及び終点を結ぶ線分から該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点がどれだけ離れているかを表す尺度である離間度を演算する離間度演算ステップと、
前記離間度演算ステップで演算した離間度のうちの最大の離間度を持つ内点で前記被分割ラインを2個の第1及び第2分割ラインに分割する被分割ライン分割処理ステップと、
前記ラインを最初の被分割ラインとすると共に前記被分割ライン分割処理ステップで分割することによって生成された分割ラインを新たな被分割ラインとすることで、分割ラインに内点が無くなるまで順次に前記ラインを分割するライン分割処理ステップと、
前記ライン分割処理ステップで被分割ラインとされた前記ライン及び分割ラインにおける始点及び終点の各座標値と、前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度と、前記被分割ライン分割処理ステップで生成された第1及び第2分割ラインと前記被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える前記二分木地図データを作成する作成処理ステップとを備えること
を特徴とする二分木地図データ作成方法。
A binary tree for converting the map data of a line represented by a line on the map into binary tree map data, each coordinate value of the start point and the end point and the coordinate value of the inner point on the line between the start point and the end point In the map data creation method,
The degree of separation for calculating the degree of separation, which is a measure of how far the inner point on the divided line between the start point and the end point of the divided line is from the line segment connecting the start point and the end point of the divided line A computation step;
A divided line dividing process step of dividing the divided line into two first and second divided lines at an inner point having the largest degree of separation calculated in the separation degree calculating step;
By making the divided line generated by dividing the line into the first divided line and dividing in the divided line division processing step as a new divided line, the divided lines are sequentially sequentially until there are no interior points. A line dividing step for dividing the line;
The coordinate values of the start point and the end point of the line and the split line that are set as the split lines in the line split processing step, and the maximum separation used when the split line is split in the split line split processing step The binary tree map data including the degree and the parent-child relationship information indicating the parent-child relationship which is the correspondence relationship between the first and second divided lines generated in the divided line dividing processing step and the divided line. And a creation processing step for creating a binary tree map data creation method.
請求項5に記載の二分木地図データ作成方法において、
前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度を子離間度とすると共に前記被分割ラインを生成する際に用いられた離間度を親離間度として、前記親離間度及び子離間度を、前記ラインから前記内点を持たない分割ラインまでの親から子孫まで前記被分割ラインを前記第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換える置換処理ステップをさらに備え、
前記作成処理ステップは、前記ライン及び総ての分割ラインにおける始点及び終点の各座標値と、前記置換処理ステップで処理された親離間度と、前記置換処理ステップで処理された子離間度とを対応付けて備える前記二分木地図データを作成すること
を特徴とする二分木地図データ作成方法。
In the binary tree map data creation method according to claim 5,
The maximum separation degree used when dividing the divided line in the divided line division processing step is set as a child separation degree, and the separation degree used when generating the divided line is set as a parent separation degree. The parent separation degree and the child separation degree are the separation degrees used when the divided line is divided into the first and second divided lines from the parent to the descendant from the line to the dividing line having no inner point. Are sequentially replaced with the maximum value of the degree of separation on the descendant side including the degree of separation when the division is performed,
In the creation processing step, the coordinate values of the start point and the end point in the line and all the divided lines, the parent separation degree processed in the replacement processing step, and the child separation degree processed in the replacement processing step. A binary tree map data creation method comprising: creating the binary tree map data provided in association with each other.
始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備え地図上に線で表されるラインの地図データを二分木地図データに変換する、コンピュータに実行させるための二分木地図データ作成プログラムにおいて、
被分割ラインにおける始点及び終点を結ぶ線分から該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点がどれだけ離れているかを表す尺度である離間度を演算する離間度演算ステップと、
前記離間度演算ステップで演算した離間度のうちの最大の離間度を持つ内点で前記被分割ラインを2個の第1及び第2分割ラインに分割する被分割ライン分割処理ステップと、
前記ラインを最初の被分割ラインとすると共に前記被分割ライン分割処理ステップで分割することによって生成された分割ラインを新たな被分割ラインとすることで、分割ラインに内点が無くなるまで順次に前記ラインを分割するライン分割処理ステップと、
前記ライン分割処理ステップで被分割ラインとされた前記ライン及び分割ラインにおける始点及び終点の各座標値と、前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度と、前記被分割ライン分割処理ステップで生成された第1及び第2分割ラインと前記被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える前記二分木地図データを作成する作成処理ステップとを備えること
を特徴とする二分木地図データ作成プログラム。
A computer that has each coordinate value of a start point and an end point and a coordinate value of an inner point on the line between the start point and the end point, and converts map data of a line represented by a line on the map into binary tree map data In the binary tree map data creation program for
The degree of separation for calculating the degree of separation, which is a measure of how far the inner point on the divided line between the start point and the end point of the divided line is from the line segment connecting the start point and the end point of the divided line A computation step;
A divided line dividing process step of dividing the divided line into two first and second divided lines at an inner point having the largest degree of separation calculated in the separation degree calculating step;
By making the divided line generated by dividing the line into the first divided line and dividing in the divided line division processing step as a new divided line, the divided lines are sequentially sequentially until there are no interior points. A line dividing step for dividing the line;
The coordinate values of the start point and the end point of the line and the split line that are set as the split lines in the line split processing step, and the maximum separation used when the split line is split in the split line split processing step The binary tree map data including the degree and the parent-child relationship information indicating the parent-child relationship which is the correspondence relationship between the first and second divided lines generated in the divided line dividing processing step and the divided line. A binary tree map data creation program, comprising: a creation processing step for creating a binary tree.
請求項7に記載の二分木地図データ作成プログラムにおいて、
前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度を子離間度とすると共に前記被分割ラインを生成する際に用いられた離間度を親離間度として、前記親離間度及び子離間度を、前記ラインから前記内点を持たない分割ラインまでの親から子孫まで前記被分割ラインを前記第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換える置換処理ステップをさらに備え、
前記作成処理ステップは、前記ライン及び総ての分割ラインにおける始点及び終点の各座標値と、前記置換処理ステップで処理された親離間度と、前記置換処理ステップで処理された子離間度とを対応付けて備える前記二分木地図データを作成すること
を特徴とする二分木地図データ作成プログラム。
In the binary tree map data creation program according to claim 7,
The maximum separation degree used when dividing the divided line in the divided line division processing step is set as a child separation degree, and the separation degree used when generating the divided line is set as a parent separation degree. The parent separation degree and the child separation degree are the separation degrees used when the divided line is divided into the first and second divided lines from the parent to the descendant from the line to the dividing line having no inner point. Are sequentially replaced with the maximum value of the degree of separation on the descendant side including the degree of separation when the division is performed,
In the creation processing step, the coordinate values of the start point and the end point in the line and all the divided lines, the parent separation degree processed in the replacement processing step, and the child separation degree processed in the replacement processing step. A binary tree map data creation program characterized by creating the binary tree map data provided in association with each other.
始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備え地図上に線で表されるラインの地図データを二分木地図データに変換する、コンピュータに実行させるための二分木地図データ作成プログラムを記録した記録媒体において、
前記二分木地図データ作成プログラムは、
被分割ラインにおける始点及び終点を結ぶ線分から該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点がどれだけ離れているかを表す尺度である離間度を演算する離間度演算ステップと、
前記離間度演算ステップで演算した離間度のうちの最大の離間度を持つ内点で前記被分割ラインを2個の第1及び第2分割ラインに分割する被分割ライン分割処理ステップと、
前記ラインを最初の被分割ラインとすると共に前記被分割ライン分割処理ステップで分割することによって生成された分割ラインを新たな被分割ラインとすることで、分割ラインに内点が無くなるまで順次に前記ラインを分割するライン分割処理ステップと、
前記ライン分割処理ステップで被分割ラインとされた前記ライン及び分割ラインにおける始点及び終点の各座標値と、前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度と、前記被分割ライン分割処理ステップで生成された第1及び第2分割ラインと前記被分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備える前記二分木地図データを作成する作成処理ステップとを備えること
を特徴とする記録媒体。
A computer that has each coordinate value of a start point and an end point and a coordinate value of an inner point on the line between the start point and the end point, and converts map data of a line represented by a line on the map into binary tree map data In a recording medium that records a binary tree map data creation program to be executed,
The binary tree map data creation program is:
The degree of separation for calculating the degree of separation, which is a measure of how far the inner point on the divided line between the start point and the end point of the divided line is from the line segment connecting the start point and the end point of the divided line A computation step;
A divided line dividing process step of dividing the divided line into two first and second divided lines at an inner point having the largest degree of separation calculated in the separation degree calculating step;
By making the divided line generated by dividing the line into the first divided line and dividing in the divided line division processing step as a new divided line, the divided lines are sequentially sequentially until there are no interior points. A line dividing step for dividing the line;
The coordinate values of the start point and the end point of the line and the split line that are set as the split lines in the line split processing step, and the maximum separation used when the split line is split in the split line split processing step The binary tree map data including the degree and the parent-child relationship information indicating the parent-child relationship which is the correspondence relationship between the first and second divided lines generated in the divided line dividing processing step and the divided line. And a creation processing step for creating a recording medium.
請求項9に記載の記録媒体において、
前記被分割ライン分割処理ステップで前記被分割ラインを分割する際に用いた前記最大の離間度を子離間度とすると共に前記被分割ラインを生成する際に用いられた離間度を親離間度として、前記親離間度及び子離間度を、前記ラインから前記内点を持たない分割ラインまでの親から子孫まで前記被分割ラインを前記第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換える置換処理ステップをさらに備え、
前記作成処理ステップは、前記ライン及び総ての分割ラインにおける始点及び終点の各座標値と、前記置換処理ステップで処理された親離間度と、前記置換処理ステップで処理された子離間度とを対応付けて備える前記二分木地図データを作成すること
を特徴とする記録媒体。
The recording medium according to claim 9, wherein
The maximum separation degree used when dividing the divided line in the divided line division processing step is set as a child separation degree, and the separation degree used when generating the divided line is set as a parent separation degree. The parent separation degree and the child separation degree are the separation degrees used when the divided line is divided into the first and second divided lines from the parent to the descendant from the line to the dividing line having no inner point. Are sequentially replaced with the maximum value of the degree of separation on the descendant side including the degree of separation when the division is performed,
In the creation processing step, the coordinate values of the start point and the end point in the line and all the divided lines, the parent separation degree processed in the replacement processing step, and the child separation degree processed in the replacement processing step. A recording medium characterized by creating the binary tree map data provided in association with each other.
被分割ラインにおける始点及び終点の各座標値と、該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度と、該被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記第1及び第2分割ラインが、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成され、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における当該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、第1及び第2分割ラインのうちの内点を持たない分割ラインを除く分割ラインとである二分木地図データから、所定の内点を間引いて出力する地図出力装置において、
前記ラインの内点を間引く度合いである間引き度を入力するための入力部と、
前記ラインから内点を持たない分割ラインまでの親から子孫まで前記被分割ラインの前記最大の離間度と前記入力部で入力された間引き度とを順次に比較し、比較した結果、前記間引き度以下の前記最大の離間度を持つ被分割ラインにおける始点及び終点の座標値を取得する出力地図作成処理部と、
前記出力地図作成処理部で取得した前記始点及び終点の座標値を結ぶ線分を出力する出力部とを備えること
を特徴とする地図出力装置。
Each coordinate value of the start point and end point in the line to be divided, and the maximum degree of separation of the inner points on the line to be divided between the start point and end point of the line to be divided, and the line to be divided And a parent-child relationship information representing a parent-child relationship that is a correspondence relationship between the first and second divided lines generated from the split line, and the degree of separation is between the start point and the end point of the split line Is a scale representing how far the inner point on the split line is from the line segment connecting the start point and the end point of the split line, and the first and second split lines have a maximum degree of separation. The divided line is generated by dividing the line to be divided into two at the inner point having, and the divided line has the coordinate values of the start point and the end point and the coordinate value of the inner point on the line between the start point and the end point. And can be represented by a line on a map with From the line and, binary tree map data is a division line, except the division line having no inner point of the first and second division line, the map output device for outputting thinning out predetermined interior point,
An input unit for inputting a thinning degree that is a degree of thinning the inner point of the line;
As a result of sequentially comparing the maximum separation degree of the divided line and the thinning degree input in the input unit from the parent to the descendant from the line to the dividing line having no interior point, the comparison result, the thinning degree An output map creation processing unit for acquiring the coordinate values of the start point and the end point of the divided line having the maximum degree of separation below;
An output unit that outputs a line segment connecting the coordinate values of the start point and end point acquired by the output map creation processing unit.
被分割ラインにおける始点及び終点の各座標値と、親離間度として該被分割ラインを生成する際に用いられた離間度と、子離間度として該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度とを対応付けて備え、前記離間度が、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、前記被分割ラインが、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成される総ての第1及び第2分割ラインであって、前記親離間度及び子離間度が、被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係を親子関係とした場合に、前記ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換えた値である二分木地図データから、所定の内点を間引いて出力する地図出力装置において、
前記ラインの内点を間引く度合いである間引き度を入力するための入力部と、
前記被分割ラインの前記親離間度及び前記子離間度と前記入力部で入力された間引き度とを順次に比較し、比較した結果、前記間引き度より大きい前記親離間度を持ち、かつ、前記間引き度以下の前記子離間度を持つ被分割ラインにおける始点及び終点の座標値を取得する出力地図作成処理部と、
前記出力地図作成処理部で取得した前記始点及び終点の座標値を結ぶ線分を出力する出力部とを備えること
を特徴とする地図出力装置。
The coordinate values of the start point and end point of the line to be divided, the degree of separation used when generating the line to be divided as the parent separation degree, and the degree of separation between the start point and end point of the line to be divided as the degree of child separation. A maximum separation degree among the separation degrees of the inner points on the dividing line, and the separation point is an inner point on the divided line between the start point and the end point of the divided line. Is a scale representing how far the line segment connecting the start point and end point of the split line is, and the split line is located on the line between the coordinate values of the start point and end point and the start point and end point. All the first and second lines generated by dividing the line to be divided into two at the inner point having the maximum degree of separation, and a line that can be represented by a line on the map with the coordinate value of the inner point A two-divided line, wherein the degree of parent separation and child separation When the correspondence between the divided line and the first and second divided lines generated from the divided line is a parent-child relationship, from the parent to the descendant from the line to the divided line having no interior point When the separation degree used to divide the line to be divided into the first and second division lines is sequentially followed, the maximum value of the separation degree on the descendant side including the separation degree at the time of the division is replaced. In the map output device that outputs a predetermined internal point from a binary tree map data that is a value,
An input unit for inputting a thinning degree that is a degree of thinning the inner point of the line;
The parent separation degree and the child separation degree of the divided line are sequentially compared with the thinning degree input at the input unit, and as a result of the comparison, the parent separation degree is larger than the thinning degree, and the An output map creation processing unit for acquiring the coordinate values of the start point and the end point in the divided line having the child separation degree equal to or less than the thinning degree;
An output unit that outputs a line segment connecting the coordinate values of the start point and end point acquired by the output map creation processing unit.
請求項12に記載の地図出力装置において、
前記二分木地図データは、所定の間隔が空けられて増加していく複数の整数に所定の規則で前記親離間度及び前記子離間度をそれぞれ丸めた丸め親離間度及び丸め子離間度を対応付けてさらに備え、
前記出力地図作成処理部は、前記被分割ラインの前記丸め親離間度及び前記丸め子離間度と前記入力部で入力された間引き度を前記複数の整数に前記所定の規則で丸めた丸め間引き度とを用いて前記所定の規則に応じた等式により前記始点及び終点の座標値を取得すべき被分割ラインを判別すること
を特徴とする地図出力装置。
The map output device according to claim 12, wherein
The binary tree map data corresponds to a plurality of integers that increase with a predetermined interval, and a rounding parent separation degree and a rounding child separation degree obtained by rounding the parent separation degree and the child separation degree according to a predetermined rule, respectively. In addition,
The output map creation processing unit is configured to round the rounding thinning degree obtained by rounding the rounding parent separation degree and rounding child separation degree of the divided line and the thinning degree input by the input unit into the plurality of integers according to the predetermined rule. The map output device, wherein the divided line from which the coordinate values of the start point and the end point are to be acquired is determined by an equation according to the predetermined rule.
請求項11又は請求項12に記載の地図出力装置において、
前記入力部は、前記出力部に出力すべき矩形の出力範囲がさらに入力され、
前記出力地図作成処理部は、前記入力部で入力された矩形の出力範囲に一部又は全部がかかるラインにおける被分割ラインを前記比較の対象とすること
を特徴とする地図出力装置。
In the map output device according to claim 11 or 12,
The input unit further receives a rectangular output range to be output to the output unit,
The map output device characterized in that the output map creation processing unit sets the divided line in a line in which a part or all of the rectangular output range input by the input unit is a target of the comparison.
請求項11又は請求項12に記載の地図出力装置において、
前記二分木地図データは、前記二分木地図データに設けられたxy座標系において、一定間隔の格子を備える複数の層であって各層間で該格子の間隔が所定の間隔を空けられて増加していく複数の層における該格子点の座標値に所定の規則で前記被分割ラインの始点及び終点の座標値を丸めた丸め座標値を対応付けてさらに備え、
前記入力部は、前記出力部に出力すべき矩形の出力範囲がさらに入力され、
前記出力地図作成処理部は、前記格子によって形成される格子領域のうちの前記入力部で入力された矩形の出力範囲に一部又は全部がかかる格子領域における格子点の座標値に丸められた丸め座標値を持つ被分割ラインを前記比較の対象とすること
を特徴とする地図出力装置。
In the map output device according to claim 11 or 12,
In the xy coordinate system provided in the binary tree map data, the binary tree map data is a plurality of layers having lattices with a constant interval, and the intervals of the lattices are increased with a predetermined interval between each layer. The coordinate values of the grid points in a plurality of layers are further provided in association with rounded coordinate values obtained by rounding the coordinate values of the start point and end point of the divided line according to a predetermined rule,
The input unit further receives a rectangular output range to be output to the output unit,
The output map creation processing unit rounds a part or all of the rectangular output range input by the input unit of the lattice region formed by the lattice to the coordinate value of the lattice point in the lattice region. A map output device characterized in that a divided line having a coordinate value is a target of the comparison.
被分割ラインにおける始点及び終点の各座標値と、該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度と、該被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係である親子関係を表す親子関係情報とを対応付けて備え、
前記離間度は、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、
前記第1及び第2分割ラインは、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成され、
前記被分割ラインは、始点及び終点の各座標値と該始点及び終点の間における当該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、第1及び第2分割ラインのうちの内点を持たない分割ラインを除く分割ラインとである二分木地図データが記録されたコンピュータに読み取り可能な記録媒体。
Each coordinate value of the start point and end point in the line to be divided, and the maximum degree of separation of the inner points on the line to be divided between the start point and end point of the line to be divided, and the line to be divided And a parent-child relationship information representing a parent-child relationship that is a correspondence relationship between the first and second divided lines generated from the divided line,
The degree of separation is a measure representing how far an inner point on the split line between the start point and end point of the split line is away from a line segment connecting the start point and end point of the split line,
The first and second dividing lines are generated by dividing the divided line into two at the inner point having the maximum degree of separation,
The line to be divided includes a line that can be represented by a line on a map including each coordinate value of a start point and an end point and a coordinate value of an inner point on the line between the start point and the end point; A computer-readable recording medium on which binary tree map data, which is a divided line excluding a divided line having no interior point, is recorded.
被分割ラインにおける始点及び終点の各座標値と、親離間度として該被分割ラインを生成する際に用いられた離間度と、子離間度として該被分割ラインの始点及び終点の間における該被分割ライン上に在る内点の離間度のうちの最大の離間度とを対応付けて備え、
前記離間度は、被分割ラインの始点及び終点の間における該被分割ライン上に在る内点が該被分割ラインの始点及び終点を結ぶ線分からどれだけ離れているかを表す尺度であって、
前記被分割ラインは、始点及び終点の各座標値と該始点及び終点の間における該線上に在る内点の座標値とを備える地図上に線で表され得るラインと、最大の離間度を持つ内点で被分割ラインを2個に分割することによって生成される総ての第1及び第2分割ラインであって、
前記親離間度及び子離間度は、被分割ラインと該被分割ラインから生成された第1及び第2分割ラインとの対応関係を親子関係とした場合に、前記ラインから内点を持たない分割ラインまでの親から子孫まで被分割ラインを第1及び第2分割ラインに分割する際に用いた離間度を順次に辿った場合に、当該分割する際の離間度を含め子孫側の離間度のうちの最大値で置き換えた値である二分木地図データが記録されたコンピュータに読み取り可能な記録媒体。
The coordinate values of the start point and end point of the line to be divided, the degree of separation used when generating the line to be divided as the parent separation degree, and the degree of separation between the start point and end point of the line to be divided as the degree of child separation. The maximum separation degree among the separation degrees of the inner points on the dividing line is associated with,
The degree of separation is a measure representing how far an inner point on the split line between the start point and end point of the split line is away from a line segment connecting the start point and end point of the split line,
The divided line includes a line that can be represented by a line on a map including each coordinate value of a start point and an end point and a coordinate value of an inner point on the line between the start point and the end point, and a maximum degree of separation. All of the first and second split lines generated by splitting the split line into two at the inner point it has,
The parent separation degree and the child separation degree are divisions that do not have an inner point from the line when the correspondence between the divided line and the first and second divided lines generated from the divided line is a parent-child relationship. When the separation degree used to divide the divided line into the first and second divided lines from the parent to the descendant up to the line is sequentially followed, the separation degree of the descendant side including the separation degree when the division is performed A computer-readable recording medium in which binary tree map data that is the value replaced with the maximum value is recorded.
JP2005006574A 2005-01-13 2005-01-13 Binary tree map data creating device, method and program thereof, recording medium and map output device Pending JP2006195172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005006574A JP2006195172A (en) 2005-01-13 2005-01-13 Binary tree map data creating device, method and program thereof, recording medium and map output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005006574A JP2006195172A (en) 2005-01-13 2005-01-13 Binary tree map data creating device, method and program thereof, recording medium and map output device

Publications (1)

Publication Number Publication Date
JP2006195172A true JP2006195172A (en) 2006-07-27

Family

ID=36801302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005006574A Pending JP2006195172A (en) 2005-01-13 2005-01-13 Binary tree map data creating device, method and program thereof, recording medium and map output device

Country Status (1)

Country Link
JP (1) JP2006195172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100707093B1 (en) * 2005-12-26 2007-04-13 엘지전자 주식회사 Method of allocating identification of each node and updating traffic information for traffic information service

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100707093B1 (en) * 2005-12-26 2007-04-13 엘지전자 주식회사 Method of allocating identification of each node and updating traffic information for traffic information service

Similar Documents

Publication Publication Date Title
CN113434623B (en) Fusion method based on multi-source heterogeneous space planning data
CN110134752B (en) Three-dimensional large-scene modeling data processing method and device
CN102289991B (en) Visual-variable-based automatic classification and configuration method of map lettering
Tucci et al. Using spatial analysis and geovisualization to reveal urban changes: Milan, Italy, 1737–2005
JP4173246B2 (en) Similar image display method and recording medium storing similar image display processing program
JP6800825B2 (en) Information processing equipment, information processing methods and programs
JP6612486B1 (en) Learning device, classification device, learning method, classification method, learning program, and classification program
Reddy Spatial data management, analysis, and modeling in GIS: principles and applications
van Oosterom et al. Data structures for continuous generalisation: tGAP and SSC
Yan et al. Description approaches and automated generalization algorithms for groups of map objects
Lock et al. Visualizing spatial data: the importance of Geographic Information Systems
She et al. 3D building model simplification method considering both model mesh and building structure
JPWO2009118781A1 (en) Map data creation device and map drawing device
Błaszczak-Bąk et al. Reduction of measurement data before Digital Terrain Model generation vs. DTM generalisation
JP2006195172A (en) Binary tree map data creating device, method and program thereof, recording medium and map output device
CN114445574B (en) Method, device and equipment for converting GeoJSON data format into three-dimensional GLB format
TWI543008B (en) Data management apparatus and data management method
EP3811338A1 (en) Improved geographic indexing
US11449566B2 (en) Methods and systems for processing geospatial data
Thiemann et al. An automatic approach for generalization of land-cover data from topographic data
Pacina et al. Pre‐dam valley reconstruction based on archival spatial data sources: Methods, accuracy, and 3D printing possibilities
JP7042690B2 (en) Data generator for learning
Glander et al. Concepts for automatic generalization of virtual 3D landscape models
Demir et al. GIS-based procedural modeling in contemporary urban planning practice
Brůha et al. A procedural footprint enhancement of global topographic surface with multiple levels of detail