JP2015125482A - Icon display program and icon display device - Google Patents

Icon display program and icon display device Download PDF

Info

Publication number
JP2015125482A
JP2015125482A JP2013267577A JP2013267577A JP2015125482A JP 2015125482 A JP2015125482 A JP 2015125482A JP 2013267577 A JP2013267577 A JP 2013267577A JP 2013267577 A JP2013267577 A JP 2013267577A JP 2015125482 A JP2015125482 A JP 2015125482A
Authority
JP
Japan
Prior art keywords
icon
screen
position data
grouping
group
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.)
Granted
Application number
JP2013267577A
Other languages
Japanese (ja)
Other versions
JP6055758B2 (en
Inventor
明 黒澤
Akira Kurosawa
明 黒澤
イザティ ビンティ モハマド タイポー ヌルル
Izzati Binti Mohammad Taipo Nurul
イザティ ビンティ モハマド タイポー ヌルル
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Solutions Ltd
Original Assignee
Hitachi Solutions Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Solutions Ltd filed Critical Hitachi Solutions Ltd
Priority to JP2013267577A priority Critical patent/JP6055758B2/en
Publication of JP2015125482A publication Critical patent/JP2015125482A/en
Application granted granted Critical
Publication of JP6055758B2 publication Critical patent/JP6055758B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Digital Computer Display Output (AREA)
  • User Interface Of Digital Computer (AREA)
  • Traffic Control Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To effectively lessen processing load for displaying an icon image indicating the position of each movable body by efficiently grouping positional information on movable bodies.SOLUTION: An icon display program according to the present invention describes positions of each movable body using positional data configured to represent more detailed positions from upper bits toward lower bits, and groups positional data based on the number of digits of the upper bits common to the respective positional data.

Description

本発明は、移動体の位置を示すアイコン画像を画面表示する技術に関するものである。   The present invention relates to a technique for displaying an icon image indicating the position of a moving body on a screen.

近年、GPS(Global Positioning System)信号を受信する機能を装備した可搬機器により、人・車両・船舶・航空機などの移動体の緯度経度から構成される位置情報を得ることができる。例えば自動車のプローブ、船舶のAIS(Automatic Identification System=船舶自動識別装置)などの装置が例として挙げられる。   In recent years, position information composed of latitude and longitude of a moving object such as a person, a vehicle, a ship, and an aircraft can be obtained by a portable device equipped with a function of receiving a GPS (Global Positioning System) signal. For example, devices such as an automobile probe and a ship AIS (Automatic Identification System) are exemplified.

下記特許文献1は、移動体の位置情報を記述するデータ形式として、ジオハッシュを用いている。同文献においては、ジオハッシュが地図上の特定の点ではなく矩形領域を示すものであるため緯度経度と比較して精度が劣ることを課題とし、これを解決する技術を開示している。   The following Patent Document 1 uses geo-hash as a data format that describes position information of a moving object. In this document, since the geohash indicates a rectangular area rather than a specific point on the map, the accuracy is inferior compared to latitude and longitude, and a technique for solving this is disclosed.

特開2013−045319号公報JP 2013-045319 A

移動体の位置情報をコンピュータディスプレイなどの画面上に表示するとき、各移動体の位置を表すアイコン画像を用いて位置情報を視覚的に表示する場合がある。一般に画像表示は処理負荷が高いため、移動体の個数が多くなるとこれにともなって画面上のアイコン画像数も多くなり、アイコン表示処理が画面表示のボトルネックとなる。また、画面の縮尺範囲が拡大するとその範囲内に含まれる移動体の数も増えるので、これにともなってアイコン画像が増えて処理負荷が増す。   When displaying the position information of a moving object on a screen such as a computer display, the position information may be visually displayed using an icon image representing the position of each moving object. In general, image display has a high processing load, and as the number of moving objects increases, the number of icon images on the screen increases accordingly, and icon display processing becomes a bottleneck for screen display. Further, when the scale range of the screen is expanded, the number of moving bodies included in the range increases, and accordingly, the number of icon images increases and the processing load increases.

アイコン画像を表示する処理負荷を軽減する手法として、近傍に位置する複数の位置情報をグループ化して単一のアイコン画像を割り当てることが考えられる。これにより表示するアイコン数を減らし、描画速度を改善することが見込まれる。ただし、従前の処理に加えて新たにグループ化処理を実施する必要があるため、その処理速度によっては十分な改善効果が得られない。   As a technique for reducing the processing load for displaying icon images, it is conceivable to group a plurality of pieces of position information located in the vicinity and assign a single icon image. This is expected to reduce the number of icons to be displayed and improve the drawing speed. However, since it is necessary to perform a new grouping process in addition to the conventional process, a sufficient improvement effect cannot be obtained depending on the processing speed.

本発明は、上記のような課題に鑑みてなされたものであり、移動体の位置情報を効率的にグループ化することにより、移動体の位置を示すアイコン画像を表示するための処理負荷を効果的に削減することを目的とする。   The present invention has been made in view of the problems as described above, and by effectively grouping the position information of the moving body, the processing load for displaying the icon image indicating the position of the moving body is effective. The purpose is to reduce it.

本発明に係るアイコン表示プログラムは、上位ビットから下位ビットに向かってより詳細な位置を表すように構成された位置データを用いて移動体の位置を記述し、各位置データ間で共通している上位ビットの桁数に基づき位置データをグループ化する。   The icon display program according to the present invention describes the position of a moving object using position data configured to represent a more detailed position from the upper bit to the lower bit, and is common among the position data. Group the position data based on the number of digits in the upper bits.

本発明に係るアイコン表示プログラムによれば、移動体の位置情報を効率的にグループ化し、移動体の位置を示すアイコン画像を表示するための負荷を抑制することができる。   According to the icon display program according to the present invention, it is possible to efficiently group the position information of the moving body and suppress the load for displaying the icon image indicating the position of the moving body.

緯度を表すハッシュ値について説明する図である。It is a figure explaining the hash value showing the latitude. 緯度を表すハッシュ値について説明する図である。It is a figure explaining the hash value showing the latitude. 緯度を表すハッシュ値について説明する図である。It is a figure explaining the hash value showing the latitude. 緯度ハッシュ値と経度ハッシュ値を併せて構成する過程を示す図である。It is a figure which shows the process in which a latitude hash value and a longitude hash value are comprised collectively. 緯度ハッシュ値と経度ハッシュ値を併せて構成する過程を示す図である。It is a figure which shows the process in which a latitude hash value and a longitude hash value are comprised collectively. 緯度ハッシュ値と経度ハッシュ値を併せて構成する過程を示す図である。It is a figure which shows the process in which a latitude hash value and a longitude hash value are comprised collectively. 緯度経度座標をジオハッシュ値へ変換する過程を示す図である。It is a figure which shows the process in which the latitude longitude coordinate is converted into a geo hash value. ジオハッシュの各桁と座標値との間の対応関係を示す表である。It is a table | surface which shows the correspondence between each digit of geo hash, and a coordinate value. 実施形態1に係るアイコン表示装置10の構成図である。1 is a configuration diagram of an icon display device 10 according to Embodiment 1. FIG. 位置データベース121の構成とデータ例を示す図である。It is a figure which shows the structure of a position database 121, and a data example. アイコンデータベース122の構成とデータ例を示す図である。It is a figure which shows the structure and data example of the icon database. 比較的狭い地図領域において、四隅の緯度経度座標をジオハッシュに変換した結果を示す図である。It is a figure which shows the result of having converted the latitude longitude coordinate of four corners into geohash in a comparatively narrow map area. グループテーブル90の構成とデータ例を示す図である。It is a figure which shows the structure and data example of a group table. 描画部15による描画結果を例示する図である。7 is a diagram illustrating a drawing result by the drawing unit 15; FIG. 図8よりも広い地図領域において、四隅の緯度経度座標をジオハッシュに変換した結果を示す図である。It is a figure which shows the result of having converted the latitude longitude coordinate of four corners into geohash in the map area | region wider than FIG. グループテーブル90の別データ例を示す図である。It is a figure which shows another example of data of the group table. 描画部15による描画結果を例示する図である。7 is a diagram illustrating a drawing result by the drawing unit 15; FIG. グループ化部13の動作を説明するフローチャートである。5 is a flowchart for explaining the operation of a grouping unit 13.

<ジオハッシュについての説明>
以下に説明する本発明の実施形態においては、移動体の位置を記述する位置データの形式として、特許文献1において用いられているジオハッシュを用いる。以下ではまずジオハッシュの特徴について説明し、その後に本発明の実施形態について説明する。
<Description of Geohash>
In the embodiment of the present invention described below, the geo-hash used in Patent Document 1 is used as a format of position data describing the position of a moving object. In the following, the features of geohash will be described first, and then embodiments of the present invention will be described.

地図上の座標を表す際に、矩形領域を用いる場合がある。従来、地図上の矩形領域を表現するためには、例えば矩形領域の対角2点の緯度経度、中心点座標と縦横距離、中心点と1端点、などのように3〜4の数値の組み合わせによって当該矩形領域を表現するのが一般的である。   A rectangular area may be used to represent the coordinates on the map. Conventionally, in order to express a rectangular area on a map, for example, a combination of numerical values of 3 to 4 such as latitude and longitude of two diagonal points of the rectangular area, center point coordinates and vertical and horizontal distances, center point and one end point, etc. In general, the rectangular area is represented by

ジオハッシュは、地図上の矩形領域を示すデータ形式であり、数文字程度の英数字で表記される。文字数を増やすほど、より狭い矩形領域を表現することとなり、表現する座標の精度が高くなる。すなわちジオハッシュの上位ビットは、当該ジオハッシュ値が示す座標を含むより広範囲の領域を表している。   Geohash is a data format indicating a rectangular area on a map, and is expressed by alphanumeric characters of several characters. As the number of characters increases, a narrower rectangular area is expressed, and the accuracy of the expressed coordinates increases. That is, the higher order bits of the geohash represent a wider area including the coordinates indicated by the geohash value.

従来の座標形式を用いる場合、複数の座標値をグループ化する処理においては、スクリーン座標系における座標間距離を計算し、その距離が所定閾値以下である場合は同一グループに属するものと判定する。この処理は表示する縮尺範囲に含まれている全ての2点間距離を計算する必要があるため、グループ化処理の負担が大きい。   When using the conventional coordinate format, in the process of grouping a plurality of coordinate values, the inter-coordinate distance in the screen coordinate system is calculated, and if the distance is equal to or less than a predetermined threshold, it is determined that they belong to the same group. Since this process needs to calculate all the distances between two points included in the scale range to be displayed, the burden of the grouping process is large.

位置データとしてジオハッシュを用いる場合、複数の座標値をグループ化する処理においては、ジオハッシュの上位ビットが共通であるか否かによって、同一グループに属するか否か(すなわち座標値が互いに近傍であるか否か)を判定することができる。この手法は2点間距離を計算する必要がないため、グループ化処理を高速に実施することができると考えられる。さらにジオハッシュ値そのものは事前に計算することができるので、ジオハッシュ値を求めるための処理負荷は問題とならない。   When geohash is used as position data, in the process of grouping a plurality of coordinate values, whether or not they belong to the same group (that is, the coordinate values are close to each other) Whether or not there is). Since this method does not need to calculate the distance between two points, it is considered that the grouping process can be performed at high speed. Furthermore, since the geohash value itself can be calculated in advance, the processing load for obtaining the geohash value does not matter.

