Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5580104B2 - Map printing device, map reader and survey form - Google Patents
[go: Go Back, main page]

JP5580104B2 - Map printing device, map reader and survey form - Google Patents

Map printing device, map reader and survey form Download PDF

Info

Publication number
JP5580104B2
JP5580104B2 JP2010095596A JP2010095596A JP5580104B2 JP 5580104 B2 JP5580104 B2 JP 5580104B2 JP 2010095596 A JP2010095596 A JP 2010095596A JP 2010095596 A JP2010095596 A JP 2010095596A JP 5580104 B2 JP5580104 B2 JP 5580104B2
Authority
JP
Japan
Prior art keywords
map
image
code
longitude
latitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010095596A
Other languages
Japanese (ja)
Other versions
JP2010277071A (en
Inventor
光裕 東田
春男 林
靖 松下
Original Assignee
デュプロ株式会社
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 デュプロ株式会社 filed Critical デュプロ株式会社
Priority to JP2010095596A priority Critical patent/JP5580104B2/en
Publication of JP2010277071A publication Critical patent/JP2010277071A/en
Application granted granted Critical
Publication of JP5580104B2 publication Critical patent/JP5580104B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Instructional Devices (AREA)

Description

この発明は地図印刷/読取装置に関し、たとえば地震などのように比較的広範囲の地域において被災する災害救助のために使用できる、地図印刷装置およびそれによって印刷した地図を利用する位置読取装置に関する。   The present invention relates to a map printing / reading apparatus, and more particularly to a map printing apparatus and a position reading apparatus using a map printed by the map printing apparatus that can be used for disaster relief in a relatively wide area such as an earthquake.

背景技術として、特許文献1に示す地図情報出力システムが提案されている。この特許文献1の地図情報出力システムでは、地図情報と地図に含まれる住所やランドマークを示す位置座標のような特定情報を地図情報格納部に格納しておき、ユーザが目的地の住所をキーボードから入力すると、その目的地を示す位置座標を取得して、目的地周辺の地図を表示する。そして、ユーザが印刷実行ボタンを押すと、その表示した地図に含まれるランドマークを目的地から近い順に検索し、目的地住所とそれに対応する位置座標と、ランドマーク情報とを2次元バーコード変換部へ送り、そこでこれらの情報を2次元バーコードに変換し、表示中の地図に、その地図内に存在するランドマークを該当の位置に追記し、2次元バーコードと合成して印刷する。   As a background art, a map information output system shown in Patent Document 1 has been proposed. In the map information output system of Patent Document 1, map information and specific information such as location coordinates indicating addresses and landmarks included in the map are stored in the map information storage unit, and the user inputs the destination address using a keyboard. Is input, the position coordinates indicating the destination are acquired, and a map around the destination is displayed. When the user presses the print execution button, the landmarks included in the displayed map are searched in order from the destination, and the destination address, corresponding position coordinates, and landmark information are converted into a two-dimensional barcode. The information is converted into a two-dimensional barcode, and a landmark present in the map is added to the corresponding position on the displayed map, and the two-dimensional barcode is combined and printed.

ユーザが携帯端末でその印刷地図の2次元バーコードを読み込むと、2次元バーコードに含まれている目的地やランドマークの座標位置を特定し、他方で携帯端末の現在位置の位置座標を取得し、現在位置から目的地やランドマークまでの方角や距離を計算してユーザに提示する。   When the user reads the two-dimensional barcode of the printed map with the mobile terminal, the coordinate position of the destination or landmark contained in the two-dimensional barcode is specified, and on the other hand, the position coordinate of the current position of the mobile terminal is acquired. Then, the direction and distance from the current position to the destination or landmark are calculated and presented to the user.

また、特許文献2では、地図上の道路や線路等の他観光施設などを表示するシンボルを地図とともに印刷し、さらに、道路や線路、施設の位置に対応したXY座標を意味するドットパターンを、その地図と重畳印刷する。   Moreover, in patent document 2, the symbol which displays other tourist facilities, such as a road and a railroad on a map, is printed with a map, Furthermore, the dot pattern which means the XY coordinate corresponding to the position of a road, a railroad, and a facility, Print over the map.

ユーザは、撮影手段によってそのドットパターンを読み取ってこれらの道路や線路、施設の位置データを取得する。
特開2008‐249898号公報[G09B 29/00, G09B 29/10, G01C 21/00, G08G 1/005] 特開2008‐52377号公報[G06F 3/042, G09B 29/00, G06F 3/048]
The user reads the dot pattern with the photographing means and acquires the position data of these roads, tracks, and facilities.
JP 2008-249898 A [G09B 29/00, G09B 29/10, G01C 21/00, G08G 1/005] JP 2008-52377 A [G06F 3/042, G09B 29/00, G06F 3/048]

特許文献1の背景技術も特許文献2の背景技術も、ともに、地図上の特定の住所や場所、施設(道路や線路、ランドマーク)を示す2次元バーコードあるいは特殊なドットパターンを地図とともに印刷しておくものである。   Both the background art of Patent Literature 1 and the background art of Patent Literature 2 print a two-dimensional barcode or a special dot pattern indicating a specific address, place, or facility (road, rail, or landmark) on the map along with the map. It is something to keep.

この発明の地図印刷/読取装置によって印刷する地図は、災害時の被災調査や救助活動のために用いる地図を想定している。地震や風水害のような災害によって被災する場所を正確に予想または予測するのは殆ど不可能であり、特定の場所を指示しない限り2次元バーコードやドットパターンを印刷できない背景技術は、そのような用途の地図としては利用できない。   The map printed by the map printing / reading apparatus according to the present invention is assumed to be a map used for disaster investigation and rescue activities during a disaster. It is almost impossible to accurately predict or predict where to be affected by disasters such as earthquakes, storms and floods, and background technology that cannot print two-dimensional barcodes or dot patterns unless a specific location is indicated. It cannot be used as a map of usage.

それゆえに、この発明の主たる目的は、新規な、地図印刷/読取装置を提供することである。   Therefore, the main object of the present invention is to provide a novel map printing / reading apparatus.

この発明の他の目的は、事前に特定の場所を指定しておかなくても印刷地図を読み取ったときに対象場所を特定できる、地図印刷/読取装置を提供することである。   Another object of the present invention is to provide a map printing / reading apparatus capable of specifying a target location when a printed map is read without specifying a specific location in advance.

この発明は、上記の課題を解決するために、以下の構成を採用した。なお、括弧内の参照符号および補足説明等は、この発明の理解を助けるために後述する実施の形態との対応関係を示したものであって、この発明を何ら限定するものではない。   The present invention employs the following configuration in order to solve the above problems. The reference numerals in parentheses, supplementary explanations, and the like indicate correspondence with the embodiments described later in order to help understanding of the present invention, and do not limit the present invention.

第1の発明は、地図を示す地図画像およびその地図の経緯度データを含む地図データを保有する地図データベース、地図データベースから地図画像データを読み出して地図画像をモニタに表示する表示手段、モニタ上において、地図画像を印刷する領域を示す矩形の印刷枠を設定する印刷枠設定手段、1つの印刷枠に入る地図上での実際の距離を計算する第1距離計算手段、実際の距離から地図画像の内部座標を変換して内部座標上の距離を計算する第2距離計算手段、基準点の経緯度および内部座標上の距離に基づいて印刷枠の対角の位置の経緯度を算出する経緯度算出手段、経緯度算出手段によって算出された対角の位置の経緯度を符号化して符号画像を形成する符号画像形成手段、および印刷枠で示される領域の地図画像と符号画像とを用紙に印刷する印刷手段を備える、地図印刷装置である。 A first invention is a map database having map data showing a map and map data including longitude and latitude data of the map, display means for reading the map image data from the map database and displaying the map image on the monitor, on the monitor A printing frame setting means for setting a rectangular printing frame indicating a region for printing the map image, a first distance calculating means for calculating an actual distance on the map that enters one printing frame, and a map image from the actual distance. Second distance calculation means for converting the internal coordinates to calculate the distance on the internal coordinates, calculating the longitude and latitude of the diagonal position of the print frame based on the longitude and latitude of the reference point and the distance on the internal coordinates Means, a code image forming means for forming a code image by encoding the longitude and latitude of the diagonal position calculated by the longitude and latitude calculation means , and a map image and a code image of the area indicated by the print frame, It is a map printing apparatus provided with the printing means which prints on paper.

第1の発明では、地図印刷装置(10:実施例において対応する部分を例示する参照符号。以下、同じ。)は、地図データベース(20)を含み、この地図データベースには、地図画像およびその地図上の経緯度データを含む地図データが格納されている。たとえば、道路、鉄道、建物、建物の戸別名称、行政界などの項目が、レイヤ毎にベクトル形式で、たとえば日本測地系での経緯度データ、基本属性情報とともに、データ化されている。表示手段(12,S1)は、そのような地図データベースから地図画像データを読み出して地図画像をモニタ(16)に表示する。このとき、地図画像上の基準点(たとえば表示されている地図画像の左上角や、住所ポリゴンの各頂点)の経緯度データも併せて地図データベース(20)から読み出され、メモリ内に格納される。印刷枠設定手段(12,S17,S83‐S95,S171‐S193)は、ユーザの操作装置(14)の操作に応答して、モニタ上において、地図画像を印刷する領域を示す矩形の印刷枠(52,100)を設定する。 In the first invention, a map printing apparatus (10: reference numerals exemplifying corresponding parts in the embodiment, hereinafter the same) includes a map database (20), and this map database includes a map image and its map. Map data including the longitude and latitude data above is stored. For example, items such as roads, railroads, buildings, door-to-door names of buildings, administrative boundaries, and the like are converted into data for each layer, for example, along with longitude and latitude data and basic attribute information in the Japanese geodetic system. The display means (12, S1) reads the map image data from such a map database and displays the map image on the monitor (16). At this time, longitude and latitude data of a reference point on the map image (for example, the upper left corner of the displayed map image or each vertex of the address polygon) is also read from the map database (20) and stored in the memory. The The print frame setting means (12, S17, S83-S95, S171-S193) responds to the operation of the user's operation device (14) by a rectangular print frame (area for printing a map image on the monitor). 52,100).

印刷枠は、印刷すべき地図画像の範囲ないし領域を指定する。印刷枠設定手段で印刷枠を設定したとき、その印刷枠に関連する特定の位置の経緯度を上記基準点の経緯度データに基づいて求める。
第1距離計算手段(12,S85,S89‐S91)は、1つの印刷枠(52,100)に入る地図画像の、地図上での実際の距離を計算する。実施例では、横の距離を(PX−US)×SSとして、縦の距離を(PY−LS)×SSとして計算する。ただし、PXは用紙サイズの横の長さ(mm)、PYは用紙サイズの縦の長さ(mm)であり、用紙上下の余白合計をUSmm、左右余白合計をLSmmとし、縮尺をSSとする。
第2距離計算手段(S89,S91)は、地図データベースから読み出した基準点の経緯度および内部座標上の距離を算出する。たとえば、経緯度算出手段(12,S85,S89‐S91)は、基準点の位置を(NX,NY)として、1つの印刷枠を設定する場合、印刷枠(52)の左座標、右座標、上座標および下座標を、それぞれ、「NX」、「NX+AX」、「NY」および「NY+AY」として計算する。ただし、AXは内部座標上の横方向距離であり、AYは内部座標上の縦方向距離である。複数の印刷枠を設定する場合も同様に、基準点の経緯度と内部座標上の横方向距離AXおよび内部座標上の縦方向距離AYに基づいて計算する。そして、このようにして算出された各座標から、矩形の印刷枠の少なくとも対角を示す経緯度が求められる。
号画像形成手段(S121,S125)は、印刷枠の対角の経緯度を符号化する。そして、印刷手段(22,S133)は、印刷枠で示される領域の地図画像(76)と符号画像(78)とを用紙(74)に印刷する。
Printing frame specifies the range or area of the map image to be printed. When the print frame is set by the print frame setting means, the longitude and latitude of a specific position related to the print frame are obtained based on the longitude and latitude data of the reference point.
The first distance calculation means (12, S85, S89-S91) calculates the actual distance on the map of the map image that falls within one print frame (52, 100). In the embodiment, the horizontal distance is calculated as (PX−US) × SS, and the vertical distance is calculated as (PY−LS) × SS. However, PX is the horizontal length (mm) of the paper size, PY is the vertical length (mm) of the paper size, the total margin above and below the paper is USmm, the total left and right margin is LSmm, and the scale is SS .
The second distance calculation means (S89, S91) calculates the longitude and latitude of the reference point read from the map database and the distance on the internal coordinates. For example, the longitude and latitude calculation means (12, S85, S89-S91) sets the position of the reference point as (NX, NY), and sets one print frame, the left coordinate, right coordinate of the print frame (52), The upper and lower coordinates are calculated as “NX”, “NX + AX”, “NY” and “NY + AY”, respectively. However, AX is a horizontal distance on the internal coordinates, and AY is a vertical distance on the internal coordinates. Similarly, when a plurality of print frames are set, calculation is performed based on the longitude and latitude of the reference point, the horizontal distance AX on the internal coordinates, and the vertical distance AY on the internal coordinates. Then, from each coordinate calculated in this way, a longitude and latitude indicating at least a diagonal of the rectangular print frame is obtained.
Sign-image forming means (S121, S125) encodes the latitude and longitude of the diagonal of the printing frame. Then, the printing means (22, S133) prints the map image (76) and the code image (78) of the area indicated by the print frame on the paper (74).

ただし、符号画像は実施例ではQRコード(商品名)のような2次元バーコードを採用した。しかしながら、任意の符号化手法が利用可能である。   However, in the embodiment, a two-dimensional barcode such as a QR code (trade name) is adopted as the code image. However, any coding method can be used.

第1の発明によれば、地図画像と共に符号画像が用紙上に印刷されるので、読取るときにその符号画像を解読して対角の経緯度を取得し、それを地図上の位置の特定のために利用できるので、事前に特定の場所を指定しておかなくても印刷地図を読み取ったときに対象場所の経緯度を容易に特定できる。
また、印刷枠を矩形にしたので、複雑な演算などを必要とせず、印刷枠の設定処理や読取る際の座標変換処理が簡単に行える。
さらに、用紙上に印刷できる地図画像における実際の距離と、内部座標(経緯度)上の距離とに基づいて対角の経緯度が計算できるので、対角の経緯度を簡単に計算することができる。
According to the first invention, since the code image is printed on the paper together with the map image, when reading, the code image is decoded to obtain the diagonal longitude and latitude, and this is used to specify the position on the map. Therefore, it is possible to easily specify the longitude and latitude of the target location when the printed map is read without specifying a specific location in advance.
In addition, since the printing frame is rectangular, no complicated calculation is required, and printing frame setting processing and coordinate conversion processing at the time of reading can be easily performed.
In addition, since the diagonal longitude and latitude can be calculated based on the actual distance in the map image that can be printed on the paper and the distance on the internal coordinates (longitude and latitude), the diagonal longitude and latitude can be calculated easily. it can.

の発明は、第の発明に従属し、第1距離計算手段は、用紙のサイズと印刷余白と地図画像の縮尺とに基づいて実際の距離を計算する、地図印刷装置である。 A second invention is a map printing apparatus according to the first invention, wherein the first distance calculating means calculates an actual distance based on a paper size, a print margin, and a scale of the map image.

の発明では、第1距離計算手段(S85)は、用紙のサイズと印刷余白と地図画像の縮尺とに基づいて実際の距離を計算するので、用紙サイズや縮尺度を任意に変更しても、対角の経緯度を正確に計算することができる。 In the second invention, since the first distance calculation means (S85) calculates the actual distance based on the paper size, the print margin, and the scale of the map image, the paper size and the scale are arbitrarily changed. Also, the diagonal longitude and latitude can be calculated accurately.

の発明は、第または第の発明に従属し、経緯度算出手段は、基準位置の経緯度に内部座標上の距離を加算することによって、対角の経緯度を算出する、地図印刷装置である。
第4の発明は、第1ないし第3の発明のいずれかに従属し、住所を検索することによって地図データベースから住所ポリゴンを読み出す住所検索手段をさらに備え、表示手段は住所ポリゴンを表示し、印刷枠設定手段は、住所ポリゴンを余すところなく含む印刷枠を設定する。
第4の発明では、住所検索手段(12,86,S141‐S163)を利用することによって、ユーザは住所を検索することによって地図データベースから住所ポリゴンを読み出すことができる。したがって、表示手段がその住所ポリゴン(96)を表示し、印刷枠設定手段(12,S17,S171‐S193)は、たとえば住所ポリゴンの外接図形のような、住所ポリゴンを余すところなく含む印刷枠(100)を設定する。
第4の発明によれば、住所によって地図検索しても適切に印刷枠を指定することができる。
第5の発明は、第4の発明に従属し、印刷枠設定手段は、住所ポリゴンの外接矩形である基図を設定する基図設定手段、および基図に基づいて必要枠数を計算する枠数計算手段および計算された必要枠数に応じて複数の印刷枠を設定する複数印刷枠設定手段を含む。
第5の発明では、基図設定手段(S175)によって住所ポリゴンの外接矩形である基図(98)を設定するとともに、枠数計算手段(S177‐S187)が基図に基づいて必要枠数を計算する。
実施例では、基図(98)は地図ポリゴン(96)の外接の四角形であり、その四角形(98)の左座標は地図ポリゴン(96)のX軸の最小値(LX)となり、右座標はX軸最大値(RX)となり、上座標はY軸最小値(LY)で与えられ、下座標はY軸最大値(RY)となる。そして、基図ないし四角形(98)の内部座標における縦の距離AYおよび横の距離AXを用紙サイズと縮尺に基づいて計算する。さらに、印刷枠の基図としての四角形(98)のX軸の距離をWとし、Y軸の距離をHとしてそれぞれ計算し、四角形(基図)(98)の横方向距離Wを横方向距離AXで割り、余りW mod AXなければその整数演算の商をそのまま横方向必要枠数(NeedX)とし、余りがある場合、必要枠数を(NeedX+1)として登録する。
縦方向についても同様である。つまり、基図(98)の縦方向距離Hを縦方向距離AYで割り、余りH mod AYがあるかどうか判断し、縦方向必要枠数(NeedY)または(NeedY+1)を登録する。
そして、このようにして計算された必要枠数が、たとえば6個であれば、複数印刷枠設定手段(12,S91)は6個の印刷枠を設定する。
第5の発明によれば、住所検索によっても、必要な印刷枠数が適切に設定できる。
A third invention is dependent on the first or second invention, and the longitude and latitude calculating means calculates the diagonal longitude and latitude by adding the distance on the internal coordinates to the longitude and latitude of the reference position. It is a printing device.
A fourth invention is according to any one of the first to third inventions, further comprising address search means for reading an address polygon from a map database by searching for an address, wherein the display means displays the address polygon and prints it. The frame setting means sets a print frame that includes all the address polygons.
In the fourth invention, by using the address search means (12, 86, S141-S163), the user can read the address polygon from the map database by searching for the address. Therefore, the display means displays the address polygon (96), and the print frame setting means (12, S17, S171-S193) is a print frame (such as a circumscribed figure of the address polygon) that includes all the address polygons. 100) is set.
According to the fourth invention, it is possible to appropriately specify a print frame even if a map search is performed by address.
A fifth invention is according to the fourth invention, wherein the print frame setting means is a base figure setting means for setting a base figure that is a circumscribed rectangle of the address polygon, and a frame for calculating the required number of frames based on the base figure A number calculating means and a plurality of print frame setting means for setting a plurality of print frames according to the calculated required number of frames.
In the fifth invention, the base figure (98) which is a circumscribed rectangle of the address polygon is set by the base figure setting means (S175), and the frame number calculation means (S177-S187) determines the necessary number of frames based on the base figure. calculate.
In the embodiment, the base diagram (98) is a circumscribed rectangle of the map polygon (96), the left coordinate of the rectangle (98) is the minimum value (LX) of the X axis of the map polygon (96), and the right coordinate is The X-axis maximum value (RX) is obtained, the upper coordinate is given by the Y-axis minimum value (LY), and the lower coordinate is the Y-axis maximum value (RY). Then, the vertical distance AY and the horizontal distance AX in the internal coordinates of the base figure or the rectangle (98) are calculated based on the paper size and scale. Further, the X-axis distance of the quadrangle (98) as the base drawing of the printing frame is calculated as W, the Y-axis distance is set as H, and the lateral distance W of the quadrilateral (base drawing) (98) is calculated as the horizontal distance If the remainder is divided by AX and the remainder is W mod AX, the quotient of the integer operation is directly used as the number of necessary frames in the horizontal direction (NeedX), and if there is a remainder, the number of necessary frames is registered as (NeedX + 1).
The same applies to the vertical direction. That is, the vertical distance H in the base diagram (98) is divided by the vertical distance AY to determine whether or not there is a remainder H mod AY, and the required number of vertical frames (NeedY) or (NeedY + 1) is registered.
If the necessary number of frames calculated in this way is six, for example, the multiple print frame setting means (12, S91) sets six print frames.
According to the fifth invention, the necessary number of print frames can be appropriately set also by address search.

第6の発明は、第ないし第の発明のいずれかに従属し、印刷枠設定手段は、複数の印刷枠を設定する複数印刷枠設定手段を含み、複数印刷枠設定手段によって設定された複数の印刷枠毎に、印刷枚数を設定する。 A sixth invention is dependent on any one of the first to third inventions, and the print frame setting means includes a plurality of print frame setting means for setting a plurality of print frames, and is set by the plurality of print frame setting means. The number of prints is set for each of a plurality of print frames.

第6の発明では、複数印刷枠設定手段(12,S91)は、たとえば4個の印刷枠を設定する。そして、印刷枠毎に印刷される枚数が設定される。第6の発明によれば、印刷される枚数が個別に指定できるため、ユーザの利便性が向上する。   In the sixth invention, the plurality of print frame setting means (12, S91) sets, for example, four print frames. Then, the number of sheets to be printed is set for each print frame. According to the sixth aspect, since the number of printed sheets can be individually specified, the convenience for the user is improved.

の発明は、第1ないし第の発明のいずれかに従属し、地図画像に重畳されるメッシュを形成するメッシュ画像形成手段をさらに備え、印刷手段は、地図画像上に重ねてメッシュ画像を印刷する、地図印刷装置である。 A seventh invention is according to any one of the first to sixth inventions, further comprising mesh image forming means for forming a mesh to be superimposed on the map image, wherein the printing means is superimposed on the map image and the mesh image is formed. Is a map printer.

の発明では、印刷手段(22,S133)によって、メッシュ画像形成手段(S129,S131)が形成したメッシュ画像を地図画像上に重ねて印刷するので、地図上にマークする場合に正確に1つのメッシュ内の位置を指定でき、読取りの際の正確性が担保できる。 In the seventh invention, since the mesh image formed by the mesh image forming means (S129, S131) is overlaid on the map image by the printing means (22, S133), it is precisely 1 when marking on the map. The position within one mesh can be specified, and accuracy during reading can be guaranteed.

の発明は、第1ないし第の発明に従属し、符号画像は、QRコードを含む。 An eighth invention is dependent on the first to seventh inventions, and the code image includes a QR code.

の発明は、第の発明に従属し、QRコードは、第1QRコードおよび第2QRコードを含み、印刷手段は、地図画像の1つの頂点と第1QRコードの角とが一致し、1つの頂点における対角の頂点と第2QRコードの角とが一致するように、地図画像と第1QRコードと第2QRコードとを用紙に印刷する。 A ninth invention is according to the eighth invention, wherein the QR code includes a first QR code and a second QR code, and the printing means matches one vertex of the map image with the corner of the first QR code, The map image, the first QR code, and the second QR code are printed on a sheet so that the diagonal vertices of the two vertices coincide with the corners of the second QR code.

の発明では、地図画像とともに、第1QRコード(78a)および第2QRコード(78b)が用紙に印刷される。そして、第1QRコードの角と一致と地図画像の1つの頂点とが一致し、第2QRコードの角と1つの頂点における対角の頂点とが一致する。 In the ninth invention, the first QR code (78a) and the second QR code (78b) are printed on the paper together with the map image. The corner of the first QR code matches the one vertex of the map image, and the corner of the second QR code matches the diagonal vertex of one vertex.

の発明によれば、2つのQRコードを印刷することで、そのQRコードを復号する処理の信頼性を向上させることができる。 According to the ninth aspect, by printing two QR codes, the reliability of the process of decoding the QR codes can be improved.

10の発明は、印刷枠で示される領域の地図画像と地図画像の特定の位置の経緯度を符号化した符号画像とメッシュとを用紙に印刷した地図を読み取る、地図読取装置であって、地図画像中に記入されたマークを認識してそのマークの地図画像上の位置を特定するマーク認識手段、符号画像を認識して地図画像の特定の位置の経緯度を求める符号画像認識手段、マークが記入されたメッシュの位置を取得するメッシュ位置取得手段、メッシュの最大個数とメッシュ位置とに基づいてそのメッシュ位置の座標を計算する座標計算手段、および座標計算手段によって計算されたメッシュ位置の座標と符号画像認識手段によって求めた特定の位置の経緯度とに基づいて、マークが付されたメッシュの経緯度を計算する計算手段を備える、地図読取装置である。 A tenth aspect of the invention is a map reader that reads a map printed on a sheet of a map image of a region indicated by a print frame, a code image obtained by encoding a latitude and longitude of a specific position of the map image, and a mesh , Mark recognition means for recognizing a mark entered in a map image and specifying the position of the mark on the map image, Code image recognition means for recognizing the code image and obtaining the latitude and longitude of the specific position of the map image, Mark Mesh position acquisition means for acquiring the position of the mesh in which is entered, coordinate calculation means for calculating the coordinates of the mesh position based on the maximum number of meshes and the mesh position, and coordinates of the mesh position calculated by the coordinate calculation means and based on the longitude and latitude of the particular position determined by the code image recognition means comprises calculating means for calculating the latitude and longitude of the mesh mark is attached, reading the map It is the location.

10の発明では、メッシュが重畳された地図は用紙(74)上に印刷されるが、印刷枠(52,100)で示される領域の地図画像(76)と地図画像の特定の位置の経緯度を符号化した符号画像(78)とを含む。地図読取装置(10)は、マーク認識手段(12,S209,S221‐S225)を備え、そのマーク認識手段によって、地図画像中に記入されたマーク(102)を認識してそのマークの地図画像上の位置を特定する。符号画像認識手段(12,S211,S231‐S235)が符号画像を認識して地図画像の特定の位置の経緯度を求める。メッシュ位置取得手段は、マークが記入されたメッシュの位置を取得する。座標計算手段は、メッシュの最大個数とメッシュ位置とに基づいてメッシュの座標を計算する。そして、計算手段(12,S215,S241‐S251)は、座標計算手段によって計算されたメッシュ位置の座標と特定の位置の経緯度とに基づいて、マークが付されたメッシュの経緯度を計算する。 In the tenth invention, the map on which the mesh is superimposed is printed on the paper (74), but the map image (76) in the area indicated by the print frame (52, 100) and the background of the specific position of the map image. And a code image (78) in which the degree is encoded. The map reading device (10) includes mark recognition means (12, S209, S221-S225). The mark recognition means recognizes the mark (102) entered in the map image and displays the mark on the map image. Specify the position of . Sign-image recognition means (12, S211, S231-S235 ) is determined the circumstances of the particular position of the map image to recognize the code image. The mesh position acquisition means acquires the position of the mesh in which the mark is entered. The coordinate calculation means calculates the coordinates of the mesh based on the maximum number of meshes and the mesh position. Then, the calculation means (12, S215, S241-S251) calculates the longitude and latitude of the marked mesh based on the coordinates of the mesh position calculated by the coordinate calculation means and the longitude and latitude of the specific position. .

