JP2012174067A - Method and device for drawing map polygon - Google Patents
Method and device for drawing map polygon Download PDFInfo
- Publication number
- JP2012174067A JP2012174067A JP2011036478A JP2011036478A JP2012174067A JP 2012174067 A JP2012174067 A JP 2012174067A JP 2011036478 A JP2011036478 A JP 2011036478A JP 2011036478 A JP2011036478 A JP 2011036478A JP 2012174067 A JP2012174067 A JP 2012174067A
- Authority
- JP
- Japan
- Prior art keywords
- polygon
- edge
- thinning
- polygons
- adjacent
- 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.)
- Withdrawn
Links
Images
Landscapes
- Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
Description
本発明は、ディスプレイに地図を表示するに際して、地図の背景となるポリゴンを描画するとき、ポリゴンの周縁を形成する要素点を間引いて表示する地図ポリゴン描画方法及びその方法を実施する装置に関し、特に隣接するポリゴンのうち片側のポリゴンで間引処理を行うのに対して他側では間引処理を行わないことにより生じる隙間を無くすことができるようにした地図ポリゴン描画方法、及びその方法を実施する装置に関する。 The present invention relates to a map polygon drawing method for thinning and displaying element points forming the periphery of a polygon when drawing a polygon as a map background when displaying a map on a display, and more particularly to an apparatus for implementing the method. Implement a map polygon drawing method and method that can eliminate a gap caused by performing thinning processing on one side of adjacent polygons while not performing thinning processing on the other side. Relates to the device.
地図を表示するには、地図帳として表示する以外に、近年は地図の電子データ化により、パソコンやナビゲーション装置を初め、携帯情報端末、携帯電話等々のディスプレイに表示することが多くなっている。このような地図の電子データ化によって、世界中任意の地点について、任意の縮尺で、しかも好みの表示手法によって自由に表示することができるようになっている。 In order to display a map, in addition to displaying it as a map book, in recent years, it has been often displayed on displays such as personal computers and navigation devices, personal digital assistants, mobile phones, etc. by converting the map into electronic data. By making such a map into electronic data, any point in the world can be freely displayed at any scale and with a favorite display method.
電子データ化された地図はDVDやメモリカード等の各種データ記録媒体に記録する以外に、インターネット等を通じて各種情報機器に取り込むことができるが、このような地図データは、多くの場合各種の縮尺レベルに応じて適当な大きさの経度幅及び緯度幅に区切られており、道路等は経度及び緯度で表現されたノードの座標集合としている。このような地図の表示に際しては、道路表示レイヤの他、地図画面上に道路、建築物、施設、海や河川、森、山岳等の地図上の背景を表示するポリゴン表示レイヤ、更には市町村名などの行政区画名、道路名、交差点名及び施設の名前やその施設のアイコン等の、文字や地図記号を表示するための情報データ表示レイヤ等、多くのレイヤのデータを重ねて表示している。 In addition to recording electronic data maps on various data recording media such as DVDs and memory cards, they can be imported into various information devices through the Internet, etc., but such map data often has various scale levels. The road is divided into a coordinate set of nodes expressed by longitude and latitude. When displaying such a map, in addition to the road display layer, a polygon display layer for displaying the background on the map such as roads, buildings, facilities, sea, rivers, forests, mountains, etc. on the map screen, as well as the city name Many layers of data such as administrative data such as administrative district names, road names, intersection names, facility names, and facility icons and information data display layers for displaying map symbols are displayed in an overlapping manner. .
この中のポリゴンを表示するデータは、地図を利用者にとってわかりやすく、且つ親しみ易く、見栄えがよいように表示するために重要な表示データとなっている。このポリゴンデータは、衛星写真や測量地図を元に整備されており、このポリゴンデータを地図上に表示する際には、その表示データ処理に多大な負担をかけることがあり、地図描画性能を悪化させるため、できる限り地図描画処理負担を軽くするように、ポリゴンの周縁を構成する要素点の間引き処理を行っている。 The data for displaying the polygons is important display data for displaying the map in a manner that is easy for the user to understand, friendly, and attractive. This polygon data is prepared based on satellite photographs and survey maps, and when this polygon data is displayed on the map, the display data processing may be greatly burdened and the map drawing performance deteriorates. Therefore, the thinning process of the element points constituting the periphery of the polygon is performed so as to reduce the map drawing processing burden as much as possible.
そのようなポリゴンの周縁を形成する要素点の間引処理に際しては、主として図11に示すように行われている。図11に示す例においては、同図(a)に示すようなポリゴンPが存在する時、その一部が同図の要素点2の部分が突出しているとき、その突出部の要素点を間引くか否かは、ポリゴンの周囲形状の変化が少ないことを示す所定の条件を満たすときにその要素点を削除して間引く。その時の条件としては例えば同図(b)に示すようにして行う。
The thinning-out process of the element points forming the periphery of such a polygon is mainly performed as shown in FIG. In the example shown in FIG. 11, when a polygon P as shown in FIG. 11A exists, when a part of the
即ち第1に、要素点2を中心としてその両隣の要素点1と要素点3との関係を、要素点2における角度αを計測し、そのαが例えば170度等の所定の角度αaと、180度の間に存在するかを判別する。
That is, first, the relationship between the
第2に、図11に示す例においては、要素点2を挟む両隣の要素点1と要素点3を結ぶ直線に、要素点2から垂線を降ろし、そのときの長さL、即ち要素点2の前記直線との距離を計測して、その長さLが最大値の閾値としての所定の長さLa以下であるかを判別して、両条件を満たす時、この要素点2を間引くことにしている。こののような判別条件は、前記第1の条件を満たす場合でも、要素点2の両隣の要素点1と3の距離が大きい時は、この要素点は間引くことが好ましくないものとする。
Secondly, in the example shown in FIG. 11, a perpendicular line is drawn from the
その処理に際して、前記角度αは、反時計回りを順方向とし、ポリゴン側の角度を測定している。したがって、図11(a)において、図示の例では要素点2がポリゴンにとって突出しているため、角度αは180度以下であるのに対して、図示とは逆に要素点2が凹部であるポリゴンの場合は、角度αは180度を超えるため、その場合は要素点2の間引き処理を行わないことになる。
In the processing, the angle α is measured on the polygon side with the counterclockwise direction as the forward direction. Accordingly, in FIG. 11A, in the illustrated example, the
上記処理の結果、図11(c)のように、(1)要素点2について隣接要素点1及び3間の角度αがα1であって、所定角度αaよりも大きく、前記180度以下の時、であって、(2)隣接要素点間を結ぶ直線への垂線の長さL1が所定の長さLaよりも小さい時には、同図(d)に示すように要素点を間引き、要素点1と3のみとする。このような間引を行う要素点を選択する条件を満たす要素点2の部分は、ポリゴンの周囲形状の変化が少ない部分ということができる。なお、間引処理を行う条件は、上記以外に種々の手法が提案されている。
As a result of the above processing, as shown in FIG. 11C, (1) when the angle α between the
前記のような要素点の間引処理の結果、ポリゴンの多くの要素点が間引かれ、ポリゴンの表示処理負担が軽くなり、地図全体の表示が速くなるため、特定地点の地図表示速度を向上し、また現在の地図表示からのスクロール表示や、地図の表示縮尺の変更等において、円滑な表示ができるようになる。 As a result of the thinning process of the element points as described above, many element points of the polygon are thinned out, the burden of polygon display processing is reduced, and the display of the entire map is accelerated, thus improving the map display speed of a specific point In addition, smooth display can be performed in scroll display from the current map display, change in map display scale, and the like.
なお、地図表示におけるポリゴンの表示に際して、ポリゴン間に隙間が発生する時、その隙間領域を抽出し、併合釦を操作することにより、隣接ポリゴンに合体して隙間を埋めて修正を行うことができるようにした技術は、特許文献1に開示されている。
When a polygon is displayed in the map display, when a gap is generated between the polygons, the gap area is extracted, and the merge button is operated so that the gap can be merged with the adjacent polygon to be corrected. Such a technique is disclosed in
前記のように、電子データによって地図を描画する時、その背景となるポリゴンの表示処理負担を軽くするため、ポリゴンの周縁を形成する要素点を、前記のような所定の条件を満たす時に間引く技術では、例えば図12(b)に示すような隙間Sa、Sbを生じることがある。 As described above, when drawing a map with electronic data, a technique for thinning out the element points forming the periphery of the polygon when the predetermined condition as described above is satisfied in order to reduce the display processing burden of the polygon serving as the background. Then, for example, gaps Sa and Sb as shown in FIG.
即ち図示の例では、最初は同図(a)に示すように、全ての要素点を用いてポリゴンA、B、Cを描画する時には各ポリゴン間で隙間が発生することはないが、前記のような要素点の間引処理を行うとき、ポリゴンAがその僅かの突出部分で要素点の間引処理を行った部分で、ポリゴンBは凹部となり、この部分での要素点の間引は行わなかった例を示している。 That is, in the example shown in the drawing, as shown in FIG. 5A, when polygons A, B, and C are drawn using all element points, no gap is generated between the polygons. When the element point thinning process is performed, the polygon A is a portion where the element point thinning process is performed at a slight protruding portion, and the polygon B becomes a concave portion, and the element point thinning is performed at this portion. The example which did not exist is shown.
同様に同図の例においては、ポリゴンAとポリゴンCとの関係において、ポリゴンCがその僅かの突出部分で要素点の間引処理を行ったとき、その部分でポリゴンAは凹部となっており、この部分での要素点の間引は行わなかった例を示している。その結果ここには隙間Sbが発生している。 Similarly, in the example shown in the figure, in the relationship between the polygon A and the polygon C, when the polygon C performs the thinning process of the element points at the slight protruding portion, the polygon A is a concave portion at that portion. In this example, element points are not thinned out in this portion. As a result, a gap Sb is generated here.
このようにして形成されたポリゴンの要素点の間引処理によって発生したポリゴン間の隙間は、例えば図13(b)に示すような海ポリゴンにおいて、1つの海ポリゴンが他の海ポリゴンと隣接して繋がっている時、そのポリゴンの境界の一部Rにおいて、同図のように広域地図表示状態ではほとんどわからないものの、同図(a)のように拡大して表示する時には、図中Rで示すよな隙間SaとSbが、周囲の海の色が存在しない、白地となって見えてくる。 The gap between the polygons generated by the thinning-out process of the element points of the polygons formed in this way is, for example, one sea polygon adjacent to another sea polygon in the sea polygon as shown in FIG. In the part R of the boundary of the polygon when connected to each other, it is hardly known in the wide area map display state as shown in the figure, but when enlarged and displayed as shown in FIG. The gaps Sa and Sb appear as a white background with no surrounding sea color.
このようなポリゴン間の隙間は、地図自体の表示としては大きな問題は生じないものの、地図を拡大する程この隙間は目立ち、地図データの安っぽさを印象づけて見栄えが極めて良くない。そのため、前記特許文献のようにその隙間を埋める処理を行うことも提案されているが、その処理のためには人為的な操作を必要とし、全てのポリゴン間の隙間を無くすには膨大な手数を要する。 Although such a gap between polygons does not cause a big problem as a display of the map itself, the gap becomes more conspicuous as the map is enlarged, and the appearance of the map data is impressed and the appearance is not very good. For this reason, it has also been proposed to perform the process of filling the gap as in the above-mentioned patent document, but it requires an artificial operation for the process, and enormous effort is required to eliminate the gap between all polygons. Cost.
なお、上記のようにポリゴンの表示を円滑にするために、ポリゴン周縁を形成する要素点を間引く処理は、地図データを提供する企業が地図データに対して処理を行い、このように処理した地図データを提供する以外に、特に間引処理を行っていない生のデータが提供される時、そのデータに基づいて地図を表示する、例えばパソコンやナビゲーション装置で間引処理ソフトによって処理する場合が存在しうる。 In order to facilitate polygon display as described above, the process of thinning out the element points that form the periphery of the polygon is performed on the map data by the company providing the map data, and the map thus processed is processed. In addition to providing data, when raw data that has not been thinned out is provided, a map is displayed based on that data. For example, there is a case where the data is processed by a thinning software on a personal computer or navigation device. Yes.
したがって本発明は、地図の背景となるポリゴンの表示に際して、ポリゴン表示の処理負担を軽減するためにポリゴンの周縁を形成する要素点を所定の条件で間引く時、従来の条件では隣接するポリゴン間に隙間が発生し、地図の見栄えが悪くなる問題を、手数を要することなく、容易に解消することができるようにした地図ポリゴン描画方法、及びその方法を実施する装置に関する。 Therefore, when displaying polygons that are the background of a map, the present invention reduces the processing load of polygon display by thinning out the element points that form the periphery of the polygon under a predetermined condition. The present invention relates to a map polygon drawing method and an apparatus for executing the method, which can easily solve the problem that a gap is generated and the appearance of a map is deteriorated without requiring a trouble.
本発明に係る地図ポリゴン描画方法は、前記課題を解決するため、描画する地図に含まれる全てのポリゴンを抽出し、前記抽出したポリゴンについて、各ポリゴンの周縁を形成する要素点を取得し、各ポリゴンについて相互に隣り合う複数の要素点からなる部分にエッジを設定し、前記エッジを構成する要素点について、ポリゴンの周囲形状の変化が少ないことを示す所定の条件を満たすとき、地図表示用要素点として削除する間引処理を行い、前記要素点を削除する間引処理を行ったとき、当該要素点が現在間引処理を行っているポリゴンに隣接するポリゴンを構成する要素点と一致するとき、当該隣接するポリゴンの要素点も削除する間引処理を行い、前記間引処理を、指定したエッジを構成する全ての要素点に対して行った後、指定したポリゴンを構成する他のエッジに対しても前記間引処理を行い、前記指定したポリゴンの全てのエッジに対して前記間引処理を行い、その後、前記抽出したポリゴンの全てに対して前記要素点の間引処理を行い、前記間引処理を行ったデータによりポリゴンを描画することを特徴とする。 In order to solve the above problems, the map polygon drawing method according to the present invention extracts all polygons included in a map to be drawn, acquires element points forming the periphery of each polygon for the extracted polygons, An element for map display is set when an edge is set at a part composed of a plurality of element points adjacent to each other for a polygon, and the element points constituting the edge satisfy a predetermined condition indicating that there is little change in the surrounding shape of the polygon. When a thinning process that deletes as a point is performed, and when the thinning process that deletes the element point is performed, the element point matches an element point that constitutes a polygon adjacent to the polygon that is currently being thinned. The thinning process is also performed to delete the element points of the adjacent polygon, and the thinning process is performed on all the element points constituting the specified edge, and then specified. The thinning process is performed on other edges constituting the polygon, the thinning process is performed on all the edges of the designated polygon, and then the element points are applied to all the extracted polygons. A thinning process is performed, and a polygon is drawn by the data subjected to the thinning process.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記指定したポリゴンの全てのエッジに対して前記間引処理を行った後は、当該ポリゴンに隣接するポリゴンを順に指定して前記間引処理を行うことを特徴とする。 According to another map polygon drawing method of the present invention, in the map polygon drawing method, after performing the thinning process on all edges of the specified polygon, polygons adjacent to the polygon are sequentially The thinning process is performed by designating.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記エッジの設定に際しては、当該エッジの前後端の要素点については、少なくとも前記ポリゴンの周囲形状の変化が少ないことを示す所定の条件を満たす要素点以外の要素点を選択することを特徴とする。 Further, in another map polygon drawing method according to the present invention, in the map polygon drawing method, at the time of setting the edge, at least the change in the surrounding shape of the polygon is small for the element points at the front and rear ends of the edge. An element point other than an element point satisfying a predetermined condition indicating the above is selected.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記エッジの設定に際しては、当該エッジの前後端の要素点については、前記所定の条件のほか、隣接するポリゴンが変化する要素点を選択することを特徴とする。 According to another map polygon drawing method of the present invention, in the map polygon drawing method, when the edge is set, the element points at the front and rear ends of the edge have not only the predetermined condition but adjacent polygons. It is characterized by selecting changing element points.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記エッジを設定したとき、当該エッジが隣接するポリゴンのエッジと共通するときには、当該エッジを構成する要素点について、両ポリゴンにおいてそれぞれ対応する要素点についての対応データを作成し、一方のポリゴンの要素点を前記間引処理により削除するとき、前記対応データによって他方のポリゴンの要素点を削除する間引処理を行うことを特徴とする。 In addition, in the map polygon drawing method according to the present invention, when the edge is set in the map polygon drawing method, when the edge is in common with the edge of an adjacent polygon, the element points constituting the edge are: Corresponding data for corresponding element points in both polygons is created, and when the element point of one polygon is deleted by the thinning process, the thinning process is performed to delete the element point of the other polygon by the corresponding data. It is characterized by that.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記一方のポリゴンの要素点を前記間引処理により削除するとき、前記対応データにより他方のポリゴンの要素点の間引処理を行う際には当該要素点については間引処理を行わないことを特徴とする。 Further, in another map polygon drawing method according to the present invention, in the map polygon drawing method, when the element points of the one polygon are deleted by the thinning-out processing, the element points of the other polygon are determined by the correspondence data. When performing the thinning process, the element point is not subjected to the thinning process.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記ポリゴンの周囲形状の変化が少ないことを示す所定の条件は、指示した要素点について隣接する要素点で形成される角度が所定角度以内であることを特徴とする。 Further, in another map polygon drawing method according to the present invention, in the map polygon drawing method, the predetermined condition indicating that the change in the surrounding shape of the polygon is small is formed by an element point adjacent to the indicated element point. The angle is within a predetermined angle.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記ポリゴンの周囲形状の変化が少ないことを示す所定の条件は、隣接する要素点を結ぶ直線に降ろした垂線の長さが所定以内であることを特徴とする請求項1記載のポリゴン描画方法。
Further, in another map polygon drawing method according to the present invention, in the map polygon drawing method, the predetermined condition indicating that the change in the surrounding shape of the polygon is small is that a perpendicular line dropped on a straight line connecting adjacent element points is used. 2. The polygon drawing method according to
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記間引処理したデータは、地図表示用データとしてデータベースに保存することを特徴とする。 Another map polygon drawing method according to the present invention is characterized in that, in the map polygon drawing method, the thinned data is stored in a database as map display data.
また、本発明に係る他の地図ポリゴン描画方法は、前記地図ポリゴン描画方法において、前記間引処理したデータは、地図表示用データとしてデータベースに保存することを特徴とする。 Another map polygon drawing method according to the present invention is characterized in that, in the map polygon drawing method, the thinned data is stored in a database as map display data.
また、本発明に係る地図ポリゴン描画装置は、前記課題を解決するため、描画する地図に含まれる全てのポリゴンを抽出する間引処理ポリゴン抽出手段と、前記間引処理ポリゴン抽出手段で抽出したポリゴンについて、各ポリゴンの周縁を形成する要素点を取得するポリゴン周縁形成要素点取得手段と、前記間引処理ポリゴン抽出手段で抽出した各ポリゴンについて、相互に隣り合う複数の要素点からなる部分にエッジを設定するポリゴン周縁エッジ設定手段と、前記ポリゴン周縁エッジ設定手段で設定したエッジを構成する要素点について、ポリゴンの周囲形状の変化が少ないことを示す所定の条件を満たすとき、地図表示用要素点として削除する間引処理を行う要素点間引処理手段とを備え、前記要素点間引処理手段では、要素点を削除する間引処理を行ったとき、当該要素点が現在間引処理を行っているポリゴンに隣接するポリゴンを構成する要素点と一致するときには、当該隣接するポリゴンの要素点も削除する間引処理を行い、前記間引処理を、指定したエッジを構成する全ての要素点に対して行った後、指定したポリゴンを構成する他のエッジに対しても前記間引処理を行い、前記指定したポリゴン法の全てのエッジに対して前記間引処理を行い、その後、前記抽出したポリゴンの全てに対して前記要素点の間引処理を行うことによりポリゴンを描画するデータを作成することを特徴とする。 In order to solve the above problems, the map polygon drawing apparatus according to the present invention extracts a thinning process polygon extracting means for extracting all the polygons included in a map to be drawn, and a polygon extracted by the thinning process polygon extracting means. For each polygon extracted by the polygon peripheral forming element point acquiring means for acquiring the element points forming the peripheral edge of each polygon and the thinning processing polygon extracting means, an edge is formed at a portion composed of a plurality of adjacent element points. When the polygon peripheral edge setting means for setting the image and the element points constituting the edge set by the polygon peripheral edge setting means satisfy a predetermined condition indicating that there is little change in the polygon peripheral shape, the map display element points Element point thinning processing means for performing thinning processing to be deleted, and the element point thinning processing means deletes element points. If the element point matches an element point that constitutes a polygon adjacent to the polygon currently being thinned, the thinning process is also performed to delete the element point of the adjacent polygon. And performing the thinning process on all element points constituting the designated edge, and then performing the thinning process on other edges constituting the designated polygon. The thinning process is performed on all the edges of the image, and then the element points are thinned out on all of the extracted polygons, thereby generating data for drawing the polygons.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記要素点間引処理手段では、前記指定したポリゴンの全てのエッジに対して前記間引処理を行った後は、当該ポリゴンに隣接するポリゴンを順に指定して前記間引処理を行うことを特徴とする。 Another map polygon drawing apparatus according to the present invention is the map polygon drawing apparatus, wherein the element point thinning processing unit performs the thinning process on all edges of the designated polygon. The thinning process is performed by sequentially specifying polygons adjacent to the polygon.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記ポリゴン周縁エッジ設定手段では、前記エッジの設定に際して、当該エッジの前後端の要素点については、少なくとも前記ポリゴンの周囲形状の変化が少ないことを示す所定の条件を満たす要素点以外の要素点を選択することを特徴とする。 According to another map polygon drawing apparatus of the present invention, in the map polygon drawing apparatus, in the polygon peripheral edge setting means, at the time of setting the edge, at least the element points at the front and rear ends of the edge An element point other than an element point that satisfies a predetermined condition indicating that there is little change in the surrounding shape is selected.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記ポリゴン周縁エッジ設定手段では、前記エッジの設定に際して、当該エッジの前後端の要素点については、前記所定の条件のほか、隣接するポリゴンが変化する要素点を選択することを特徴とする。 In the map polygon drawing apparatus according to the present invention, in the map polygon drawing apparatus, the polygon peripheral edge setting means may set the predetermined condition for the element points at the front and rear ends of the edge when the edge is set. In addition to the above, element points where adjacent polygons change are selected.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記要素点間引処理手段では、前記ポリゴン周縁エッジ設定手段でエッジを設定したとき、当該エッジが隣接するポリゴンのエッジと共通するときには、当該エッジを構成する要素点について、両ポリゴンにおいてそれぞれ対応する要素点についての対応データを作成し、
一方のポリゴンの要素点を前記間引処理により削除するとき、前記対応データによって他方のポリゴンの要素点を削除する間引処理を行うことを特徴とする。
In the map polygon drawing apparatus according to the present invention, in the map polygon drawing apparatus, when the edge is set by the polygon peripheral edge setting means in the element point thinning processing means, the edge of the polygon adjacent to the edge is set. When it is in common with an edge, for each element point constituting the edge, create corresponding data for the corresponding element point in both polygons,
When the element point of one polygon is deleted by the thinning process, the thinning process of deleting the element point of the other polygon by the correspondence data is performed.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記要素点間引処理手段では、前記一方のポリゴンの要素点を前記間引処理により削除するとき、前記対応データにより他方のポリゴンの要素点の間引処理を行う際には当該要素点については間引処理を行わないことを特徴とする。 In the map polygon drawing apparatus according to the present invention, in the map polygon drawing apparatus, when the element point thinning processing unit deletes the element point of the one polygon by the thinning processing, the corresponding data Thus, when the thinning process of the element point of the other polygon is performed, the thinning process is not performed for the element point.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記ポリゴンの周囲形状の変化が少ないことを示す所定の条件は、指示した要素点について隣接する要素点で形成される角度が所定角度以内であることを特徴とする。 In the map polygon drawing apparatus according to the present invention, the predetermined condition indicating that the change in the surrounding shape of the polygon is small in the map polygon drawing apparatus is formed by an element point adjacent to the designated element point. The angle is within a predetermined angle.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記ポリゴンの周囲形状の変化が少ないことを示す所定の条件は、隣接する要素点を結ぶ直線に降ろした垂線の長さが所定以内であることを特徴とする。 Further, in another map polygon drawing apparatus according to the present invention, in the map polygon drawing apparatus, the predetermined condition indicating that the change in the surrounding shape of the polygon is small is that a perpendicular line dropped on a straight line connecting adjacent element points. The length is within a predetermined range.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記間引処理したデータは、地図表示用データとしてデータベースに保存することを特徴とする。 In another map polygon drawing apparatus according to the present invention, the thinned data is stored in a database as map display data in the map polygon drawing apparatus.
また、本発明に係る他の地図ポリゴン描画装置は、前記地図ポリゴン描画装置において、前記間引処理したデータは、地図表示用データとしてデータベースに保存することを特徴とする。 In another map polygon drawing apparatus according to the present invention, the thinned data is stored in a database as map display data in the map polygon drawing apparatus.
本発明は上記のように構成したので、地図の背景となるポリゴンの表示に際して、ポリゴン表示の処理負担を軽減するためにポリゴンの周縁を形成する要素点を所定の条件で間引く時、従来の条件では隣接するポリゴン間に隙間が発生し、地図の見栄えが悪くなる問題を、手数を要することなく、容易に解消することができるようになる。 Since the present invention is configured as described above, when displaying polygons that are the background of a map, when thinning out the element points that form the periphery of the polygons under a predetermined condition in order to reduce the processing burden of polygon display, Then, it becomes possible to easily solve the problem that a gap is generated between adjacent polygons and the appearance of the map is deteriorated without requiring any trouble.
本発明の実施例を図面に沿って説明する。図1は本発明における地図ポリゴン描画装置において、特にポリゴンの周縁を形成する要素点の間引処理を行う時、隣接するポリゴン間に隙間が発生しないようにするための処理を行う機能ブロック図を主として示しており、本発明を各種の態様で実施することができるようにした機能ブロック図を示している。なお、同図において、各機能を行う機能部は、それぞれ各機能を行う手段ということができる。 Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a functional block diagram of a map polygon drawing apparatus according to the present invention that performs processing for preventing gaps between adjacent polygons, particularly when performing thinning processing of element points that form the periphery of a polygon. 1 is a functional block diagram that is primarily shown and that allows the invention to be implemented in various ways. In addition, in the same figure, the function part which performs each function can be said to be a means which performs each function.
図1の表示ポリゴンの周縁を形成する要素点の間引処理を行う装置の例においては、主として要素点の間引処理を行う対象を選択する間引処理対象選択部1と、その間引処理対象選択部1で選択した間引処理対象について、実際に間引処理を行う要素点間引処理部2とを備えている。
In the example of the apparatus that performs the thinning process of the element points that form the periphery of the display polygon in FIG. 1, the thinning process
図1の例えば前記両者が互いに連携して作動し、後述するように間引処理対象選択部1で選択したポリゴン、その中のエッジ、それを構成する要素点について間引処理を行うと、同じエッジの次の要素点、同じエッジの全ての要素点に対する処理が終了するとその次のエッジについて同様の処理を行い、そのエッジの処理が終了するとそのポリゴンの他のエッジを順に選択し、同様にして今回の処理を必要とする他のポリゴンに対して処理を行うことにより完了するようにしている。
In FIG. 1, for example, the both operate in cooperation with each other, and when the thinning process is performed on the polygon selected by the thinning process
間引処理対象選択部1には、これから処理を行おうとする地図について、その地図に含まれる全てのポリゴンを抽出するための間引処理ポリゴン抽出部3を備える。間引処理用ポリゴン指定部4では、最終的にその地図の全てのポリゴンを指定することとなるが、順に処理を行うために適宜の順に処理するポリゴンの指定を行う。
The thinning processing
ポリゴン周縁形成要素点取得部5では、指定したポリゴンについて、また後述するようにその指定ポリゴンに直接隣接するポリゴンについて、それらのポリゴンの周縁を形成する要素点を全て取得する。それらのデータは従来より、各ポリゴンを表示するための元のデータに整理して記録されている。
The polygon edge forming element
隣接ポリゴン検出部6では、前記のように間引処理用ポリゴン指定部4で指定したポリゴンについて、隣接するポリゴンを検出する。それらのポリゴンについても前記のようにポリゴン周縁形成要素点取得部5によって、要素点を取得する処理がなされる。その結果、例えば前記従来例として示した図12(a)と同様の例を示す図4(a)のように、間引処理用ポリゴン指定部4で指定するポリゴンがポリゴンAである時、隣接ポリゴン検出部6ではポリゴンBとポリゴンCを検出する。
The adjacent
また、前記ポリゴン周縁形成要素点取得部4では、ポリゴンAについては要素点A1〜A24の24個の要素点を取得し、ポリゴンBについてはB1〜B17の17個の要素点を取得し、ポリゴンCについてはC1〜C18の18個の要素点を取得している。
The polygon edge forming element
ポリゴン周縁エッジ設定部7では、間引処理用ポリゴン指定部3で指定したポリゴンと、隣接ポリゴン検出部6で検出したポリゴンについて、ポリゴン周縁を形成するエッジを設定する。この時の「エッジ」とは、各ポリゴンについて隣接する要素点が例えば10度以上折れ曲がっている要素点、或いは大きな曲折はないものの、その部分で隣接するポリゴンが変わる部分等の予め設定した条件の特徴的な要素点間を結ぶ周縁部分を検出する。それにより、前記のような「エッジ」を決定する。
The polygon peripheral
このようなエッジの検出処理により、前記図4の例においては、図5に示すようにポリゴンAについて、要素点A1〜A8がほぼ直線状態のためこれをエッジ1とする。このエッジに対してポリゴンAにおける反時計回りを順方向として、同様に要素点A8〜A14についてはエッジ2とする。
By such edge detection processing, in the example shown in FIG. 4, the element points A1 to A8 are substantially straight for the polygon A as shown in FIG. With respect to this edge, the counterclockwise direction in the polygon A is set as the forward direction, and similarly, the element points A8 to A14 are set as the
また、要素点A16部分については10度以下の折曲であるときにはこれをエッジの端部とはせず、要素点A17部分については、隣接するポリゴンがポリゴンBからポリゴンCに変わるため、これをエッジの端部として、要素点A14〜A17をエッジ3とする。要素点A18部分については、前記要素点A16と同様に、例えば10度以下のわずかな折曲である時にはこれをエッジの端部とはせず、したがって要素点A17〜A20をエッジ4とする。また、要素点A20〜A1については、ほぼ直線上であるのでこの周縁部分をエッジ5としている。
Also, when the element point A16 portion is bent at 10 degrees or less, this is not used as the end of the edge, and for the element point A17 portion, the adjacent polygon changes from polygon B to polygon C. Element points A14 to A17 are defined as
同様に隣接ポリゴンであるポリゴンBについては、ポリゴンAで設定したエッジ3は共通するエッジであるので、要素点B1〜B4をエッジ3の要素点とする。このエッジからポリゴンBにとって順方向に、要素点B4〜B6をエッジ6とし、要素点B6〜B10をエッジ7とし、要素点B12部分の折曲が小さいことによりこれはエッジの端部とはせず、したがって要素点B10〜B14をエッジ8とする。
Similarly, for the polygon B which is an adjacent polygon, since the
ポリゴンBの要素点B14〜B1についてはほぼ直線状であるのでこれをエッジ9とする。このエッジ9はポリゴンAに隣接するポリゴンでありポリゴンBにも隣接するポリゴンCにおける、要素点C4〜C8と共通して構成される。
Since the element points B14 to B1 of the polygon B are substantially linear, this is referred to as an
ポリゴンCについては、前記ポリゴンAのエッジ4について、ポリゴンAにおいては要素点A17〜A20が構成しているのに対して、要素点C1〜4が共通して構成している。ポリゴンCの要素点C4〜C8については、前記のようにポリゴンBの要素点B14〜B1と共にエッジ9を構成している。
Regarding the polygon C, the element points A17 to A20 are configured in the polygon A for the
要素点C11部分については曲がりが少ないためこれをエッジの端部とはせず、要素点C8〜C15をエッジ10とする。また、要素点CC15〜C1はエッジ11とする。上記のようにして、指定ポリゴンAと、それに隣接するポリゴンであるポリゴンBとポリゴンCについて、一連のエッジを設定する。
Since the element point C11 is less bent, it is not used as the edge of the edge, and the element points C8 to C15 are set as the
図1のポリゴン周縁エッジ設定部7では前記のようなエッジの設定を行い、エッジ構成要素点検出部8では前記のような各エッジが構成される各ポリゴンの要素点を検出する。間引処理エッジ指示部9では、前記間引処理用ポリゴン指定部4で指定したポリゴンと、隣接ポリゴン検出部6で検出したポリゴンについて、間引処理を行うエッジの指示を行う。
The polygon peripheral
間引処理要素点指定部10では、間引処理エッジ指示部9で指示したエッジについて、そのエッジを構成する要素点を順に指示する。このようにして、例えば現在間引処理用ポリゴン指定部4で指定したポリゴンについて要素点の間引処理を行う時、間引処理用エッジ指示部9ではそのポリゴンを構成するエッジを順に指示し、間引処理要素点指示部10では、そのエッジについてそのポリゴンにおいてエッジを構成する要素点を順に指示する。その後間引処理するポリゴンについて、指定ポリゴンのエッジを全て処理した後は、隣接ポリゴンについて同様の間引処理を行うエッジ及びそれを構成する要素点の間引処理を行い、最終的に全てのポリゴンの処理がなされる。
The thinning process element
要素点間引処理部2では、前記のように指示された要素点について、所定の条件を満たすものを間引く処理を行うものであり、基本的には前記従来例で示した図11の処理を行う。その中の間引可否判別処理部11では要素点を間引くか否かを判別する処理を行うものであり、その中の隣接要素点間角度計測部12で計測した、前記図11の隣接要素点間角度である角度αを計測する。その計測値に基づき、隣接要素点間角度所定域内判別部13で、図11(b)(c)に示すように、また同図の説明で述べたように、条件(1)αa<α1≦180度を満たすかどうかを判別する。
The element point thinning
また、隣接要素点間直線への垂線長さ計測部18では、図11(b)(c)に示すように、また同図の説明で述べたように、隣接する要素点を結ぶ直線への垂線の長さL1について、所定の長さLaより短いか、即ちL1<Laであるか否かを判別する。したがって間引可否判別処理部11では、前記間引条件(1)と’(2)の条件を満たすか否かを判別し、全て満たす時には間引処理を行う。
In addition, in the perpendicular
間引フラグ処理部16では、前記間引可否判別処理部10で、特定の要素点について間引く旨の判別を行った時、図示の例では地図描画データとしてそれを間引いて描画するデータを形成するため、その要素点に間引フラグを立てる。その後このようにして全てのポリゴンについて、全てのエッジの全ての要素点の間引可否判別を行い、間引フラグ処理を行った後は、ポリゴン表示データ形成部18でポリゴンの表示を行うデータを形成する。
In the thinning
前記のような処理を行う結果、図1(a)に示すように多数の要素点からなるポリゴンについて同図(c)に示すように最小限の要素点となり、その際に隣接ポリゴンが共通して構成するエッジについてはm、同図においてエッジ3及びエッジ4に示すように、隣接するポリゴンの内、片方で間引処理が行われた時には、他側の間引の判別にかかわらず、間引処理を行うこととなり、隣接するポリゴン間に前記図13(a)に示すような隙間を生じることが無くなる。
As a result of the processing as described above, a polygon consisting of a large number of element points as shown in FIG. 1A becomes the minimum element point as shown in FIG. As shown by
これらの間引処理を図2及び図3の作動フローに従い、より詳細に順に説明する。図2の表示ポリゴン周縁形成要素点の間引処理の例においては、最初間引処理するポリゴンの抽出から始めている(ステップS1)。この処理は図1の間引処理ポリゴン抽出部3で前記のようにして行っている。
These thinning processes will be described in more detail in order according to the operation flow of FIGS. In the example of the thinning process for the display polygon peripheral edge forming element point in FIG. 2, the process starts with extraction of the polygon to be thinned first (step S1). This processing is performed as described above by the thinning processing
その後間引処理するポリゴンを順に指定する(ステップS2)。この処理は図1の間引処理用ポリゴン指定部4で行っている。次いで指定ポリゴンの要素点を取得する(ステップS3)、この処理については図1のポリゴン周縁形成要素点取得部5で、間引処理用ポリゴン指定部4で指定したポリゴンについて要素点を取得することにより行っている。
Thereafter, polygons to be thinned out are designated in order (step S2). This processing is performed by the thinning processing
次いで、指定するポリゴンについて隣接するポリゴンを検出する(ステップS4)。この処理は図1の隣接ポリゴン検出部6において前記のようにして行っている。その後隣接ポリゴンの要素点を取得する(ステップS5)。この処理は図1のポリゴン周縁形成要素点取得部5において、隣接ポリゴン検出部6で検出したポリゴンについて、要素点を検出することにより行っている。このような処理により、前記のように図4に示すような各ポリゴンについて、要素点を取得する。
Next, an adjacent polygon is detected for the designated polygon (step S4). This processing is performed as described above in the
その後指定ポリゴンに隣接するポリゴンの共通要素点を含むポリゴン周縁のエッジを設定する(ステップS6)。この処理は図1のポリゴン周縁エッジ設定部7で前記のようにして行っている。その結果図5に示すようなエッジ1〜エッジ11を設定することも前記の通りである。
Thereafter, the edge of the polygon periphery including the common element point of the polygon adjacent to the designated polygon is set (step S6). This processing is performed as described above by the polygon peripheral
次いで各エッジについて、ポリゴン毎の要素点を対応付ける(ステップS7)。この処理は図6に示しており、ポリゴンAについてはエッジ1〜エッジ5が存在し、それらのエッジを構成する要素点は全て順方向に対応することを示している。同様にポリゴンBについては、エッジ3、6、7、8、9が存在し、それを構成する要素点はエッジ3についてはポリゴンAがA14〜A17と反時計方向で順方向であるのに対して、その要素点にそれぞれ対応するポリゴンBの要素点はB4、3、2、1と逆方向に対応していることを示している。ポリゴンBについてはその他のエッジは順方向となっている。
Next, an element point for each polygon is associated with each edge (step S7). This process is shown in FIG. 6, and
ポリゴンCについては、エッジ4はポリゴンAの要素点が順方向であるのに対して、前記と同様の対応によってポリゴンCの要素点は逆方向となる。同様にエッジ9についてはポリゴンBが順方向である時、ポリゴンCについては逆方向となる。ポリゴンCのその他のエッジについては順方向である。
Regarding the polygon C, the element point of the polygon A at the
各ポリゴンを構成するエッジについて、その要素点をそれぞれエッジ1〜11について示している。ここで例えばエッジ3についてはポリゴンAのエッジ3と、ポリゴンBのエッジ3が共通し、エッジ4についてはポリゴンAのエッジ4とポリゴンCのエッジ4が共通していることを示している。エッジ9についてはポリゴンBのエッジ9とポリゴンCのエッジ9が共通していることを示している。
For the edges constituting each polygon, the element points are shown for
図2の例においてはその後、図3に示すような、ポリゴンの要素点の間引処理を行う。図3に示すポリゴンの周縁を形成する要素点の間引処理の例においては、最初間引処理する要素点を順に指示することから行っている(ステップS21)。図3に示す例においてはその後指定した要素点には既に間引フラグが立っているか否かを判別している(ステップS22)。 In the example of FIG. 2, the polygon element points are then thinned out as shown in FIG. In the example of the thinning process of the element points forming the periphery of the polygon shown in FIG. 3, the element points to be thinned first are sequentially designated (step S21). In the example shown in FIG. 3, it is determined whether or not a thinning flag has already been set for the element point designated thereafter (step S22).
即ち、図3に示す処理で最初に作動する状態では未だ間引フラグが立っている状態はないが、その後の処理で後述するステップS28で指定要素点に間引フラグを立てた後、ステップS29で未だ全ての要素点の間引チェックをしていないと判別した時にステップ21に戻り、新たな要素点を順に指示して同様の処理を繰り返すため、ここでは既に前記のように間引フラグを立てている要素点についてはその後の処理を行う必要がないので、ステップS1に戻り、次の要素点の指示を行うようにしている。 That is, the thinning flag is not yet set in the state that is initially activated in the process shown in FIG. 3, but after setting the thinning flag at the designated element point in step S28 described later in the subsequent process, step S29 is performed. When it is determined that the thinning check of all element points has not yet been performed, the process returns to step 21 and repeats the same processing by sequentially specifying new element points. Since it is not necessary to perform subsequent processing for the standing element point, the process returns to step S1 to instruct the next element point.
ステップS21において指示した要素点は未だ間引フラグが立っていないと判別した時にはステップS23に進み、指定要素点について両隣の要素点とのなすポリゴン側の角度α1を計測する(ステップS23)。即ち、前記図11(b)(c)の条件(1)の判別を行うため、前記角度α1を計測する。 When it is determined that the element point instructed in step S21 has not yet been thinned, the process proceeds to step S23 to measure the angle α1 on the polygon side between the designated element point and the adjacent element points (step S23). That is, in order to determine the condition (1) in FIGS. 11B and 11C, the angle α1 is measured.
その後ステップS24において、その計測した角度α1は180度以内であるか否かを判別する。ここで180度を超えたと判別した時には、この要素点については間引処理を行わないとしてステップS29に進み、未だ全ての要素点の間引チェックをしていないと判別した時にはステップS21に戻って、次の要素点を指示する。それに対して角度α1は180度以内であると判別したときにはステップS25に進み、計測した角度α1は例えば170度等の所定の角度αaを超えるか否かを判別する。 Thereafter, in step S24, it is determined whether or not the measured angle α1 is within 180 degrees. If it is determined that the angle exceeds 180 degrees, the process skips to step S29 assuming that no thinning process is performed for this element point, and returns to step S21 when it is determined that all element points have not been thinned out yet. The next element point is indicated. On the other hand, when it is determined that the angle α1 is within 180 degrees, the process proceeds to step S25, where it is determined whether or not the measured angle α1 exceeds a predetermined angle αa such as 170 degrees.
ここで計測した角度α1が所定の角度αaよりも小さいと判別した時には、この部分はある程度以上の曲がりがあるため、間引きするにはふさわしくないと判別してステップS29に進み、前記作動を行う。それに対して計測した角度は所定の角度αaを超えると判別した時にはステップS26に進み、両隣の要素点を結ぶ直線に対する垂線の長さL1を計測する(ステップS26)。 When it is determined that the angle α1 measured here is smaller than the predetermined angle αa, it is determined that the portion is not suitable for thinning because there is a certain degree of bending, and the process proceeds to step S29 to perform the operation. On the other hand, when it is determined that the measured angle exceeds the predetermined angle αa, the process proceeds to step S26, and the length L1 of the perpendicular to the straight line connecting the adjacent element points is measured (step S26).
この処理は前記のように図11(b)(c)の条件(2)を判別するための計測を行うものであり、その計測結果に基づきステップS27で、垂線の長さL1は所定長さLa以下であるか否かを判別する。ここで垂線の長さが所定長さLa以下ではないと判別した時には、その部分での曲がりがある程度あるものとして間引くにはふさわしくないと判別し、ステップS29に進んで前記作動を行う。 In this process, the measurement for determining the condition (2) in FIGS. 11B and 11C is performed as described above. Based on the measurement result, the length L1 of the perpendicular is a predetermined length in step S27. It is determined whether or not it is La or less. Here, when it is determined that the length of the perpendicular is not equal to or less than the predetermined length La, it is determined that there is a certain amount of bending at that portion and it is not suitable for thinning, and the process proceeds to step S29 to perform the above operation.
ステップS27で垂線の長さL1は所定の長さLa以下であると判別した時には、図11(b)(c)の(1)及び(2)の条件を全て満たす時であり、その時にはステップS28に進んで指定要素点について間引フラグを立てる。その後前記ステップS24、ステップS25、ステップS27のいずれかで否と判別された時と共にステップS29に進み、全ての要素点の間引チェックをしていないと判別した時にはステップS21に戻って次の要素点の指示を継続し、全ての要素点の間引チェックを行ったと判別した時にはステップS30に進んで、前記一連の処理を終了する。 When it is determined in step S27 that the perpendicular length L1 is equal to or shorter than the predetermined length La, it is a time when all of the conditions (1) and (2) in FIGS. 11B and 11C are satisfied. Proceeding to S28, a thinning flag is set for the designated element point. Thereafter, the process proceeds to step S29 when it is determined at step S24, step S25, or step S27 whether or not all element points have been thinned out, and returns to step S21 to return to the next element. The point instruction is continued, and when it is determined that the thinning check of all the element points has been performed, the process proceeds to step S30, and the series of processes ends.
図2のステップS8で前記図3に示すような処理を行った後、ステップS9に進み、間引処理するポリゴンを順に指示する。ここでは前記処理によって最初に指定したポリゴンの処理が終了した後であるので、続いて隣接しているポリゴンについて処理を行うこととなる。そのように指示したポリゴンについても前記図3と同様の間引処理を行うが、その際には先のポリゴンで間引フラグを立てている時には、次のポリゴンでは特に判別することなく、間引処理を行うものとする。 After performing the process as shown in FIG. 3 in step S8 of FIG. 2, the process proceeds to step S9, and the polygons to be thinned out are sequentially designated. Here, since the processing of the polygon designated first by the above processing is completed, the processing is subsequently performed on the adjacent polygon. The thinning process similar to that shown in FIG. 3 is also performed for the polygon so designated. At this time, when the thinning flag is set for the previous polygon, the thinning process is not performed for the next polygon. Processing shall be performed.
その後指定したポリゴンの全ての隣接ポリゴンの間引処理を行ったか否かを判別し(ステップS11)、未だ全ての隣接ポリゴンの間引処理を行っていないと判別した時にはステップS9に戻り、次のポリゴンを順に指示して前記作動を繰り返す。それに対してステップS11で全ての隣接ポリゴンの間引処理を行ったと判別した時には、ステップS12に進み、間引処理するポリゴンを全て処理したか否かを判別し、前記のように指定ポリゴン、それに続くその指定ポリゴンの隣接ポリゴンを処理した後更にそれらに隣接するポリゴンについて、全てを指示する迄、ステップS10で間引処理を行う前記作動を繰り返す。その後全てのポリゴンについて間引処理を行った時には、ステップS13に進んで、間引フラグの立っている要素点を間引いて表示用ポリゴンを作成する。 Thereafter, it is determined whether or not all adjacent polygons of the designated polygon have been thinned out (step S11). When it is determined that all of the adjacent polygons have not been thinned out yet, the process returns to step S9, and the next The operation is repeated by sequentially instructing polygons. On the other hand, when it is determined in step S11 that all adjacent polygons have been thinned, the process proceeds to step S12, where it is determined whether all the thinned polygons have been processed. After the subsequent processing of the adjacent polygons of the designated polygon, the above operation of performing the thinning process in step S10 is repeated until all of the polygons adjacent to the specified polygon are instructed. After that, when thinning processing is performed for all the polygons, the process proceeds to step S13, and element polygons with thinning flags are thinned to create display polygons.
本発明においては、図1に示す機能ブロックからなる装置を図2及び図3に示す作動フローによって順に作動することにより、所望の機能を行うことができるものであり、前記図6に示した各エッジについてポリゴン毎の要素点を対応付けた後、最初は指定したポリゴンAについて図7のような処理がなされる。 In the present invention, a device having the functional blocks shown in FIG. 1 is operated in order according to the operation flow shown in FIG. 2 and FIG. 3, so that a desired function can be performed. After the element points for each polygon are associated with the edge, the process shown in FIG. 7 is performed for the designated polygon A at first.
図7に示すポリゴンAの間引処理の例においては、ポリゴンAの構成エッジ1〜5について、それぞれ図示するような要素点によって構成され、例えばエッジ1についてはほぼ直線で且つ他の隣接ポリゴンの影響等もないため、前後両端の要素点である要素点1と要素点8以外は間引処理を行う。図7においては、この時の要素点1〜8はポリゴンAの対応要素点はA1〜8であることを示している。以下も同様の要素点対応表を示している。
In the example of thinning-out processing of the polygon A shown in FIG. 7, the
ポリゴンAのエッジ2についても前後両端の要素点以外は間引処理を行う。エッジ3については、ポリゴンAとポリゴンBの共通要素点で構成されているが、この部分はポリゴンAにおける処理によって、要素点2、即ちA15の間引処理を行うことができる。その結果、対応する要素点をもつポリゴンBにおいて、この部分の要素点B3に対して間引処理するためのフラグが立てられる。その後、後述するようにポリゴンBでの処理では既に間引処理が行われるものとして、特に間引処理を行う必要がなくなる。
The
ポリゴンAのエッジ4については前記従来例を示す図12(b)のように、この部分の凹部の底である要素点2(A19)については間引処理が行われない。但し、その後図9に示すポリゴンCの処理において、要素点2は間引処理されることとなる。要素点3(A19)については間引処理が可能である。エッジ5については、前後両端のエッジ以外は間引処理がなされる。
As for the
その結果、図7(b)に示すようにポリゴンAが図示するようなエッジと構成要素点からなる時、同図(c)の処理後の図に示すように、要素点は整理され、特にエッジ3の部分についてはポリゴンAの処理によって要素点の間引がなされる結果、この部分は直線化する。同時に、ポリゴンB側にもこの処理が反映されるため、そのポリゴンBの要素点B2、B3も間引かれる結果、隙間無くポリゴンA、Bが隣接することとなる。
As a result, as shown in FIG. 7B, when the polygon A is composed of edges and component points as shown in FIG. 7B, the element points are arranged as shown in FIG. As for the
図8には図7の前記処理の後に行われるポリゴンBについての間引処理を示しており、エッジ3については前記のようにポリゴンAの間引処理によって、要素点B2、B3が間引かれている。その他の特記するエッジとしてはポリゴンCと共通するエッジであるエッジ9が存在するが、最初に処理するポリゴンBの処理で図示するように要素点の間引が行われ、それによりポリゴンCの対応する要素点C4、5、6、7、8に間引フラグが立ち、間引かれることとなる。
FIG. 8 shows the thinning-out process for the polygon B performed after the above-described processing of FIG. 7. With respect to the
その処理の結果、同図(b)に示すように、ポリゴンBの各エッジの各要素点について、同図(c)に示すようにエッジ3は前記ポリゴンAの処理で間引処理され、エッジ9についてはここでの間引処理がポリゴンCに反映されることとなる。
As a result of the processing, as shown in FIG. 4B, for each element point of each edge of the polygon B, the
図9に示すポリゴンCの間引処理では、特にエッジ4において、このエッジ4に共通して対応するポリゴンAの各要素点については、要素点3のみが間引処理されたものであるが、このポリゴンCにおいては前記従来例を示す図12(b)のように要素点2の部分も間引処理が可能である。そのため要素点2(AA18、C3)もここで間引処理がなさ得る。その結果、ポリゴンCの要素点C3に対応するポリゴンAの要素点A18もこの間引きに反映される。エッジ9については前記のようにポリゴンBの処理において間引かれることとなっている。
In the thinning process of the polygon C shown in FIG. 9, only the
その結果最終的に図9(c)に示すように、また、その地図表示状態の拡大図を図10(b)に示すように、特にエッジ3及びエッジ4において、従来は図12(b)に示すようにポリゴン間に隙間が生じる部分において、全く隙間を生じることが無くなり、従来の問題を解決することができる。しかもこの処理は全て自動化でき、容易に全間引処理を行ったデータを得ることができる。また、間引前の原データが提供されている時には、地図を描画する機器側が、上記処理を行うソフトウェアによって、素早くポリゴン表示を行うことが可能となる。 As a result, finally, as shown in FIG. 9C and an enlarged view of the map display state as shown in FIG. As shown in FIG. 5, no gap is generated at the portion where the gap is generated between the polygons, and the conventional problem can be solved. In addition, all of this processing can be automated, and data that has been subjected to all thinning processing can be easily obtained. In addition, when the original data before thinning is provided, the device that draws the map can quickly display the polygon by the software that performs the above processing.
1 間引処理対象選択部
2 要素点間引処理部
3 間引処理ポリゴン抽出部
4 間引処理用ポリゴン指定部
5 ポリゴン周縁形成要素点取得部
6 隣接ポリゴン検出部
7 ポリゴン周縁エッジ設定部
8 エッジ形成要素点検出部
9 間引処理エッジ指示部
10 間引処理要素点指示部
11 間引可否判別処理部
12 隣接要素点間角度計側部
13 隣接要素点間角度所定域内判別部
14 隣接要素点間直線への垂線長さ計測部
15 垂線長さ所定値以下判別部
16 間引フラグ処理部
17 間引フラグ検出部
18 ポリゴン表示データ形成部
DESCRIPTION OF
Claims (20)
前記抽出したポリゴンについて、各ポリゴンの周縁を形成する要素点を取得し、
各ポリゴンについて相互に隣り合う複数の要素点からなる部分にエッジを設定し、
前記エッジを構成する要素点について、ポリゴンの周囲形状の変化が少ないことを示す所定の条件を満たすとき、地図表示用要素点として削除する間引処理を行い、
前記要素点を削除する間引処理を行ったとき、当該要素点が現在間引処理を行っているポリゴンに隣接するポリゴンを構成する要素点と一致するとき、当該隣接するポリゴンの要素点も削除する間引処理を行い、
前記間引処理を、指定したエッジを構成する全ての要素点に対して行った後、指定したポリゴンを構成する他のエッジに対しても前記間引処理を行い、前記指定したポリゴンの全てのエッジに対して前記間引処理を行い、
その後、前記抽出したポリゴンの全てに対して前記要素点の間引処理を行い、
前記間引処理を行ったデータによりポリゴンを描画することを特徴とするポリゴン描画方法。 Extract all polygons contained in the map to be drawn,
For the extracted polygons, obtain element points that form the periphery of each polygon,
For each polygon, set an edge at the part consisting of multiple element points adjacent to each other,
For the element points constituting the edge, when a predetermined condition indicating that there is little change in the surrounding shape of the polygon is satisfied, a thinning process for deleting as the map display element points is performed,
When the thinning process for deleting the element point is performed, if the element point matches the element point constituting the polygon adjacent to the polygon currently being thinned, the element point of the adjacent polygon is also deleted. To perform the thinning process,
After performing the thinning process on all element points constituting the designated edge, the thinning process is performed on other edges constituting the designated polygon, and all the specified polygons The thinning process is performed on the edge,
Thereafter, the element points are thinned out for all the extracted polygons,
A polygon drawing method, wherein a polygon is drawn by the data subjected to the thinning process.
一方のポリゴンの要素点を前記間引処理により削除するとき、前記対応データによって他方のポリゴンの要素点を削除する間引処理を行うことを特徴とする請求項1記載のポリゴン描画方法。 When the edge is set and the edge is in common with the edge of the adjacent polygon, for the element points constituting the edge, corresponding data for the corresponding element points in both polygons is created,
2. The polygon rendering method according to claim 1, wherein when the element point of one polygon is deleted by the thinning process, the thinning process of deleting the element point of the other polygon by the correspondence data is performed.
前記間引処理ポリゴン抽出手段で抽出したポリゴンについて、各ポリゴンの周縁を形成する要素点を取得するポリゴン周縁形成要素点取得手段と、
前記間引処理ポリゴン抽出手段で抽出した各ポリゴンについて、相互に隣り合う複数の要素点からなる部分にエッジを設定するポリゴン周縁エッジ設定手段と、
前記ポリゴン周縁エッジ設定手段で設定したエッジを構成する要素点について、ポリゴンの周囲形状の変化が少ないことを示す所定の条件を満たすとき、地図表示用要素点として削除する間引処理を行う要素点間引処理手段とを備え、
前記要素点間引処理手段では、要素点を削除する間引処理を行ったとき、当該要素点が現在間引処理を行っているポリゴンに隣接するポリゴンを構成する要素点と一致するときには、当該隣接するポリゴンの要素点も削除する間引処理を行い、
前記間引処理を、指定したエッジを構成する全ての要素点に対して行った後、指定したポリゴンを構成する他のエッジに対しても前記間引処理を行い、前記指定したポリゴン法の全てのエッジに対して前記間引処理を行い、
その後、前記抽出したポリゴンの全てに対して前記要素点の間引処理を行うことによりポリゴンを描画するデータを作成することを特徴とするポリゴン描画装置。 A thinning process polygon extracting means for extracting all the polygons included in the map to be drawn;
For polygons extracted by the thinning processing polygon extraction means, polygon edge forming element point acquisition means for acquiring element points forming the edge of each polygon;
For each polygon extracted by the thinning processing polygon extracting means, a polygon peripheral edge setting means for setting an edge in a portion composed of a plurality of element points adjacent to each other;
Element points that are subjected to thinning processing to be deleted as element points for map display when a predetermined condition indicating that there is little change in the surrounding shape of the polygon is satisfied for the element points constituting the edge set by the polygon peripheral edge setting means A thinning processing means,
In the element point thinning processing means, when the thinning process for deleting an element point is performed, when the element point matches an element point constituting a polygon adjacent to the polygon currently being thinned, Perform the thinning process to delete the element points of the adjacent polygon,
After performing the thinning process on all element points constituting the designated edge, the thinning process is performed on other edges constituting the designated polygon, and all of the designated polygon methods are performed. The thinning process is performed on the edges of
After that, the polygon drawing apparatus is characterized in that data for drawing a polygon is created by performing thinning processing of the element points on all of the extracted polygons.
一方のポリゴンの要素点を前記間引処理により削除するとき、前記対応データによって他方のポリゴンの要素点を削除する間引処理を行うことを特徴とする請求項11記載のポリゴン描画装置。 In the element point thinning processing means, when the edge is set by the polygon peripheral edge setting means, when the edge is in common with the edge of an adjacent polygon, the element points constituting the edge respectively correspond to both polygons. Create correspondence data for element points,
12. The polygon rendering apparatus according to claim 11, wherein when the element point of one polygon is deleted by the thinning process, the thinning process of deleting the element point of the other polygon is performed by the correspondence data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011036478A JP2012174067A (en) | 2011-02-22 | 2011-02-22 | Method and device for drawing map polygon |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011036478A JP2012174067A (en) | 2011-02-22 | 2011-02-22 | Method and device for drawing map polygon |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012174067A true JP2012174067A (en) | 2012-09-10 |
Family
ID=46976914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011036478A Withdrawn JP2012174067A (en) | 2011-02-22 | 2011-02-22 | Method and device for drawing map polygon |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012174067A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014238325A (en) * | 2013-06-07 | 2014-12-18 | 三菱電機株式会社 | Navigation device |
CN112015767A (en) * | 2020-08-28 | 2020-12-01 | 北京百度网讯科技有限公司 | Data thinning method, data thinning apparatus, electronic device, and storage medium |
CN112085814A (en) * | 2020-09-07 | 2020-12-15 | 北京百度网讯科技有限公司 | Electronic map display method, device, equipment and readable storage medium |
-
2011
- 2011-02-22 JP JP2011036478A patent/JP2012174067A/en not_active Withdrawn
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014238325A (en) * | 2013-06-07 | 2014-12-18 | 三菱電機株式会社 | Navigation device |
CN112015767A (en) * | 2020-08-28 | 2020-12-01 | 北京百度网讯科技有限公司 | Data thinning method, data thinning apparatus, electronic device, and storage medium |
JP2021099529A (en) * | 2020-08-28 | 2021-07-01 | 北京百度網訊科技有限公司 | Data thinning-out method, data thinning-out device, electronic apparatus, storage medium, and computer program product |
JP7138208B2 (en) | 2020-08-28 | 2022-09-15 | ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド | Data thinning method, data thinning device, electronic device, storage medium and computer program product |
CN112085814A (en) * | 2020-09-07 | 2020-12-15 | 北京百度网讯科技有限公司 | Electronic map display method, device, equipment and readable storage medium |
KR20210038448A (en) * | 2020-09-07 | 2021-04-07 | 베이징 바이두 넷컴 사이언스 테크놀로지 컴퍼니 리미티드 | Electronic map display method, device, equipment and readable storage medium |
JP2021113990A (en) * | 2020-09-07 | 2021-08-05 | ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッドBeijing Baidu Netcom Science Technology Co., Ltd. | Method for displaying electronic map, device, apparatus, and readable storage medium |
EP3842763A3 (en) * | 2020-09-07 | 2021-09-29 | Beijing Baidu Netcom Science Technology Co., Ltd. | Method for displaying electronic map, electronic device, readable storage medium and computer program product |
US11282166B2 (en) | 2020-09-07 | 2022-03-22 | Beijing Baidu Netcom Science Technology Co., Ltd. | Method for displaying electronic map, electronic device and readable storage medium |
JP7253002B2 (en) | 2020-09-07 | 2023-04-05 | ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド | Electronic map display method, device, equipment and readable storage medium |
KR102582318B1 (en) * | 2020-09-07 | 2023-09-22 | 베이징 바이두 넷컴 사이언스 테크놀로지 컴퍼니 리미티드 | Electronic map display method, device, equipment and readable storage medium |
CN112085814B (en) * | 2020-09-07 | 2024-05-14 | 北京百度网讯科技有限公司 | Electronic map display method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11657587B2 (en) | Intelligently placing labels | |
US9080885B2 (en) | Determining to display designations of points of interest within a map view | |
US9043150B2 (en) | Routing applications for navigation | |
US9631942B2 (en) | Providing maneuver indicators on a map | |
US9235906B2 (en) | Scalable processing for associating geometries with map tiles | |
KR101717444B1 (en) | Hiding portions of display content | |
US9418466B2 (en) | Geospatial representation of data-less map areas | |
US20110074811A1 (en) | Map Layout for Print Production | |
US20160097653A1 (en) | Encoded Representation of Route Data | |
US20150062114A1 (en) | Displaying textual information related to geolocated images | |
US20210286104A1 (en) | Systems, apparatus, and methods of watershed modeling and assessment | |
US20130328879A1 (en) | Scalable and Efficient Cutting of Map Tiles | |
CN103348380B (en) | Diff area detecting system and diff area detection method | |
JP5299993B2 (en) | Map display device and map display method | |
JP4774560B2 (en) | MAP DISPLAY CONTROL DEVICE, MAP DISPLAY CONTROL METHOD, MAP DISPLAY CONTROL PROGRAM, AND INFORMATION RECORDING MEDIUM | |
US20230169729A1 (en) | Tile three-dimensional mapping tool | |
US10209876B2 (en) | Method and apparatus for providing a segmented scrollbar | |
JP2012174067A (en) | Method and device for drawing map polygon | |
JP2008145935A (en) | Historical map output unit, historical map output method, and program | |
JP5382924B2 (en) | Polygon outline drawing method and apparatus | |
US20120159376A1 (en) | Editing data records associated with static images | |
CN114416897A (en) | Information processing method, device, system, equipment and medium based on two-dimensional map | |
CN113129406B (en) | Data processing method and device and electronic equipment | |
JP2009122291A (en) | Map information providing device, map information providing method, and program | |
JP2007133464A (en) | Information processor, information processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20130712 |
|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140513 |