本発明は、ジオハッシュの上記特徴を利用して、移動体の位置データを効率的にグループ化する。ジオハッシュと同様に、上位ビットから下位ビット(あるいはその反対方向)に向かってより詳細な位置を記述するように構成された位置データであれば、上位ビットが共通するか否かによって座標値が互いに近傍であるか否かを判定することができると考えられる。したがってそのような位置データ形式であれば、ジオハッシュに代えて用いることもできる。以下では説明の便宜上、ジオハッシュを用いることを前提とする。   The present invention uses the above-mentioned features of geo-hash to efficiently group mobile object position data. As with geo-hash, if the position data is configured to describe a more detailed position from the high-order bit to the low-order bit (or the opposite direction), the coordinate value depends on whether the high-order bit is common. It can be determined whether or not they are close to each other. Therefore, if it is such a position data format, it can be used in place of the geohash. In the following, for convenience of explanation, it is assumed that geohash is used.

以下に説明する実施形態においてはジオハッシュを用いるため、2次元座標系の位置データを取り扱うことを前提とする。ただしジオハッシュと同様に上位ビットから下位ビット(あるいはその反対方向)に向かってより詳細な位置を記述するように構成された位置データであれば、例えば1次元座標(すなわち距離)を表すデータや3次元座標を表すデータを取り扱うこともできる。   In the embodiment described below, since geohash is used, it is assumed that position data in a two-dimensional coordinate system is handled. However, as with the geohash, if the position data is configured to describe a more detailed position from the upper bit to the lower bit (or the opposite direction), for example, data representing one-dimensional coordinates (that is, distance) Data representing three-dimensional coordinates can also be handled.

図1A〜図1Cは、緯度を表すハッシュ値について説明する図である。図1Aは、最初のハッシュ値と緯度の関係を示す。ハッシュ値”0”は緯度−90°〜0°の範囲を指し、”1”は緯度0°〜90°を指す。したがって位置10の緯度ハッシュ値は”1”である。図1Bは、2番目のハッシュ値と緯度の関係を示す。ハッシュ値”0”は緯度0°〜45°、”1”は緯度45°〜90°を指す。したがって位置10の緯度ハッシュ値は”10”である。図1Cは3番目のハッシュ値と緯度の関係を示す。ハッシュ値”0”は緯度0°〜22.5°、”1”は緯度22.5°〜45°を指す。したがって位置10の緯度ハッシュ値は”100”である。   1A to 1C are diagrams for describing a hash value representing latitude. FIG. 1A shows the relationship between the initial hash value and latitude. The hash value “0” indicates the range of latitude −90 ° to 0 °, and “1” indicates the latitude 0 ° to 90 °. Accordingly, the latitude hash value at position 10 is “1”. FIG. 1B shows the relationship between the second hash value and latitude. Hash value “0” indicates latitude 0 ° to 45 °, and “1” indicates latitude 45 ° to 90 °. Therefore, the latitude hash value at position 10 is “10”. FIG. 1C shows the relationship between the third hash value and latitude. The hash value “0” indicates latitude 0 ° to 22.5 °, and “1” indicates latitude 22.5 ° to 45 °. Therefore, the latitude hash value at position 10 is “100”.