たとえば、印刷枠に関連する特定の位置、たとえば対角の左上座標(Ax,Ay)と右下座標(Bx,By)取得されるとともに、マーク位置(Rx,Ry)取得されるまた、地図画像(76)上に印刷されたメッシュの縦横の数(Wz,Wy)を取得して、右下のX座標(Bx)から左上のX座標(Ax)を引くことによって、地図画像全体のX方向長さが計算できる。X方向長さをX方向のメッシュ数(Wx)で割る{(Bx-Ax)÷(Wx)}ことによって、1つのメッシュのX方向長さが計算でき、それにマーク位置(Rx)を掛けると、そのマーク位置の測地系の経度が求まる。その経度を左上の座標(Ax)に加えることによって、マークを付したメッシュの経度となる。同様に、マークを付したメッシュの緯度を[Ay+{(By-Ay)÷(Wy)}×(Wy-Ry)]を計算することによって求めることができる。 For example, the specific location associated with the printing frame, for example, with the upper left coordinates of the diagonal (Ax, Ay) and lower right coordinates (Bx, By A) is acquired, the mark position (Rx, Ry) is obtained. Also, the map image is obtained by obtaining the vertical and horizontal numbers (Wz, Wy) of the mesh printed on the map image (76) and subtracting the upper left X coordinate (Ax) from the lower right X coordinate (Bx). The total X-direction length can be calculated. By dividing the length in the X direction by the number of meshes (Wx) in the X direction {(Bx-Ax) ÷ (Wx)}, the X direction length of one mesh can be calculated and multiplied by the mark position (Rx) The longitude of the geodetic system at the mark position is obtained. By adding the longitude to the upper left coordinate (Ax), the longitude of the marked mesh is obtained. Similarly, the latitude of the marked mesh can be obtained by calculating [Ay + {(By-Ay) ÷ (Wy)} × (Wy-Ry)].

10の発明によれば、地図の任意の位置に記入したマークの経緯度を読取ることができる。 According to the tenth aspect, it is possible to take read the history of the mark fill in any position of the map.

11の発明は、印刷枠で示される領域の地図画像と地図画像の特定の位置の経緯度を符号化した第1符号画像および第2符号画像とを用紙に印刷した地図を読み取る、地図読取装置であって、地図画像の1つの頂点と第1符号画像とが対応し、1つの頂点における対角の頂点と第2符号画像とが対応するように印刷された用紙のイメージを読み取る読取手段、読取手段によって読み取られたイメージにおいて、第1符号画像の特定位置の第1ピクセル値を取得する第1取得手段、読取手段によって読み取られたイメージにおいて、第2符号画像の特定位置の第2ピクセル値を取得する第2取得手段、地図画像における最大ピクセル数を第1ピクセル値および第2ピクセル値に基づいて算出するピクセル数算出手段、地図画像中に記入されたマークを認識して、読取手段によって読み取られたイメージにおいて、マークのピクセル値を取得するピクセル値取得手段、符号画像を認識して地図画像の特定の位置の経緯度を求める符号画像認識手段、およびピクセル数算出手段によって算出された最大ピクセル数と符号画像認識手段によって求めた特定の位置の経緯度とに基づいて、マークのピクセル値を経緯度に変換する変換手段を備える、地図読取装置である。 An eleventh invention reads a map obtained by printing a map image of a region indicated by a print frame and a first code image and a second code image obtained by encoding the longitude and latitude of a specific position of the map image on a sheet. A reading unit that reads an image of a sheet printed so that one vertex of a map image corresponds to a first code image and a diagonal vertex at one vertex corresponds to a second code image First acquisition means for acquiring a first pixel value at a specific position of the first code image in the image read by the reading means; Second pixel at a specific position of the second code image in the image read by the reading means Second acquisition means for acquiring a value, pixel number calculation means for calculating the maximum number of pixels in the map image based on the first pixel value and the second pixel value, entered in the map image A pixel value acquisition unit that acquires a pixel value of a mark in an image read by the reading unit, a code image recognition unit that recognizes the code image and obtains a latitude and longitude of a specific position of the map image, And a map reading device comprising conversion means for converting the pixel value of the mark into longitude and latitude based on the maximum number of pixels calculated by the pixel number calculation means and the longitude and latitude of the specific position obtained by the code image recognition means. is there.

12の発明は、第の発明に従属し、第1符号画像は第1QRコードを含み、第2符号画像は第2QRコードを含み、読取手段は、地図画像の1つの頂点と第1QRコードの角とが一致し、1つの頂点における対角の頂点と第2QRコードの角とが一致するように印刷された用紙のイメージを読み取り、第1取得手段は、読取手段によって読み取られたイメージにおいて、第1QRコードの角を特定位置として第1ピクセル値を取得し、第2取得手段は、読取手段によって読み取られたイメージにおいて、第2QRコードの角を特定位置として第2ピクセル値を取得すA twelfth invention is according to the first aspect of the invention, the first code image includes a first 1QR code, the second code image includes a first 2QR code reading means includes first 1QR and one vertex of the map image match the corners of the code, read-image of the printed sheet as the vertices of the diagonal in one apex and the corner of the 2QR codes match, the first obtaining means, read by the reading means in the image, the corners of the 1QR code retrieves the first pixel value as a specific position, the second acquisition unit acquires the image read by the reading means, the second pixel value the corner of the 2QR code as a specific position you.

12の発明では、符号画像として、第1QRコード(78a)および第2QRコード(78b)が用紙に印刷される。読取手段(12,S305)は、第1QRコードの角と一致と地図画像の1つの頂点とが一致し、第2QRコードの角と1つの頂点における対角の頂点とが一致するように印刷された用紙のイメージを読み取る。第1取得手段(12,S337)は、読み取られたイメージにおいて、第1QRコードの角の第1ピクセル値(px1,py1)を取得する。また、第2取得手段(12,S339)は、第2QRコードの角の第2ピクセル値(px2,py2)を取得する。ピクセル数算出手段は、地図画像の最大ピクセル数、取得された第1ピクセルおよび第2ピクセルに基づいて算出((px2-px1),(py2-py1))する。ピクセル値取得手段(12,S325)は、地図画像に付与されたマーク(102a)のピクセル値(px3,py3)を取得する。変換手段(12,S361,S363)は、算出された最大ピクセル数と、特定の位置の経緯度((Lx1,Ly1),(Lx2,Ly2))とに基づいて、マークのピクセル値を経緯度に変換(X=Lx1+[{(Lx2-Lx1)÷(px2-px1)}×(px3-px1)], Y=Ly1+[{(Ly2-Ly1)÷(py2-py1)}×(py3-py1)])する。 In the twelfth aspect, the first QR code (78a) and the second QR code (78b) are printed on the paper as the code image. The reading means (12, S305) is printed so that the corner of the first QR code coincides with one vertex of the map image, and the corner of the second QR code coincides with the diagonal vertex of one vertex. Scan the image on the paper. The first acquisition means (12, S337) acquires the first pixel value (px1, py1) of the corner of the first QR code in the read image. The second acquisition means (12, S339) acquires the second pixel value (px2, py2) at the corner of the second QR code. The pixel number calculating means calculates ((px2-px1), (py2-py1)) based on the maximum number of pixels of the map image and the acquired first pixel value and second pixel value . The pixel value acquisition means (12, S325) acquires the pixel value (px3, py3) of the mark (102a) given to the map image. The conversion means (12, S361, S363) converts the pixel value of the mark into the latitude and longitude based on the calculated maximum number of pixels and the longitude and latitude ((Lx1, Ly1), (Lx2, Ly2)) of the specific position. (X = Lx1 + [{(Lx2-Lx1) ÷ (px2-px1)} × (px3-px1)], Y = Ly1 + [{(Ly2-Ly1) ÷ (py2-py1)} × (py3-py1 )]).

12の発明によれば、マークの経緯度を、高精度に求めることができる。 According to the twelfth aspect , the longitude and latitude of the mark can be obtained with high accuracy.

13の発明は、印刷枠で示される領域の地図画像と地図画像の特定の位置の経緯度を符号化した符号画像とを用紙に印刷した地図を読み取る、地図読取装置であって、地図画像中に記入されたポリゴンを認識してそのポリゴンの外郭のメッシュの位置を特定する外郭座標計算手段、符号画像を認識して地図画像の特定の位置の経緯度を求める符号画像認識手段、および外郭座標計算手段によって計算された外郭のメッシュの位置と符号画像認識手段によって求めた特定の位置の経緯度とに基づいて、ポリゴンを示すポリゴンデータを生成するポリゴンデータ生成手段を備える、地図読取装置である。 A thirteenth invention is a map reading device for reading a map in which a map image of an area indicated by a print frame and a code image obtained by encoding the longitude and latitude of a specific position of the map image are printed on paper, and the map image Outline coordinate calculation means for recognizing a polygon entered therein and specifying a mesh position of the outline of the polygon, Code image recognition means for recognizing a code image and obtaining a latitude and longitude of a specific position of a map image, and outline A map reader comprising polygon data generating means for generating polygon data representing a polygon based on the position of the outer mesh calculated by the coordinate calculating means and the longitude and latitude of the specific position obtained by the code image recognizing means. is there.

13の発明では、地図読取装置(10)は、印刷枠(52,100)で示される領域の地図画像(76)と地図画像の特定の位置の経緯度を符号化した符号画像(78)とを1枚の用紙(74)に印刷した地図を読み取る。外郭座標計算手段(12,S269,S281‐S289)は、地図画像中に記入されたポリゴン(102a)を認識してそのポリゴンの外郭のメッシュの位置を特定する。 In the thirteenth invention, the map reading device (10) includes a map image (76) in the area indicated by the print frame (52, 100) and a code image (78) obtained by encoding the latitude and longitude of a specific position of the map image. And a map printed on one sheet of paper (74). The outline coordinate calculation means (12, S269, S281-S289) recognizes the polygon (102a) entered in the map image and specifies the position of the outline mesh of the polygon.

たとえば、全てのメッシュの座標においてX方向の最小値から最大値に対するY方向の最大値と最小値、つまり、各X位置に対するY位置の最小値および最大値を求める。同様に、全てのメッシュの座標においてY方向の最小値から最大値に対するX方向の最大値と最小値、つまり、各Y位置に対するX位置の最小値および最大値を求める。そして、たとえば取得した全ての座標から重複している座標を排除することによって、外郭の座標を抽出する。   For example, in the coordinates of all meshes, the maximum value and minimum value in the Y direction with respect to the maximum value from the minimum value in the X direction, that is, the minimum value and maximum value of the Y position for each X position are obtained. Similarly, in the coordinates of all meshes, the maximum value and minimum value in the X direction with respect to the maximum value from the minimum value in the Y direction, that is, the minimum value and maximum value of the X position for each Y position are obtained. Then, for example, the coordinates of the outline are extracted by eliminating the overlapping coordinates from all the acquired coordinates.

符号画像認識手段(12,S211,S231‐S235)がすでに説明したと同様にして、符号画像を認識して地図画像の特定の位置の経緯度を求める、ポリゴンデータ生成
手段(12,S271,S291‐S297)は、外郭座標計算手段によって計算された外郭のメッシュの位置と符号画像認識手段によって求めた特定の位置の経緯度とに基づいて、ポリゴンを示すポリゴンデータを生成する。
Polygon data generation means (12, S271, S291) for recognizing the code image and obtaining the latitude and longitude of a specific position of the map image in the same manner as already described by the code image recognition means (12, S211, S231-S235). -S297) generates polygon data representing a polygon based on the position of the outline mesh calculated by the outline coordinate calculation means and the longitude and latitude of the specific position obtained by the code image recognition means.

実施例では、取得した外郭座標の中で、(X,Y)が最小値である座標を探し、その最小座
標を開始点として、それより右方向に順次外郭座標を探し、元の開始点となるまでの一連の外郭座標を検索し、検索した外郭座標で囲まれたポリゴンのポリゴンデータを生成する。つまり、符号画像認識手段で求めた印刷枠の特定の位置の経緯度に基づいてこの一連の外郭座標を経緯度データに変換することによって、ポリゴンデータが生成できる。
In the embodiment, in the acquired outline coordinates, the coordinates having the minimum value (X, Y) are searched, the minimum coordinates are used as the start point, and the outline coordinates are sequentially searched in the right direction, and the original start point and A series of outline coordinates up to is searched, and polygon data of a polygon surrounded by the searched outline coordinates is generated. That is, polygon data can be generated by converting the series of outline coordinates into longitude and latitude data based on the longitude and latitude of a specific position of the print frame obtained by the code image recognition means.

13の発明によれば、地図上で一定の面積を有する領域をポリゴンとして指定することができ、たとえば、地図データベースに含まれる地図データの1つである人口レイヤや家屋レイヤと照合することによって、その地域における被災の程度(人的または家屋など)を把握することができる。
第14の発明は、第10ないし第13の発明のいずれかに従属し、印刷枠は矩形であり、特定の位置は印刷枠の対角である、地図読取装置である。
According to the thirteenth invention, a region having a certain area on the map can be designated as a polygon, for example, by collating with a population layer or a house layer which is one of the map data included in the map database. , It is possible to grasp the extent of damage (human or house, etc.) in the area.
A fourteenth invention is a map reading device according to any one of the tenth to thirteenth inventions, wherein the printing frame is rectangular and the specific position is a diagonal of the printing frame.

15の発明は、第1ないし第9の発明のいずれかの地図印刷装置によって印刷された、調査票である。 A fifteenth aspect of the invention is a survey form printed by the map printing apparatus according to any one of the first to ninth aspects of the invention .

15の発明では、たとえば調査票(118)は1枚の用紙(74)によって形成され、その用紙の一部(たとえば左半分)にテキストが印刷され、他の一部(たとえば右半分)図画像(76)が印刷されるたとえば図画像は印刷枠に関連した特定の位置の経緯度を符号化した符号画像(78)を含む。 In the fifteenth invention, for example, questionnaire (118) is formed by one sheet of paper (74), a part of the paper (e.g., left half) text is printed on the other part (e.g., the right half) MAP image (76) is printed on. For example MAP image includes an encoded image obtained by encoding the latitude and longitude of a particular position relative to the print frame (78).

15の発明の調査票は被災調査などに好適し、被災箇所や被災場所を正確に特定できるという利点がある。 The survey form of the fifteenth invention is suitable for a disaster investigation and the like, and has an advantage that a disaster location and a disaster location can be specified accurately.

この発明によれば、地図画像に関連する経緯度を符号画像として地図画像と一緒に印刷しておき、読取るときにその符号画像を解読して経緯度を取得し、それを地図上の位置の経緯度の特定のために利用するようにしているので、事前に特定の場所を指定しておかなくても印刷地図を読み取ったときに対象場所の経緯度を容易に特定できる。したがって、発生場所の予測が殆どできない災害調査などにも迅速に対応することができる。 According to the present invention, previously printed with a map image Coordinates associated with the map image as a code image, acquires through latitude and decrypts the code image when reading, it in position on the map Since it is used for specifying the longitude and latitude, the latitude and longitude of the target location can be easily specified when the printed map is read without specifying a specific location in advance. Therefore, it is possible to quickly respond to a disaster investigation or the like in which the occurrence location can hardly be predicted.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1はこの発明の地図印刷/読取装置の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a map printing / reading apparatus according to the present invention. 図2は図1実施例の内部メモリのメモリマップの一例を示す図解図である。FIG. 2 is an illustrative view showing one example of a memory map of the internal memory of FIG. 1 embodiment. 図3は図1実施例における印刷処理動作(メインフロー)を示すフロー図である。FIG. 3 is a flowchart showing a print processing operation (main flow) in the embodiment of FIG. 図4は図1実施例においてモニタに表示される地図操作GUIを示す図解図である。FIG. 4 is an illustrative view showing a map operation GUI displayed on the monitor in FIG. 1 embodiment. 図5は図3実施例における拡大/縮小処理を詳細に示すフロー図である。FIG. 5 is a flowchart showing in detail the enlargement / reduction processing in the embodiment of FIG. 図6は図3実施例におけるドラッグ移動処理を詳細に示すフロー図である。FIG. 6 is a flowchart showing in detail the drag movement process in the embodiment of FIG. 図7は図4の地図操作GUIに重畳表示されるプリンタ設定GUIを示す図解図である。FIG. 7 is an illustrative view showing a printer setting GUI displayed superimposed on the map operation GUI of FIG. 図8は図3実施例におけるプリンタ設定処理を詳細に示すフロー図である。FIG. 8 is a flowchart showing in detail the printer setting process in the embodiment of FIG. 図9は図4の地図表示領域に表示される印刷枠の一例を示す図解図である。FIG. 9 is an illustrative view showing one example of a print frame displayed in the map display area of FIG. 図10は図4の地図表示領域に表示される印刷枠の他の例を示す図解図である。FIG. 10 is an illustrative view showing another example of a print frame displayed in the map display area of FIG. 図11は図3実施例における印刷枠指定処理を詳細に示すフロー図である。FIG. 11 is a flowchart showing in detail the print frame designation process in the embodiment of FIG. 図12は図4の地図操作GUIに重畳表示されるQRコード設定GUIを示す図解図である。FIG. 12 is an illustrative view showing a QR code setting GUI displayed superimposed on the map operation GUI of FIG. 図13は図3実施例におけるQRコード設定処理を詳細に示すフロー図である。FIG. 13 is a flowchart showing in detail the QR code setting process in the embodiment of FIG. 図14は図3実施例における印刷処理を詳細に示すフロー図である。FIG. 14 is a flowchart showing in detail the printing process in the embodiment of FIG. 図15は図14に従って印刷された地図の一例を示す図解図である。FIG. 15 is an illustrative view showing one example of a map printed according to FIG. 図16は図3実施例の変形例としての住所検索での印刷枠指定のための住所検索GUIの一例を示す図解図である。FIG. 16 is an illustrative view showing one example of an address search GUI for designating a print frame in address search as a modification of the embodiment in FIG. 3. 図17はこの実施例における住所検索処理を示すフロー図である。FIG. 17 is a flowchart showing the address search process in this embodiment. 図18は図16の住所検索GUIの地図表示領域に表示される住所ポリゴンの一例を示す図解図である。FIG. 18 is an illustrative view showing one example of an address polygon displayed in the map display area of the address search GUI of FIG. 図19はこの実施例における大字印刷枠処理を示すフロー図である。FIG. 19 is a flowchart showing the large print frame processing in this embodiment. 図20はこの実施例における図19に後続する住所検索処理を示すフロー図である。FIG. 20 is a flowchart showing the address search process subsequent to FIG. 19 in this embodiment. 図21はこの実施例における住所ポリゴンの座標を示す図解図である。FIG. 21 is an illustrative view showing coordinates of an address polygon in this embodiment. 図22はこの実施例における住所ポリゴンを包含する四角形の座標を示す図解図である。FIG. 22 is an illustrative view showing coordinates of a quadrangle including an address polygon in this embodiment. 図23はこの実施例において余白を調整する前の印刷枠と、住所ポリゴンおよび四角形との関係を示す図解図である。FIG. 23 is an illustrative view showing a relationship between a print frame before adjusting a margin, an address polygon, and a rectangle in this embodiment. 図24はこの実施例における余白調整を示す図解図である。FIG. 24 is an illustrative view showing margin adjustment in this embodiment. 図25はこの実施例において余白を調整した後の印刷枠と、住所ポリゴンおよび四角形との関係を示す図解図である。FIG. 25 is an illustrative view showing the relationship between the printing frame after adjusting the margin, the address polygon, and the rectangle in this embodiment. 図26は図1実施例における読取処理動作(メインフロー)を示すフロー図である。FIG. 26 is a flowchart showing the reading processing operation (main flow) in the embodiment of FIG. 図27はマークを記入した地図用紙の一例を示す図解図である。FIG. 27 is an illustrative view showing an example of a map sheet in which a mark is entered. 図28は図26実施例においてモニタに表示される読取GUIを示す図解図である。FIG. 28 is an illustrative view showing a reading GUI displayed on the monitor in FIG. 26 embodiment. 図29は図26実施例におけるマーク位置認識処理を詳細に示すフロー図である。FIG. 29 is a flowchart showing in detail the mark position recognition process in the embodiment of FIG. 図30はマーク位置を示す図解図である。FIG. 30 is an illustrative view showing a mark position. 図31は図26実施例におけるQRコード認識処理を詳細に示すフロー図である。FIG. 31 is a flowchart showing in detail the QR code recognition process in the embodiment of FIG. 図32は図26実施例における座標変換処理を詳細に示すフロー図である。FIG. 32 is a flowchart showing in detail the coordinate conversion processing in the embodiment of FIG. 図33はポリゴンを記入した地図用紙の一例を示す図解図である。FIG. 33 is an illustrative view showing one example of a map sheet on which a polygon is entered. 図34は図33のポリゴンを取り出して示す図解図である。FIG. 34 is an illustrative view showing the polygon shown in FIG. 図35は読取処理動作(メインフロー)の他の実施例を示すフロー図である。FIG. 35 is a flowchart showing another embodiment of the reading processing operation (main flow). 図36は図35実施例における外郭計算処理を詳細に示すフロー図である。FIG. 36 is a flowchart showing in detail the outline calculation processing in the embodiment of FIG. 図37は図35実施例におけるポリゴン計算処理を詳細に示すフロー図である。FIG. 37 is a flowchart showing in detail the polygon calculation process in the embodiment of FIG. 図38は実施例の読取装置に用いる調査票の一例を示す図解である。FIG. 38 is an illustration showing an example of a survey form used in the reading apparatus of the embodiment. 図39は調査票の他の例を示す図解である。FIG. 39 is an illustration showing another example of a survey form. 図40は地図表示領域に表示される印刷枠のその他の例を示す図解図である。FIG. 40 is an illustrative view showing another example of the print frame displayed in the map display area. 図41は図40の地図操作GUIに重畳表示される印刷枚数設定GUIを示す図解図である。FIG. 41 is an illustrative view showing a print number setting GUI displayed superimposed on the map operation GUI of FIG. 図42は図14に従って印刷された地図の他の一例を示す図解図である。FIG. 42 is an illustrative view showing another example of the map printed according to FIG. 図43は図42に示す2つのQRコードの拡大図である。FIG. 43 is an enlarged view of the two QR codes shown in FIG. 図44は他の実施例における読取処理動作(メインフロー)を示すフロー図である。FIG. 44 is a flowchart showing a reading processing operation (main flow) in another embodiment. 図45は図44実施例においてモニタに表示される読取GUIを示す図解図である。FIG. 45 is an illustrative view showing a reading GUI displayed on the monitor in FIG. 44 embodiment. 図46はマークを記入した地図用紙の他の一例を示す図解図である。FIG. 46 is an illustrative view showing another example of a map sheet in which a mark is written. 図47は図44実施例におけるマーク位置認識処理を詳細に示すフロー図である。FIG. 47 is a flowchart showing in detail the mark position recognition process in the embodiment of FIG. 図48は他の実施例におけるマーク位置を示す図解図である。FIG. 48 is an illustrative view showing mark positions in another embodiment. 図49は図44実施例におけるQRコード認識処理を詳細に示すフロー図である。FIG. 49 is a flowchart showing in detail the QR code recognition process in the embodiment of FIG. 図50は図44実施例における座標変換処理を詳細に示すフロー図である。FIG. 50 is a flowchart showing in detail the coordinate conversion process in the embodiment of FIG.

図1に示すこの発明の一実施例の地図印刷/読取装置10は、コンピュータ12を含み、このコンピュータ12は、デスクトップ型、ノート型などのパソコンやワークステーションなど任意のコンピュータであってよく、マウスやキーボード(ともに図示せず)を含む操作装置14および画像表示のためのモニタ16を付属的に備える。コンピュータ12はさらに、ROMやRAMを含む内部メモリ18を有する。この内部メモリ18には、地図データベース20に格納されているディジタル地図データを処理するためのGIS(Geographic Information System)アプリケーションプログラムや具体的なアプリケーションプログラム、実施例では地図印刷プログラムや地図読取プログラムが設定されている。   A map printing / reading apparatus 10 according to one embodiment of the present invention shown in FIG. 1 includes a computer 12, and this computer 12 may be any computer such as a desktop or notebook personal computer or workstation, and a mouse. And an operation device 14 including a keyboard (both not shown) and a monitor 16 for image display are included. The computer 12 further has an internal memory 18 including a ROM and a RAM. The internal memory 18 is set with a GIS (Geographic Information System) application program and a specific application program for processing digital map data stored in the map database 20, and in the embodiment, a map printing program and a map reading program. Has been.

この実施例では、地図データベース20としては、一例として、株式会社ゼンリンの「Zmap(TOWN II)」および「Zmap(AREA II)」(ともに商品名)という商用データベースを用いる。この実施例の地図データベース20では、道路、鉄道、建物、建物の戸別名称、行政界などの項目を含み、これらの情報は階層(レイヤ)毎にベクトル形式で、たとえば日本測地系での経緯度データ、基本属性情報(戸別建物名称に付加した個別キー情報や住所情報)とともに、データ化されている。そのため必要なレイヤを選択することにより、用途に応じた地図表現が可能である。この地図データベース20をコンピュータ12によって処理または操作するために、この実施例では、「Zmap OA II Professional」(商品名)という、そのデータベースに特化したGISアプリケーションソフトを利用する。このアプリケーションソフトの各コンポーネントが、地図操作プログラムとして、上記内部メモリ18に設定されている。   In this embodiment, as the map database 20, as an example, commercial databases of “Zmap (TOWN II)” and “Zmap (AREA II)” (both trade names) of Zenrin Co., Ltd. are used. The map database 20 of this embodiment includes items such as roads, railways, buildings, building-specific names, administrative boundaries, etc., and these pieces of information are in vector format for each layer, for example, longitude and latitude in the Japanese geodetic system. Data and basic attribute information (individual key information and address information added to the building name of each house) are converted into data. Therefore, map representation according to the application is possible by selecting a necessary layer. In order to process or operate the map database 20 by the computer 12, in this embodiment, a GIS application software specialized in the database called "Zmap OA II Professional" (product name) is used. Each component of the application software is set in the internal memory 18 as a map operation program.

また、地図データベース20の位置座標は、座標系の原点が19箇所で定義される、「19座標系」で定義されている。たとえば、第6系には、京都府、大阪府、福井県、滋賀県、三重県、奈良県および和歌山県が含まれ、第6系の原点は「東経136度0分0秒00」、「北緯36度0分0秒00」である。そして、第6系の地域を表す地図データにおいて、任意の位置座標は、原点から任意の位置までの方向ベクトルに基づいて求められる。具体的には、方向ベクトルの長さと方向とから、横方向の移動距離および縦方向の移動距離を算出することで、任意の位置における位置座標(緯度経度データ)を求めることができる。   Further, the position coordinates of the map database 20 are defined by a “19 coordinate system” in which the origin of the coordinate system is defined at 19 locations. For example, the sixth system includes Kyoto, Osaka, Fukui, Shiga, Mie, Nara, and Wakayama prefectures. The origin of the sixth system is “136 degrees 0 minutes 0 seconds 00”, “ North latitude is 36 degrees 0 minutes 0 seconds 00 ". In the map data representing the sixth system area, arbitrary position coordinates are obtained based on a direction vector from the origin to an arbitrary position. Specifically, the position coordinates (latitude / longitude data) at an arbitrary position can be obtained by calculating the movement distance in the horizontal direction and the movement distance in the vertical direction from the length and direction of the direction vector.

地図印刷/読取装置10にはさらに、プリンタ22およびOCR(Optical Character Reader)カラースキャナ(以下、単に「スキャナ」という。)24を備える。   The map printing / reading apparatus 10 further includes a printer 22 and an OCR (Optical Character Reader) color scanner (hereinafter simply referred to as “scanner”) 24.

実施例の地図印刷/読取装置10で印刷した地図は、たとえば地震発生後の建物被害調査のような調査内容と地図上での位置とを紐付けして管理する必要がある場合において、その建物被害調査票とともにセット(1枚)にする、地図票として利用される。   The map printed by the map printing / reading apparatus 10 of the embodiment is, for example, in the case where it is necessary to link and manage the survey contents such as the building damage survey after the occurrence of the earthquake and the position on the map. It is used as a map slip that is set (one) with the damage survey slip.

たとえば、横Y個、縦X個(YおよびXはそれぞれ任意数でよいが、実施例では、Y=38、X=53とした。)の正方形(メッシュ)を、地図画像に重畳的に描いた地図をプリンタ22によって印刷する。同時に、プリンタ22では、地図画像の少なくとも対角、たとえば左上角と右下角(または、右上角と左下角)の世界測地系または日本測地系の経緯度を表す数値を、2次元バーコード(実施例では、QRコード:商品名)のような機械読み取り可能な符号画像として、地図画像と共にその近傍に印刷しておく。   For example, Y (horizontal) and X (vertical) numbers (Y and X may be any number, but in the embodiment, Y = 38 and X = 53) are drawn in a superimposed manner on the map image. The map is printed by the printer 22. At the same time, the printer 22 displays a numerical value representing the longitude and latitude of the world geodetic system or the Japanese geodetic system at least on the diagonal of the map image, for example, the upper left corner and the lower right corner (or the upper right corner and the lower left corner). In the example, a machine-readable code image such as QR code (product name) is printed in the vicinity of the map image.

調査票を用いて調査するユーザは、調査票上において建物被害の内容や状態を記入するとともに、地図票のX×Y(実施例では、38×53=2014)個のメッシュの中の任意の1つに、建物被害発生場所を示すたとえば赤色のマークをたとえば手書きで記入する。   The user who investigates using the survey form enters the contents and state of the building damage on the survey form, and selects any of the X × Y (38 × 53 = 2014 in the embodiment) meshes of the map form. For example, a red mark indicating the building damage occurrence location is entered by handwriting, for example.

その後、上記のマーキングを行った地図票と記入済み調査票とをスキャナ24によって一括して読み取る。QRコードのような符号画像を読取ることによって、その符号画像で表される地図画像の対角の座標(経緯度)を認識する。同時に、カラーピクセル認識技術を利用して、上述の赤色マークが2014個のどのメッシュ内に有るかを判断し、所定の計算式によってマーク場所の経緯度を求める。   After that, the map sheet on which the above marking is performed and the completed survey form are collectively read by the scanner 24. By reading a code image such as a QR code, the diagonal coordinates (longitude and latitude) of the map image represented by the code image are recognized. At the same time, the color pixel recognition technology is used to determine which mesh of the 2014 red mark is present, and the longitude and latitude of the mark location are obtained by a predetermined calculation formula.

このようにして、調査票で調査した被災場所を地図上で正しく確認することができる。   In this way, it is possible to correctly confirm on the map the disaster location investigated with the survey form.

図2を参照して、図1に示す内部メモリ18には、プログラム領域26、データ記憶領域28およびフラグ領域30の各領域が設定されている。プログラム領域26には、たとえばWindows(商品名)のようなOSプログラム260の他、上述の地図操作プログラム261、印刷プログラム262および読取プログラム263が設定されている。ただし、これらの印刷プログラム262および読取プログラム263では必要な場面で地図操作プログラム261のコンポーネントをそのまま利用することがある。データ記憶領域28には、上記各プログラム260‐263の実行の過程まで必要なデータを記憶する。フラグ領域30は、同様に各プログラムの実行の過程で必要に応じてフラグを記憶する。   Referring to FIG. 2, each area of program area 26, data storage area 28, and flag area 30 is set in internal memory 18 shown in FIG. In the program area 26, for example, the above-described map operation program 261, print program 262, and reading program 263 are set in addition to an OS program 260 such as Windows (product name). However, the printing program 262 and the reading program 263 may use the components of the map operation program 261 as they are in a necessary scene. The data storage area 28 stores necessary data until the execution of each of the programs 260-263. Similarly, the flag area 30 stores a flag as necessary during the execution of each program.

印刷プログラム262は、図3に示すフロー図に従って、地図データベース20に格納されている地図データを読み出し、その地図データを地図画像としてモニタ16上に表示し、その表示した地図画像を処理または操作し、その結果をプリンタ22で印刷するためのプログラムである。地図画像の操作または処理としては、たとえば、拡大/縮小操作、ドラッグ移動操作、プリンタ設定操作、印刷枠設定操作、およびQRコード指定操作などである。   The print program 262 reads the map data stored in the map database 20 according to the flowchart shown in FIG. 3, displays the map data on the monitor 16 as a map image, and processes or manipulates the displayed map image. This is a program for printing the result by the printer 22. The map image operation or processing includes, for example, enlargement / reduction operation, drag movement operation, printer setting operation, print frame setting operation, and QR code designation operation.

読取プログラム263は、後述のようにマークを記入した地図を読み取って、そのマーク位置を測地系データとして特定するためのアプリケーションである。   The reading program 263 is an application for reading a map in which a mark is written as described later and specifying the mark position as geodetic system data.

印刷プログラム262が実行されるとき、図3の最初のステップS1において、図4に示すような地図操作GUI32がモニタ16上に表示される。地図操作GUI32は、操作設定領域34と、地図表示領域36とを含む。地図表示領域36は、コンピュータ12が、地図データベース20から読み出した地図画像データに従って地図画像を表示するための領域である。操作設定領域34は、ユーザが、その地図画像を見ながら地図データやプリンタを操作したり、プリンタ設定や印刷枠設定などを行なったりするための操作ボタンなどを表示する領域である。   When the print program 262 is executed, a map operation GUI 32 as shown in FIG. 4 is displayed on the monitor 16 in the first step S1 of FIG. The map operation GUI 32 includes an operation setting area 34 and a map display area 36. The map display area 36 is an area for the computer 12 to display a map image according to the map image data read from the map database 20. The operation setting area 34 is an area for displaying operation buttons and the like for the user to operate map data and a printer while viewing the map image, and to perform printer settings, print frame settings, and the like.

なお、地図印刷操作の終了時にはそのときの地図画像を示す地図データベース20のデータ、たとえば使用レイヤ番号(名称)、表示場所などを示すデータが既定値として図2に示すデータ記憶領域28内に保存される。ステップS1ではその保存データに基づいて地図データベース20から読み出すので、ステップS1では、前回の印刷の終了時の地図画像がそのときの表示位置で表示される。したがって、たとえば一旦中断した同じ地図印刷の作業を簡単に再開できる。   At the end of the map printing operation, data of the map database 20 indicating the map image at that time, for example, data indicating the use layer number (name), display location, etc. is stored in the data storage area 28 shown in FIG. 2 as default values. Is done. In step S1, data is read from the map database 20 on the basis of the stored data. In step S1, the map image at the end of the previous printing is displayed at the display position at that time. Therefore, for example, the same map printing operation once interrupted can be easily resumed.

このステップS1で地図画像を表示するとき、この地図画像上の特定の位置、たとえば左上角を基準点として、その基準点の経緯度データが同時に地図データベース20から読み出され、メモリ18のデータ記憶領域28に格納される。この基準点の経緯度データは後述の印刷枠指定の際に、印刷枠のたとえば対角の経緯度を特定するために利用される。   When the map image is displayed in step S1, the latitude and longitude data of the reference point is simultaneously read from the map database 20 with the specific position on the map image, for example, the upper left corner as the reference point, and the data stored in the memory 18 is stored. Stored in area 28. The latitude / longitude data of the reference point is used to specify, for example, the diagonal longitude / latitude of the print frame when a print frame is specified later.

ただし、このステップS1で地図操作GUI32の地図表示領域36に表示する地図画像は、たとえば後述する住所検索などの方法で、任意の地図画像に変更できることは勿論である。   However, it goes without saying that the map image displayed in the map display area 36 of the map operation GUI 32 in step S1 can be changed to an arbitrary map image by, for example, a method such as address search described later.

また、この地図操作GUI32の操作設定領域34に含まれる縮尺設定部38をマウス(図示せず)でクリックすると、そのとき使用する地図画像データの縮尺(度)を設定できる。たとえば、縮尺設定部38をクリックした後、キーボード(図示せず)を用いて適宜の数値を入力することによって、任意の縮尺(度)を設定できる。実施例では、設定できる縮尺として、1/425から1/10648までの縮尺を自由に設定できる。   Further, when the scale setting unit 38 included in the operation setting area 34 of the map operation GUI 32 is clicked with a mouse (not shown), the scale (degree) of the map image data used at that time can be set. For example, an arbitrary scale (degree) can be set by clicking a scale setting unit 38 and then inputting an appropriate numerical value using a keyboard (not shown). In the embodiment, as a scale that can be set, a scale from 1/425 to 1/1648 can be freely set.

操作設定領域34に含まれるスライダ40は、地図表示領域36に表示されている地図画像の縮尺度を変更または設定するために利用され、ユーザは地図画像の縮尺度を変更するとき、操作装置14(図1)のマウス(図示せず)でこのスライダ40を左または右に変位させる。   The slider 40 included in the operation setting area 34 is used to change or set the scale of the map image displayed in the map display area 36, and when the user changes the scale of the map image, the operation device 14. The slider 40 is displaced left or right with a mouse (not shown) shown in FIG.

スライダ40が操作されると、図4のステップS3で“YES”が判断され、続くステップS5で表示範囲を拡大または縮小するための処理を実行する。この拡大/縮小処理は、地図表示領域36に表示される地図画像の表示範囲を拡大したり縮小したりするもので、縮尺設定部38で状態のようにして設定した地図の縮尺そのものを変更する所定ではない。   When the slider 40 is operated, “YES” is determined in the step S3 in FIG. 4, and a process for enlarging or reducing the display range is executed in a subsequent step S5. This enlargement / reduction process enlarges or reduces the display range of the map image displayed in the map display area 36, and changes the map scale itself set as the state by the scale setting unit 38. Not prescribed.

具体的には、図5に示す最初のステップS31で、コンピュータ12は、操作装置14に含まれるマウス(図示せず)からの入力を検出することによって、スライダ40が右移動されたかどうか判断する。“YES”が判断されると、コンピュータ12は、続いて、ステップS33において、スライダ40の右移動量に応じて大きくなる表示地図画像の縮尺を再計算する。“NO”が判断されると、コンピュータ12は、ステップS35において、スライダ40の左移動量に応じて小さくなる表示地図画像の縮尺を再計算する。つまり、スライダ40が右へ動かされると地図表示領域36に表示される地図画像の範囲が狭くなり(縮小)、このことは、表示地図画像の縮尺が大きくなることを意味する。左へ移動されたときには、地図表示領域36に表示される地図画像の範囲は広くなり(拡大)、したがって、表示地図画像の縮尺は小さくなる。   Specifically, in the first step S31 shown in FIG. 5, the computer 12 determines whether the slider 40 has been moved to the right by detecting an input from a mouse (not shown) included in the operation device 14. . If “YES” is determined, the computer 12 subsequently recalculates the scale of the display map image that increases in accordance with the amount of rightward movement of the slider 40 in step S33. If “NO” is determined, the computer 12 recalculates the scale of the display map image that becomes smaller in accordance with the left movement amount of the slider 40 in step S35. That is, when the slider 40 is moved to the right, the range of the map image displayed in the map display area 36 is narrowed (reduced), which means that the scale of the displayed map image is increased. When moved to the left, the range of the map image displayed in the map display area 36 is widened (enlarged), and therefore the scale of the displayed map image is reduced.

表示地図画像の縮尺の再計算が終了すると、続くステップS37において、地図表示領域36の中心点を基準点として上下左右に等分に地図画像を拡大または縮小して、地図画像を再表示する。   When the recalculation of the scale of the display map image is completed, in the subsequent step S37, the map image is enlarged or reduced equally in the vertical and horizontal directions with the center point of the map display area 36 as a reference point, and the map image is redisplayed.

ただし、縮尺設定部38で地図の縮尺そのものを変更すると、地図表示領域36に表示されている地図画像の範囲もそれに応じてリアルタイムに拡大または縮小される。   However, if the scale setting unit 38 changes the map scale itself, the range of the map image displayed in the map display area 36 is also enlarged or reduced in real time accordingly.

図3のステップS3で“NO”を判断した場合、コンピュータ12は次のステップS7で、ユーザの操作はドラッグ移動かどうか判断する。操作設定領域34に表示されている手アイコン42は、地図表示領域36に表示されている地図画像をドラッグしてスクロール表示するための操作手段であり、表示されている地図画像の任意の場所をドラックできる。ステップS7ではこの手アイコン42が操作されたかどうか判断する。   If “NO” is determined in the step S3 in FIG. 3, the computer 12 determines whether the user's operation is a drag movement in the next step S7. The hand icon 42 displayed in the operation setting area 34 is an operation means for dragging and scrolling the map image displayed in the map display area 36, and an arbitrary place on the displayed map image is displayed. You can drag. In step S7, it is determined whether or not the hand icon 42 has been operated.

ドラッグ操作では、地図表示領域36全体を上下左右にスクロールするとき、表示されている地図画像の任意のポイントにマウスを当て、マウスを移動すると、地図表示領域36に表示される地図画像もマウスの移動方向へスクロールされる。そして、ユーザは、スクロールの結果表示範囲が刻々と変わる地図表示領域36の地図画像を確認して、所望の移動場所に到達すると左クリックを押した状態を解除(ドロップ)することによって、スクロールを停止する。   In the drag operation, when the entire map display area 36 is scrolled up and down, left and right, when the mouse is moved to an arbitrary point of the displayed map image and the mouse is moved, the map image displayed in the map display area 36 is also displayed. Scroll in the moving direction. Then, the user confirms the map image of the map display area 36 whose display range is changed as a result of scrolling, and when the user reaches the desired movement location, the user cancels (drops) the left-clicked state, thereby scrolling. Stop.

なお、ドラックおよびドロップによる地図画像のスクロールは、斜め方向スクロールや逆方向へスクロール方向を変える場合に簡単に行なえるので便利であるが、結果的に同じことができるという意味において、ドラッグ移動は、縦横スクロールと同じであり、したがって、ドラッグ移動に代えて縦横スクロールを採用してもよい。   Note that the scrolling of the map image by dragging and dropping is convenient because it can be easily performed when the scroll direction is changed in the diagonal direction or in the reverse direction, but in the sense that the same can be done as a result, the drag movement is This is the same as vertical and horizontal scrolling, and therefore vertical and horizontal scrolling may be employed instead of drag movement.

ドラッグ移動処理は、ステップS9、具体的には図6に従って実行される。図6の最初のステップS41では、コンピュータ12は、地図表示領域36のスクロール開始点がマウスによって指定されたかどうか判断する。つまり、操作装置14からの入力に従って地図表示領域36中の任意の点においてユーザによってマウスの左クリックがなされたどうか判断する。“NO”の場合には開始点が指定されるのを待つ。“YES”と判断した場合、コンピュータ12は続くステップS43において、操作装置14からの入力に基づいて、ドラッグ操作つまりマウスによる移動操作が行われたかどうか判断する。ステップS43で“NO”が判断されたとき、ドラッグ操作すなわちマウス移動を待つ。ステップS43で “YES”の場合、コンピュータ12は、ステップS45において、マウスの移動方向および移動量に応じて、地図画像をスクロールさせる。   The drag movement process is executed in accordance with step S9, specifically, FIG. In the first step S41 of FIG. 6, the computer 12 determines whether or not the scroll start point of the map display area 36 is designated by the mouse. That is, it is determined whether or not the user left-clicks the mouse at an arbitrary point in the map display area 36 in accordance with the input from the operation device 14. If “NO”, wait for the start point to be specified. If “YES” is determined, the computer 12 determines whether a drag operation, that is, a move operation using the mouse, has been performed based on the input from the operation device 14 in the subsequent step S43. If “NO” is determined in the step S43, a drag operation, that is, a mouse movement is awaited. If “YES” in the step S43, the computer 12 scrolls the map image in a step S45 according to the moving direction and the moving amount of the mouse.

次のステップS47でドラック操作が停止されたかどうか判断し、“NO”の場合、ステップS49において、コンピュータ12はさらに、ドラッグ移動によって地図表示領域36の上下左右のいずれかの端に達したかどうか判断する。コンピュータ12は、この判断を、マウスの刻々の移動による座標と地図表示領域36の上下左右端の座標とを比較することによって行なう。ステップS49で“YES”を判断した場合、コンピュータ12は次のステップS51で、地図画像を離して(ドロップして)スクロールを停止させる。つまり、ドラッグが地図表示領域36を越えるときは強制的にドラッグを停止(ドロップ)して、ステップS43に戻る。   In the next step S47, it is determined whether or not the drag operation is stopped. If “NO”, in step S49, the computer 12 further determines whether it has reached one of the top, bottom, left and right ends of the map display area 36 by drag movement. to decide. The computer 12 makes this determination by comparing the coordinates of the momentary movement of the mouse with the coordinates of the upper, lower, left and right edges of the map display area 36. If "YES" is determined in the step S49, the computer 12 releases (drops) the map image and stops scrolling in the next step S51. That is, when the drag exceeds the map display area 36, the drag is forcibly stopped (dropped), and the process returns to step S43.

ユーザは、スクロールの結果、地図画像の表示が希望する移動場所に到達すると、左クリックを押した状態を解除してドラッグ操作を停止する。ステップS47でこのようなドラッグ操作の停止を判断して“YES”を判断すると、コンピュータ12は、続くステップS53で、ステップS51と同様に、地図画像をドロップしてスクロールを停止する。このスクロール操作において地図画像が刻々変化し、基準点(左上角)の経緯度も刻々変化するが、最終的にドロップした地図画像の基準点の経緯度データがデータ記憶領域28に格納されることになる。   As a result of scrolling, when the display of the map image reaches the desired moving location, the user releases the left-clicked state and stops the drag operation. If it is determined in step S47 that the drag operation has stopped and “YES” is determined, the computer 12 drops the map image and stops scrolling in step S53, as in step S51. In this scroll operation, the map image changes every moment, and the longitude and latitude of the reference point (upper left corner) also change every moment, but the longitude and latitude data of the reference point of the finally dropped map image is stored in the data storage area 28. become.

図3のステップS7での判断が“NO”の場合、次のステップS11でユーザの操作はプリンタ設定の操作かどうか判断する。つまり、操作設定領域34に設定されるプリンタ設定ボタン44が操作されたかどうか判断する。プリンタ設定ボタン44が操作されると、図7に示すプリンタ設定GUI46が地図表示領域36上に重畳表示される。このようなプリンタ設定GUI46はOS260としてインストールされているたとえばWindows(登録商標)で既によく知られたところであり、使用するプリンタの機種、用紙サイズ、印刷方向(縦または横)などを設定する。   If the determination in step S7 of FIG. 3 is “NO”, it is determined in the next step S11 whether the user operation is a printer setting operation. That is, it is determined whether or not the printer setting button 44 set in the operation setting area 34 has been operated. When the printer setting button 44 is operated, the printer setting GUI 46 shown in FIG. 7 is superimposed on the map display area 36. Such a printer setting GUI 46 is already well known in, for example, Windows (registered trademark) installed as the OS 260, and sets the model of the printer to be used, the paper size, the printing direction (vertical or horizontal), and the like.

このプリンタ設定操作はステップS13すなわち図8のフロー図に従って実行されるが、既によく知られたところであり、ここでは簡単に説明する。   This printer setting operation is executed in accordance with step S13, that is, the flowchart of FIG. 8, which is already well known, and will be briefly described here.

図8のステップS61で、コンピュータ12は、そのときのプリンタ名、用紙サイズ、印刷方向、給紙方法などの既定値を読み込む。次のステップS63で、コンピュータ12は、操作装置14からの入力に基づいて、それらの規定値に変更が指示されたかどうか判断する。ステップS63での“YES”の判断の後、プリンタの変更指示がステップS65で確認されたら、次のステップS67でその変更後のプリンタ名を登録する。プリンタ変更指示ではなく、ステップS65で“NO”が判断された場合、用紙サイズの変更が指示されたかどうか判断する。“YES”なら、続くステップS71で、コンピュータ12は、変更後の用紙サイズを登録する。ステップS69で“NO”なら、次にステップS73で、印刷方向の変更が指示されたかどうか判断する。“NO”なら、ステップS63で“NO”を判断したときと同じく、そのままリターンする。“YES”なら、ステップS75において、変更後の印刷方向、縦または横を登録する。   In step S61 of FIG. 8, the computer 12 reads predetermined values such as the printer name, paper size, printing direction, and paper feeding method at that time. In the next step S <b> 63, the computer 12 determines whether or not a change is instructed to those specified values based on the input from the operation device 14. After the determination of “YES” in step S63, if the printer change instruction is confirmed in step S65, the changed printer name is registered in the next step S67. If “NO” is determined in step S65 instead of the printer change instruction, it is determined whether or not a change in the paper size is instructed. If “YES”, in the subsequent step S71, the computer 12 registers the changed paper size. If “NO” in the step S69, it is next determined whether or not a change of the printing direction is instructed in a step S73. If “NO”, the process returns as it is when “NO” is determined in step S63. If “YES”, in step S75, the changed printing direction, vertical or horizontal is registered.

このようにして、印刷を行うプリンタを選択して登録すると同時に、指定された用紙サイズ(実施例ではA4サイズ(210mm×297mm))および印刷方向(縦または横によって地図印刷時の縮尺の基になる値が変化する。)が登録される。これらのデータもまた、データ記憶領域28(図2)に登録され得る。特に、用紙サイズの縦と横の長さと、印刷するときの縮尺(図3の縮尺設定部38に表示されている)とは、用紙内に印刷できる(入る)実際の距離を計算する上で重要な設定値となる。以下の「印刷枠指定」で詳細を説明する。   In this way, the printer for printing is selected and registered, and at the same time, the designated paper size (A4 size (210 mm × 297 mm) in the embodiment) and the printing direction (vertical or horizontal based on the scale at the time of map printing) Is changed.) Is registered. These data can also be registered in the data storage area 28 (FIG. 2). In particular, the vertical and horizontal lengths of the paper size and the scale when printing (displayed in the scale setting unit 38 in FIG. 3) are used to calculate the actual distance that can be printed (entered) in the paper. This is an important setting value. Details will be described in the following “print frame designation”.

図3のステップS11で“NO”が判断されたときには、続いてステップS15において、コンピュータ12は、そのときのユーザの操作が「印刷枠指定」かどうか判断する。操作設定領域34に設定される印刷枠指定ボタン48を操作することによって、地図表示領域36に表示されている地図画像上の印刷すべき領域を示す印刷枠を設定することができる。したがって、ステップS15では印刷枠指定ボタン48が操作されたかどうかよって、ユーザの操作が印刷枠指定操作かどうか判断する。なお、印刷枠とは、プリンタ設定操作(図8)で指定された用紙サイズと印刷方向および縮尺設定部38(図4)で設定された縮尺度に基づいて、地図画像上の印刷対象とする領域を枠を用いて表示する、そのような「枠」を意味する。また、後述の印刷操作においては、この枠単位での印刷およびプレビューが行われる。   If “NO” is determined in the step S11 of FIG. 3, then in step S15, the computer 12 determines whether or not the user's operation at that time is “print frame designation”. By operating a print frame designation button 48 set in the operation setting area 34, a print frame indicating an area to be printed on the map image displayed in the map display area 36 can be set. Accordingly, in step S15, it is determined whether or not the user operation is a print frame designation operation depending on whether or not the print frame designation button 48 has been operated. The print frame is a print target on the map image based on the paper size and print direction specified by the printer setting operation (FIG. 8) and the scale set by the scale setting unit 38 (FIG. 4). It means such a “frame” that displays an area using a frame. In a printing operation described later, printing and preview are performed in units of frames.

図9または図10に示すように、印刷枠52は、プリンタ設定操作で設定された用紙サイズの1枚の用紙に対する印刷領域を示す枠であり、地図表示領域36の左上角の基準点54を基準として、地図画像上に重畳表示される。図9では1つの印刷枠だけを示すが、印刷枠設定操作においては、印刷すべき地図画像上の領域を何枚の用紙に印刷するかを数値(縦枚数および横枚数)として設定できる。このような枚数設定は、枚数設定窓50において上向き矢印または下向き矢印を操作して増減できる。複数枚印刷が設定されたときには、図10に示すように、複数の(実施例では縦2×横3計6つの)印刷枠52が表示される。そして、以下に詳細に説明する印刷枠指定で登録された各データもまた、メモリ18のデータ記憶領域28(図2)に保存される。   As shown in FIG. 9 or FIG. 10, the print frame 52 is a frame indicating a print area for one sheet of the sheet size set by the printer setting operation, and a reference point 54 at the upper left corner of the map display area 36 is displayed. As a reference, it is displayed superimposed on the map image. Although only one print frame is shown in FIG. 9, in the print frame setting operation, the number of sheets on which the area on the map image to be printed is printed can be set as a numerical value (vertical number and horizontal number). Such a number setting can be increased or decreased by operating the up arrow or the down arrow in the number setting window 50. When the printing of a plurality of sheets is set, as shown in FIG. 10, a plurality of printing frames 52 (6 in the embodiment, 2 in the vertical direction and 3 in the horizontal direction in total) are displayed. Each data registered by the printing frame designation described in detail below is also stored in the data storage area 28 (FIG. 2) of the memory 18.