図2A〜図2Cは、緯度ハッシュ値と経度ハッシュ値を併せて構成する過程を示す図である。図2Aは、座標空間を経度方向に2分し、それぞれ経度ハッシュ値”0”と”1”を割り当てた状態を示す。図2Bは、経度ハッシュ値”1”の領域を緯度方向に2分し、それぞれ緯度ハッシュ値”0”と”1”を割り当てた状態を示す。緯度ハッシュ値は最初の経度ハッシュ値に続いて追加するので、それぞれの領域のハッシュ値は”11”および”10”となる。図2Cは、ハッシュ値”11”の領域を経度方向に2分し、それぞれ経度ハッシュ値”0”と”1”を割り当てた状態を示す。以下同様にして経度ハッシュ値と緯度ハッシュ値を交互に割り当て、下位ビットになるほどより詳細な位置を表すように、ハッシュ値を構成する。   2A to 2C are diagrams illustrating a process of configuring a latitude hash value and a longitude hash value together. FIG. 2A shows a state in which the coordinate space is divided into two in the longitude direction, and the longitude hash values “0” and “1” are assigned, respectively. FIG. 2B shows a state in which the area of the longitude hash value “1” is divided into two in the latitude direction, and the latitude hash values “0” and “1” are assigned, respectively. Since the latitude hash value is added following the initial longitude hash value, the hash values of the respective areas are “11” and “10”. FIG. 2C shows a state in which the area of the hash value “11” is divided into two in the longitude direction, and the longitude hash values “0” and “1” are assigned, respectively. In the same manner, the longitude hash value and the latitude hash value are alternately assigned, and the hash value is configured so as to represent a more detailed position as the lower bits are obtained.

図3は、緯度経度座標をジオハッシュ値へ変換する過程を示す図である。pdecimalは、緯度35.610056、経度139.748694の10進緯度経度座標値である。pdecimalは、図2で説明したようにジオハッシュ値phashに変換される。phash’は、phashの奇数桁を経度ハッシュ値、偶数桁を緯度ハッシュ値として交互に再配置したビット列である。phash’を5桁毎に区切って32進数表現であるbase−32に変換した文字列p(GeoHash)がジオハッシュである。図3に示す処理を逆に辿ることにより、ジオハッシュを10進緯度経度座標に逆変換することができる。   FIG. 3 is a diagram illustrating a process of converting latitude and longitude coordinates into a geohash value. pdecimal is a decimal latitude / longitude coordinate value of latitude 35.610056 and longitude 139.7468694. The pdecimal is converted into a geo-hash value phash as described with reference to FIG. The hash 'is a bit string in which odd digits of the hash are alternately rearranged with the longitude hash value and the even digit as the latitude hash value. A character string p (GeoHash) obtained by dividing “phase” by 5 digits and converting it into base-32 which is a 32-digit number is a geo-hash. By following the process shown in FIG. 3 in reverse, the geohash can be converted back to decimal latitude and longitude coordinates.

図4は、ジオハッシュの各桁と座標値との間の対応関係を示す表である。ここでは緯度経度座標(35.610056, 139.748694)を表すジオハッシュを例示した。図4に示すように、ジオハッシュは各桁が矩形領域を表し、下位ビットになるほどその矩形サイズが小さくなる。したがって、2つのジオハッシュを上位ビットから順に比較して共通する桁数が多いほど、その2つのジオハッシュは互いにより近傍の座標を表していることになる。   FIG. 4 is a table showing a correspondence relationship between each digit of the geo-hash and the coordinate value. Here, a geohash representing latitude and longitude coordinates (35.610056, 139.7748694) is illustrated. As shown in FIG. 4, in the geohash, each digit represents a rectangular area, and the lower the bit, the smaller the rectangular size. Therefore, comparing two geohashes in order from the most significant bit, the more common digits, the more the two geohashes represent coordinates closer to each other.

<実施の形態1>
図5は、本実施形態1に係るアイコン表示装置10の構成図である。アイコン表示装置10は、移動体の位置を示すアイコン画像を画面表示する装置であり、位置データ入力部11、データベース部12、グループ化部13、表示条件入力部14、描画部15、出力部16を備える。
<Embodiment 1>
FIG. 5 is a configuration diagram of the icon display device 10 according to the first embodiment. The icon display device 10 is a device that displays an icon image indicating the position of a moving object on the screen, and includes a position data input unit 11, a database unit 12, a grouping unit 13, a display condition input unit 14, a drawing unit 15, and an output unit 16. Is provided.

位置データ入力部11は、位置データ受信部111とジオハッシュ付与部112を備える。位置データ受信部111は、GPS等によって測位した移動体(例えば人、船舶、航空機、車両)の位置を記述した位置データを受信する。この位置データは移動体の送信時座標を記述している。ジオハッシュ付与部112は、受信した位置データをジオハッシュに変換し、位置データベース121に格納する。位置データ入力部11の処理は、グループ化部13や描画部15の処理とは切り離して独立に実施することができる。位置データ入力部11は、あらかじめジオハッシュに変換した位置データを受信することもできる。この場合、ジオハッシュ付与部112は必要ない。   The position data input unit 11 includes a position data receiving unit 111 and a geohash providing unit 112. The position data receiving unit 111 receives position data describing the position of a moving body (for example, a person, a ship, an aircraft, or a vehicle) measured by GPS or the like. This position data describes coordinates at the time of transmission of the mobile object. The geohash providing unit 112 converts the received position data into a geohash and stores it in the position database 121. The processing of the position data input unit 11 can be performed independently from the processing of the grouping unit 13 and the drawing unit 15. The position data input unit 11 can also receive position data that has been previously converted to geohash. In this case, the geohash providing unit 112 is not necessary.

データベース部12は、位置データベース121、アイコンデータベース122、地図データベース123を含む。位置データベース121は、移動体のジオハッシュを格納する。アイコンデータベース122は、描画部15が移動体の位置を示すアイコン画像を表示する際に用いるアイコン画像を格納する。地図データベース123は、描画部15が描画する背景地図を格納している。   The database unit 12 includes a position database 121, an icon database 122, and a map database 123. The location database 121 stores a geo-hash of the moving object. The icon database 122 stores an icon image used when the drawing unit 15 displays an icon image indicating the position of the moving object. The map database 123 stores a background map drawn by the drawing unit 15.

グループ化部13は、ジオハッシュ処理部131とグループ計算部132を備える。ジオハッシュ処理部131は、ジオハッシュを緯度経度座標に変換し、またはその逆変換を実施する。グループ計算部132は、位置データベース121が格納しているジオハッシュをグループ化し、位置データベース121が保持するグループテーブルに格納する。グループ化処理およびグループテーブルの詳細については後述する。   The grouping unit 13 includes a geo-hash processing unit 131 and a group calculation unit 132. The geo-hash processing unit 131 converts the geo-hash into latitude and longitude coordinates, or performs the inverse conversion. The group calculation unit 132 groups the geohash stored in the position database 121 and stores it in a group table held by the position database 121. Details of the grouping process and the group table will be described later.

表示条件入力部14は、描画部15が表示する表示地図範囲とスクリーン座標をユーザが指定するためのインターフェースである。   The display condition input unit 14 is an interface for the user to specify a display map range and screen coordinates displayed by the drawing unit 15.

描画部15は、地図描画部151とアイコン描画部152を備える。地図描画部151は、表示条件入力部14を介して指定された地図範囲に対応する地図を地図データベース123から取得して描画する。アイコン描画部152は、位置データベース121が格納しているグループテーブル(グループ化部13によるグループ化結果を格納している)を参照し、アイコンデータベース122が格納しているアイコン画像を各グループに対して割り当てて描画する。出力部16は、描画部15による描画結果を画面表示する。   The drawing unit 15 includes a map drawing unit 151 and an icon drawing unit 152. The map drawing unit 151 obtains and draws a map corresponding to the map range designated via the display condition input unit 14 from the map database 123. The icon drawing unit 152 refers to the group table stored in the position database 121 (which stores the grouping result by the grouping unit 13), and uses the icon image stored in the icon database 122 for each group. Assign and draw. The output unit 16 displays the drawing result by the drawing unit 15 on the screen.