図11の最初のステップS81で、コンピュータ12は内部メモリ18のデータ記憶領域28を参照して、印刷枠に関するデータが既に登録されているかどうか判断する。“YES”の場合には後に説明するが、“NO”の場合、次のステップS83で、コンピュータ12は、地図表示領域36の左上角の基準点54の位置データすなわち経緯度(NX,NY)を取得する。この実施例の場合、位置データ(NX,NY)は、前述のステップS1において地図操作プログラム261によって地図データベース20から地図データを読み出すとき、そのプログラム261の1つのコンポーネント(機能)を利用することによって、地図データベース20から取得され、データ記憶領域28に既に格納されている。つまり、地図データベース20では地図画像データのレイヤだけでなくその地図画像の各位置の経緯度のデータを保持する経緯度レイヤを有し、先に説明したように、ステップS1で地図画像データを読み出す際、その地図画像の基準点(実施例では左上角)の経緯度データも併せて読み出すのである。   In the first step S81 in FIG. 11, the computer 12 refers to the data storage area 28 of the internal memory 18 and determines whether data relating to the print frame has already been registered. In the case of “YES”, it will be described later, but in the case of “NO”, in the next step S83, the computer 12 causes the position data of the reference point 54 in the upper left corner of the map display area 36, that is, longitude and latitude (NX, NY). To get. In the case of this embodiment, the position data (NX, NY) is obtained by using one component (function) of the program 261 when the map data is read from the map database 20 by the map operation program 261 in the aforementioned step S1. Obtained from the map database 20 and already stored in the data storage area 28. That is, the map database 20 has not only the layer of the map image data but also a longitude / latitude layer that holds the longitude / latitude data of each position of the map image. As described above, the map image data is read out in step S1. At this time, the longitude and latitude data of the reference point (upper left corner in the embodiment) of the map image is also read out.

続くステップS85において、コンピュータ12は、次式(1)に従って、1つの印刷枠52に入る地図上の実際の距離を計算する。したがって、このステップS85が実際距離計算手段、つまり、第1距離計算手段を構成する。
[数1]
横の距離=(PX−US)×SS
縦の距離=(PY−LS)×SS
ただし、用紙サイズを(横:PXmm 縦:PYmm)とし、用紙上下の余白合計をUSmm、左右余白合計をLSmmとし、縮尺をSSとする。
In the subsequent step S85, the computer 12 calculates the actual distance on the map that enters one print frame 52 in accordance with the following equation (1). Therefore, this step S85 constitutes an actual distance calculation means, that is, a first distance calculation means.
[Equation 1]
Horizontal distance = (PX-US) x SS
Vertical distance = (PY-LS) x SS
However, the paper size is (horizontal: PXmm vertical: PYmm), the total margin at the top and bottom of the sheet is USmm, the total left and right margin is LSmm, and the scale is SS.

たとえば、用紙サイズが、横:210mm、縦:297mm(A4)の場合で、用紙上下の
余白合計USを30mm、左右余白合計LSが20mmとし、縮尺を1,000(1/1,000)としたとき、横の距離は、(0.21−0.02)×1000=190メートルとなり、縦の距離は、(0.297−0.03)×1000=267メートルとなる。
For example, when the paper size is 210 mm in width and 297 mm in height (A4), the upper and lower margin total US is 30 mm, the left and right margin total LS is 20 mm, and the scale is 1,000 (1 / 1,000). Then, the horizontal distance is (0.21-0.02) × 1000 = 190 meters, and the vertical distance is (0.297−0.03) × 1000 = 267 meters.

その後、ステップS87において、コンピュータ12は、印刷枚数が1枚かどうか判断する。図4に示す枚数設定部50の「縦1」が設定されかつ「横1」が設定されているとき、このステップS87で“YES”を判断する。枚数設定部50の「縦」および「横」の少なくとも一方に2以上の数値が設定されているとき、ステップS87で“NO”となる。   Thereafter, in step S87, the computer 12 determines whether the number of prints is one. When “vertical 1” is set and “horizontal 1” is set in the number setting section 50 shown in FIG. 4, “YES” is determined in this step S87. When a numerical value of 2 or more is set in at least one of “vertical” and “horizontal” in the number setting section 50, “NO” is determined in the step S87.

ステップS87で“YES”を判断したとき、続くステップS89において、コンピュータ12は、1枚印刷のための内部座標上の四角形の印刷枠を決定し、その印刷枠52とページ番号とをユーザレイヤに描画する。ただし、この印刷枠およびページ番号は、地図操作プログラム261のコンポーネントの機能を利用することによって、実行される。   When “YES” is determined in the step S87, in the subsequent step S89, the computer 12 determines a rectangular printing frame on the internal coordinates for printing one sheet, and uses the printing frame 52 and the page number in the user layer. draw. However, this print frame and page number are executed by using the function of the component of the map operation program 261.

詳しくいうと、上述のようにしてステップS85で計算した、1枚の用紙に印刷される地図画像の縦および横の実際の距離から、地図画像の内部座標(経緯度)を変換することによって、1つの印刷枠52の、内部座標上の距離、横AXおよび縦AYが計算できる。したがって、図9のように1つの印刷枠52だけが設定されている場合、ステップS89で、基準点54の位置(NX,NY)を用いて、図9の印刷枠52の左座標、右座標、上座標および下座標を、それぞれ、「NX」、「NX+AX」、「NY」および「NY+AY」として計算し、それに従って印刷枠52を描画する。したがって、1つの印刷枠を設定する場合、ステップS89が、対角の経緯度算出手段として機能するとともに、さらにはその前提となる内部座標距離計算手段、つまり、第2距離計算手段を構成する。   Specifically, by converting the internal coordinates (longitude and latitude) of the map image from the actual vertical and horizontal distances of the map image printed on one sheet calculated in step S85 as described above, The distance on the internal coordinates, the horizontal AX, and the vertical AY of one printing frame 52 can be calculated. Accordingly, when only one print frame 52 is set as shown in FIG. 9, the left coordinate and right coordinate of the print frame 52 in FIG. 9 are used in step S89 by using the position (NX, NY) of the reference point 54. The upper and lower coordinates are calculated as “NX”, “NX + AX”, “NY”, and “NY + AY”, respectively, and the print frame 52 is drawn accordingly. Accordingly, when one print frame is set, step S89 functions as diagonal longitude and latitude calculation means, and further constitutes a premise of internal coordinate distance calculation means, that is, second distance calculation means.

図10では、縦2枚、横3枚、計6枚の用紙を用いて印刷する場合を例示しているが、このように複数の印刷枠52を設定する場合、コンピュータ12は、ステップS91において、上述の左座標「NX」および上座標「NY」と、1枚分の内部座標距離「AX」,「AY」に基づいて、各四角形の測地系での上下左右座標を求める。たとえば、図10でページ番号「1」で示す四角形の測地系位置データは、左座標は「NX」、上座標は「NY」、右座標は「NX+AX」、下座標は「NY+AY」で与えられる。   FIG. 10 illustrates a case where printing is performed using a total of six sheets of 2 sheets in the vertical direction and 3 sheets in the horizontal direction. However, when setting a plurality of print frames 52 in this way, the computer 12 determines in step S91. Based on the left coordinate “NX” and the upper coordinate “NY” and the internal coordinate distances “AX” and “AY” for one sheet, the vertical and horizontal coordinates in the geodetic system of each square are obtained. For example, the rectangular geodetic system position data indicated by the page number “1” in FIG. 10 is given as “NX” for the left coordinate, “NY” for the upper coordinate, “NX + AX” for the right coordinate, and “NY + AY” for the lower coordinate. .

同様に、ページ番号「2」で示す四角形の測地系位置データでは、左座標は「NX+AX」、上座標は「NY」、右座標は「NX+2×AX」、下座標は「NY+AY」で与えられる。   Similarly, in the rectangular geodetic system position data indicated by the page number “2”, the left coordinate is “NX + AX”, the upper coordinate is “NY”, the right coordinate is “NX + 2 × AX”, and the lower coordinate is “NY + AY”. .

ページ番号「3」で示す四角形の測地系位置データでは、左座標は「NX+2×AX」、上座標は「NY」、右座標は「NX+3×AX」、下座標は「NY+AY」となる。   In the rectangular geodetic system position data indicated by the page number “3”, the left coordinate is “NX + 2 × AX”, the upper coordinate is “NY”, the right coordinate is “NX + 3 × AX”, and the lower coordinate is “NY + AY”.

ページ番号「4」で示す四角形の測地系位置データでは、左座標は「NX」、上座標は「NY+AY」、右座標は「NX+AX」、下座標は「NY+2×AY」となる。   In the rectangular geodetic system position data indicated by the page number “4”, the left coordinate is “NX”, the upper coordinate is “NY + AY”, the right coordinate is “NX + AX”, and the lower coordinate is “NY + 2 × AY”.

ページ番号「5」で示す四角形の測地系位置データでは、左座標は「NX+AX」、上座標は「NY+AY」、右座標は「NX+2×AX」、下座標は「NY+2×AY」となる。   In the rectangular geodetic system position data indicated by the page number “5”, the left coordinate is “NX + AX”, the upper coordinate is “NY + AY”, the right coordinate is “NX + 2 × AX”, and the lower coordinate is “NY + 2 × AY”.

ページ番号「6」で示す四角形の測地系位置データでは、左座標は「NX+2×AX」、上座標は「NY+AY」、右座標は「NX+3×AX」、下座標は「NY+2×AY」となる。   In the rectangular geodetic system position data indicated by the page number “6”, the left coordinate is “NX + 2 × AX”, the upper coordinate is “NY + AY”, the right coordinate is “NX + 3 × AX”, and the lower coordinate is “NY + 2 × AY”. .

このようにして、複数枚の用紙に印刷する場合、ステップS91において、左座標「NX」、上座標「NY」、1枚分の内部座標距離「AX」、「AY」に基づいて、各四角形の上下左右座標の測地系位置データを決定し、それに従って各印刷枠およびページ番号をユーザレイヤに描画する。したがって、複数の印刷枠を指定する場合、ステップS91が、各印刷枠の対角の経緯度算出手段として機能し、さらにはその前提となる内部座標距離計算手段、つまり、第2距離計算手段として機能する。   In this way, when printing on a plurality of sheets, in step S91, each rectangle is determined based on the left coordinate “NX”, the upper coordinate “NY”, and the internal coordinate distance “AX”, “AY” for one sheet. The geodetic system position data of the upper, lower, left and right coordinates is determined, and each print frame and page number are drawn on the user layer accordingly. Therefore, when a plurality of print frames are designated, step S91 functions as a diagonal longitude and latitude calculation unit of each print frame, and further, as an internal coordinate distance calculation unit, that is, a second distance calculation unit as a premise thereof. Function.

上述のように、印刷枠の対角の位置の経緯度を算出する算出手段では、基準点または基準位置が1つの印刷枠の対角の一方に相当するので、基準位置の経緯度に内部座標上の距離を加算することによって、対角の他方の経緯度を算出することができる。ただし、印刷枠が複数の場合、すでに説明したように、1つ目の印刷枠以外の各印刷枠の対角の一方についても、基準位置の経緯度と内部座標上の距離の加算によって算出する必要がある。   As described above, in the calculation means for calculating the longitude and latitude of the diagonal position of the print frame, the reference point or the reference position corresponds to one of the diagonals of one print frame. By adding the above distance, the other longitude and latitude of the diagonal can be calculated. However, when there are a plurality of print frames, as already described, one of the diagonals of each print frame other than the first print frame is also calculated by adding the longitude and latitude of the reference position and the distance on the internal coordinates. There is a need.

そして、コンピュータ12は、ユーザが登録指示したとき、たとえば、図4に示す印刷設定保存ボタン58をクリックしたとき、ステップS93で“YES”を判断し、続くステップS95で、たとえば、印刷枠はユーザレイヤにおける図形データとして、ページ番号はユーザレイヤにおけるテキストデータとして、各座標データ(位置データ)とともにデータ記憶領域28に登録する。   Then, when the user instructs registration, for example, when the user clicks the print setting save button 58 shown in FIG. 4, the computer 12 determines “YES” in step S93, and in the subsequent step S95, for example, the print frame is the user. As graphic data in the layer, the page number is registered in the data storage area 28 together with each coordinate data (position data) as text data in the user layer.

なお、ステップS81で登録済みのデータを使用する場合は、ステップS97で、その登録済みデータに従って印刷枠およびページ番号を図9または図10のように描画する。このように、登録済みデータを利用できるようにしているため、一旦中断した印刷作業を再開するときなど、同じ地図画像を同じ条件で印刷した地図を容易に取得できる。   If the registered data is used in step S81, the printing frame and page number are drawn as shown in FIG. 9 or FIG. 10 in accordance with the registered data in step S97. As described above, since the registered data can be used, a map in which the same map image is printed under the same conditions can be easily obtained, for example, when the printing operation once interrupted is resumed.

なお、印刷枠指定処理においては、印刷枠が1つの場合も複数の場合も、移動ボタン53(図9、図10)を操作することによって、印刷枠を移動させることができる。この印刷枠移動処理は、地図操作プログラム261の機能の1つを利用するもので、ユーザがこの印刷枠移動ボタン53をクリックすると、図形移動モードが設定され、図示しないが十字カーソルが画面上に出現し、それを使ってユーザが移動先を確定してクリックすると、その位置に印刷枠が移動する。この場合、移動後の印刷枠の左上角を基準点(NX,NY)として図11の印刷枠指定処理を実行することになる。このとき、印刷枠の左上角が地図画像上の基準点(左上角)とずれることになるが、そのときの印刷枠の左上角の経緯度と地図画像の基準点(左上角)の経緯度とのずれ距離および方向を計算し、基準点からそのずれ方向にずれた点を印刷枠の左上角の経緯度として計算する必要がある。つまり、印刷枠を基準点からずらせる操作をした場合には、そのずれに応じて印刷枠の左上角(実施例では)の経緯度を再計算する必要がある。   In the print frame designation process, the print frame can be moved by operating the move button 53 (FIGS. 9 and 10) regardless of whether the print frame is single or plural. This print frame movement process uses one of the functions of the map operation program 261. When the user clicks this print frame movement button 53, the figure movement mode is set, and although not shown, a cross cursor is displayed on the screen. When the user appears and uses it to determine the destination and click, the print frame moves to that position. In this case, the print frame designation process in FIG. 11 is executed with the upper left corner of the moved print frame as the reference point (NX, NY). At this time, the upper left corner of the print frame will deviate from the reference point (upper left corner) on the map image. At that time, the longitude and latitude of the upper left corner of the print frame and the latitude and longitude of the reference point (upper left corner) of the map image It is necessary to calculate the displacement distance and direction from the reference point, and to calculate the point displaced from the reference point in the displacement direction as the longitude and latitude of the upper left corner of the print frame. That is, when an operation for shifting the print frame from the reference point is performed, it is necessary to recalculate the longitude and latitude of the upper left corner (in the embodiment) of the print frame in accordance with the shift.

図3のステップS15で“NO”を判断したとき、ステップS19でコンピュータ12は、ユーザの操作がQRコードの設定操作かどうか判断する。“YES”なら、続いて、ステップS21のQRコード指定処理に進む。この実施例の1つの特徴は、上述のようにして取得した測地系の座標データをQRコードによって地図画像と同時に印刷し、それを地図上の位置を特定するために利用することである。   When “NO” is determined in step S15 of FIG. 3, the computer 12 determines whether or not the user operation is a QR code setting operation in step S19. If “YES”, then the process proceeds to a QR code designation process in step S21. One feature of this embodiment is that the coordinate data of the geodetic system acquired as described above is printed simultaneously with the map image by the QR code, and is used for specifying the position on the map.

図4のQRコード設定ボタン60をユーザがクリックすると、コンピュータ12はそれに応じて、図12に示すQRコード設定GUI62を、たとえば図4の地図操作GUI32の上に一時的に重畳表示する。   When the user clicks the QR code setting button 60 in FIG. 4, the computer 12 correspondingly temporarily displays the QR code setting GUI 62 shown in FIG. 12 on the map operation GUI 32 in FIG. 4, for example.

QRコード設定GUI62は、QRコードの色を設定する色指定部64、測地系を設定する測地系指定部66および数値形式を設定する数値形式指定部68を含む。色指定部64では、青、赤、緑、黒の4色のうち1色を指定できる。測地系指定部66では、日本測地系か世界測地系のどちらかを指定できる。結果を表示するGISアプリケーションプログラムによって扱える座標系が違うことがあるので、どちらでも指定できるようにしている。数値形式指定部68では、度分秒形式かまたは度形式のどちらかを指定できる。一例として、度分秒形式では「135403964」(東経135度40分39秒64)と表現される測地系座標データは、度形式では「135804824」(東経135.804
824度)と表現される。
The QR code setting GUI 62 includes a color specifying unit 64 that sets the color of the QR code, a geodetic system specifying unit 66 that sets the geodetic system, and a numerical value format specifying unit 68 that sets the numerical format. The color designation unit 64 can designate one of four colors of blue, red, green, and black. The geodetic system designating unit 66 can designate either the Japanese geodetic system or the world geodetic system. Since the coordinate system that can be handled may differ depending on the GIS application program that displays the result, either one can be specified. The numerical value format designation unit 68 can designate either the degree / minute / second format or the degree format. As an example, geodetic coordinate data expressed as “135403964” (135 degrees 40 minutes 39 seconds 64 east longitude) in the degree minute second format is “135804824” (135.804 east longitude) in the degree format.
824 degrees).

図13に詳細に示すQRコード設定処理では、まずステップS101およびS103で、コンピュータ12は、ユーザの操作に従って、地図と同時に印刷するQRコードの色を登録し、ステップS105およびS107で、測地系として世界測地系か日本測地系を登録し、ステップS109およびS111で、度分秒形式かまたは度形式のどちらかの数値形式を登録する。このQRコード設定処理のデータもまた、データ記憶領域28に登録され得る。   In the QR code setting process shown in detail in FIG. 13, first, in steps S101 and S103, the computer 12 registers the color of the QR code to be printed at the same time as the map according to the user's operation, and in steps S105 and S107, the geodetic system is set. A world geodetic system or a Japanese geodetic system is registered, and in step S109 and S111, a numerical format of either a degree minute second format or a degree format is registered. Data of this QR code setting process can also be registered in the data storage area 28.

なお、図4に示すプレビューボタン70は印刷プレビューを実行するための操作ボタンであり、このプレビューボタン70をユーザが操作したとき、印刷プレビューが実行される。ただし、この印刷プレビューでは、ステップS17すなわち図11の動作フローに従って設定された印刷枠単位で行われる。   A preview button 70 shown in FIG. 4 is an operation button for executing a print preview. When the user operates the preview button 70, the print preview is executed. However, the print preview is performed in units of print frames set in accordance with step S17, that is, the operation flow of FIG.

図4で操作設定領域34に設定される印刷ボタン72を操作することによって、図3のステップS23において、プリンタ設定操作や印刷枠設定操作で設定された条件に従って、印刷枠毎に地図表示領域36に表示されている地図画像が用紙74(図15)上に印刷される。この印刷処理は具体的には、図14に詳細に示すフロー図に従って実行される。ただし、図14のフロー図の各ステップにおいて言及している具体的数値は、単なる例示であり、これらの数値に拘束されるものではないことを予め指摘しておく。   By operating the print button 72 set in the operation setting area 34 in FIG. 4, the map display area 36 is printed for each print frame according to the conditions set in the printer setting operation and the print frame setting operation in step S <b> 23 in FIG. 3. The map image displayed on is printed on the paper 74 (FIG. 15). Specifically, this printing process is executed according to the flowchart shown in detail in FIG. However, it should be pointed out in advance that the specific numerical values referred to in the respective steps of the flowchart of FIG. 14 are merely examples and are not restricted by these numerical values.

最初のステップS121において、コンピュータ12は、データ記憶領域28(図2)からデータを読み出し、印刷設定操作で登録した左余白、上余白および用紙サイズのそれぞれのデータに基づいて、地図画像の縦横の印刷の長さを決定する。   In the first step S121, the computer 12 reads out data from the data storage area 28 (FIG. 2), and based on the left margin, top margin, and paper size data registered by the print setting operation, the vertical and horizontal directions of the map image are displayed. Determine the print length.

続いて、ステップS123において、コンピュータ12は、先に説明した印刷枠指定操作で計算した各印刷枠52の左上経度、左上緯度、右下経度、右下緯度を、QRコード設定操作で設定した測地系および度分秒形式または度形式に従って、数値データに変換する。ただし、先にも説明したが、印刷枠52の少なくとも対角(左上角と右下角)の経緯度データがあればよいのであり、逆に、印刷枠52の左下経度、左下緯度、右上経度、右上緯度の数値データを用いてもよい。そして、この数値データは、データ記憶領域28に一時保存される。   Subsequently, in step S123, the computer 12 uses the QR code setting operation to set the upper left longitude, upper left latitude, lower right longitude, and lower right latitude of each print frame 52 calculated by the print frame designation operation described above. Convert to numeric data according to system and degree / minute / second format. However, as described above, it is only necessary to have longitude and latitude data of at least the diagonal (upper left corner and lower right corner) of the print frame 52. Conversely, the lower left longitude, lower left latitude, upper right longitude of the print frame 52, Numerical data of the upper right latitude may be used. This numerical data is temporarily stored in the data storage area 28.

次のステップS125において、コンピュータ12は、図15に示す用紙74の左から10mm、上から11mmの左上角を合わせた縦265mmと横200mmの印刷の長さを有する地図画像を生成する。つまり、この実施例では、ステップS121において、縦265mm×横200mmの印刷長さを決定した。   In the next step S125, the computer 12 generates a map image having a printing length of 265 mm in length and 200 mm in width with the upper left corner of 10 mm from the left and 11 mm from the top of the paper 74 shown in FIG. That is, in this embodiment, the printing length of 265 mm long × 200 mm wide is determined in step S121.

続くステップS127において、コンピュータ12は、用紙74の左から10mm、上から275mmと2mmの余白を開けたエリアにQRコード画像を生成する。このときのQRコード画像は、先にステップS123で変換した左上経度、左上緯度、右下経度、右下緯度のデータを符号化したものである。たとえば、度形式で「1355051019, 347056606,1355098019, 347006450」のような数値がQRコードで符号(画像)化される。   In the subsequent step S127, the computer 12 generates a QR code image in an area in which margins of 10 mm from the left of the paper 74 and 275 mm and 2 mm from the top are opened. The QR code image at this time is obtained by encoding the data of the upper left longitude, the upper left latitude, the lower right longitude, and the lower right latitude previously converted in step S123. For example, numerical values such as “1355051019, 347056606, 1355098019, 347006450” in the degree format are encoded (imaged) with a QR code.

ただし、この実施例では、QRコード画像を作成するために、たとえば、http://www.v
ector.co.jp/soft/win95/writing/se359398.htmlで取得可能なフリーウェアを利用した。
However, in this embodiment, in order to create a QR code image, for example, http: //www.v
Freeware that can be obtained at ector.co.jp/soft/win95/writing/se359398.html was used.

ステップS129およびS131において、コンピュータ12は、メッシュ用の細線画像を生成する。後にユーザがマークを付与する目印として実施例ではメッシュを地図画像76に重ねて印刷するようにしていて、その個数は、縦横(Wx,Wy)個である。ステップS129では、Wx個のメッシュを形成できる本数の縦の細線の画像を生成し、ステップS131では、Wy個のメッシュを形成できる本数の横の細線の画像を生成する。このメッシュの数(Wx,Wy)はメモリ18のデータ記憶領域28の所定のレジスタに設定されている。この実施例では、一例として、ステップS129で縦の細線の画像を、用紙74の左10mmを基点に5mm間隔で、上から11mmの位置から276mmの位置まで39本生成する。ステップS131では、上から11mmを基点に5mm間隔の横の細線の画像を、左から10mmの位置から右200mmの位置まで54本生成する。したがって、この実施例では、合計2014(=38×53)個のメッシュが地図画像上に重畳して形成される。   In steps S129 and S131, the computer 12 generates a fine line image for mesh. In the embodiment, the mesh is printed on the map image 76 as a mark for the user to add a mark later, and the number is vertical and horizontal (Wx, Wy). In step S129, the number of vertical thin line images capable of forming Wx meshes is generated, and in step S131, the number of horizontal thin line images capable of forming Wy meshes is generated. The number of meshes (Wx, Wy) is set in a predetermined register in the data storage area 28 of the memory 18. In this embodiment, as an example, in step S129, 39 vertical thin line images are generated at intervals of 5 mm from the left 10 mm of the paper 74 from the position of 11 mm from the top to the position of 276 mm. In step S131, 54 horizontal thin line images with an interval of 5 mm from the top 11 mm are generated from the position 10 mm from the left to the position 200 mm to the right. Accordingly, in this embodiment, a total of 2014 (= 38 × 53) meshes are formed on the map image.

これらの生成画像はたとえばビットマップ印刷データとしてデータ記憶領域28に一時記憶され、次のステップS133において実行される印刷ステップで、図15に示すように、用紙74上に印刷される。   These generated images are temporarily stored in the data storage area 28 as bitmap print data, for example, and are printed on the paper 74 as shown in FIG. 15 in the next printing step executed in step S133.

ただし、この実施例では、上記の印刷処理およびプレビュー処理に関しては、地図操作プログラムの他にDelphiのフリーウェア(http://mrxray.on.coocan.jp/)にあるプレビュー制御およびプリンタ設定コンポーネントを、一部のソースコードを修正しながら使用している。   However, in this embodiment, with respect to the above printing process and preview process, in addition to the map operation program, the preview control and printer setting component in Delphi's freeware (http://mrxray.on.coocan.jp/) is used. , While modifying some source code.

図15を参照して、用紙74上に、上で例示した縦横印刷長さで地図画像76が印刷されていて、この地図画像76の下方の、上で例示した位置にQRコード78が、QRコード設定操作データ設定した色で、印刷される。なお、地図画像76は、図15に示すモノクロ画像であっても、カラー画像であってもよい。ただし、カラー画像の場合には、マークの識別を確実にするために、ユーザが後に記入することになるマーク102の色と明瞭に識別可能な色の単色で印刷されることが望ましい。   Referring to FIG. 15, a map image 76 is printed on a sheet 74 with the vertical and horizontal print lengths exemplified above, and a QR code 78 is placed at a position exemplified above below the map image 76. Code setting operation data Printed in the set color. The map image 76 may be a monochrome image shown in FIG. 15 or a color image. However, in the case of a color image, in order to ensure the identification of the mark, it is desirable that the color is printed in a single color that can be clearly distinguished from the color of the mark 102 to be entered later by the user.

地図画像76に重畳されて縦横においてそれぞれ一定間隔の細線が多数印刷されているのが図15に示されているが、これら縦横の細線によって、多数の(実施例では2014個の)メッシュ80が形成される。これらのメッシュ80は、この地図中にマークを記入する際の位置指定の機能を果たす。つまり、これらのメッシュのいずれかにマークを記入することによって、後述の読取プログラムの実行において、そのマークを記した場所を経緯度数値で特定する。   FIG. 15 shows a large number of fine lines printed at regular intervals in the vertical and horizontal directions superimposed on the map image 76, and a large number (in the embodiment, 2014) of meshes 80 are formed by these vertical and horizontal thin lines. It is formed. These meshes 80 perform a function of specifying a position when a mark is written in this map. That is, by writing a mark on any of these meshes, the location where the mark is written is specified by the longitude and latitude values in the execution of the reading program described later.

なお、図15に示す実施例では、地図画像76の下方で、QRコード78の右方に、地図番号81が印刷され、さらに右に、調査IDを記入するID記入欄82が印刷されている。地図番号81は地図画像を個別に識別するための番号であり、ユーザによって任意に設定可能である。特に、QRコードが読めない場合などにおいて、地図番号を、地図の切り出し位置を確定させるための情報として印刷しておくことも考えられる。また、この実施例の地図が被災調査に使われることを想定しているため、その調査票(図示せず)に予め設定しているIDを記入欄82に記入することになる。たとえば、地図と調査票が別々の用紙に印刷されている場合に、調査票(図示せず)に印刷されているQRコードの内容を手書きで書くことなどを想定している。   In the embodiment shown in FIG. 15, a map number 81 is printed on the right side of the QR code 78 below the map image 76, and an ID entry field 82 for entering the survey ID is printed on the right. . The map number 81 is a number for individually identifying the map image, and can be arbitrarily set by the user. In particular, when the QR code cannot be read, the map number may be printed as information for determining the map cutout position. In addition, since the map of this embodiment is assumed to be used for the damage investigation, an ID set in advance in the investigation form (not shown) is entered in the entry column 82. For example, when the map and the survey form are printed on different sheets, it is assumed that the content of the QR code printed on the survey form (not shown) is written by hand.

なお、上で説明した実施例では、地図データベース20から読み出した地図画像データに従って地図操作GUI32の地図表示領域36に地図画像を表示し、その左上角を基準点54として印刷枠を設定する設定方法を説明した。しかしながら、この実施例では、住所表記に基づいて所望の地図データを検索することもできるので、次に住所検索の方法について説明する。   In the embodiment described above, a setting method for displaying a map image in the map display area 36 of the map operation GUI 32 according to the map image data read from the map database 20 and setting a print frame with the upper left corner as a reference point 54. Explained. However, in this embodiment, since desired map data can be searched based on the address notation, the address searching method will be described next.

住所検索をする場合には、図示していないが、たとえば図3の印刷枠指定処理(ステップS15,S17)を住所検索処理に変更すればよい。   When performing an address search, although not shown, for example, the print frame designation process (steps S15 and S17) of FIG. 3 may be changed to an address search process.

たとえば、図4の地図操作GUI32の操作設定領域34に設定されている住所検索/大字枠ボタン84を操作することによって、ユーザは住所検索による印刷枠、すなわち大字(おおあざ)枠の設定を選択できる。したがって、たとえば、ステップS15でコンピュータ12がユーザによるこのボタン84の操作があったかどうかを検出し、ボタン84の操作を検出したことに応じて、ステップS15で“YES”を判断し、図16に示す住所検索GUI86を表示してステップS17において住所検索による印刷枠設定処理を実行すればよい。   For example, by operating the address search / large letter frame button 84 set in the operation setting area 34 of the map operation GUI 32 in FIG. 4, the user selects setting of a print frame by address search, that is, a large letter (blue) frame. it can. Therefore, for example, in step S15, the computer 12 detects whether or not the user has operated the button 84, and in response to detecting the operation of the button 84, “YES” is determined in step S15, as shown in FIG. The address search GUI 86 may be displayed and a print frame setting process by address search may be executed in step S17.

ユーザが住所検索/大字枠ボタン84を操作することによって、住所検索での印刷枠設定操作が選択されたとき、図16に示すように、地図操作GUI32の地図表示領域36に重畳的に、住所検索GUI86が表示される。この住所検索GUI86は地図操作プログラム261に含まれるコンポーネントであり、ここではこれをそのまま利用する。住所検索GUI86には、都道府県を選択または指定するための都道府県欄88、市区町村を選択または指定するための市区町村欄90を含む。大字(おおあざ)を指定するための大字欄92および字(字丁目)を指定するための字丁目欄94では、市区町村欄90に表示された市区町村内で選択できる大字および字丁目がプルダウンメニューの形式で表示されるので、ユーザはそれらを任意に指定する。   When the user operates the address search / larger frame button 84 to select a print frame setting operation for address search, the address is superimposed on the map display area 36 of the map operation GUI 32 as shown in FIG. A search GUI 86 is displayed. The address search GUI 86 is a component included in the map operation program 261, and is used here as it is. The address search GUI 86 includes a prefecture column 88 for selecting or specifying a prefecture, and a city column 90 for selecting or specifying a city. In the large character field 92 for designating a large character (Ozama) and the character character column 94 for designating a character (character chome), a large character and a character chome that can be selected in the municipality displayed in the municipality field 90 are displayed. Are displayed in the form of a pull-down menu, the user designates them arbitrarily.

図17の最初のステップS141では、コンピュータ12は、地図データベース20に地図データが格納されていて、それゆえに選択可能な都道府県名のデータを地図データベース20から抽出する。続くステップS143で、その都道府県名を都道府県欄88に一覧表示する。つまり、そのとき利用可能な地図データの都道府県名の一覧を取得して表示する。この実施例では、地図操作プログラム261を利用して、地図画像データの属性データも含まれている地図データベース20から取得することができる。   In the first step S141 in FIG. 17, the computer 12 stores map data in the map database 20, and therefore extracts data of selectable prefecture names from the map database 20. In subsequent step S143, the prefecture name is displayed in a list in the prefecture column 88. That is, a list of prefecture names of map data available at that time is acquired and displayed. In this embodiment, the map operation program 261 can be used to acquire the map image data from the map database 20 including the attribute data.

ただし、地図データベース20内にある地図データが1つの都道府県だけの場合該当の都道府県が自動的に都道府県欄78に表示される。   However, when the map data in the map database 20 is only one prefecture, the corresponding prefecture is automatically displayed in the prefecture column 78.

そして、ユーザは、その都道府県一覧から所望の都道府県名をクリックすることによって選択または指定するが、コンピュータ12は、ユーザが都道府県を選択したことをステップS145で検知し、その後、ステップS147およびS149を実行して、地図データベース20に地図データが格納されている、選択可能な市区町村名のデータを抽出して市区町村欄90に一覧表示する。ただし、地図データベース20内にある地図データが1つの市区町村だけの場合、該当の市区町村が自動的に市区町村欄90に表示される。   Then, the user selects or designates the desired prefecture by clicking on the name of the prefecture from the list of prefectures, but the computer 12 detects in step S145 that the user has selected the prefecture, and thereafter, step S147 and Execute S149 to extract selectable city names whose map data is stored in the map database 20 and list them in the city column 90. However, when the map data in the map database 20 is only one municipality, the corresponding municipality is automatically displayed in the municipality column 90.

ユーザは、その市区町村一覧から所望の市区町村名をクリックすることによって市区町村を選択または指定する。そのことがステップS151で検知される。したがって、コンピュータ12は、続くステップS153およびS155を実行して、指定した市区町村の大字名を抽出して大字欄92に一覧表示する。   The user selects or designates a city by clicking a desired city name from the list of cities. This is detected in step S151. Therefore, the computer 12 executes the subsequent steps S153 and S155, extracts the large name of the designated city, and displays it in the large character column 92 as a list.

ユーザによって1つの大字が指定されると、そのことがステップS157で検知される。コンピュータ12は、続くステップS159において、指定された大字に対する字丁目を抽出し、街区と地番を検索し、字丁目欄84に表示する。   When one large letter is designated by the user, this is detected in step S157. In the subsequent step S 159, the computer 12 extracts a character block for the designated large character, searches for a block and a lot number, and displays it in the character block field 84.

上述のようにしてユーザが所望の大字を指定すると、コンピュータ12は、ステップS161においてその大字に対応する住所ポリゴン(地図画像データ)およびその住所ポリゴンの基準点(たとえば、各頂点)の経緯度データを地図データベース20から抽出し、ステップS163で図18に示す住所ポリゴン96を地図表示領域36に表示するとともに、その住所ポリゴンの基準点の経緯度データをデータ記憶領域28に格納する。   When the user designates a desired large letter as described above, the computer 12 selects the address polygon (map image data) corresponding to the large letter and the longitude and latitude data of the reference point (for example, each vertex) of the address polygon in step S161. Are extracted from the map database 20 and the address polygon 96 shown in FIG. 18 is displayed in the map display area 36 in step S163, and the longitude and latitude data of the reference point of the address polygon is stored in the data storage area 28.

たとえば、大字欄92の大字一覧の選択箇所でユーザがマウス(図示せず)をシングルクリックすると、シングルクリックに応答して、コンピュータ12は、該当する字丁目一覧を地図データベース20から取得して字丁目欄94に一覧表示するが、大字欄92における大字一覧の選択箇所でユーザがマウスをダブルクリックすると、ダブルクリックに応答して、コンピュータ12は、該当する大字の部分の図形情報(地図ポリゴン)96を地図データベースから取得する。この地図ポリゴンの部分に地図の表示を移動させて、地図ポリゴン96の色表示をたとえば青に変更する。   For example, when a user single-clicks a mouse (not shown) at a selected position of the large character list in the large character column 92, in response to the single click, the computer 12 obtains a corresponding character chome list from the map database 20 and reads the character. When the user double-clicks the mouse at a selected position of the large character list in the large character column 92, the computer 12 responds to the double click and the computer 12 displays graphic information (map polygon) of the corresponding large character part. 96 is obtained from the map database. The map display is moved to the map polygon portion, and the color display of the map polygon 96 is changed to blue, for example.

なお、地図データベース20には、都道府県、市区町村、大字および字丁目の住所ポリゴンから構成される行政界ポリゴンデータが含まれている。そして、各住所ポリゴンは、ポリゴンの形状を示す各頂点情報、住所の名称を示す行政名、代表座標などのデータから構成される。たとえば、図18に示される地図ポリゴン96には、地図ポリゴン96の形状を示す各頂点情報、大字の名称を示す行政名、地図ポリゴン96を代表する位置の代表座標などが含まれる。そのため、ステップS161では、地図ポリゴン96の基準点の経緯度データ、つまり各頂点情報を地図データベース20から抽出することができる。   Note that the map database 20 includes administrative boundary polygon data composed of address polygons of prefectures, municipalities, large letters, and alphabets. Each address polygon is constituted by data such as vertex information indicating the shape of the polygon, an administrative name indicating the name of the address, and representative coordinates. For example, the map polygon 96 shown in FIG. 18 includes vertex information indicating the shape of the map polygon 96, an administrative name indicating the name of the capital letter, representative coordinates of a position representing the map polygon 96, and the like. Therefore, in step S161, the longitude and latitude data of the reference point of the map polygon 96, that is, each vertex information can be extracted from the map database 20.

その後、ステップS145で、大字印刷枠の表示処理を実行する。この大字印刷枠表示処理は、詳しくは、図19および図20に示すフロー図に従って実行される。   Thereafter, in step S145, a display process for a large print frame is executed. More specifically, the large print frame display process is executed according to the flowcharts shown in FIGS.

図19の最初のステップS171で、コンピュータ12は、図18の大字ポリゴン96から、図21に示すこのポリゴン96の各頂点情報(X,Y)群を一覧として取得する。ただし、この頂点情報は、地図操作プログラム261の機能によって上述のように住所ポリゴンを読み出す際に同時に読み出され、メモリ18に記憶されるものである。そして、コンピュータ12は、これらの頂点情報に基づいて、図22に示す印刷枠としての四角形98の各角の座標を決定する。四角形98は、大字ポリゴン96を余すところなく包含する必要があるので、大字ポリゴン96の外接の四角形であり、図22に示すように、四角形98の左座標は頂点情報群のX軸の最小値(LX)となり、右座標は頂点情報群のX軸最大値(RX)となり、上座標は頂点情報群のY軸最小値(LY)で与えられ、下座標は頂点情報群のY軸最大値(RY)となる。   In the first step S171 in FIG. 19, the computer 12 obtains a list of vertex information (X, Y) groups of the polygon 96 shown in FIG. 21 from the large polygon 96 in FIG. However, this vertex information is read out simultaneously with reading out the address polygon as described above by the function of the map operation program 261 and stored in the memory 18. Then, the computer 12 determines the coordinates of each corner of the quadrangle 98 as the print frame shown in FIG. 22 based on the vertex information. Since the quadrangle 98 needs to include the large polygon 96, the square is circumscribed by the large polygon 96. As shown in FIG. 22, the left coordinate of the quadrangle 98 is the minimum value of the X axis of the vertex information group. (LX), the right coordinate is the X-axis maximum value (RX) of the vertex information group, the upper coordinate is given by the Y-axis minimum value (LY) of the vertex information group, and the lower coordinate is the Y-axis maximum value of the vertex information group (RY).

頂点情報群のX軸最小値=四角形の左座標(LX)
頂点情報群のX軸最大値=四角形の右座標(RX)
頂点情報群のY軸最小値=四角形の上座標(LY)
頂点情報群のY軸最大値=四角形の下座標(RX)
その後、この四角形98の内部座標における縦の距離AYおよび横の距離AXを先の図11のステップS85と同様にして、ステップS173で、プリンタ設定操作で指定した用紙サイズと縮尺設定部で設定した縮尺に基づいて計算して、データ記憶領域28に保存する。
X-axis minimum value of vertex information group = left coordinate of a rectangle (LX)
X-axis maximum value of vertex information group = Right coordinate of rectangle (RX)
Y-axis minimum value of vertex information group = quadrature upper coordinate (LY)
Maximum Y-axis value of vertex information group = bottom coordinate of rectangle (RX)
Thereafter, the vertical distance AY and the horizontal distance AX in the internal coordinates of the quadrangle 98 are set in step S173 in the paper size and scale setting unit specified in the printer setting operation in the same manner as in step S85 of FIG. Calculation is performed based on the scale and the data is stored in the data storage area 28.

ステップS175において、コンピュータ12は、図22に示す印刷枠の基図としての四角形98を想定し、この四角形98のX軸の距離をWとし、Y軸の距離をHとして数2に従って設定する。
[数2]
W=RX−LX
H=RY−LY
ステップS177において、コンピュータ12は、整数演算を行なって、横方向に必要な枠数NeedXを計算する。つまり、ステップS175で計算した四角形98の横方向距離WをステップS173で計算した横方向距離AXで割り(ステップS177)、ステップS179において、余りW mod AXがあるかどうか判断し、“NO”のときには、その整数演算の商をそのまま横方向必要枠数NeedXとして登録する。ステップS179で“YES”を判断したときには、ステップS181において、必要枠数NeedXをNeedX+1として登録する。
In step S175, the computer 12 assumes a quadrangle 98 as a base of the print frame shown in FIG. 22, and sets the distance of the X axis of the quadrangle 98 as W and the distance of the Y axis as H according to Equation 2.
[Equation 2]
W = RX-LX
H = RY-LY
In step S177, the computer 12 performs an integer operation to calculate the number of frames NeedX required in the horizontal direction. That is, the lateral distance W of the quadrangle 98 calculated in step S175 is divided by the lateral distance AX calculated in step S173 (step S177). In step S179, it is determined whether or not there is a surplus W mod AX. In some cases, the quotient of the integer operation is directly registered as the necessary number of horizontal frames NeedX. If “YES” is determined in the step S179, the necessary frame number NeedX is registered as NeedX + 1 in a step S181.

そして、ステップS183において、コンピュータ12は、同様の整数演算を行なって、縦方向に必要な枠数NeedYを計算する。つまり、ステップS183で、四角形98の縦方向距離Hを縦方向距離AYで割り、ステップS185において、余りH mod AYがあるかどうか判断し、“NO”のときには、その整数演算の商をそのまま縦方向必要枠数NeedYとして登録し、“YES”のときには、ステップS187において、必要枠数NeedYをNeedY+1として登録する。   In step S183, the computer 12 performs the same integer calculation to calculate the frame number NeedY required in the vertical direction. That is, in step S183, the vertical distance H of the quadrangle 98 is divided by the vertical distance AY, and in step S185, it is determined whether or not there is a remainder H mod AY. Registered as the required direction frame number NeedY. If “YES”, in step S187, the required frame number NeedY is registered as NeedY + 1.

ただし、発明者等の実験では、ほとんどの場合余りが存在した。   However, most of the experiments existed in the inventors' experiments.

このようにして、印刷枠の必要枠数NeedXおよびNeedYが計算できるが、続くステップS189において、コンピュータ12は、余白の長さを計算する。テキスト編集でいう「センタリング」と同じ考え方で、選択した大字がちょうど真ん中に位置するように、各印刷枠における余白を調整する。つまり、ここでいう「余白」とは、図23に示すように、大字ポリゴン96の外接四角形98を中心に配置できる、実際の印刷枠100との差分を意味する。   In this way, the necessary frame numbers NeedX and NeedY of the print frame can be calculated. In the subsequent step S189, the computer 12 calculates the length of the margin. With the same idea as “centering” in text editing, the margins in each print frame are adjusted so that the selected large letter is positioned exactly in the middle. In other words, the “margin” here means a difference from the actual printing frame 100 that can be arranged around the circumscribed rectangle 98 of the large polygon 96 as shown in FIG.

まず、必要枚数NeedXおよびNeedYから余白部分の長さは、以下の数3で示す方法で算出できる。
[数3]
X軸方向の余白の内部座標上の距離(YohaX)=(LX+(AX*NeedX))-RX
Y軸方向の余白の内部座標上の距離(YohaY)=(LY+(AY*NeedY))-RY
X軸の余白YohaXについてみると、四角形98のX軸最小座標LXと最大座標RXとの間に各々がX軸長さAXを有する枠数NeedXの印刷枠を配置したときの余白である。Y軸の余白YohaYは、四角形98のY軸最小座標LYと最大座標RYとの間に各々がY軸長さAYを有する枠数NeedYの印刷枠を配置したときの余白である。
First, the length of the margin can be calculated from the required number of sheets NeedX and NeedY by the method shown in the following Expression 3.
[Equation 3]
Distance on the internal coordinates of the margin in the X-axis direction (YohaX) = (LX + (AX * NeedX))-RX
Y-axis margin in internal coordinates (YohaY) = (LY + (AY * NeedY))-RY
The X-axis margin YohaX is a margin when a printing frame having the number of frames NeedX, each having the X-axis length AX, is arranged between the X-axis minimum coordinate LX and the maximum coordinate RX of the quadrangle 98. The Y-axis margin YohaY is a margin when a printing frame having the number of frames NeedY, each having a Y-axis length AY, is arranged between the Y-axis minimum coordinate LY and the maximum coordinate RY of the quadrangle 98.

そして、これらの余白YohaXおよびYohaYの長さをそれぞれ半分にして、マイナス方向(図24における左上方向)に基準点をずらせば、選択した大字96を印刷枠100の中心に配置することができる。余白調整後の新しい基準点は、数4のようにして計算できる。[数4]
新しい基準点X座標(NX)=LX-(YohaX/2)
新しい基準点Y座標(NY)=LY-(YohaY/2)
このようにして、新しい基準点座標(NX,NY)を計算した後、ステップS193において、図25に示す印刷枠100の画像を生成してユーザレイヤに描画(表示)する。この印刷枠100を設定することによって、ユーザが選択した大字の地図が印刷枠100の中に全体としてセンタリングされて、先の図15に示したように、各印刷枠内に印刷され得る。
If the lengths of the margins YohaX and YohaY are halved and the reference point is shifted in the minus direction (upper left direction in FIG. 24), the selected large character 96 can be arranged at the center of the printing frame 100. The new reference point after the margin adjustment can be calculated as shown in Equation 4. [Equation 4]
New reference point X coordinate (NX) = LX- (YohaX / 2)
New reference point Y coordinate (NY) = LY- (YohaY / 2)
After calculating the new reference point coordinates (NX, NY) in this way, in step S193, an image of the print frame 100 shown in FIG. 25 is generated and drawn (displayed) on the user layer. By setting this print frame 100, the large-size map selected by the user is centered as a whole in the print frame 100, and can be printed in each print frame as shown in FIG.

ユーザは、図15に示すように用紙74の上に印刷された地図画像76に重畳印刷された、たとえば2014個のメッシュ80中の任意の1つに手書きでマーキングを行う。つまり、ユーザは、印刷された地図に対して認識させたい位置情報(経緯度)を手書きによるマーク(赤色ペンなど地図印刷色とは違う色で)を付与する。   As shown in FIG. 15, the user performs handwriting marking on any one of, for example, 2014 meshes 80 that are superimposed and printed on a map image 76 printed on a sheet 74. That is, the user gives a handwritten mark (in a color different from the map printing color, such as a red pen) to position information (latitude and longitude) to be recognized with respect to the printed map.

そして、以下に説明する読取処理によって、そのようにマーキングを行った座標とQRコードで示す紙地図の座標から測地系に則した変換を行ない、マークが付与された位置(座標)の経緯度を算出する。つまり、先の地図印刷処理によって印刷した地図に対して、赤などのマークをつけた地図をイメージリーダで読取り、QRコードおよび地図に記されたマークの位置を検出する。そのQRコードに埋め込まれた地図の左上と右下の座標である経緯度に基づいて、マークが付与されたメッシュ80(図15)の位置をGISデータとして利用する経緯度へ変換し、変換結果をCSV形式等のデータとして外部へ出力する。   Then, by the reading process described below, the coordinates according to the marking and the coordinates of the paper map indicated by the QR code are converted in accordance with the geodetic system, and the longitude and latitude of the position (coordinates) to which the mark is given is calculated. calculate. That is, a map with a mark such as red is read by an image reader with respect to the map printed by the previous map printing process, and the QR code and the position of the mark written on the map are detected. Based on the longitude and latitude coordinates of the upper left and lower right coordinates of the map embedded in the QR code, the position of the mesh 80 with the mark (FIG. 15) is converted to the longitude and latitude used as GIS data, and the conversion result Are output to the outside as data in CSV format or the like.

したがって、地図すなわち用紙の読取りに際して、読取るコンピュータにはGISデータベースなどの地図データがなくてもマーク付与位置の経緯度への変換が可能である。つまり、従来のGISデータベースを元に地図データの入力等を行うシステムに対して、この実施例のシステムではデータベースを各コンピュータなどの端末に設定する必要がないという利点がある。   Therefore, when reading a map, that is, a sheet, a mark reading position can be converted into longitude and latitude even if the reading computer does not have map data such as a GIS database. In other words, the system of this embodiment has an advantage that it is not necessary to set the database in a terminal such as each computer, in contrast to the conventional system that inputs map data based on the GIS database.

また、変換された座標データはCSV形式等のテキストファイルやその汎用的な商用データに変換することができ、さらには、利用に際してGISデータベースを必要としないので、変換されたGISデータについてはインタネットで利用できるネットワーク型地図システムも構築できる。   Moreover, the converted coordinate data can be converted into a text file such as CSV format or general-purpose commercial data. Further, since the GIS database is not required for use, the converted GIS data is available on the Internet. A network type map system that can be used can also be constructed.

読取処理の基本動作が図26のフロー図に示されるが、この読取処理のために、まず、ユーザは図27のように地図画像76およびQRコード78が印刷された用紙74をスキャナ24(図1)の読取り位置にセットする。その地図画像中に赤などのマーク102がどれか1つのメッシュの中に記されていることが前提である。   The basic operation of the reading process is shown in the flow chart of FIG. 26. For this reading process, first, as shown in FIG. 27, the user loads the paper 74 on which the map image 76 and the QR code 78 are printed on the scanner 24 (FIG. Set to the reading position of 1). It is assumed that a mark 102 such as red is written in any one mesh in the map image.

図26の最初のステップS201では、図28に示す読取GUI104をモニタ16(図1)に表示する。この読取GUI104は、右側の真ん中やや下部に表示される、取込ボタン106を含む。この取込ボタン106は、スキャナ24を起動して読取り位置にセットされている用紙74のスキャンを開始させるためのボタンである。読取GUI104の左半分はイメージ表示領域108であり、このイメージ表示領域108には、スキャナ24で読取ったイメージ(用紙74上の地図画像やQRコードなどの)をそのまま表示するための領域である。   In the first step S201 in FIG. 26, the reading GUI 104 shown in FIG. 28 is displayed on the monitor 16 (FIG. 1). The reading GUI 104 includes an acquisition button 106 displayed in the middle of the right side. The take-in button 106 is a button for activating the scanner 24 and starting scanning of the paper 74 set at the reading position. The left half of the reading GUI 104 is an image display area 108. This image display area 108 is an area for directly displaying an image read by the scanner 24 (such as a map image or QR code on the paper 74).

読取GUI104の右側上部にはQRコードデータ表示領域110が設けられ、このQRコードデータ表示領域110には、左側の上下2つの表示部によって、QRコードに埋め込まれた、地図の左上角の経緯度の数値が表示され、右側の上下2つの表示部によって、地図の右下角の経緯度の数値が表示される。   A QR code data display area 110 is provided on the upper right side of the reading GUI 104. In the QR code data display area 110, the latitude and longitude of the upper left corner of the map embedded in the QR code by two upper and lower display units. The numerical value of the longitude and latitude at the lower right corner of the map is displayed by the upper and lower two display units.

そのQRコードデータ表示領域110の下方には、地図番号表示部112および調査番号表示部114が形成される。地図番号表示部112は、現在読取っている地図に付与された固有番号を表示する。調査番号は、調査票に手書きで付与された番号であり、表示部114にはスキャナ24すなわちコンピュータ12で読み取ったその番号が表示される。   Below the QR code data display area 110, a map number display unit 112 and a survey number display unit 114 are formed. The map number display unit 112 displays a unique number assigned to the currently read map. The survey number is a number assigned to the survey form by hand, and the number read by the scanner 24, that is, the computer 12 is displayed on the display unit 114.

調査番号表示部114と前述の読取ボタン104との間に、座標位置表示部116が形成される。この座標位置表示部116は、スキャナで読取った、ユーザが赤色ペンでマーク102(図27)を付与したメッシュの座標位置を示す数値を表示する。   A coordinate position display unit 116 is formed between the survey number display unit 114 and the reading button 104 described above. The coordinate position display unit 116 displays a numerical value indicating the coordinate position of the mesh read by the scanner and provided with the mark 102 (FIG. 27) by the user with the red pen.

用紙74をスキャナ24にセットして、ステップS201でこのような読取GUI104を表示した後、コンピュータ12は、ステップS203において、読取GUI104に形成されている取込ボタン106がユーザによって操作されたかどうか判断する。そして、このステップS203で“YES”を判断すると、続くステップS205でスキャナ24を作動させて1枚の用紙をスキャンし、それによって取得したイメージを読取GUI104のイメージ表示領域108に表示する。ただし、このイメージ表示領域108に表示したイメージは、図26に示す処理が終了するまで、メモリ18のデータ記憶領域28(図2)に設定されているイメージバッファ(図示せず)に一時的に保存される(ステップS207)。また、イメージ表示領域108に表示したイメージは、ユーザが拡大/縮尺
ボタン(図示せず)を操作することによって、自由に拡大または縮小表示することができる。
After setting the paper 74 on the scanner 24 and displaying such a reading GUI 104 in step S201, the computer 12 determines in step S203 whether the take-in button 106 formed on the reading GUI 104 has been operated by the user. To do. If “YES” is determined in step S 203, the scanner 24 is operated in a subsequent step S 205 to scan one sheet, and an image acquired thereby is displayed in the image display area 108 of the reading GUI 104. However, the image displayed in the image display area 108 is temporarily stored in an image buffer (not shown) set in the data storage area 28 (FIG. 2) of the memory 18 until the processing shown in FIG. Saved (step S207). The image displayed in the image display area 108 can be freely enlarged or reduced by the user operating an enlargement / reduction button (not shown).

続いて、コンピュータ12はステップS209において、マーク位置認識処理を実行する。マーク位置認識処理は具体的には、図29に示すフロー図を実行することによって達成される。   Subsequently, in step S209, the computer 12 executes mark position recognition processing. Specifically, the mark position recognition process is achieved by executing the flowchart shown in FIG.

図29の最初のステップS221およびS223を実行して、コンピュータ12は、ユーザが付したマーク102(図27)を認識する。認識できたときはステップS225に進んで、コンピュータ12は図30に示すマーク位置(Rx,Ry)をメモリ18のデータ記憶領域28(図2)のマーク位置レジスタ(図示せず)に保存する。“NO”の場合、そのマーク位置レジスタにマーク位置として「Null」を書き込む。   The first steps S221 and S223 in FIG. 29 are executed, and the computer 12 recognizes the mark 102 (FIG. 27) attached by the user. If it can be recognized, the process proceeds to step S225, and the computer 12 stores the mark position (Rx, Ry) shown in FIG. 30 in a mark position register (not shown) in the data storage area 28 (FIG. 2) of the memory 18. If “NO”, “Null” is written in the mark position register as the mark position.

なお、マーク位置は、地図画像に重畳印刷されたメッシュの位置を表すもので、経緯度の座標位置ではない。そして、左上のメッシュを(1,1)として縦横の何番目のメッシュかを示す数値をマーク位置(Rx,Ry)として記憶する。   The mark position represents the position of the mesh superimposed and printed on the map image, and is not a coordinate position of longitude and latitude. Then, the upper left mesh is (1, 1), and a numerical value indicating the number of vertical and horizontal meshes is stored as the mark position (Rx, Ry).

図26のステップS211に戻って、コンピュータ12は、図31で詳細に示すQRコード認識処理を実行する。   Returning to step S211 of FIG. 26, the computer 12 executes a QR code recognition process shown in detail in FIG.

図31の最初のステップS231およびS233を実行して、コンピュータ12は、QRコード78(図27)を認識する。認識できたときはステップS235に進んで、コンピュータ12は、測地系に対応した経緯度、つまり図30に示す左上座標(Ax,Ay)と右下座標(Bx,By)をメモリ18のデータ記憶領域28(図2)の経緯度座標レジスタ(図示せず)に保存する。“NO”の場合、その経緯度座標レジスタに経緯度座標として「Null」を書き込む。   The computer 12 recognizes the QR code 78 (FIG. 27) by executing the first steps S231 and S233 of FIG. If it can be recognized, the process proceeds to step S235, and the computer 12 stores the longitude and latitude corresponding to the geodetic system, that is, the upper left coordinates (Ax, Ay) and lower right coordinates (Bx, By) shown in FIG. It is stored in a longitude / latitude coordinate register (not shown) in the area 28 (FIG. 2). In the case of “NO”, “Null” is written as the longitude / latitude coordinate in the longitude / latitude coordinate register.

図26の続くステップS213において、コンピュータ12は、先のステップS209およびS211においてともに、エラーがなかったかどうか、つまり2つのステップS209およびS211で「Null」がいずれかのレジスタに書き込まれなかったかどうか判断する。エラーがなかったと判断したら、次のステップS215で、座標変換処理を実行する。座標変換処理は、具体的には、図32で示すフロー図によって達成される。   In step S213 following FIG. 26, the computer 12 determines whether or not there is an error in both steps S209 and S211, that is, whether or not “Null” has been written to any register in the two steps S209 and S211. To do. If it is determined that there is no error, coordinate conversion processing is executed in the next step S215. Specifically, the coordinate conversion process is achieved by the flowchart shown in FIG.

図32の最初のステップS241において、コンピュータ12は、図31のQRコード認識処理で取得した図30に示す左上座標(Ax,Ay)と右下座標(Bx,By)をデータ記憶領域28の経緯度レジスタから読み出す。続いて、メッシュ位置取得手段として機能するステップS243で、図29のマーク位置認識処理で取得した図30のマーク位置(Rx,Ry
)をデータ記憶領域28のマーク位置レジスタから読み出す。
In the first step S241 in FIG. 32, the computer 12 uses the upper left coordinates (Ax, Ay) and lower right coordinates (Bx, By) shown in FIG. 30 acquired in the QR code recognition process in FIG. Read from the register once. Subsequently, in step S243 functioning as a mesh position acquisition unit, the mark position (Rx, Ry) of FIG. 30 acquired by the mark position recognition process of FIG.
) Is read from the mark position register in the data storage area 28.