位置データ入力部11、グループ化部13、描画部15は、これらの機能を実現する回路デバイスなどのハードウェアを用いて構成することもできるし、これらの機能を実装したソフトウェアをCPU(Central Processing Unit)などの演算装置が実行することによって構成することもできる。データベース部12は、ハードディスク装置などの記憶装置を用いて構成することができる。表示条件入力部14は、適当な操作インターフェースによって構成することができる。出力部16は、ディスプレイデバイスなどの画面表示デバイスを用いて構成することができる。   The position data input unit 11, the grouping unit 13, and the drawing unit 15 can be configured using hardware such as a circuit device that realizes these functions, and software that implements these functions is a CPU (Central Processing). It can also be configured by being executed by an arithmetic unit such as (Unit). The database unit 12 can be configured using a storage device such as a hard disk device. The display condition input unit 14 can be configured by an appropriate operation interface. The output unit 16 can be configured using a screen display device such as a display device.

図6は、位置データベース121の構成とデータ例を示す図である。ここではグループ化していない位置データを格納するテーブルを示す。本テーブルは、移動体ID1211、申告日時1212、緯度1213および経度1214、方向1215、ジオハッシュ1216、アイコンID1217、名称1218を有する。主キーは移動体ID1211と申告日時1212である。   FIG. 6 is a diagram illustrating a configuration of the position database 121 and data examples. Here, a table for storing position data not grouped is shown. This table has a mobile object ID 1211, a declaration date and time 1212, a latitude 1213 and a longitude 1214, a direction 1215, a geo-hash 1216, an icon ID 1217, and a name 1218. The primary key is the mobile body ID 1211 and the declaration date 1212.

移動体ID1211は、移動体を一意に識別するIDである。申告日時1212は、移動体が位置データを発信した日時である。緯度1213および経度1214は、位置データが記述している座標値である。方向1215は、北をゼロとし右回りの進行方位を示す。ジオハッシュ1216は、緯度1213および経度1214をジオハッシュに変換したものである。アイコンID1217は、当該移動体を画面表示する際に割り当てるアイコン画像を特定するためのIDである。名称1218は、当該移動体の名称である。   The mobile object ID 1211 is an ID that uniquely identifies the mobile object. The reporting date and time 1212 is the date and time when the moving body transmits the position data. Latitude 1213 and longitude 1214 are coordinate values described by position data. A direction 1215 indicates a traveling direction clockwise with north as zero. The geohash 1216 is obtained by converting latitude 1213 and longitude 1214 into geohash. The icon ID 1217 is an ID for specifying an icon image to be assigned when the mobile object is displayed on the screen. The name 1218 is the name of the mobile object.

図7は、アイコンデータベース122の構成とデータ例を示す図である。アイコンデータベース122は、アイコンID1221、幅1222、高さ1223、幅オフセット1224、高さオフセット1225、グループアイコンID1226、アイコンデータ1227を有する。主キーはアイコンID1221である。   FIG. 7 is a diagram illustrating the configuration of the icon database 122 and data examples. The icon database 122 includes an icon ID 1221, a width 1222, a height 1223, a width offset 1224, a height offset 1225, a group icon ID 1226, and icon data 1227. The primary key is the icon ID 1221.

アイコンID1221は、各アイコン画像データを一意に識別するIDである。幅1222と高さ1223は、それぞれアイコン画像のピクセルサイズである。幅オフセット1224と高さオフセット1225は、アイコン画像の左上端部を原点とするアイコン画像の中心点座標であり、当該アイコン画像に対応する位置データの座標値に相当する。グループアイコンID1226は、当該アイコン画像をグループ化する場合において用いるアイコン画像のアイコンID1221を指定する。グループアイコン画像をさらにグループ化することはないため、グループアイコン画像の本フィールドはNULLである。アイコンデータ1227は、アイコン画像データである。   The icon ID 1221 is an ID for uniquely identifying each icon image data. Each of the width 1222 and the height 1223 is a pixel size of the icon image. The width offset 1224 and the height offset 1225 are the center point coordinates of the icon image with the origin at the upper left corner of the icon image, and correspond to the coordinate values of the position data corresponding to the icon image. The group icon ID 1226 specifies an icon ID 1221 of an icon image used when grouping the icon images. Since the group icon image is not further grouped, this field of the group icon image is NULL. Icon data 1227 is icon image data.

図8は、比較的狭い地図領域において、四隅の緯度経度座標をジオハッシュに変換した結果を示す図である。図8に示す例においては、四隅座標のジオハッシュ間の共通部分は”1110110100001110011011000001000”であり、共通桁数は31である。   FIG. 8 is a diagram illustrating a result of converting the latitude and longitude coordinates of the four corners into a geohash in a relatively narrow map region. In the example shown in FIG. 8, the common part between the geo-hashes of the four corner coordinates is “111011010000111001101110010001000”, and the common digit number is 31.

図9は、グループテーブル90の構成とデータ例を示す図である。グループテーブル90は、グループ化部13が位置データベース121内に格納されている位置データをグループ化した結果を格納するテーブルである。ここでは、図8に示す比較的狭い地図領域において、図6の位置データをグループ化した結果得られるデータ例を示した。   FIG. 9 is a diagram illustrating a configuration of the group table 90 and data examples. The group table 90 is a table for storing a result of grouping position data stored in the position database 121 by the grouping unit 13. Here, an example of data obtained as a result of grouping the position data of FIG. 6 in the relatively narrow map area shown in FIG. 8 is shown.

グループテーブル90は、グループID91、緯度92および経度93、方向94、アイコンID95、名称96、移動体ID97を有する。   The group table 90 has a group ID 91, a latitude 92 and a longitude 93, a direction 94, an icon ID 95, a name 96, and a moving body ID 97.

グループID91は、複数のジオハッシュの共通上位桁を切り出し、Base−32で表現したものである。緯度92と経度93と方向94は、グループ化されない位置データについては元の緯度、経度、方向をそのまま保持し、グループ化される位置データについてはグループID91をジオハッシュとして逆変換した緯度、経度を保持し、方向94はゼロとする。アイコンID95は、グループ化されない位置データについては対応するアイコンID1221を保持し、グループ化される位置データについては対応するグループアイコンID1226を保持する。名称96は、グループ化されない位置データについては対応する名称1218を代入し、グループ化される位置データについてはNULLを保持する。移動体ID97は、グループ化されない位置データについては対応する移動体ID1211を保持し、グループ化される位置データについてはNULLを保持する。   The group ID 91 is obtained by cutting out a common upper digit of a plurality of geo-hashes and expressing it with Base-32. Latitude 92, longitude 93, and direction 94 retain the original latitude, longitude, and direction as they are for position data that are not grouped, and for the position data that are grouped, the latitude and longitude obtained by reversely converting the group ID 91 as a geohash. Hold and the direction 94 is zero. The icon ID 95 holds a corresponding icon ID 1221 for position data that is not grouped, and holds a corresponding group icon ID 1226 for position data that is grouped. The name 96 substitutes a corresponding name 1218 for position data that is not grouped, and holds NULL for position data that is grouped. The moving body ID 97 holds the corresponding moving body ID 1211 for position data that is not grouped, and holds NULL for position data that is grouped.

図10は、描画部15による描画結果を例示する図である。ここでは図8に示す比較的狭い地図領域において、図9のグループテーブルを画面表示した例を示す。地図領域は、スクリーン座標系と地図座標系いずれかの座標系で表現することができる。図10に示す例においては、スクリーン座標系のスクリーン幅を600ピクセル、スクリーン高さを480ピクセルとし、原点を左上とする各四隅の座標を定義した。同様に地図座標系のスクリーン幅とスクリーン高さを0.003125°とし、原点を左上とする各四隅の座標を定義した。アイコン画像1001〜1003は、それぞれ図9の1〜3行目のレコードに対応する。   FIG. 10 is a diagram illustrating a drawing result by the drawing unit 15. Here, an example is shown in which the group table of FIG. 9 is displayed on the screen in a relatively narrow map region shown in FIG. The map area can be expressed in either a screen coordinate system or a map coordinate system. In the example shown in FIG. 10, the coordinates of the four corners with the screen width of the screen coordinate system set to 600 pixels, the screen height set to 480 pixels, and the origin at the upper left are defined. Similarly, the coordinates of each corner of the map coordinate system with the screen width and screen height of 0.003125 ° and the origin at the upper left are defined. The icon images 1001 to 1003 correspond to the records on the first to third lines in FIG.