ステップS245で、コンピュータ12は、地図画像76上に印刷されたメッシュの縦横の数(Wz,Wy)をデータ記憶領域28の所定のレジスタから読み出す。続いて、ステップS247で、数5に従って、ユーザがマークしたメッシュのX座標を次式で計算し、次のステップS249で、そのマーク位置のメッシュのY座標を次式で計算する
たとえば、右下のX座標Bxから左上のX座標Axを引くことによって、地図画像全体のX方向長さが計算でき、そのX方向長さをX方向のメッシュ数Wxで割る((Bx-Ax)÷(Wx))ことによって、1つのメッシュのX方向長さが計算でき、それにマーク位置Rxを掛けると、そのマーク位置のメッシュのX方向の測地系の数値すなわち経度が求まる。その経度を左上の座標Axに加えることによって、マークを付したメッシュの経度となる。
In step S 245, the computer 12 reads out the vertical and horizontal numbers (Wz, Wy) of the mesh printed on the map image 76 from a predetermined register in the data storage area 28. Subsequently, in step S247, the X coordinate of the mesh marked by the user is calculated by the following equation according to Equation 5, and in the next step S249, the Y coordinate of the mesh at the mark position is calculated by the following equation. By subtracting the upper left X coordinate Ax from the X coordinate Bx, the X direction length of the entire map image can be calculated, and the X direction length is divided by the number of meshes Wx in the X direction ((Bx-Ax) ÷ (Wx )), The X-direction length of one mesh can be calculated, and by multiplying it by the mark position Rx, the numerical value of the geodetic system in the X direction of the mesh at that mark position, that is, the longitude can be obtained. By adding the longitude to the upper left coordinate Ax, it becomes the longitude of the marked mesh.

右下のY座標Byから左上のY座標Ayを引くことによって、地図画像全体のY方向長さが計算でき、それをY方向のメッシュ数Wyで割る((By-Ay)÷(Wy))ことによって、1つのメッシュのY方向長さが計算でき、それにマーク位置Ryを掛けると、そのマーク位置のメッシュのY方向の測地系の数値すなわち緯度が求まる。その緯度を左上の座標Ayに加えることによって、マークを付したメッシュの緯度となる。
[数5]
X座標=Ax+((Bx-Ax)÷(Wx))×Rx
Y座標=Ay+((By-Ay)÷(Wy))×(Wy-Ry)
このようにして、ステップS249で、GISデータに対応した経緯度である(X,Y)を確定する。
By subtracting the upper left Y coordinate Ay from the lower right Y coordinate By, the length of the entire map image in the Y direction can be calculated and divided by the number of meshes Wy in the Y direction ((By-Ay) ÷ (Wy)) Thus, the Y-direction length of one mesh can be calculated, and when this is multiplied by the mark position Ry, the numerical value of the geodetic system in the Y-direction of the mesh at that mark position, that is, the latitude is obtained. By adding the latitude to the upper left coordinate Ay, the latitude of the marked mesh is obtained.
[Equation 5]
X coordinate = Ax + ((Bx-Ax) ÷ (Wx)) x Rx
Y coordinate = Ay + ((By-Ay) ÷ (Wy)) x (Wy-Ry)
In this manner, in step S249, (X, Y) that is the longitude and latitude corresponding to the GIS data is determined.

ただし、図26のステップS223で“NO”が判断されたとき、つまり、マーク位置およびQRコードのいずれかの認識に失敗したとき、マーク位置および/またはQRコードに対してエラー値を設定する。そして、このようなエラー値が設定されると、ユーザは、画像認識の結果エラーと判断されたページを呼び出してマーク位置および/またはQRコードの訂正入力を行うことができる。   However, when “NO” is determined in step S223 in FIG. 26, that is, when recognition of either the mark position or the QR code fails, an error value is set for the mark position and / or the QR code. When such an error value is set, the user can call a page that has been determined to be an error as a result of image recognition and perform correction input of the mark position and / or QR code.

なお、図26のステップS215すなわち図32のステップS251で確定した経緯度のデータを1レコードとしてCSVファイルで出力する。   Note that the longitude and latitude data determined in step S215 of FIG. 26, that is, step S251 of FIG. 32, is output as a record as a CSV file.

このようにして、図27に示すようにマーク102を記入した地図用紙74をスキャナ24によって読取ることによって、そのマーク位置をGISデータとして読取ることができる。   In this way, by reading the map paper 74 with the mark 102 written thereon by the scanner 24 as shown in FIG. 27, the mark position can be read as GIS data.

ただし、上述の実施例ではマーク102はどれか1つのメッシュ中に記入できるだけなので、ユーザは地図画像中の1点をマーキングできるに過ぎない。そこで、以下の実施例では、地図画像中において、たとえば図33に示すように、面積を持った地域をポリゴン102aとして指定できるようにする。このように、地図上で領域をポリゴンとして指定できるようにすれば、たとえば災害調査において、被害地域を示すポリゴンと(地図データの)人口レイヤとを組み合わせることによって、被害推定が可能である。また、浸水地域を示すポリゴンと家屋レイヤとを組み合わせることによって、浸水家屋数を推定することができる。   However, since the mark 102 can be written in any one mesh in the above-described embodiment, the user can only mark one point in the map image. Therefore, in the following embodiment, an area having an area can be designated as a polygon 102a in the map image as shown in FIG. 33, for example. Thus, if an area can be designated as a polygon on a map, damage estimation can be performed by combining a polygon indicating a damaged area and a population layer (of map data) in a disaster investigation, for example. Further, the number of flooded houses can be estimated by combining a polygon indicating a flooded area and a house layer.

図33に示すポリゴン102aを取り出して図34に示すが、この図34において、塗りつぶされたメッシュが図解され、外側の濃いメッシュが輪郭を示す。ただし、この図34では、簡単のために、各メッシュの座標は実際の経緯度の座標ではなく、縦38個横53個のメッシュ番号として図解している。なお、ユーザは、このポリゴン102aを記入するとき、先のマーク102のときと同様に、地図画像を印刷している色(たとえば黒)とは明確に区別できる色(たとえば赤)で、ポリゴン102aを塗りつぶすものとする。   The polygon 102a shown in FIG. 33 is taken out and shown in FIG. 34. In this FIG. 34, a filled mesh is illustrated, and an outer dark mesh shows an outline. However, in FIG. 34, for the sake of simplicity, the coordinates of each mesh are illustrated not as coordinates of actual longitude and latitude but as mesh numbers of 38 vertically and 53 horizontally. When the user fills in the polygon 102a, the polygon 102a has a color (for example, red) that can be clearly distinguished from the color (for example, black) on which the map image is printed, as in the case of the previous mark 102. Shall be filled.

図35の読取処理プログラムでは、ユーザがマーク102で1つのメッシュを指定した場合、またはポリゴン102aで複数のメッシュにまたがった領域を指定した場合のいずれにも対処できるようにしている。ただし、マーク102か、ポリゴン102aのどちらか一方しか1枚の印刷地図上に記入することはできないものとする。つまり、1点を指定するか地域または領域を指定するかしかできない。   In the reading processing program of FIG. 35, it is possible to cope with either a case where the user designates one mesh with the mark 102 or a case where an area extending over a plurality of meshes is designated with the polygon 102a. However, it is assumed that only one of the mark 102 and the polygon 102a can be entered on one printed map. That is, it is only possible to specify one point or an area or region.

図35この読取処理のために、まず、ユーザは図27のようにマーク102を記入した地図画像76およびQRコード78が印刷された用紙、または図33のようにポリゴン102aを記入した地図画像76およびQRコード78が印刷された用紙をスキャナ24(図1)の読取り位置にセットする。   35. For this reading process, the user first has the map image 76 with the mark 102 and the QR code 78 printed as shown in FIG. 27, or the map image 76 with the polygon 102a as shown in FIG. The paper on which the QR code 78 is printed is set at the reading position of the scanner 24 (FIG. 1).

そして、ステップS251‐S257では、図26のステップS201‐S207と同様の処理を実行し、読み取ったイメージデータをイメージバッファに一時的に保存する。その後、ステップS211と同様に、図31に詳細に示すQRコード認識処理を実行して、QRコードから、座標計算のための、地図画像の対角2点の座標データを取得する。   In steps S251 to S257, processing similar to that in steps S201 to S207 in FIG. 26 is executed, and the read image data is temporarily stored in the image buffer. After that, as in step S211, the QR code recognition process shown in detail in FIG. 31 is executed, and coordinate data of two diagonal points of the map image for coordinate calculation are acquired from the QR code.

続くステップS261において、コンピュータ12は、イメージバッファに保存されているイメージデータを見て、図27のようなマーク102が記入されているかどうか判断する。もしこのステップS261で“YES”を判断したら、コンピュータ12は、続いて、先に説明した図26のステップS209およびS215と同様の、かつ図29および図32にそれぞれ詳細に図示されている、ステップS263およびS265を実行して、そのマーク102の記入されている経緯度のデータを取得し、ステップS267でその座標データをデータ記憶領域28(図2)に記憶する。   In the subsequent step S261, the computer 12 looks at the image data stored in the image buffer and determines whether or not the mark 102 as shown in FIG. 27 is entered. If "YES" is determined in the step S261, the computer 12 subsequently proceeds to the steps similar to the steps S209 and S215 of FIG. 26 described above and illustrated in detail in FIGS. 29 and 32, respectively. Steps S263 and S265 are executed to obtain the longitude and latitude data in which the mark 102 is written, and in step S267, the coordinate data is stored in the data storage area 28 (FIG. 2).

ステップS261で“NO”を判断したときには、コンピュータ12は、地図画像上には図33に示すようにポリゴン102aが記入されていると判断して、次のステップS269に進む。このステップS269では図34に取り出して示すポリゴン102aの外郭の座標を計算するための処理を実行するが、それの詳細が図36のフロー図に示される。   If “NO” is determined in the step S261, the computer 12 determines that the polygon 102a is entered on the map image as shown in FIG. 33, and proceeds to the next step S269. In this step S269, processing for calculating the coordinates of the outline of the polygon 102a extracted and shown in FIG. 34 is executed, the details of which are shown in the flowchart of FIG.

図36の最初のステップS281では、図35のステップS259で取得した対角の座標に基づいて、先の数3に従って、ポリゴン102aを形成する全てのメッシュの座標を計算してデータ記憶領域28に保存する。   In the first step S281 of FIG. 36, the coordinates of all the meshes forming the polygon 102a are calculated according to the previous equation 3 based on the diagonal coordinates acquired in step S259 of FIG. save.

そして、次のステップS283で、コンピュータ12は、取得した各メッシュの座標においてX方向の最大値および最小値(Xmaz, Xmin)ならびにY方向の最大値および最小値(Ymax,Ymin)を取得する。   In the next step S283, the computer 12 acquires the maximum value and minimum value (Xmaz, Xmin) in the X direction and the maximum value and minimum value (Ymax, Ymin) in the Y direction at the acquired coordinates of each mesh.

続くステップS285において、コンピュータ12は、全てのメッシュの座標においてX方向の最小値から最大値に対するY方向の最大値と最小値を取得する。図34を参照して、まず、全メッシュの内X方向最小値は、「10」であり、最大値は「21」である。X=10にはY方向に3つのメッシュがあり、それの最小値は「9」で、最大値は「11」である。次のX=11には最小値「8」から最大値「12」まで5つのメッシュがY方向に配列されている。このようにして、各X位置に対するY位置の最小値および最大値を求めると、その結果は表1のようになる。   In subsequent step S285, the computer 12 acquires the maximum value and the minimum value in the Y direction with respect to the maximum value from the minimum value in the X direction in the coordinates of all the meshes. Referring to FIG. 34, first, the minimum value in the X direction of all meshes is “10”, and the maximum value is “21”. When X = 10, there are three meshes in the Y direction, the minimum value is “9”, and the maximum value is “11”. In the next X = 11, five meshes are arranged in the Y direction from the minimum value “8” to the maximum value “12”. Thus, when the minimum value and the maximum value of the Y position for each X position are obtained, the result is as shown in Table 1.

Figure 0005580104
Figure 0005580104

次のステップS287において、コンピュータ12は、全てのメッシュの座標においてY方向の最小値から最大値に対するX方向の最大値と最小値を取得する。図34の例では、Y方向最小値は、「5」であり、最大値は「15」である。Y=5の位置にはX方向に3つのメッシュがあり、それの最小値は「15」で、最大値は「17」である。次のY=6の位置には最小値「14」から最大値「18」まで5つのメッシュがX方向に配列されている。このような各Y位置に対するX位置の最小値および最大値を求めると、その結果は表2のようになる。   In the next step S287, the computer 12 acquires the maximum value and the minimum value in the X direction with respect to the maximum value from the minimum value in the Y direction in the coordinates of all the meshes. In the example of FIG. 34, the minimum value in the Y direction is “5”, and the maximum value is “15”. At the position of Y = 5, there are three meshes in the X direction, and the minimum value is “15” and the maximum value is “17”. At the next position of Y = 6, five meshes are arranged in the X direction from the minimum value “14” to the maximum value “18”. When the minimum value and maximum value of the X position with respect to each Y position are obtained, the result is as shown in Table 2.

Figure 0005580104
Figure 0005580104

続くステップS289において、コンピュータ12は上記表1および表2の結果に基づいて、ポリゴン102aの外郭の座標を抽出する。具体的には、取得された全ての座標から重複している座標を排除すると、外郭の座標を抽出できる。たとえば、表1に従うと、外郭を形成するメッシュの座標は、(10,11)、(10,9)、(11,12)、(11,8)、(12,13)、(12,8)…となり、表2に従うと(17,5)、(15,5)、(19,6)、(14,6)…となる。そして、このよう
な外郭メッシュ座標のデータはデータ記憶領域28に保存される。
In subsequent step S289, the computer 12 extracts the coordinates of the outline of the polygon 102a based on the results of Tables 1 and 2 above. Specifically, the coordinates of the outline can be extracted by eliminating the overlapping coordinates from all the acquired coordinates. For example, according to Table 1, the coordinates of the mesh forming the outline are (10,11), (10,9), (11,12), (11,8), (12,13), (12,8) According to Table 2, (17,5), (15,5), (19,6), (14,6) ... Such outline mesh coordinate data is stored in the data storage area 28.

その後、図35のステップS271に進んで、図37に詳細に示すポリゴン計算処理を実行する。   Thereafter, the process proceeds to step S271 in FIG. 35 to execute polygon calculation processing shown in detail in FIG.

図37の最初のステップS291で、コンピュータ12は、ステップS289で取得した外郭座標の中で、(X,Y)が最小値である座標を探す。図34の実施例でいえば、(10,9)である。そして、次のステップS293において、ステップS295で開始点のメッシュを検出するまで、最小座標を開始点として、それより右方向に外郭座標をみつける。最小値座標が(10,9)であるとして、次の右方向外郭座標は(11,8)となり、その次は(12,8)となる。以下同様にして、(10,10)まで検索すると次は、(10,9)の開始点となるので、ステッ
プS295で“YES”が判断され、処理は次のステップS297に進んで、検索した外郭座標で囲まれたポリゴンのポリゴンデータを生成する。上述のようにして、外郭を形成する全てのメッシュの座標が分かるので、その外郭メッシュ座標を先に図32のフロー図で説明した座標変換と同じ手法で、QRコード78を解読した結果の印刷枠の特定の位置の経緯度に基づいて、経緯度データに変換することによって、ポリゴンデータが生成できる。つまり、ポリゴンデータとは、領域を示すポリゴン102aの外郭を形成する全てのメッシュの経緯度データの羅列を含むデータ群である。
In the first step S291 in FIG. 37, the computer 12 searches for the coordinate whose (X, Y) is the minimum value among the outline coordinates acquired in step S289. In the example of FIG. 34, it is (10, 9). Then, in the next step S293, until the start point mesh is detected in step S295, the minimum coordinate is set as the start point, and the outer coordinates are found in the right direction. Assuming that the minimum value coordinate is (10, 9), the next right outline coordinate is (11, 8), and the next is (12, 8). In the same manner, if the search is performed up to (10, 10), the next is the start point of (10, 9), so “YES” is determined in step S295, and the process proceeds to the next step S297 to perform the search. Generate polygon data of a polygon surrounded by outline coordinates. As described above, since the coordinates of all the meshes forming the outline are known, printing of the result of decoding the QR code 78 by using the same method as the coordinate conversion described above with reference to the flowchart of FIG. Polygon data can be generated by converting into longitude and latitude data based on the longitude and latitude of a specific position of the frame. That is, the polygon data is a data group including an enumeration of longitude and latitude data of all meshes forming the outline of the polygon 102a indicating the region.

このようにして生成したポリゴンデータは、他の地図データ(レイヤ)とを組み合わせて処理(たとえば、論理積の態様で)することによって、被災地域を推定したりするのに役立つ。   The polygon data generated in this way is useful for estimating a disaster area by processing (for example, in the form of logical product) in combination with other map data (layer).

図15に例示する地図はたとえば、図38または図39に示す調査票の一部として利用され得る。   The map illustrated in FIG. 15 can be used as part of the survey form shown in FIG. 38 or FIG. 39, for example.

図38の実施例では、震災後の倒壊家屋の状態や位置を調査する用途に使用される調査票118を示し、この調査票118は用紙74上に印刷される。用紙74の左側にはテキスト印刷部120が形成され、そのテキスト印刷部120には図時は省略するが、対象者の氏名や住所などの所定項目の他、倒壊家屋調査に必要な質問事項や、調査した人員を示す調査員名記入欄などが適宜形成される。さらに、このテキスト印刷部120には、調査番号(ID)を手書きで記入するための調査ID記入欄82aが形成される。用紙74の右側に地図印刷部122が形成され、その地図印刷部122に、先に図15で例示した地図画像76やQRコード78などを印刷している。テキスト印刷部120の調査ID記入欄82aは、地図印刷部122に形成された調査ID記入欄82bと対をなし、調査員はこの2つの記入欄82aおよび82bには同じ調査IDを記入する。   The example of FIG. 38 shows a survey form 118 used for the purpose of investigating the state and position of a collapsed house after the earthquake disaster, and this survey form 118 is printed on a sheet 74. A text printing unit 120 is formed on the left side of the paper 74. The text printing unit 120 is omitted in the drawing, but in addition to predetermined items such as the name and address of the subject, questions necessary for the collapsed house survey and Investigator name entry fields indicating the surveyed personnel are appropriately formed. Further, a survey ID entry field 82a for entering a survey number (ID) by handwriting is formed in the text printing unit 120. A map printing unit 122 is formed on the right side of the sheet 74, and the map image 76, the QR code 78, etc. previously illustrated in FIG. The survey ID entry column 82a of the text printing unit 120 is paired with the survey ID entry column 82b formed in the map printing unit 122, and the surveyor enters the same survey ID in the two entry columns 82a and 82b.

なお、この調査票118をプリンタ22(図1)で印刷するためには、テキスト印刷部120に必要なテキストデータを入力して所定の形式に調整する必要があるが、そのような手段としては、MS WordやExcel(両方ともマイクロソフト社の商品名)のような、アプリケーションを利用すればよい。   In order to print the survey form 118 with the printer 22 (FIG. 1), it is necessary to input necessary text data to the text printing unit 120 and adjust it to a predetermined format. You can use an application such as MS Word or Excel (both are Microsoft product names).

また、先に説明したプリンタ設定では用紙サイズとして「A4」を想定していたので、この調査票118を「A3」サイズの用紙に印刷する場合には、印刷方向を変更する以外に地図印刷のための余白などの設定を特に変更する必要はない。地図が印刷されるのはA3用紙の右半分のA4サイズの部分であるからである。その場合、テキスト印刷部118もA4サイズのための印刷設定がそのまま利用できる。   In the printer setting described above, “A4” is assumed as the paper size. Therefore, when the survey form 118 is printed on the “A3” size paper, map printing is performed in addition to changing the printing direction. There is no need to change settings such as margins. This is because the map is printed in the A4 size portion of the right half of the A3 paper. In that case, the text printing unit 118 can also use the print settings for the A4 size as they are.

ただし、調査票118のサイズがA3以外の場合、たとえばA4であるとき、テキスト印刷部120も地図印刷部122も半分のA5サイズになるので、A4サイズで設定した印刷設定をその用紙サイズに合わせる変更が必要になる。   However, when the size of the survey form 118 is other than A3, for example A4, both the text printing unit 120 and the map printing unit 122 have half the A5 size, so the print settings set in the A4 size are adjusted to the paper size. Change is required.

図39に例示する調査票118は、各戸別の被害状況を調査するよりむしろ、或る程度の面積の地域(エリア)の被害状況を調査するのに好適する。したがって、この実施例の調査票118のテキスト印刷部120には、広がりを持つ災害、たとえば土砂災害、火災、あるいは浸水被害などを調査できる項目が印刷されている。地図印刷部122には図38の調査票と同様の地図76やQRコード78などが印刷される。   The survey form 118 illustrated in FIG. 39 is suitable for investigating the damage situation of a certain area (area) rather than investigating the damage situation of each house. Therefore, the text printing unit 120 of the survey form 118 of this embodiment is printed with items capable of investigating a widespread disaster such as a sediment disaster, fire, or flood damage. The map printing unit 122 is printed with a map 76, a QR code 78, and the like similar to the survey form in FIG.

図39の調査票118を用いた場合、被災地域はポリゴン102aとして地図画像76上に記入される。その調査票を読取って、地図データベース20に含まれる地図データの1つである人口レイヤや家屋レイヤと照合することによって、その地域における被災の程度(人的または家屋など)を把握することができる。   When the survey form 118 of FIG. 39 is used, the disaster area is entered on the map image 76 as the polygon 102a. By reading the survey form and collating it with a population layer or a house layer, which is one of the map data included in the map database 20, it is possible to grasp the extent of damage (human or house, etc.) in that area. .

さらに、図38および図39の調査票は単なる例示であり、その他に、発生場所を特定する必要がある犯罪被害調査のための調査票などが考えられる。   Further, the survey forms shown in FIGS. 38 and 39 are merely examples, and other survey forms for investigating crime damage that need to specify the location of occurrence are also conceivable.

これらの調査票118を利用して災害調査などを実施すれば、被災箇所や被災場所を正確に特定できるという利点がある。   If a disaster investigation or the like is performed by using these survey forms 118, there is an advantage that the disaster location and the disaster location can be accurately identified.

図40の実施例では、地図操作GUI32の他の一例を示し、4ページ分の印刷枠52が地図表示領域36に重畳されて表示されている。図40を参照して、地図操作GUI32の操作設定領域34aには、印刷枠指定ボタン48にかえて印刷枠設定ボタン48aが表示される。また、この印刷枠設定ボタン48aが操作されると、印刷枠設定GUI124が地図表示領域36に重畳するように表示される。印刷枠設定GUI124には、縮尺設定部38aおよび枚数設定窓50aなどと共に、印刷枚数設定ボタン126が表示される。そして、この印刷枚数設定ボタン126は、ページ毎に印刷する紙の枚数を設定するためのボタンである。   In the embodiment of FIG. 40, another example of the map operation GUI 32 is shown, and a print frame 52 for four pages is displayed superimposed on the map display area 36. Referring to FIG. 40, a print frame setting button 48a is displayed in the operation setting area 34a of the map operation GUI 32 in place of the print frame specifying button 48. When the print frame setting button 48 a is operated, the print frame setting GUI 124 is displayed so as to be superimposed on the map display area 36. In the print frame setting GUI 124, a print number setting button 126 is displayed together with a scale setting unit 38a and a number setting window 50a. The print number setting button 126 is a button for setting the number of sheets to be printed for each page.

図41は、印刷枚数設定ボタン126が操作されたときに表示される印刷枚数設定GUI128を示す。また、印刷枚数設定GUI128には、図40に示したページの枚数指定部130a−130dが表示される。たとえば、2ページのみを2枚印刷し、残りの1,3,4ページを1枚印刷する場合には、枚数指定部130bに「2」が入力され、他の枚数指定部130a,130b,130cに「1」が入力される。そして、設定ボタン132が操作された後に、印刷枠設定GUI124の印刷実行ボタン70が操作されると、設定されたとおりに各ページが印刷される。つまり、2ページ目のみが2枚印刷され、他のページは1枚ずつ印刷される。また、キャンセルボタン134が操作された場合には、各枚数指定部130に入力された結果は反映されず、印刷実行ボタン70が操作されても、全てのページが1枚ずつ印刷される。   FIG. 41 shows the print number setting GUI 128 displayed when the print number setting button 126 is operated. In addition, the number-of-prints setting GUI 128 displays the page number designation sections 130a to 130d shown in FIG. For example, when printing only two pages and printing the remaining 1, 3, and 4 pages, “2” is input to the number designation portion 130b, and the other number designation portions 130a, 130b, and 130c. “1” is input to. Then, after the setting button 132 is operated, when the print execution button 70 of the print frame setting GUI 124 is operated, each page is printed as set. That is, only the second page is printed twice, and the other pages are printed one by one. When the cancel button 134 is operated, the result input to each number designation unit 130 is not reflected, and even if the print execution button 70 is operated, all pages are printed one by one.

このように、任意のページにおいて、印刷される枚数が個別に指定できるため、ユーザの利便性が向上する。   In this way, the user-friendliness is improved because the number of printed pages can be individually specified on an arbitrary page.

なお、操作設定領域34aには、縮尺設定部38、プリンタ設定ボタン44、移動ボタン53、枚数設定窓50および印刷ボタン72が表示されていないが、これらのボタンは印刷枠設定GUI124に表示される。また、符号によって示していないが、操作設定領域34aには、地図表示領域36に表示されている地図画像そのものを拡大縮小するキーがさらに表示される。さらに、印刷枠設定GUI124には、図38に示す調査票118の左側に差し込まれる画像を指定するボタンや、その差し込み位置を指定するラジオボタン、調査票118に付与される連番の開始位置を指定する入力枠、設定した印刷枠を新たに作成するボタン、設定した印刷枠を削除するボタン、既に記憶された印刷枠の設定を読み出すボタン、既に記憶された印刷枠の設定を削除するボタンなどがさらに表示される。   Although the scale setting unit 38, the printer setting button 44, the move button 53, the copy number setting window 50, and the print button 72 are not displayed in the operation setting area 34a, these buttons are displayed on the print frame setting GUI 124. . Further, although not indicated by reference numerals, a key for enlarging / reducing the map image itself displayed in the map display area 36 is further displayed in the operation setting area 34a. Further, the print frame setting GUI 124 includes a button for designating an image to be inserted on the left side of the survey form 118 shown in FIG. 38, a radio button for designating the insertion position, and a start position of a serial number given to the survey form 118. Input frame to be specified, button to create a new print frame, button to delete the set print frame, button to read the print frame setting already stored, button to delete the print frame setting already stored, etc. Is further displayed.

図42の実施例では、印刷された地図の他の一例を示し、地図画像76aは図15と同様に用紙74上に印刷される。この実施例では、地図画像76aの周囲には、メッシュの座標位置を容易に視認できるようにするために、メッシュの座標の1の位の数値が記述される。さらに、地図画像76aには、左上の角に第1QRコード78aおよび右下の角に第2QRコード78bがそれぞれ、重畳された状態で印刷される。   The example of FIG. 42 shows another example of the printed map, and the map image 76a is printed on the paper 74 as in FIG. In this embodiment, a numerical value at the 1's position of the mesh coordinates is described around the map image 76a so that the coordinate position of the mesh can be easily recognized. Further, the map image 76a is printed with the first QR code 78a superimposed on the upper left corner and the second QR code 78b superimposed on the lower right corner.

図43(A)を参照して、左上角K1において、第1QRコード78aの左上角は、地図画像76aの左上角と一致する。また、図43(B)を参照して、左上角K1の対角である右下角K2において、第2QRコード78bの右下は、地図画像76aの右下と一致する。つまり、地図画像76aの対角の頂点のそれぞれには、第1QRコード78aの角および第2QRコード78bの角が一致するように印刷される。そして、第1QRコード78aおよび第2QRコード78bは、経緯度部136に示される経緯度が符号化されている。つまり、複数のQRコードを地図画像76aに重畳することで、QRコードを復号する処理の信頼性を向上させている。   Referring to FIG. 43A, in the upper left corner K1, the upper left corner of the first QR code 78a matches the upper left corner of the map image 76a. Referring to FIG. 43B, the lower right corner of the second QR code 78b coincides with the lower right corner of the map image 76a at the lower right corner K2, which is the diagonal of the upper left corner K1. That is, printing is performed so that the corners of the first QR code 78a and the corners of the second QR code 78b coincide with each of the diagonal vertices of the map image 76a. In the first QR code 78a and the second QR code 78b, the longitude and latitude indicated by the longitude and latitude portion 136 are encoded. In other words, the reliability of the process of decoding the QR code is improved by superimposing a plurality of QR codes on the map image 76a.

なお、この実施例では、地図画像76aおよび2つのQRコードに対応する画像データを、プリンタ22に内蔵される印刷用メモリ(図示せず)に転送するときに、各画像データの印字位置を一致させることで、2つのQRコードと地図画像76aとの角を一致させている。つまり、2種類の画像データの印字位置を一致させることで、2つのQRコードと地図画像76aとの角が一致する画像を印刷する。また、印刷用メモリとは、印刷される画像データの各画素を、ラスタスキャン方向に対応させて格納するメモリである。つまり、印刷用メモリの読出開始位置が画像データの左上に対応し、読出終了位置が画像データの右下に対応する。したがって、印字位置を一致させる場合には、第1QRコード78aに対応する画像データは、左上の画素が印刷用メモリの読出開始位置と一致するように転送され、第2QRコード78bに対応する画像データは、右下の画素が印刷用メモリの読出終了位置と一致するように転送される。   In this embodiment, when the image data corresponding to the map image 76a and the two QR codes are transferred to a printing memory (not shown) built in the printer 22, the print positions of the image data are matched. By doing so, the corners of the two QR codes and the map image 76a are matched. In other words, by matching the print positions of the two types of image data, an image in which the corners of the two QR codes and the map image 76a match is printed. The printing memory is a memory that stores each pixel of image data to be printed in correspondence with the raster scan direction. That is, the reading start position of the printing memory corresponds to the upper left of the image data, and the reading end position corresponds to the lower right of the image data. Accordingly, when the printing positions are matched, the image data corresponding to the first QR code 78a is transferred so that the upper left pixel matches the reading start position of the printing memory, and the image data corresponding to the second QR code 78b. Is transferred so that the lower right pixel coincides with the reading end position of the printing memory.

このように、レイヤを多用せずに2種類の画像データを重畳させて印刷することで、メモリ18の使用率を抑えることができ、コンピュータ12の処理速度の低下を防止することができる。特に、大量に地図を印刷する場合には、上記効果が発揮される。   In this way, by printing two types of image data superimposed without using many layers, the usage rate of the memory 18 can be suppressed, and a decrease in the processing speed of the computer 12 can be prevented. In particular, when printing a large amount of maps, the above effects are exhibited.

また、大容量のメモリ18を用いることで、レイヤを利用して、2つのQRコードと地図画像76aとの角を一致させてもよい。この場合には、大きさが同じ2つのレイヤを設定し、背面のレイヤに地図画像を描画し、前面のレイヤに2つのQRコードを描画する。そして、前面のレイヤにおいて第1QRコード78aの角を左上(原点)に一致させ、前面のレイヤにおいて第2QRコード78bの角を右下に一致させればよい。さらに、2つのレイヤに基づいて、印刷用の画像データを作成し、その画像データを印刷用メモリ(図示せず)に転送することで、2つのQRコードと地図画像76aとの角が一致する画像を印刷することができる。   Further, by using the large-capacity memory 18, the corners of the two QR codes and the map image 76a may be matched using a layer. In this case, two layers having the same size are set, a map image is drawn on the back layer, and two QR codes are drawn on the front layer. Then, the corner of the first QR code 78a may coincide with the upper left (origin) in the front layer, and the corner of the second QR code 78b may coincide with the lower right in the front layer. Furthermore, image data for printing is created based on the two layers, and the image data is transferred to a printing memory (not shown) so that the corners of the two QR codes coincide with the map image 76a. Images can be printed.

さらに、この実施例では、QRコードを復号する際に、QRコードの四隅のピクセル値を個別に得ることができる。ピクセル値とは、スキャナ24などでスキャンされた画像における1ピクセル(pixels)毎の位置を示す値である。たとえば、スキャナ24の読み取り解像度を300dpiに設定してA4サイズの用紙74をスキャンすると、用紙74に対応する画像の全ピクセル数は「2480pixels×3508pixels」となる。このとき、図43(A)における用紙74の左上角Poを原点(0,0)とすれば、左上角K1のピクセル値は(113,86)となり、右下角K2のピクセル値は(2348,3151)となる。   Furthermore, in this embodiment, when decoding the QR code, pixel values at the four corners of the QR code can be obtained individually. The pixel value is a value indicating a position for each pixel in an image scanned by the scanner 24 or the like. For example, when the scanning resolution of the scanner 24 is set to 300 dpi and an A4 size paper 74 is scanned, the total number of pixels of the image corresponding to the paper 74 is “2480 pixels × 3508 pixels”. At this time, if the upper left corner Po of the paper 74 in FIG. 43A is the origin (0, 0), the pixel value of the upper left corner K1 is (113, 86), and the pixel value of the lower right corner K2 is (2348, 3151).

ただし、この実施例の読取プログラム263は、有限会社Psytecが提供する「QR Code Decode Library(http://www.psytec.co.jp/product/03/)」をライブラリとして含んでおり、QRコードの四隅のピクセル値を個別に取得する処理に関しては、そのライブラリが利用されている。   However, the reading program 263 of this embodiment includes a “QR Code Decode Library (http://www.psytec.co.jp/product/03/)” provided by Psytec Co., Ltd. as a library. The library is used for the processing of individually acquiring the pixel values of the four corners.

ここで、この実施例では、左上角K1および右下角K2のピクセル値と、左上角K1および右下角K2に対応する経緯度とから、地図画像76a内の詳細な経緯度を求めることが可能になる。   Here, in this embodiment, the detailed longitude and latitude in the map image 76a can be obtained from the pixel values of the upper left corner K1 and the lower right corner K2 and the longitude and latitude corresponding to the upper left corner K1 and the lower right corner K2. Become.

たとえば、ユーザは、先の実施例と同様、用紙74の上に印刷された地図画像76aにマーキングを行う。つまり、ユーザは、印刷された地図に対して認識させたい経緯度を、手書きによるマーク102a(図45)によって付与することができる。この場合、以下に説明する選択処理によって、マーク102aのピクセル値とQRコードで示す紙地図画像のピクセル値から測地系に則した変換を行ない、マーク102aが付与されたピクセル値(座標)の経緯度を算出する。つまり、図42に示す地図に対して、赤などのマークをつけた地図をイメージリーダで読取り、QRコードおよび地図に記されたマークのピクセル値を検出する。そのQRコードに埋め込まれた地図の左上と右下の座標である経緯度に基づいて、マーク102aに対応するピクセル値をGISデータとして利用する経緯度へ変換し、変換結果をCSV形式等のデータとして外部へ出力する。   For example, the user marks the map image 76a printed on the paper 74 as in the previous embodiment. That is, the user can give the longitude and latitude to be recognized with respect to the printed map by the handwritten mark 102a (FIG. 45). In this case, the selection process described below performs conversion according to the geodetic system from the pixel value of the mark 102a and the pixel value of the paper map image indicated by the QR code, and the process of the pixel value (coordinates) to which the mark 102a is assigned. Calculate the degree. That is, for the map shown in FIG. 42, a map with a mark such as red is read by an image reader, and the QR code and the pixel value of the mark written on the map are detected. Based on the longitude and latitude coordinates of the upper left and lower right coordinates of the map embedded in the QR code, the pixel value corresponding to the mark 102a is converted to the longitude and latitude used as GIS data, and the conversion result is data in CSV format or the like. Output to the outside.

したがって、先の実施例と同様に、地図の読取りに際して、読み取るコンピュータにはGISデータベースなどの地図データがなくてもマーク付与位置の経緯度への変換ができるようになる。   Therefore, as in the previous embodiment, when reading a map, the reading position can be converted to the longitude and latitude even if the reading computer does not have map data such as a GIS database.

読取処理の基本動作が図44のフロー図に示される。図44の最初ステップ301では、図45に示す読取GUI138をモニタ16(図1)に表示する。この読取GUI138は、左側にイメージ表示領域142であり、このイメージ表示領域142には、読み取られた画像データがそのまま表示される。ここでは、図46に示す用紙74がスキャナ24によって読み取られたイメージ(用紙74上の地図画像やQRコードなどの)がそのまま表示されている。なお、以下の説明では、選択された画像データ中に赤などのマーク102aが記されていることが前提である。   The basic operation of the reading process is shown in the flowchart of FIG. 44, the reading GUI 138 shown in FIG. 45 is displayed on the monitor 16 (FIG. 1). The reading GUI 138 is an image display area 142 on the left side, and the read image data is displayed as it is in the image display area 142. Here, an image (such as a map image or QR code on the paper 74) obtained by reading the paper 74 shown in FIG. 46 by the scanner 24 is displayed as it is. In the following description, it is assumed that a mark 102a such as red is written in the selected image data.

イメージ表示領域142の上側には選択ボタン140が形成される。選択ボタン140は、メモリ18のデータ記憶エリア28に記憶されている画像データを、図示しないGUIによって選択するためのボタンである。また、選択ボタン140の右側にはコード解析ボタン144が形成され、このコード解析ボタン144が操作されると、画像データに含まれるQRコードの全体数が、上部のやや中央付近の表示部146に表示される。また、第1QRコード78aおよび第2QRコード78bに埋め込まれた経緯度の数値が、表示部146の下側に形成された解析結果表示部148に表示される。さらに、解析結果表示部148の下側に形成された経緯度表示部150には、左上経緯度および右下経緯度の数値が表示される。   A selection button 140 is formed above the image display area 142. The selection button 140 is a button for selecting image data stored in the data storage area 28 of the memory 18 using a GUI (not shown). In addition, a code analysis button 144 is formed on the right side of the selection button 140. When the code analysis button 144 is operated, the total number of QR codes included in the image data is displayed on the display unit 146 near the upper center. Is displayed. The longitude and latitude values embedded in the first QR code 78a and the second QR code 78b are displayed on the analysis result display unit 148 formed on the lower side of the display unit 146. Furthermore, numerical values of the upper left longitude and the lower right longitude are displayed on the longitude and latitude display portion 150 formed below the analysis result display portion 148.

また、経緯度表示部150の下側には基準点表示部152が形成され、ここには左上角K1のピクセル値および右下角K2のピクセル値がそれぞれ表示される。さらに、解析結果表示部148の上側に形成される分割数表示部154には、地図画像76aと対応する画像データのX(縦)軸およびY(横)軸のピクセル数が表示される。   In addition, a reference point display unit 152 is formed below the longitude and latitude display unit 150, and a pixel value at the upper left corner K1 and a pixel value at the lower right corner K2 are displayed here. Furthermore, the division number display unit 154 formed on the upper side of the analysis result display unit 148 displays the number of pixels on the X (vertical) axis and Y (horizontal) axis of the image data corresponding to the map image 76a.

さらに、基準点表示部152の下側には、ピクセル値表示部156および位置座標表示部158が形成される。ピクセル値表示部156はマーク102a(図46)に対応するピクセル値を示す数値を表示し、位置座標表示部158はマーク102aが示す経緯度を示す数値を表示する。   Further, a pixel value display unit 156 and a position coordinate display unit 158 are formed below the reference point display unit 152. The pixel value display unit 156 displays a numerical value indicating the pixel value corresponding to the mark 102a (FIG. 46), and the position coordinate display unit 158 displays a numerical value indicating the longitude and latitude indicated by the mark 102a.

なお、ピクセル値表示部156および位置座標表示部158の下側には、入力部160およびMapボタン162が形成される。ユーザは、入力部160に対して位置座標表示部158に表示された経緯度を示す数値を入力し、その右側に形成されたMapボタン162を操作することで、ネットワークを介してディジタル地図をモニタ16に表示することができる。つまり、Mapボタン162が操作されると、コンピュータ12はネットワークを利用したディジタル地図提供サービスのサイト(たとえば、Google(登録商標)マップなど)にアクセスし、そのサイトが提供するディジタル地図をモニタ16に表示する。   Note that an input unit 160 and a Map button 162 are formed below the pixel value display unit 156 and the position coordinate display unit 158. The user inputs a numerical value indicating the longitude and latitude displayed on the position coordinate display unit 158 to the input unit 160, and operates the Map button 162 formed on the right side thereof, thereby monitoring the digital map via the network. 16 can be displayed. That is, when the Map button 162 is operated, the computer 12 accesses a digital map providing service site (for example, Google (registered trademark) map) using the network, and the digital map provided by the site is displayed on the monitor 16. indicate.

図46に示す用紙74をスキャナ24にセットして、ステップS301でこのような読取GUI138を表示した後、コンピュータ12は、ステップS303において、ユーザによってイメージの取込み操作がされたかどうかを判断する。そして、ステップS303で“YES”を判断すると、続くステップS305でスキャナ24を動作させて1枚の用紙をスキャンし、ステップS307で、取得したイメージをメモリ18のデータ記憶領域28(図2)に設定されているイメージバッファ(図示せず)に一時的に保存し、さらに読取GUI138のイメージ表示領域142に保存したイメージを表示する。また、イメージ表示領域142に表示したイメージは、ユーザが拡大/縮尺ボタン(図示せず)を操作することによって、自由に拡大または縮小表示することができる。   46 is set in the scanner 24 and such a reading GUI 138 is displayed in step S301, the computer 12 determines in step S303 whether or not an image capturing operation has been performed by the user. If “YES” is determined in the step S303, the scanner 24 is operated in a subsequent step S305 to scan one sheet, and the acquired image is stored in the data storage area 28 (FIG. 2) of the memory 18 in a step S307. The image is temporarily saved in a set image buffer (not shown), and the saved image is displayed in the image display area 142 of the reading GUI 138. Further, the image displayed in the image display area 142 can be freely enlarged or reduced by the user operating an enlargement / reduction button (not shown).

続いて、コンピュータ12はステップS309において、マーク位置認識処理を実行する。マーク位置認識処理は具体的には、図47に示すフロー図を実行することによって達成される。   Subsequently, in step S309, the computer 12 executes mark position recognition processing. Specifically, the mark position recognition process is achieved by executing the flowchart shown in FIG.

図47の最初のステップS321およびS323を実行して、コンピュータ12は、ユーザが付したマーク102a(図46)を認識する。認識できたときはステップS325に進んで、コンピュータ12は図48に示すマークのピクセル値(px3,py3)をメモリ18のデータ記憶領域28(図2)のマークピクセル値レジスタ(図示せず)に保存する。ステップS223で“NO”であれば、ステップS327でそのマークピクセル値レジスタにピクセル値として「null」を書き込む。   47 is executed, the computer 12 recognizes the mark 102a (FIG. 46) attached by the user. If it can be recognized, the process proceeds to step S325, and the computer 12 stores the mark pixel values (px3, py3) shown in FIG. 48 in a mark pixel value register (not shown) in the data storage area 28 (FIG. 2) of the memory 18. save. If “NO” in the step S223, “null” is written as a pixel value in the mark pixel value register in a step S327.

なお、マークのピクセル値は、地図画像76aにおけるピクセルの位置を表すもので、経緯度の座標位置ではない。そして、左上角K1(図44)をピクセル値を原点Poとして、縦横の何番目のピクセルかを示す数値を(px3,py3)として記憶する。また、この実施例では、マーク102aのピクセル値はバツ印の交点と対応する。   Note that the pixel value of the mark represents the position of the pixel in the map image 76a, not the coordinate position of longitude and latitude. The upper left corner K1 (FIG. 44) is stored as a pixel value (px3, py3) with the pixel value as the origin Po and the number of pixels in the vertical and horizontal directions. In this embodiment, the pixel value of the mark 102a corresponds to the cross point of the cross mark.

図44のステップS311に戻って、コンピュータ12は、図49で詳細に示すQRコード認識処理を実行する。   Returning to step S311 of FIG. 44, the computer 12 executes QR code recognition processing shown in detail in FIG.

図49の最初のステップS331およびS333を実行して、コンピュータ12は、第1QRコード78a(図46)および第2QRコード78bを認識する。認識できたときはステップS335に進んで、測地系に対応した経緯度、つまり図48に示す左上座標(Lx1,Ly1)と右下座標(Lx2,Ly2)をメモリ18のデータ記憶領域28(図2)の経緯度座標レジスタ(図示せず)に保存する。さらに、ステップS337およびS339では、左上角K1の座標ピクセル値(px1,py1)と右下角K2のピクセル値(px2,py2)を、メモリ18のデータ記憶領域28(図2)のピクセル値レジスタ(図示せず)に保存する。また、ステップS333で“NO”であれば、ステップS341で、経緯度座標レジスタおよびピクセル値レジスタに、経緯度およびピクセル値として「null」を書き込む。   The computer 12 recognizes the first QR code 78a (FIG. 46) and the second QR code 78b by executing the first steps S331 and S333 of FIG. If it can be recognized, the process proceeds to step S335, and the longitude and latitude corresponding to the geodetic system, that is, the upper left coordinates (Lx1, Ly1) and lower right coordinates (Lx2, Ly2) shown in FIG. It is stored in the longitude and latitude coordinate register (not shown) of 2). Further, in steps S337 and S339, the coordinate pixel value (px1, py1) of the upper left corner K1 and the pixel value (px2, py2) of the lower right corner K2 are stored in the pixel value register (FIG. 2) of the data storage area 28 (FIG. 2). (Not shown). If “NO” in the step S333, “null” is written as the latitude and longitude and the pixel value in the longitude and latitude coordinate register and the pixel value register in a step S341.

図44のステップS313に戻って、コンピュータ12は、先のステップS309およびS311において共に、エラーが無かったかどうか、つまり2つのステップS309およびS311で「null」がいずれかのレジスタに書き込まれなかったかどうか判断する。エラーが無かったと判断したら、次のステップS315で、座標変換処理を実行する。座標変換処理は、具体的には、図50で示すフロー図によって達成される。   Returning to step S313 in FIG. 44, the computer 12 determines whether or not there was an error in the previous steps S309 and S311, that is, whether or not “null” was written in any of the registers in the two steps S309 and S311. to decide. If it is determined that there is no error, coordinate conversion processing is executed in the next step S315. Specifically, the coordinate conversion process is achieved by the flowchart shown in FIG.

図50の最初のステップS351において、コンピュータ12は、図49のQRコード認識処理で取得した図48に示す左上角K1のピクセル値(px1,py1)と右下角K2のピクセル値(px2,py2)とをデータ記憶領域28のピクセル値レジスタから読み出す。続いて、ステップS353では、QRコード認識処理で取得された図48に示す左上座標(Lx1,Ly1)と右下座標(Lx2,Ly2)を経緯度座標レジスタから読み出す。さらに、続いて、ステップS355では、図47に示すマーク位置認識処理で取得した図48に示すマークのピクセル値(px3,py3)をマークピクセル値レジスタから読み出す。   In the first step S351 of FIG. 50, the computer 12 obtains the pixel value (px1, py1) of the upper left corner K1 and the pixel value (px2, py2) of the lower right corner K2 shown in FIG. 48 acquired by the QR code recognition process of FIG. Are read from the pixel value register in the data storage area 28. Subsequently, in step S353, the upper left coordinates (Lx1, Ly1) and lower right coordinates (Lx2, Ly2) shown in FIG. 48 acquired in the QR code recognition process are read from the longitude and latitude coordinate registers. Further, subsequently, in step S355, the pixel value (px3, py3) of the mark shown in FIG. 48 acquired by the mark position recognition process shown in FIG. 47 is read from the mark pixel value register.

ステップS357で、コンピュータ12は、左上角K1のピクセル値(px1,py1)と右下角K2のピクセル値(px2,py2)に基づいて、横軸および縦軸のピクセル数を、分割量として算出する。続いて、ステップS359では、左上座標(Lx1,Ly1)および右下座標(Lx2,Ly2)に基づいて、経緯度の差を算出する。なお、ステップS357で算出された分割量は、メモリ18のデータ記憶領域28(図2)の分割量レジスタ(図示せず)に保存される。そして、保存された分割量は、読取GUI138における分割量表示部154に表示される。   In step S357, the computer 12 calculates the number of pixels on the horizontal axis and the vertical axis as the division amount based on the pixel value (px1, py1) at the upper left corner K1 and the pixel value (px2, py2) at the lower right corner K2. . Subsequently, in step S359, a difference between longitude and latitude is calculated based on the upper left coordinates (Lx1, Ly1) and the lower right coordinates (Lx2, Ly2). Note that the division amount calculated in step S357 is stored in a division amount register (not shown) in the data storage area 28 (FIG. 2) of the memory 18. The stored division amount is displayed on the division amount display unit 154 in the reading GUI 138.

続いて、ステップS361で、数6に従って、ユーザによってマーキングされたマーク102aのX軸ピクセル値px3をX座標に変換し、次のステップS363で、マーク102aのY軸ピクセル値py3をY座標に変換する。   Subsequently, in step S361, the X-axis pixel value px3 of the mark 102a marked by the user is converted into the X coordinate according to Equation 6, and in the next step S363, the Y-axis pixel value py3 of the mark 102a is converted into the Y coordinate. To do.