図11は、図8よりも広い地図領域において、四隅の緯度経度座標をジオハッシュに変換した結果を示す図である。図8に示す例においては、四隅座標のジオハッシュ間の共通部分は”11101101000011100110“であり、共通桁数は20である。   FIG. 11 is a diagram showing the result of converting the latitude and longitude coordinates of the four corners into a geohash in a map area wider than FIG. In the example shown in FIG. 8, the common part between the geo-hashes of the four corner coordinates is “11101101000011100110”, and the common digit number is 20.

図12は、グループテーブル90の別データ例を示す図である。ここでは、図11に示す比較的広い地図領域において、図6の位置データをグループ化した結果得られるデータ例を示した。地図領域を広くするとスクリーン上において近接する移動体が増えるので、アイコン画像はグループ化され易くなる。図12に示すデータ例においては、図9のデータ例とは異なり、1行目のレコードはグループ化されているので、方向94、名称96、移動体ID97は上記規則にしたがってそれぞれ0°、NULL、NULLになっている。またアイコンID95はグループアイコン画像を示す”2”(図7の2行目のレコード)になっている。   FIG. 12 is a diagram illustrating another example of data in the group table 90. Here, an example of data obtained as a result of grouping the position data of FIG. 6 in the relatively wide map area shown in FIG. 11 is shown. When the map area is widened, the number of moving objects that are close to each other on the screen increases, so that icon images are easily grouped. In the data example shown in FIG. 12, unlike the data example of FIG. 9, the records in the first row are grouped, so that the direction 94, name 96, and mobile ID 97 are 0 °, NULL respectively according to the above rules. , It is NULL. The icon ID 95 is “2” (record on the second line in FIG. 7) indicating the group icon image.

図13は、描画部15による描画結果を例示する図である。ここでは図11に示す比較的狭い地図領域において、図12のグループテーブルを画面表示した例を示す。スクリーン幅とスクリーン高さは0.1°である。アイコン画像1301〜1302は、それぞれ図12の1〜2行目のレコードに対応する。   FIG. 13 is a diagram illustrating a drawing result by the drawing unit 15. Here, an example is shown in which the group table of FIG. 12 is displayed on the screen in a relatively narrow map area shown in FIG. The screen width and screen height are 0.1 °. Icon images 1301 to 1302 correspond to the records in the first and second lines in FIG.

<処理概要の説明>
図14は、グループ化部13の動作を説明するフローチャートである。以下、図14の各ステップについて説明する。
<Description of processing outline>
FIG. 14 is a flowchart for explaining the operation of the grouping unit 13. Hereinafter, each step of FIG. 14 will be described.

(図14:ステップS1401)
グループ化部13は、以下の4つの変数を初期化する。(a)c_hash:描画部15が描画する地図範囲内において共通するハッシュ値を格納する変数、(b)c_digit:描画部15が描画する地図範囲において共通するハッシュ値の2進表現の桁数を格納する変数、(c)g_digit:位置データが同一のグループに属するか否かを判定する際に用いる共通桁数の閾値を格納する変数、(d)g_table:グループテーブル90。
(FIG. 14: Step S1401)
The grouping unit 13 initializes the following four variables. (A) c_hash: a variable for storing a hash value common in the map range drawn by the drawing unit 15; (b) c_digit: a number of binary representation digits of the hash value common in the map range drawn by the drawing unit 15 A variable to be stored; (c) g_digit: a variable to store a threshold value of the number of common digits used when determining whether position data belongs to the same group; (d) g_table: a group table 90.

(図14:ステップS1402)
ジオハッシュ処理部131は、描画部15が描画する地図範囲の四隅の位置データをジオハッシュに変換する。ジオハッシュ処理部131は、各ジオハッシュを2進数に変換し、最上位ビットから数えて共通する部分をc_hashに格納する。ジオハッシュ処理部131は、c_hashに格納されたジオハッシュの上位桁共通部分の桁数をc_digitに格納する。
(FIG. 14: Step S1402)
The geo-hash processing unit 131 converts the position data of the four corners of the map range drawn by the drawing unit 15 into a geo-hash. The geo-hash processing unit 131 converts each geo-hash into a binary number, and stores a common part counted from the most significant bit in c_hash. The geo-hash processing unit 131 stores the number of digits of the upper digit common part of the geo-hash stored in c_hash in c_digit.

(図14:ステップS1402:補足)
図8〜図10で説明したデータ例においては、c_hashは“1110110100001110011011000001000”となり、c_digitは31となる。図11〜図13で説明したデータ例においては、c_hashは”11101101000011100110”となり、c_digitは20となる。
(FIG. 14: Step S1402: Supplement)
In the data examples described with reference to FIGS. 8 to 10, c_hash is “11101101000011100110111000000001000”, and c_digit is 31. In the data example described with reference to FIGS. 11 to 13, c_hash is “11101101000011100110” and c_digit is 20.

(図14:ステップS1403〜S1406)
グループ計算部132は、描画部15が地図を描画するスクリーン幅/アイコン幅を求めて変数ratio_xに格納し、スクリーン高さ/アイコン高さを求めて変数ratio_yに格納する(S1403)。グループ計算部132は、ratio_xとratio_yを比較する(S1404)。ratio_xのほうが小さい場合はその2進数桁数をg_digitに格納し(S1405)、ratio_yのほうが小さい場合はその2進数桁数をg_digitに格納する(S1406)。ここでは例えばg_digit=4になったものとする。
(FIG. 14: Steps S1403 to S1406)
The group calculation unit 132 obtains the screen width / icon width for drawing the map by the drawing unit 15 and stores it in the variable ratio_x, and obtains the screen height / icon height and stores it in the variable ratio_y (S1403). The group calculation unit 132 compares ratio_x and ratio_y (S1404). When the ratio_x is smaller, the binary digit number is stored in g_digit (S1405), and when the ratio_y is smaller, the binary digit number is stored in g_digit (S1406). Here, it is assumed that g_digit = 4, for example.

(図14:ステップS1403〜S1406:補足その1)
これらステップは、アイコン画像を地図上に隙間なく配置したとき、最大何個のアイコン画像を配置することができるかを求めるものである。すなわち、位置データをグループ化した結果としてグループアイコン画像が互いに重なり合わない(または重なり合う部分がごく僅か)程度の粒度でグループ化を実施することが最も効率的であると考えられるので、これらステップにおいてグループの粒度を求めてg_digitに格納し、以後のステップにおいてこれを利用することとした。
(FIG. 14: Steps S1403 to S1406: Supplement 1)
These steps are for determining the maximum number of icon images that can be arranged when icon images are arranged on the map without any gaps. That is, it is considered most effective to perform grouping with a granularity of the group icon images that do not overlap each other as a result of grouping the position data (or the overlapping portion is very small). The group granularity is obtained and stored in g_digit, which is used in the subsequent steps.

(図14:ステップS1403〜S1406:補足その2)
例えばratio_x=ratio_y=6であったと仮定する。この場合、地図を縦横それぞれ6個の矩形領域に分割するようにグループ化を実施することが最も効率的であると考えられる。6個のグループを表現するためには3ビット必要であるが、後述するようにジオハッシュの上位3ビットを用いてグループ化を実施すると、最大8個のグループが生じ、グループアイコン画像が互いに重なり合う可能性がある。そこでこれらステップにおいては、ratio_xやratio_yの2進桁数から1減算した値をg_digitとして採用することとした。
(FIG. 14: Steps S1403 to S1406: Supplement 2)
For example, assume that ratio_x = ratio_y = 6. In this case, it is considered to be most efficient to perform grouping so that the map is divided into six rectangular areas in the vertical and horizontal directions. Although 3 bits are required to express 6 groups, when grouping is performed using the upper 3 bits of the geohash as will be described later, a maximum of 8 groups are generated, and the group icon images overlap each other. there is a possibility. Therefore, in these steps, a value obtained by subtracting 1 from the binary digits of ratio_x and ratio_y is adopted as g_digit.

(図14:ステップS1407)
グループ計算部132は、位置データベース121が格納しているレコードのうち申告日時1212が最も新しいレコード(合計Nレコードと仮定する)それぞれについて、以下のステップを実施する。
(FIG. 14: Step S1407)
The group calculation unit 132 performs the following steps for each record (assuming a total of N records) having the latest declaration date and time 1212 among the records stored in the position database 121.

(図14:ステップS1408〜S1409)
グループ計算部132は、位置データベース121から取得したレコードを変数rowに格納する(S1408)。グループ計算部132は、rowが保持している座標(緯度1213と経度1214)が地図範囲内であるか否かを判定する(S1409)。範囲外であればステップS1407へ戻って次のレコードを処理し、範囲内であればステップS1410へ進む。例えば図6の移動体ID1211=“2345671”は地図範囲外であるため本ステップの対象外となる。
(FIG. 14: Steps S1408 to S1409)
The group calculation unit 132 stores the record acquired from the position database 121 in the variable row (S1408). The group calculation unit 132 determines whether the coordinates (latitude 1213 and longitude 1214) held by the row are within the map range (S1409). If it is outside the range, the process returns to step S1407 to process the next record, and if it is within the range, the process proceeds to step S1410. For example, the mobile object ID 1211 = “2345671” in FIG. 6 is out of the scope of this step because it is out of the map range.

(図14:ステップS1410〜S1412)
グループ計算部132は、rowが保持しているジオハッシュ1216を2進数表現に変換し、上位(c_digit+2*g_digit)桁を抽出することによりグループIDを生成する(S1410)。グループ計算部132は、生成したグループIDがg_table内に存在するか否かを判定する(S1411)。存在しない場合は新たなレコードをg_tableに挿入し(S1412)、存在する場合はステップS1413へ進む。
(FIG. 14: Steps S1410 to S1412)
The group calculation unit 132 converts the geohash 1216 held in the row into a binary number representation, and generates a group ID by extracting the upper (c_digit + 2 * g_digit) digits (S1410). The group calculation unit 132 determines whether the generated group ID exists in g_table (S1411). If it does not exist, a new record is inserted into g_table (S1412). If it exists, the process proceeds to step S1413.

(図14:ステップS1410:補足)
c_digitは描画部15が描画する地図範囲内において共通する上位ビットであるため、同範囲内に存在する位置データの上位c_digitビットは必ず共通する。またジオハッシュは経度ビットと緯度ビットを交互に配置するため、g_digitの値は2倍する必要がある。したがって本ステップにおいては、c_digit+2*g_digitをグループIDとすることにした。
(FIG. 14: Step S1410: Supplement)
Since c_digit is a high-order bit common in the map range drawn by the drawing unit 15, the high-order c_digit bit of the position data existing in the same range is always common. Further, since the geohash alternately arranges longitude bits and latitude bits, the value of g_digit needs to be doubled. Therefore, in this step, c_digit + 2 * g_digit is determined as the group ID.

(図14:ステップS1412:補足)
本ステップは、単一の位置データによって構成される新たなグループを生成することに相当する。したがってグループ計算部132は、rowが保持している緯度1213、経度1214、方向1215、アイコンID1217、名称1218、移動体ID1211をg_tableへそのまま格納する。
(FIG. 14: Step S1412: Supplement)
This step corresponds to generating a new group constituted by a single position data. Therefore, the group calculation unit 132 stores the latitude 1213, longitude 1214, direction 1215, icon ID 1217, name 1218, and moving body ID 1211 held in the row as they are in g_table.

(図14:ステップS1413)
グループ計算部132は、生成したグループIDに対応するアイコンID95がグループアイコンであるか否かを確認する。具体的には、アイコンID95をキーにしてアイコンデータベース122を参照し、グループアイコンID1226がNULLであればそのアイコンID95はグループアイコン画像であることになる。グループアイコンでなければステップS1414へ進み、グループアイコンであればステップS1407へ戻って次のレコードを処理する。
(FIG. 14: Step S1413)
The group calculation unit 132 confirms whether or not the icon ID 95 corresponding to the generated group ID is a group icon. Specifically, the icon database 122 is referenced using the icon ID 95 as a key, and if the group icon ID 1226 is NULL, the icon ID 95 is a group icon image. If it is not a group icon, the process proceeds to step S1414. If it is a group icon, the process returns to step S1407 to process the next record.

(図14:ステップS1413:補足)
g_table内に既に同一のグループIDが存在し、かつそのグループIDのアイコンID95がグループアイコンである場合(本ステップにおけるNoの場合)、当該グループIDは既にグループ化されているため、新たな処理は必要でない。したがってこの場合はステップS1407へ戻る。g_table内に既に同一のグループIDが存在し、かつそのグループIDのアイコンID95がグループアイコンではない場合(本ステップにおけるYesの場合)、当該グループIDはグループ化されておらず単一の移動体によって構成されているため、ステップS1410で生成したグループIDを当該グループ内に所属させる必要がある。したがってこの場合はステップS1414に進んでその処理を実施する。
(FIG. 14: Step S1413: Supplement)
If the same group ID already exists in g_table and the icon ID 95 of the group ID is a group icon (No in this step), the group ID has already been grouped. Not necessary. Therefore, in this case, the process returns to step S1407. When the same group ID already exists in g_table and the icon ID 95 of the group ID is not a group icon (in the case of Yes in this step), the group ID is not grouped by a single mobile object. Since it is configured, the group ID generated in step S1410 needs to belong to the group. Therefore, in this case, the process proceeds to step S1414 to execute the process.

(図14:ステップS1414)
グループ計算部132は、グループIDをジオハッシュとして緯度経度に逆変換した値をそれぞれ緯度92と経度93に格納し、方向94は0とし、名称96と移動体ID97はNULLとする。グループ計算部132は、先に存在していたレコードのアイコンID95をキーにしてアイコンデータベース122を参照し、対応するグループアイコンID1226の値をアイコンID95に格納する。すなわち、本ステップを実施する前においては単一の位置データのみによって構成されていたレコードが、本ステップによって複数の位置データからなるグループに置き換えられることになる。
(FIG. 14: Step S1414)
The group calculation unit 132 stores the values obtained by inversely converting the latitude and longitude into the latitude and longitude 93 using the group ID as a geohash, the direction 94 is set to 0, and the name 96 and the moving body ID 97 are set to NULL. The group calculation unit 132 refers to the icon database 122 using the icon ID 95 of the previously existing record as a key, and stores the value of the corresponding group icon ID 1226 in the icon ID 95. That is, a record composed of only a single position data before the execution of this step is replaced with a group composed of a plurality of position data by this step.