たとえば、右下のX座標Lx2から左上のX座標Lx1を引くことによって、地図全体のX方向長さが計算でき、右下角K2のX軸ピクセル値px2から左上角K1のX軸ピクセル値px1を引くことで地図全体のX方向のピクセル数が計算できる。また、X方向長さをX方向のピクセル数で割る{(Lx2-Lx1)÷(px2-px1)}ことによって、1ピクセルのX方向長さが計算できる。さらに、マーク102aのX軸ピクセル値px3から左上角K1のX軸ピクセル値px1を引くことで、マーク102aの地図画像上の位置が計算できる。そして、左上のX座標Lx1に、1ピクセルのX方向長さにマーク102aの地図画像上の位置を掛けた結果の値を加えると、マーク102aのX方向の測地系の数値、すなわち経度が求まる。   For example, the X-direction length of the entire map can be calculated by subtracting the upper left X coordinate Lx1 from the lower right X coordinate Lx2, and the X axis pixel value px1 of the upper left corner K1 can be calculated from the X axis pixel value px2 of the lower right corner K2. By subtracting, the number of pixels in the X direction of the entire map can be calculated. Further, by dividing the length in the X direction by the number of pixels in the X direction {(Lx2-Lx1) / (px2-px1)}, the X direction length of one pixel can be calculated. Furthermore, the position of the mark 102a on the map image can be calculated by subtracting the X-axis pixel value px1 at the upper left corner K1 from the X-axis pixel value px3 of the mark 102a. Then, by adding the value obtained by multiplying the X-coordinate Lx1 of the upper left by the X-direction length of one pixel to the position of the mark 102a on the map image, the numerical value of the geodetic system in the X direction of the mark 102a, that is, the longitude is obtained. .

一方、右下のY座標Ly2から左上のY座標Ly1を引くことによって、地図全体のY方向の長さが計算でき、右下角K2のY軸ピクセル値py2から左上角K1のY軸ピクセル値py1を引くことで地図全体のY方向のピクセル数が計算できる。また、Y方向の長さをY方向のピクセル数で割る{(Ly2-Ly1)÷(py2-py1)}ことによって、1ピクセルのY方向長さが計算できる。さらに、マーク102aのY軸ピクセル値py3から左上角K1のY軸ピクセル値py1を引くことで、マーク102aの地図画像上の位置が計算できる。そして、左上のY座標Ly1に、1ピクセルのY方向長さにマーク102aの地図画像上の位置を掛けた結果の値を加えると、マーク102aのY方向の測地系の数値、すなわち緯度が求まる。
[数6]
X座標=Lx1+[{(Lx2-Lx1)÷(px2-px1)}×(px3-px1)]
Y座標=Ly1+[{(Ly2-Ly1)÷(py2-py1)}×(py3-py1)]
このようにして、ステップS365で、GISデータに対応した経緯度である(X,Y)
を確定する。
On the other hand, the length in the Y direction of the entire map can be calculated by subtracting the upper left Y coordinate Ly1 from the lower right Y coordinate Ly2, and the Y axis pixel value py1 of the upper left corner K1 from the Y axis pixel value py2 of the lower right corner K2. The number of pixels in the Y direction of the entire map can be calculated by subtracting. Further, by dividing the length in the Y direction by the number of pixels in the Y direction {(Ly2-Ly1) / (py2-py1)}, the Y direction length of one pixel can be calculated. Further, the position of the mark 102a on the map image can be calculated by subtracting the Y-axis pixel value py1 at the upper left corner K1 from the Y-axis pixel value py3 of the mark 102a. Then, by adding the value obtained by multiplying the Y-coordinate Ly1 of the upper left by the Y-direction length of one pixel to the position of the mark 102a on the map image, the numerical value of the geodetic system in the Y direction of the mark 102a, that is, the latitude is obtained. .
[Equation 6]
X coordinate = Lx1 + [{(Lx2-Lx1) ÷ (px2-px1)} × (px3-px1)]
Y coordinate = Ly1 + [{(Ly2-Ly1) ÷ (py2-py1)} × (py3-py1)]
Thus, in step S365, the longitude and latitude corresponding to the GIS data is (X, Y).
Confirm.

ただし、図44のステップS313で“NO”が判断されたとき、つまりマーク位置およびQRコードのいずれかの認識に失敗したとき、マーク位置および/またはQRコードに対してエラー値を設定する。そして、ユーザは、画像認識結果エラーと判断されたページを呼び出して、マーク位置および/またはQRコードの訂正入力を行うことができる。   However, when “NO” is determined in step S313 of FIG. 44, that is, when recognition of either the mark position or the QR code fails, an error value is set for the mark position and / or the QR code. Then, the user can call a page determined to be an image recognition result error and perform correction input of the mark position and / or QR code.

なお、図44のステップS315すなわち図50のステップS365で確定した経緯度のデータを1レコードとしてCSVファイルで出力する。   Note that the longitude and latitude data determined in step S315 of FIG. 44, that is, step S365 of FIG. 50, is output as a record as a CSV file.

このようにして、図46に示すようにマーク102aを記入した地図用紙74の画像データを読み取ることによって、マーク102aのピクセル値をGISデータに変換することができる。   In this manner, the pixel value of the mark 102a can be converted into GIS data by reading the image data of the map paper 74 on which the mark 102a is entered as shown in FIG.

以上の処理によって、地図画像76aが印刷される位置は用紙毎に異なったとしても、用紙毎の地図画像76aの左角上K1のピクセル値を、オフセット値として取得することができる。また、オフセット値に基づいて、地図画像76の原点を求めることができるため、1ピクセル毎に経緯度を算出することができるようになる。つまり、メッシュに基づく経緯度の計算に比べて、高精度に経緯度を求めることができる。   With the above processing, even if the position where the map image 76a is printed differs for each sheet, the pixel value of the upper left K1 of the map image 76a for each sheet can be acquired as the offset value. Further, since the origin of the map image 76 can be obtained based on the offset value, the longitude and latitude can be calculated for each pixel. That is, the longitude and latitude can be obtained with higher accuracy than the calculation of longitude and latitude based on the mesh.

なお、上述の実施例では、印刷した地図画像の対角の経緯度をQRコードで符号化して地図画像と一緒に用紙上に印刷した。しかしながら、地図画像の対角の経緯度を符号化するためには、QRコードのような2次元バーコード以外に、1次元バーコードや、他の符号化方法が採用されてもよいが、その符号は、ユーザがマークやポリゴンを記入した後に地図画像と一緒にスキャナで読み取れる必要がある。つまり、スキャナで読み取れる限り、任意の符号化方法による符号画像が利用可能である。   In the above-described embodiment, the diagonal longitude and latitude of the printed map image is encoded with a QR code and printed on a sheet together with the map image. However, in order to encode the diagonal longitude and latitude of the map image, in addition to the two-dimensional barcode such as a QR code, a one-dimensional barcode or other encoding method may be adopted. The code needs to be read by the scanner together with the map image after the user enters a mark or polygon. That is, as long as it can be read by the scanner, a code image by an arbitrary encoding method can be used.

また、上述の実施例では地図画像上に重畳してメッシュの細線を印刷するようにしたが、このメッシュは印刷する必要はなく、スキャナで読み取る際に仮想的にメッシュを形成し、それによってマークの位置の経緯度を計算したり、ポリゴンデータを生成したりするようにしてもよい。つまり、実際にメッシュを印刷した場合だけでなく、コンピュータがメッシュを仮想する場合も、地図画像に重畳されるメッシュを含むものである。   In the above-described embodiment, the fine line of the mesh is printed by superimposing it on the map image. However, this mesh does not need to be printed. The longitude and latitude of the position may be calculated, or polygon data may be generated. That is, not only when the mesh is actually printed, but also when the computer virtualizes the mesh, the mesh is superimposed on the map image.

また、上述の実施例では、「QR Code Decode Library」に代えて、他のライブラリを利用したり、専用のソフトを利用したりすることで、QRコードの四隅のピクセル値を個別に取得できるようにしてもよい。   Further, in the above-described embodiment, instead of “QR Code Decode Library”, the pixel values of the four corners of the QR code can be individually acquired by using another library or using dedicated software. It may be.

さらに、上述の実施例ではいずれも、印刷枠として矩形の印刷枠を設定し、その印刷枠上または印刷枠内の特定の位置、つまり、印刷枠に関連した特定の位置として、対角の経緯度をQRコードのような符号画像に変換するようにした。しかしながら、印刷枠は必ずしも矩形で或る必要はなく、円形やその他の多角形を印刷枠として指定するようにしてもよい。そして、符号画像ではそれらの印刷枠の特定の位置、たとえば多角形の各頂角における経緯度や、円の場合の中心における経緯度と半径などの情報を符号画像に埋め込むようにすればよい。   Furthermore, in any of the above-described embodiments, a rectangular print frame is set as the print frame, and the diagonal background is set as a specific position on the print frame or in the print frame, that is, a specific position related to the print frame. The degree is converted into a code image such as a QR code. However, the printing frame is not necessarily rectangular, and a circle or other polygon may be designated as the printing frame. In the code image, information such as longitude and latitude at a specific position of the print frame, for example, each vertex angle of the polygon, and the longitude and latitude at the center in the case of a circle may be embedded in the code image.

この場合、読取装置としては、符号画像を解読してそれらの特定場所の経緯度を求め、それに基づいて計算して、ユーザがマークした位置や場所の経緯度を特定することができる。   In this case, the reading device can decode the code images to obtain the longitudes and latitudes of those specific locations, and calculate based on them to identify the longitude and latitude of the position and location marked by the user.

10 …地図印刷/読取装置
12 …コンピュータ
14 …操作装置
16 …モニタ
18 …メモリ
20 …地図データベース
22 …プリンタ
24 …スキャナ
32 …地図操作GUI
52,100 …印刷枠
74 …用紙
76 …地図画像
78 …QRコード
86 …住所検索GUI
102 …マーク
102a …ポリゴン
104 …読取GUI
118 …調査票
120 …テキスト印刷部
122 …地図印刷部
DESCRIPTION OF SYMBOLS 10 ... Map printing / reading apparatus 12 ... Computer 14 ... Operation apparatus 16 ... Monitor 18 ... Memory 20 ... Map database 22 ... Printer 24 ... Scanner 32 ... Map operation GUI
52, 100 ... Printing frame 74 ... Paper 76 ... Map image 78 ... QR code 86 ... Address search GUI
102 ... Mark 102a ... Polygon 104 ... Reading GUI
118… Survey form 120… Text printing part 122… Map printing part

Claims (15)

地図を示す地図画像およびその地図の経緯度データを含む地図データを保有する地図データベース、
前記地図データベースから地図画像データを読み出して地図画像をモニタに表示する表示手段、
前記モニタ上において、前記地図画像を印刷する領域を示す矩形の印刷枠を設定する印刷枠設定手段、
1つの印刷枠に入る地図上での実際の距離を計算する第1距離計算手段、
前記実際の距離から地図画像の内部座標を変換して内部座標上の距離を計算する第2距離計算手段、
基準点の経緯度および前記内部座標上の距離に基づいて前記印刷枠の対角の位置の経緯度を算出する経緯度算出手段、
前記経緯度算出手段によって算出された前記対角の位置の経緯度を符号化して符号画像を形成する符号画像形成手段、および
前記印刷枠で示される領域の地図画像と前記符号画像とを用紙に印刷する印刷手段を備える、地図印刷装置。
A map database holding map data including a map image showing a map and longitude and latitude data of the map,
Display means for reading map image data from the map database and displaying the map image on a monitor;
Print frame setting means for setting a rectangular print frame indicating an area for printing the map image on the monitor;
A first distance calculating means for calculating an actual distance on a map that falls within one printing frame;
Second distance calculating means for converting the internal coordinates of the map image from the actual distance and calculating the distance on the internal coordinates;
Longitude and latitude calculating means for calculating the longitude and latitude of the diagonal position of the print frame based on the longitude and latitude of the reference point and the distance on the internal coordinates;
Code image forming means for forming a code image by encoding the longitude and latitude of the diagonal position calculated by the longitude and latitude calculation means , and a map image of the region indicated by the print frame and the code image on a sheet A map printing apparatus comprising printing means for printing.
前記第1距離計算手段は、前記用紙のサイズと印刷余白と前記地図画像の縮尺とに基づいて前記実際の距離を計算する、請求項記載の地図印刷装置。 The first distance calculating means, said calculating the actual distance on the basis of the scale of the size and the print margins and the map image of the paper, map printing apparatus according to claim 1. 前記経緯度算出手段は、前記基準点の経緯度に前記内部座標上の距離を加算することによって、前記対角の経緯度を算出する、請求項または記載の地図印刷装置。 It said history calculation means, by adding the distance on the internal coordinates to longitude and latitude of the reference point, and calculates the latitude and longitude of the diagonal, map printing apparatus according to claim 1 or 2 wherein. 住所を検索することによって前記地図データベースから住所ポリゴンを読み出す住所検索手段をさらに備え、
前記表示手段は前記住所ポリゴンを表示し、
前記印刷枠設定手段は、前記住所ポリゴン余すところなく含む印刷枠を設定する、請求項1ないしのいずれかに記載の地図印刷装置。
An address search means for reading an address polygon from the map database by searching for an address;
The display means displays the address polygon;
The print frame setting means sets a including printing frame the very best the address polygon map printer according to any one of claims 1 to 3.
前記印刷枠設定手段は、前記住所ポリゴンの外接矩形である基図を設定する基図設定手段、および前記基図に基づいて必要枠数を計算する枠数計算手段および計算された必要枠数に応じて複数の印刷枠を設定する複数印刷枠設定手段を含む、請求項記載の地図印刷装置。 The print frame setting means includes a base map setting means for setting a base figure that is a circumscribed rectangle of the address polygon, a frame number calculating means for calculating the required number of frames based on the base chart, and a calculated required number of frames. 5. The map printing apparatus according to claim 4 , further comprising a plurality of print frame setting means for setting a plurality of print frames in response . 前記印刷枠設定手段は、複数の印刷枠を設定する複数印刷枠設定手段を含み、
前記複数印刷枠設定手段によって設定された複数の印刷枠毎に、印刷枚数を設定する、請求項ないしのいずれかに記載の地図印刷装置。
The print frame setting means includes a plurality of print frame setting means for setting a plurality of print frames,
It said plurality for each of a plurality of printing frames set by the print frame setting means sets the number of copies, a map printer according to any one of claims 1 to 3.
地図画像に重畳されるメッシュを形成するメッシュ画像形成手段をさらに備え、
前記印刷手段は、前記地図画像上に重ねて前記メッシュ画像を印刷する、請求項1ないしのいずれかに記載の地図印刷装置。
A mesh image forming means for forming a mesh superimposed on the map image;
The printing means prints the mesh image superimposed on the map image, map printing apparatus according to any one of claims 1 to 6.
前記符号画像は、QRコードを含む、請求項1ないしのいずれかに記載の地図印刷装置。 The code image includes a QR code, a map printer according to any one of claims 1 to 7. 前記QRコードは、第1QRコードおよび第2QRコードを含み、
前記印刷手段は、前記地図画像の1つの頂点と前記第1QRコードの角とが一致し、前記1つの頂点における対角の頂点と前記第2QRコードの角とが一致するように、前記地図画像と前記第1QRコードと前記第2QRコードとを前記用紙に印刷する、請求項記載の地図印刷装置。
The QR code includes a first QR code and a second QR code,
The printing unit is configured so that one vertex of the map image matches the corner of the first QR code, and the diagonal vertex of the one vertex matches the corner of the second QR code. The map printing apparatus according to claim 8 , wherein the first QR code and the second QR code are printed on the paper.
印刷枠で示される領域の地図画像と前記地図画像の特定の位置の経緯度を符号化した符号画像とメッシュとを用紙に印刷した地図を読み取る、地図読取装置であって、
前記地図画像中に記入されたマークを認識してそのマークの地図画像上の位置を特定するマーク認識手段、
前記符号画像を認識して前記地図画像の前記特定の位置の経緯度を求める符号画像認識手段、
前記マークが記入されたメッシュの位置を取得するメッシュ位置取得手段、
前記メッシュの最大個数と前記メッシュ位置とに基づいてそのメッシュ位置の座標を計算する座標計算手段、および
前記座標計算手段によって計算されたメッシュ位置の座標と前記符号画像認識手段によって求めた前記特定の位置の経緯度とに基づいて、前記マークが付されたメッシュの経緯度を計算する計算手段を備える、地図読取装置。
Reading map the latitude and longitude of a particular position of the map image and the map image area were printed and encoded code image and mesh sheet indicated in the print frame, a map reader,
Mark recognition means for recognizing a mark entered in the map image and specifying the position of the mark on the map image;
Code image recognition means for recognizing the code image and obtaining the longitude and latitude of the specific position of the map image;
Mesh position acquisition means for acquiring the position of the mesh in which the mark is entered;
Coordinate calculation means for calculating coordinates of the mesh position based on the maximum number of meshes and the mesh position; and
Calculation means for calculating the longitude and latitude of the mesh with the mark based on the coordinates of the mesh position calculated by the coordinate calculation means and the longitude and latitude of the specific position obtained by the code image recognition means. , Map reader.
印刷枠で示される領域の地図画像と地図画像の特定の位置の経緯度を符号化した第1符号画像および第2符号画像とを用紙に印刷した地図を読み取る、地図読取装置であって、A map reader that reads a map in which a map image of a region indicated by a print frame and a first code image and a second code image obtained by encoding the longitude and latitude of a specific position of the map image are printed on paper,
前記地図画像の1つの頂点と第1符号画像とが対応し、前記1つの頂点における対角の頂点と第2符号画像とが対応するように印刷された用紙のイメージを読み取る読取手段、A reading unit that reads an image of a sheet printed so that one vertex of the map image corresponds to a first code image, and a diagonal vertex of the one vertex corresponds to a second code image;
前記読取手段によって読み取られたイメージにおいて、前記第1符号画像の特定位置の第1ピクセル値を取得する第1取得手段、First acquisition means for acquiring a first pixel value at a specific position of the first code image in the image read by the reading means;
前記読取手段によって読み取られたイメージにおいて、前記第2符号画像の特定位置の第2ピクセル値を取得する第2取得手段、Second acquisition means for acquiring a second pixel value at a specific position of the second code image in the image read by the reading means;
前記地図画像における最大ピクセル数を前記第1ピクセル値および前記第2ピクセル値に基づいて算出するピクセル数算出手段、Pixel number calculating means for calculating the maximum number of pixels in the map image based on the first pixel value and the second pixel value;
前記地図画像中に記入されたマークを認識して、前記読取手段によって読み取られたイメージにおいて、前記マークのピクセル値を取得するピクセル値取得手段、A pixel value acquisition unit for recognizing a mark written in the map image and acquiring a pixel value of the mark in the image read by the reading unit;
前記符号画像を認識して前記地図画像の前記特定の位置の経緯度を求める符号画像認識手段、およびA code image recognition means for recognizing the code image and determining the longitude and latitude of the specific position of the map image; and
前記ピクセル数算出手段によって算出された最大ピクセル数と前記符号画像認識手段によって求めた前記特定の位置の経緯度とに基づいて、前記マークのピクセル値を経緯度に変換する変換手段を備える、地図読取装置。A map comprising conversion means for converting the pixel value of the mark into longitude and latitude based on the maximum number of pixels calculated by the pixel number calculation means and the longitude and latitude of the specific position obtained by the code image recognition means. Reader.
前記第1符号画像は第1QRコードを含み、
前記第2符号画像は第2QRコードを含み、
前記読取手段は、前記地図画像の1つの頂点と前記第1QRコードの角とが一致し、前記1つの頂点における対角の頂点と前記第2QRコードの角とが一致するように印刷された用紙のイメージを読み取り、
前記第1取得手段は、前記読取手段によって読み取られたイメージにおいて、前記第1QRコードの角を特定位置として第1ピクセル値を取得し、
前記第2取得手段は、前記読取手段によって読み取られたイメージにおいて、前記第2QRコードの角を特定位置として第2ピクセル値を取得する、請求項11記載の地図読取装置。
The first code image includes a first QR code ;
The second code image includes a second QR code;
The reading means is a sheet printed so that one vertex of the map image and the corner of the first QR code coincide, and the diagonal vertex of the one vertex and the corner of the second QR code coincide. read-a of the image,
The first acquisition unit acquires a first pixel value in the image read by the reading unit with a corner of the first QR code as a specific position ;
Said second acquisition means, in the image read by said reading means, you get a second pixel value as the specific position the corners of the first 2QR code, map reading apparatus according to claim 11, wherein.
印刷枠で示される領域の地図画像と地図画像の特定の位置の経緯度を符号化した符号画像とを用紙に印刷した地図を読み取る、地図読取装置であって、
前記地図画像中に記入されたポリゴンを認識してそのポリゴンの外郭のメッシュの位置を特定する外郭座標計算手段、
前記符号画像を認識して前記地図画像の前記特定の位置の経緯度を求める符号画像認識手段、および
前記外郭座標計算手段によって計算された外郭のメッシュの位置と前記符号画像認識手段によって求めた前記特定の位置の経緯度とに基づいて、前記ポリゴンを示すポリゴンデータを生成するポリゴンデータ生成手段を備える、地図読取装置。
A map reader that reads a map in which a map image of an area indicated by a print frame and a code image obtained by encoding the longitude and latitude of a specific position of the map image are printed on paper,
Outline coordinate calculation means for recognizing a polygon entered in the map image and specifying the position of the mesh of the outline of the polygon;
Code image recognition means for recognizing the code image and obtaining the longitude and latitude of the specific position of the map image, and the position of the outer mesh calculated by the outline coordinate calculation means and the code image recognition means A map reading device comprising polygon data generating means for generating polygon data indicating the polygon based on the longitude and latitude of a specific position.
前記印刷枠は矩形であり、前記特定の位置は前記印刷枠の対角である、請求項10ないし13のいずれかに記載の地図読取装置。 The map reading device according to claim 10 , wherein the print frame is a rectangle, and the specific position is a diagonal of the print frame. 請求項1ないし9のいずれかの地図印刷装置によって印刷された、調査票。 A survey form printed by the map printing apparatus according to claim 1 .
JP2010095596A 2009-04-30 2010-04-19 Map printing device, map reader and survey form Expired - Fee Related JP5580104B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010095596A JP5580104B2 (en) 2009-04-30 2010-04-19 Map printing device, map reader and survey form

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2009111078 2009-04-30
JP2009111078 2009-04-30
JP2010095596A JP5580104B2 (en) 2009-04-30 2010-04-19 Map printing device, map reader and survey form

Publications (2)

Publication Number Publication Date
JP2010277071A JP2010277071A (en) 2010-12-09
JP5580104B2 true JP5580104B2 (en) 2014-08-27

Family

ID=43424048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010095596A Expired - Fee Related JP5580104B2 (en) 2009-04-30 2010-04-19 Map printing device, map reader and survey form

Country Status (1)

Country Link
JP (1) JP5580104B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5781950B2 (en) * 2012-01-23 2015-09-24 株式会社ゼンリンデータコム Map survey update registration method
CN110688076B (en) * 2018-07-07 2023-08-15 森大(深圳)技术有限公司 Print data reading method, device and system
JP7285189B2 (en) * 2019-10-09 2023-06-01 株式会社ゼンリンデータコム MAP PROVIDING SYSTEM, MAP PROVIDING DEVICE, MAP PROVIDING METHOD AND PROGRAM
JP7547674B1 (en) 2024-04-05 2024-09-09 富士フイルムシステムサービス株式会社 Information processing device, information processing method, and information processing program
CN118349197B (en) * 2024-04-28 2024-12-31 广州市森扬电子科技有限公司 A printing system, printing method and storage medium for regional printing

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06230719A (en) * 1993-02-03 1994-08-19 Dainippon Printing Co Ltd Digital information recording map and map display device
JPH06229769A (en) * 1993-02-03 1994-08-19 Dainippon Printing Co Ltd Map display
JPH10162123A (en) * 1996-12-04 1998-06-19 Nippon Telegr & Teleph Corp <Ntt> Polygon generation method and apparatus
JP2000205872A (en) * 1999-01-11 2000-07-28 Shoki Jo Positioning system for moving
JP3387449B2 (en) * 1999-06-10 2003-03-17 株式会社日立情報システムズ Map data printing system and method and recording medium recording the processing program
JP2001034633A (en) * 1999-07-23 2001-02-09 Pioneer Electronic Corp Additional information recording method and system
JP2001125904A (en) * 1999-10-25 2001-05-11 Hitachi Ltd Information provision device
JP2004117986A (en) * 2002-09-27 2004-04-15 Seiko Epson Corp Position information display device and map
JP2005094717A (en) * 2003-09-22 2005-04-07 Kimoto & Co Ltd Map processing system
JP2005266720A (en) * 2004-03-16 2005-09-29 Hokkaido Chizu Kk Map containing latitude and longitude lines
JP2009300501A (en) * 2008-06-10 2009-12-24 Olympus Imaging Corp Imaging device and map medium

Also Published As

Publication number Publication date
JP2010277071A (en) 2010-12-09

Similar Documents

Publication Publication Date Title
JP5580104B2 (en) Map printing device, map reader and survey form
EP1614087A1 (en) System, apparatus and method for mapping
JP5496768B2 (en) MAP READING DEVICE, MAP READING PROGRAM, AND MAP READING METHOD
CN110516015A (en) Method based on map graph data and DLG production geography PDF map
CA3118490A1 (en) System and method for creating interactive gps-integrated, 3d-modelled spaces
JP5294522B2 (en) Map / photo image distribution system and its client system
JP4139666B2 (en) Map information input system
JP2002007440A (en) Map data update system, map data update method and recording medium
JP5814497B2 (en) Map / handwritten information input / utilization system, method and program thereof
JP2003177736A (en) Image display system, image display program, and image display method
Styliadis E-learning documentation of historical living systems with 3-D modeling functionality
JP7406904B2 (en) Surveying system, surveying equipment, surveying method and program
JP4741363B2 (en) Image processing apparatus, image processing method, and image processing program
JP6812282B2 (en) Map registration system, map registration method
JP7650472B2 (en) System for inspecting objects and generating reports
JP4630528B2 (en) Spatio-temporal data management device
CN118885101B (en) A method for constructing and displaying a simulation map in an offline scenario
JP2002149869A (en) Garage Certificate Application Form Creation Method and Creation Support System
JP5291899B2 (en) Data registration system, data registration method, data registration apparatus, and data registration program
JP5781950B2 (en) Map survey update registration method
JPH0934989A (en) OCR format parameter creation method
JP2018156019A (en) Map registration system, map registration method, information processing apparatus
JPH05135151A (en) Map generation system
CA3150201A1 (en) Method for indoor route planning and automatic marker making for indoor navigation using markers
CN119474485A (en) A remote sensing interpretation and verification method for black and odorous water bodies

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130129

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140107

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140303

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140710

R150 Certificate of patent or registration of utility model

Ref document number: 5580104

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

LAPS Cancellation because of no payment of annual fees