<実施の形態1:まとめ>
以上のように、本実施形態1に係るアイコン表示装置10は、ジオハッシュの上位ビットが共通するか否かに基づいて位置データをグループ化し、同一のグループには同一のアイコン画像を割り当てる。これにより、地図上に表示する移動体のアイコン画像を効率的に絞り込み、位置データをグループ化する処理負担を抑制しつつ描画処理速度を向上させることができる。
<Embodiment 1: Summary>
As described above, the icon display device 10 according to the first embodiment groups position data based on whether the upper bits of the geohash are common, and assigns the same icon image to the same group. Thereby, it is possible to efficiently narrow down the icon images of the moving objects to be displayed on the map, and improve the drawing processing speed while suppressing the processing burden of grouping the position data.

また本実施形態1に係るアイコン表示装置10は、ratio_xまたはratio_yに基づきグループの粒度g_digitを自動的に決定する。これにより、ユーザがグループ総数などのパラメータを指定することなく、自動的に最適なグループ数を定めることができる。   Further, the icon display device 10 according to the first embodiment automatically determines the group granularity g_digit based on the ratio_x or the ratio_y. Thus, the optimum number of groups can be automatically determined without the user specifying parameters such as the total number of groups.

これに対し本実施形態1において、例えば地図上のグループ総数をあらかじめユーザが表示条件入力部14経由で指定したい場合も考えられる。この場合は、図14のフローチャートを終了する直前にグループ総数をカウントし、これが目標数を下回った場合はg_digitを増やして図14を再実施し、目標数を上回った場合はg_digitを減らして図14を再実施してもよい。ただし繰り返し処理が多く発生するため、高速化の観点からは望ましくない。   On the other hand, in the first embodiment, for example, the user may want to specify the total number of groups on the map in advance via the display condition input unit 14. In this case, the total number of groups is counted immediately before the end of the flowchart of FIG. 14, and when this number falls below the target number, g_digit is increased and FIG. 14 is re-executed. 14 may be performed again. However, many repetition processes occur, which is not desirable from the viewpoint of speeding up.

<実施の形態2>
位置データ入力部11、グループ化部13、描画部15をソフトウェアによって構成する場合は、これらソフトウェアはコンピュータ上で動作するスタンドアロンアプリケーションなどの形態で実装することもできるし、Webブラウザ上で動作するアドオンプログラムやスクリプトプログラムなどの形態で実装することもできる。
<Embodiment 2>
When the position data input unit 11, the grouping unit 13, and the drawing unit 15 are configured by software, these software can be implemented in the form of a stand-alone application that operates on a computer, or an add-on that operates on a Web browser. It can also be implemented in the form of a program or script program.

Webブラウザ上で動作するプログラムとして上記各機能部を実装した場合、位置データ受信部111はジオハッシュをHTTPリクエストによって受信することができる。アイコンデータベース122と地図データベース123も同様にHTTPリクエストによってネットワーク経由で取得することができる。位置データベース121はWebブラウザを実行するコンピュータのローカルメモリなどに格納することができる。   When each of the functional units is implemented as a program that operates on a Web browser, the position data receiving unit 111 can receive a geohash by an HTTP request. Similarly, the icon database 122 and the map database 123 can be acquired via a network by an HTTP request. The location database 121 can be stored in a local memory or the like of a computer that executes a Web browser.

10:アイコン表示装置、11:位置データ入力部、111:位置データ受信部、112:ジオハッシュ付与部、12:データベース部、121:位置データベース、122:アイコンデータベース、123:地図データベース、13:グループ化部、131:ジオハッシュ処理部、132:グループ計算部、14:表示条件入力部、15:描画部、151:地図描画部、152:アイコン描画部、16:出力部。   DESCRIPTION OF SYMBOLS 10: Icon display apparatus, 11: Position data input part, 111: Position data receiving part, 112: Geo hash provision part, 12: Database part, 121: Position database, 122: Icon database, 123: Map database, 13: Group Conversion unit, 131: geo-hash processing unit, 132: group calculation unit, 14: display condition input unit, 15: drawing unit, 151: map drawing unit, 152: icon drawing unit, 16: output unit.

Claims (7)

移動体の位置を示すアイコン画像を画面表示する処理をコンピュータに実行させるプログラムであって、前記コンピュータに、
複数の前記移動体についてその位置を記述した位置データを受信する受信ステップであって、前記位置データは上位ビットから下位ビットに向かうにしたがって前記移動体のより詳細な位置を記述するように構成されている、受信ステップ、
各前記位置データ間において最上位ビットから数えて共通している共通ビット桁数を基準として、各前記位置データに対応する各前記移動体を位置的にグループ化するグループ化ステップ、
前記グループ化ステップにおいて同一のグループに属すると判定された各前記移動体に対して単一の前記アイコン画像を割り当てた上で各前記移動体の位置に対応する各前記アイコン画像を画面上に表示する表示ステップ、
を実行させることを特徴とするアイコン表示プログラム。
A program for causing a computer to execute a process of displaying an icon image indicating the position of a moving body on a screen,
A reception step of receiving position data describing positions of a plurality of the mobile objects, wherein the position data is configured to describe more detailed positions of the mobile objects from an upper bit toward a lower bit; Receiving step,
A grouping step for positionally grouping the moving bodies corresponding to the position data with reference to the number of common bit digits that are common from the most significant bit among the position data;
A single icon image is assigned to each moving body determined to belong to the same group in the grouping step, and each icon image corresponding to the position of each moving body is displayed on the screen. Display step,
An icon display program characterized in that the program is executed.
前記グループ化ステップにおいては、前記コンピュータに、
複数の前記位置データ間において前記共通ビット桁数が判定閾値以上である場合はその位置データに対応する各前記移動体は同一のグループに属すると判定させ、
前記グループ化ステップにおいてはさらに、前記コンピュータに、
前記アイコン画像が互いに重なり合うことなく前記画面上に配置することができるように、前記判定閾値を算出させる
ことを特徴とする請求項1記載のアイコン表示プログラム。
In the grouping step, the computer is
When the number of common bit digits between a plurality of the position data is greater than or equal to a determination threshold value, the mobile units corresponding to the position data are determined to belong to the same group,
In the grouping step, the computer further includes:
The icon display program according to claim 1, wherein the determination threshold value is calculated so that the icon images can be arranged on the screen without overlapping each other.
前記グループ化ステップにおいては、前記コンピュータに、
前記画面のスクリーンサイズを取得するステップ、
前記画面上における前記アイコン画像のピクセルサイズを取得するステップ、
前記スクリーンサイズに対する前記ピクセルサイズの比を求めることにより、互いに重なり合うことなく前記画面上に配置することができる前記アイコン画像の最大個数を特定するステップ、
各前記移動体が前記最大個数以下のグループにグループ化されるように前記判定閾値を定めるステップ、
を実行させることを特徴とする請求項2記載のアイコン表示プログラム。
In the grouping step, the computer is
Obtaining a screen size of the screen;
Obtaining a pixel size of the icon image on the screen;
Determining a maximum number of the icon images that can be arranged on the screen without overlapping each other by determining a ratio of the pixel size to the screen size;
Determining the determination threshold so that each mobile unit is grouped into a group equal to or less than the maximum number;
The icon display program according to claim 2, wherein:
前記位置データは、
前記移動体の2次元座標系における位置を記述するように構成されており、
前記グループ化ステップにおいては、前記コンピュータに、
前記画面の幅方向において互いに重なり合うことなく前記画面上に配置することができる前記アイコン画像の個数と、前記画面の高さ方向において互いに重なり合うことなく前記画面上に配置することができる前記アイコン画像の個数とのうちいずれか少ない方を前記最大個数として採用させる
ことを特徴とする請求項3記載のアイコン表示プログラム。
The position data is
Configured to describe the position of the mobile body in a two-dimensional coordinate system;
In the grouping step, the computer is
The number of the icon images that can be arranged on the screen without overlapping each other in the width direction of the screen, and the number of the icon images that can be arranged on the screen without overlapping each other in the height direction of the screen. The icon display program according to claim 3, wherein the smaller one of the number is adopted as the maximum number.
前記アイコン表示プログラムは、前記コンピュータに、
前記グループ化によって得られるグループ総数の目標数を取得するステップ、
前記グループ化ステップによって得られたグループ数が前記目標数よりも多い場合は、前記判定閾値を減らした上で前記グループ化ステップと前記表示ステップを再実施することを繰り返すことにより、前記グループ総数を前記目標数に近づけるステップ、
前記グループ化ステップによって得られたグループ数が前記目標数よりも少ない場合は、前記判定閾値を増やした上で前記グループ化ステップと前記表示ステップを再実施することを繰り返すことにより、前記グループ総数を前記目標数に近づけるステップ、
を実行させることを特徴とする請求項1から4のいずれか1項記載のアイコン表示プログラム。
The icon display program is stored in the computer.
Obtaining a target number of the total number of groups obtained by the grouping;
When the number of groups obtained by the grouping step is larger than the target number, the grouping total number is calculated by repeating the grouping step and the display step after reducing the determination threshold. Approaching the target number;
When the number of groups obtained by the grouping step is less than the target number, the grouping step is repeated by repeating the grouping step and the display step after increasing the determination threshold value, thereby obtaining the total number of groups. Approaching the target number;
The icon display program according to any one of claims 1 to 4, wherein the icon display program is executed.
前記位置データは、ジオハッシュデータとして記述されている
ことを特徴とする請求項1から5のいずれか1項記載のアイコン表示プログラム。
The icon display program according to any one of claims 1 to 5, wherein the position data is described as geo-hash data.
移動体の位置を示すアイコン画像を画面表示する装置であって、
複数の前記移動体についてその位置を記述した位置データを受信する受信部であって、前記位置データは上位ビットから下位ビットに向かうにしたがって前記移動体のより詳細な位置を記述するように構成されている、受信部、
各前記位置データ間において最上位ビットから数えて共通している共通ビット桁数を基準として、各前記位置データに対応する各前記移動体を位置的にグループ化するグループ化部、
前記グループ化部が同一のグループに属すると判定した各前記移動体に対して単一の前記アイコン画像を割り当てた上で各前記移動体の位置に対応する各前記アイコン画像を画面上に表示する表示部、
を備えることを特徴とするアイコン表示装置。
An apparatus for displaying an icon image indicating the position of a moving object on a screen,
A receiving unit that receives position data describing the positions of a plurality of the mobile objects, wherein the position data is configured to describe more detailed positions of the mobile objects from an upper bit toward a lower bit. The receiving part,
A grouping unit that positionally groups the mobiles corresponding to the position data based on the number of common bit digits counted from the most significant bit among the position data;
A single icon image is assigned to each of the moving objects determined by the grouping unit to belong to the same group, and each icon image corresponding to the position of each moving object is displayed on the screen. Display,
An icon display device comprising:
JP2013267577A 2013-12-25 2013-12-25 Icon display program and icon display device Active JP6055758B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013267577A JP6055758B2 (en) 2013-12-25 2013-12-25 Icon display program and icon display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013267577A JP6055758B2 (en) 2013-12-25 2013-12-25 Icon display program and icon display device

Publications (2)

Publication Number Publication Date
JP2015125482A true JP2015125482A (en) 2015-07-06
JP6055758B2 JP6055758B2 (en) 2016-12-27

Family

ID=53536174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013267577A Active JP6055758B2 (en) 2013-12-25 2013-12-25 Icon display program and icon display device

Country Status (1)

Country Link
JP (1) JP6055758B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017130736A1 (en) * 2016-01-29 2017-08-03 ソニー株式会社 Information processing device, information processing system, and information processing method
CN107067788A (en) * 2017-05-11 2017-08-18 厦门卫星定位应用股份有限公司 The method of traffic zone position where positioning vehicle based on longitude and latitude
JP2022520594A (en) * 2019-02-11 2022-03-31 ウィージョ・リミテッド A system for finding the itinerary of a vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007278807A (en) * 2006-04-05 2007-10-25 Access Co Ltd Information displaying device
JP2012021788A (en) * 2010-07-12 2012-02-02 Nissan Motor Co Ltd Navigation system and poi information providing method
JP2012063895A (en) * 2010-09-15 2012-03-29 Nippon Telegr & Teleph Corp <Ntt> Character string conversion device and character string conversion method
JP2013045319A (en) * 2011-08-25 2013-03-04 Sony Corp Information processing apparatus, information processing method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007278807A (en) * 2006-04-05 2007-10-25 Access Co Ltd Information displaying device
JP2012021788A (en) * 2010-07-12 2012-02-02 Nissan Motor Co Ltd Navigation system and poi information providing method
JP2012063895A (en) * 2010-09-15 2012-03-29 Nippon Telegr & Teleph Corp <Ntt> Character string conversion device and character string conversion method
JP2013045319A (en) * 2011-08-25 2013-03-04 Sony Corp Information processing apparatus, information processing method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017130736A1 (en) * 2016-01-29 2017-08-03 ソニー株式会社 Information processing device, information processing system, and information processing method
US10653112B2 (en) 2016-01-29 2020-05-19 Sony Corporation Information processing system and method for managing groups of individuals
CN107067788A (en) * 2017-05-11 2017-08-18 厦门卫星定位应用股份有限公司 The method of traffic zone position where positioning vehicle based on longitude and latitude
JP2022520594A (en) * 2019-02-11 2022-03-31 ウィージョ・リミテッド A system for finding the itinerary of a vehicle

Also Published As

Publication number Publication date
JP6055758B2 (en) 2016-12-27

Similar Documents

Publication Publication Date Title
EP2343659B1 (en) Techniques for density mapping
CN107092623B (en) Interest point query method and device
US20150261785A1 (en) Method and apparatus for multi-resolution point of interest boundary identification in digital map rendering
CN111159492A (en) Track point retrieval method and device, storage medium and terminal
CN111210490B (en) Electronic map construction method, device, equipment and medium
WO2022227489A1 (en) Collision detection method and apparatus for objects, and device and storage medium
US20170186225A1 (en) Method and apparatus for generating a composite indexable linear data structure to permit selection of map elements based on linear elements
CN110209748B (en) Method and apparatus for indexing geofences
JP6055758B2 (en) Icon display program and icon display device
CN115129801A (en) Map data processing method, device, equipment and storage medium
CN114820972A (en) Contour line and/or contour surface generation method, system, device and storage medium
CN112700547B (en) Map making method and related equipment
KR101487454B1 (en) method for parallel processing of LOD image
CN107958209B (en) Illegal construction identification method and system and electronic equipment
US20130314414A1 (en) Computing device and method of establishing coordinate systems on surfaces of objects
CN109189524A (en) Image resource generation method and device
WO2022170776A1 (en) Event location transmission method, device and system
JP5940718B2 (en) Information processing apparatus, method, and computer program
CN111198927B (en) Geographic position data matching method and device, electronic equipment and storage medium
CN111881230A (en) Rendering method and device for map area and electronic equipment
CN113971694A (en) Point cloud data processing method and device
JP5492267B2 (en) Information processing apparatus, method, and computer program
CN106033451B (en) A kind of instant rendering method of the density map of cellular traffic and device
CN107291725B (en) Method and device for generating multi-directional tree
KR102387264B1 (en) System and method for displaying of web vector map based on inline frame

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161124

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20161129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161205

R150 Certificate of patent or registration of utility model

Ref document number: 6055758

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250