WO2013114558A1 - Map drawing device, navigation device and map drawing method - Google Patents

Map drawing device, navigation device and map drawing method Download PDF

Info

Publication number
WO2013114558A1
WO2013114558A1 PCT/JP2012/052103 JP2012052103W WO2013114558A1 WO 2013114558 A1 WO2013114558 A1 WO 2013114558A1 JP 2012052103 W JP2012052103 W JP 2012052103W WO 2013114558 A1 WO2013114558 A1 WO 2013114558A1
Authority
WO
WIPO (PCT)
Prior art keywords
map
linear
line
target
feature attribute
Prior art date
Application number
PCT/JP2012/052103
Other languages
French (fr)
Japanese (ja)
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 JP2013556116A priority Critical patent/JP5777735B2/en
Priority to CN201280068681.4A priority patent/CN104081439A/en
Priority to PCT/JP2012/052103 priority patent/WO2013114558A1/en
Publication of WO2013114558A1 publication Critical patent/WO2013114558A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers

Definitions

  • the present invention relates to a technique for drawing map data.
  • a map drawing device such as a navigation device
  • drawing processing of map data to be displayed on a screen is executed using a drawing library (also referred to as “graphics library”).
  • the map drawing device draws graphic information such as the coordinate information of each vertex of the drawing target figure (drawing target figure), the line type of the outline of the drawing target figure, and the fill color of the drawing target figure. Get as.
  • the map drawing apparatus draws map data based on the drawing data using a drawing library, and performs screen display using the map data.
  • OpenGL Open Graphics Library
  • OpenGL exists as a drawing library for executing drawing processing
  • OpenGL has a plurality of drawing methods.
  • Patent Document 1 discloses a method of analyzing drawing data and selecting one drawing method from a plurality of drawing methods. Proposed.
  • an object of the present invention is to provide a technique capable of performing drawing processing at high speed.
  • the map drawing device includes drawing data used when drawing a linear figure representing an object on a map image, and acquisition means for acquiring feature attribute information indicating a feature attribute of the object, Based on drawing means having a plurality of drawing methods for drawing a linear figure and feature attribute information of the drawing target object to be drawn, the drawing target object is represented from the plurality of drawing methods. Selecting means for selecting a drawing technique for drawing a linear drawing target figure, and the drawing means draws the linear drawing target figure using the drawing technique selected by the selecting means. .
  • the navigation device includes drawing means used when drawing a linear figure representing an object on a map image, and acquisition means for acquiring feature attribute information indicating a feature attribute of the object; Based on the drawing means having a plurality of drawing methods for drawing the linear figure and the feature attribute information of the drawing target object to be drawn, the drawing target object is selected from the plurality of drawing methods.
  • a selection unit that selects a drawing method for drawing a linear drawing target figure to be represented, and a map image including the linear figure drawn by using the drawing method selected by the selection unit is output to the display unit. Display control means.
  • drawing processing can be performed at high speed.
  • FIG. 1 It is a figure which shows the structure of the navigation apparatus which concerns on 1st Embodiment. It is a figure which shows the relationship between the drawing figure drawn on a map, the drawing data used in order to draw a drawing figure, and the attribute of the feature which a drawing figure represents. It is a flowchart which shows drawing operation
  • FIG. 1 is a diagram illustrating a configuration of a navigation device 1 according to the first embodiment.
  • FIG. 2 is a diagram illustrating a relationship between a drawing figure drawn on a map, drawing data used when drawing the drawing figure, and a feature attribute (feature attribute) represented by the drawing figure.
  • a navigation device 1 described in detail in this specification for example, a car navigation device mounted on a vehicle, a portable information terminal such as a PDA (Personal Digital Assistants), or a mobile phone is assumed.
  • PDA Personal Digital Assistants
  • the navigation device 1 includes a map drawing device 10A for drawing map data, an I / O interface 13, a storage device 14, and a display unit 15.
  • the map drawing device 10 ⁇ / b> A is electrically connected to the storage device 14 and the display unit 15 via the I / O interface 13.
  • the storage device 14 includes an optical drive device using an optical disk such as a DVD-ROM as a storage medium, a non-volatile memory (eg, SSD, flash, etc.), a removable medium (SD card, etc.), a hard disk device, or the like.
  • the storage device 14 stores information (also referred to as “object data”) 140 of each component (object) constituting the map.
  • the objects constituting the map include objects corresponding to features such as roads, buildings, rivers, railroads, etc., and the object data 140 includes graphic drawing data 141 representing each object, The feature attribute value 142 of each feature corresponding to each object is included.
  • the object data 140 includes graphic drawing data 141 for objects that do not correspond to these features.
  • a feature attribute value 142 are included. Examples of objects that do not correspond to features include boundary lines indicating boundaries between prefectures and municipalities, boundary lines indicating boundaries between countries and states, route lines such as airplanes or ships, and contour lines.
  • the map drawing apparatus 10 ⁇ / b> A reads out such object data 140 from the storage device 14 and generates map data based on the object data 140.
  • the drawing data 141 is information related to the shape of the graphic representing the object, and is used when drawing the graphic representing the object.
  • the drawing data 141 includes information such as coordinate information (vertex data) of each vertex of the figure to be drawn, the line type of the outline of the drawing figure, and the fill color of the drawing figure.
  • the feature attribute value 142 is information (feature attribute information) indicating the attribute of the feature corresponding to the object represented by the drawing figure.
  • the drawing data BD1 corresponding to the drawing figure BF1 includes the coordinate information of the three vertices of the drawing figure BF1.
  • the outline line type of the drawing figure BF1, the fill color of the drawing figure BF1, and information indicating that the drawing figure BF1 is a polygon (polygon) are included. Since the feature attribute of the object represented by the drawing figure BF1 is “own vehicle position (or building)”, a value indicating that the feature attribute is “own vehicle position (building)” is the drawing figure BF1. Is the feature attribute value 142 for.
  • the drawing data BD2 corresponding to the drawing figure BF2 includes the coordinate information of the vertex of the drawing figure BF2, the line type of the outline of the drawing figure BF2, the drawing Information indicating the fill color of the figure BF2 and that the drawing figure BF2 is a polygon (polygon) is included. Since the feature attribute of the object represented by the drawing figure BF2 is “section”, the value indicating that the feature attribute is “section” is the feature attribute value 142 related to the drawing figure BF2.
  • the drawing data BD3 corresponding to the drawing figure BF3 includes the coordinate information of each vertex of the drawing figure BF3, the line type of the outline of the drawing figure BF3, and the drawing The fill color of the figure BF3 is included. Further, since the feature attribute of the object represented by the drawing figure BF3 is “railway line”, the value indicating that the feature attribute is “railway line” is the feature attribute value 142 related to the drawing figure BF3.
  • the drawing data BD4 corresponding to the drawing figure BF4 includes the coordinate information of each vertex of the drawing figure BF4 and the line type of the outline of the drawing figure BF4. Since the feature attribute of the object represented by the drawing figure BF4 is “road line”, the value indicating that the feature attribute is “road line” is the feature attribute value 142 related to the drawing figure BF4.
  • a polyline is an object composed of a continuous line segment or curve.
  • the display unit 15 is configured using a liquid crystal display (LCD) or an organic EL display, and displays a map image based on the map data drawn by the map drawing device 10A. Display above.
  • LCD liquid crystal display
  • organic EL display organic EL display
  • FIG. 10 A of map drawing apparatuses are provided with the drawing process part 11 which performs the drawing process of an object based on the object data 140, and produces
  • FIG. 10 A of map drawing apparatuses are provided with the drawing process part 11 which performs the drawing process of an object based on the object data 140, and produces
  • the rendering processing unit 11 includes at least one of a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit).
  • the drawing processing unit 11 implements various functional units by reading the program 121 stored in the storage unit 12 and executing the program 121.
  • the drawing processing unit 11 includes a drawing method determining unit 111, a triangulation unit 112, a stencil processing unit 113, a line drawing unit 114, a standard line drawing unit 115, a mask creating unit 116,
  • the rectangular drawing unit 117 and the display control unit 118 are functionally realized.
  • Each functional unit can be realized by either a CPU or a GPU.
  • the drawing method determining unit 111, the triangulation unit 112, and the standard line drawing unit 115 are realized by the CPU, and stencil processing is performed. It is assumed that the unit 113, the line drawing unit 114, the mask creating unit 116, and the polygon drawing unit 117 are realized by a GPU.
  • the display control unit 118 is realized by display control hardware.
  • the drawing technique determination unit 111 determines a drawing technique for drawing a figure (drawing object figure) representing a drawing object to be drawn. Specifically, the drawing technique determination unit 111 acquires the object data 140 from the storage device 14. Then, the drawing technique determination unit 111 determines the drawing technique for each drawing target graphic based on the feature attribute value 142 of the drawing target object represented by the drawing target graphic.
  • the map drawing apparatus 10A uses a standard line drawing method (standard line drawing) other than a triangulation drawing method, a stencil drawing method and a line drawing method using OpenGL, and a line drawing method using OpenGL as drawing methods. Method).
  • the drawing technique determination unit 111 functions as a selection unit that selects a drawing technique of a drawing target graphic from these drawing techniques. Details of each drawing method will be described later.
  • the triangulation unit 112 is a functional unit realized by a software part using OpenGL.
  • the triangle dividing unit 112 repeats the process of drawing a diagonal line from one vertex (point of interest) in the drawing target graphic toward the other stacked vertices while changing the vertex, thereby changing the drawing target graphic into a plurality of triangles.
  • the drawing target area is specified by dividing into two.
  • Data indicating the drawing target area is output to the polygon drawing unit 117. It should be noted that the triangle dividing unit 112 outputs data related to each divided triangle to the polygon drawing unit 117 as data indicating the drawing target area.
  • the stencil processing unit 113 is a functional unit realized using OpenGL.
  • the stencil processing unit 113 forms a triangle by drawing a line segment from a certain vertex in the drawing target graphic to each of the other vertices, and specifies a drawing target region according to the number of overlaps of the formed triangles.
  • Data indicating the drawing target area is output to the mask creating unit 116 as stencil data.
  • the line drawing unit 114 is a functional unit realized by using OpenGL, and has a function of drawing a linear figure as a drawing target figure in a frame memory (not shown) such as a VRAM.
  • the standard line drawing unit 115 is a functional unit realized by executing standard drawing software other than OpenGL by a CPU (or GPU), or a processing unit realized in a drawing chip mounted on the map drawing apparatus 10A. It is.
  • the standard line drawing unit 115 draws a linear drawing target figure in the frame memory by a standard line drawing method. According to the standard line drawing method, it is possible to draw a line drawing target figure with a small amount of calculation compared to the line drawing method using OpenGL realized in the line drawing unit 114.
  • the mask creation unit 116 creates a mask pattern based on the stencil data input from the stencil processing unit 113 and stores the mask pattern in the stencil buffer 119.
  • the mask pattern restricts the drawing part of the figure to a specific part. With this mask pattern, even if the entire figure is filled, only the drawing target portion can be drawn.
  • the polygon drawing unit 117 draws a drawing target figure in the frame memory and generates map data. More specifically, the polygon drawing unit 117 draws the outline of the drawing target graphic in the frame memory based on the data indicating the drawing target region input from the triangulation unit 112 and draws based on the drawing data 141. Fills the target figure. Further, the polygon drawing unit 117 draws a drawing target graphic on the frame memory using the mask pattern and the drawing data 141 stored in the stencil buffer 119.
  • the display control unit 118 controls display contents on the display unit 15. Specifically, the display control unit 118 performs map image display processing using map data formed in the frame memory.
  • FIG. 3 is a flowchart showing the drawing operation of the map drawing apparatus 10A.
  • a description will be given of a drawing operation when drawing a linear figure representing a boundary line such as a railway line, a road line, or a prefectural border.
  • step SP1 the drawing processing unit 11 reads out and obtains object data 140 necessary for map display from the storage device.
  • the drawing technique determination unit 111 determines a drawing technique for drawing a graphic (in this case, a linear graphic) representing the drawing target object based on the feature attribute value 142 of the drawing target object. To do.
  • the drawing technique determination unit 111 determines, based on the feature attribute value 142, whether or not the drawing target figure is a linear specific figure composed of a combination of a plurality of polygons. . If the drawing target figure is a linear specific figure, the drawing method determination unit 111 determines the drawing method for drawing the figure as the triangulation drawing method, and shifts the operation process to step SP3.
  • step SP3 a drawing process related to the linear specific figure is performed using a triangulation drawing method.
  • the process executed in step SP3 is a process executed in the triangulation unit 112 and the polygon drawing unit 117.
  • the drawing technique determination unit 111 determines the drawing technique for drawing the drawing target object as the line drawing technique, and shifts the operation process to step SP4.
  • step SP4 a drawing process related to a linear figure is performed using a line drawing method using OpenGL or a standard line drawing method.
  • the processing executed in step SP4 is processing executed in the line drawing unit 114 and the polygon drawing unit 117, or the standard line drawing unit 114 and the polygon drawing unit 117.
  • a figure showing a railway line can be cited. Since the figure showing the railway line is composed of a combination of multiple polygons, the figure is drawn in a straight line. Drawing processing can be performed.
  • step SP3 When the drawing process ends in step SP3 or step SP4, the operation process moves to step SP5.
  • step SP5 it is determined whether there is an undrawn object that has not been drawn.
  • step SP1 when there is an undrawn object, the operation process moves to step SP1, and each process from step SP1 to step SP5 is executed again with the undrawn object as a drawing target object. Each process from step SP1 to step SP5 is repeatedly executed until there is no undrawn object in the determination process of step SP5.
  • FIG. 4 is a flowchart showing the operation of the map drawing apparatus 10A when performing drawing processing (triangular division drawing processing) using the triangulation drawing method.
  • FIG. 5 is a diagram for explaining a specific example of the triangulation division drawing process. In FIG. 5, a polygon is shown as a drawing target graphic.
  • each vertex in the drawing target graphic is sorted in descending order of the Y-axis coordinates.
  • the vertices of the polygon to be drawn are rearranged in the order of vertices C 1 , C 2 , C 3 , C 4 , C 5 , C 6 , and C 7 .
  • step SP12 vertices corresponding to two vertices from the top of each sorted vertex are stacked. In Figure 5, so that the vertex C 1 and vertex C 2 are stacked.
  • step SP13 among the sorted vertices, the third vertex from the top is set as the attention point Pn .
  • the vertex C 3 is set to the attention point P 3 .
  • a diagonal line is drawn from the attention point Pn to the stacked vertices. For example, in FIG. 5, a diagonal line is drawn from the attention point P 3 (vertex C 3 ) to the stacked vertex C 2 .
  • step SP15 it is determined whether or not the entire drawing target graphic is divided into triangles.
  • the triangulation drawing process ends.
  • the operation process proceeds to step SP16.
  • the operation process is shifted to step SP16.
  • step SP16 vertices that are not divided into triangles are stacked.
  • vertices C4, C5, C6, and C7 are stacked.
  • step SP17 the point of interest Pn is shifted by one.
  • it will be set the target point C 3 to shifted by one C 4.
  • step SP14 the diagonal can be formed on the inside of the object shape toward the vertex C 5, C 6, C 7 newly stacked from a new point of interest C 4 is subtracted become.
  • step SP15 it is determined again whether or not the entire drawing target graphic is divided into triangles.
  • the operation process moves to step SP16 again.
  • step SP16 the vertices C 2 and C 3 that are not divided into triangles are stacked.
  • step SP17 the point of interest Pn is shifted by one.
  • Figure 5 is set the target point C 4 to C 5 are shifted by one.
  • step SP14 the retraction of the diagonal can be formed on the inner side of the polygon towards the new target point C 5 to the vertex C 2, C 3 newly stacked.
  • step SP15 it is determined again whether or not the entire drawing target figure is divided into triangles.
  • the triangulation drawing process ends.
  • the drawing target area is specified by dividing the entire drawing target figure into triangles.
  • FIG. 6 is a flowchart showing the operation of the map drawing apparatus 10A when drawing processing (stencil drawing processing) is performed using the stencil drawing method.
  • FIG. 7 is a diagram for explaining a specific example of the stencil drawing process.
  • a star-shaped polygon RF (RF1 to RF6) is shown as a drawing target graphic.
  • the six polygons RF1 to RF6 in FIG. 7 are for explaining according to the progress of the stencil drawing process, and these polygons RF1 to RF6 are the same polygon RF.
  • step SP21 the top vertex among the vertices of the drawing target graphic is registered as the start point Pf.
  • the vertex D 1 leading out of the vertices of the polygon RF is registered as the start point Pf.
  • step SP22 a triangle is formed by drawing a line segment from the start point Pf registered in step SP21 to each other vertex.
  • a line segment is drawn from the start point D 1 to each of the other vertices D 2 to D 10 .
  • the triangle “D 1 D 2 D 3 ” see the polygon RF 1
  • the triangle “D 1 D 3 D 4 ” see the polygon RF 2
  • the triangle “D 1 D 5 D 6 ” Referring polygon RF3), see triangle “D 1 D 6 D 7" (polygon RF4)
  • triangle “D 1 D 8 D 9” see polygonal RF5)
  • triangles "D 1 D 9 D 10" multi A square RF6 is formed).
  • step SP23 a portion where the triangle formed in step SP22 overlaps an odd number of times is set as a drawing target area.
  • the non-renderable regions of the triangle formed in step SP22 that are odd-numbered that is, the triangles “D 1 D 2 D 3 ” and “D 1 D 9 D 10 ” where the triangles are even-numbered. All the other triangles except the above are set as the drawing target area.
  • the star-shaped drawing region indicated by the polygon RF6 can be obtained by executing the steps SP21 to SP23.
  • the map drawing apparatus 10A uses the drawing data 141 used when drawing a linear figure representing an object on the map image, and the feature attribute value 142 indicating the feature attribute of the object. Based on the acquisition means to acquire, the drawing means having a plurality of drawing techniques for drawing a linear figure, and the feature attribute value 142 of the drawing target object to be drawn, from among a plurality of drawing techniques, And a drawing method determination unit 111 that selects a drawing method for drawing a linear drawing target graphic representing the drawing target object. Then, the map drawing apparatus 10 ⁇ / b> A draws a linear drawing target figure using the drawing method selected by the drawing method determination unit 111.
  • the drawing method can be selected based on the feature attribute value 142, it is possible to reduce the time required for selecting the drawing method, and consequently, the drawing process can be performed at high speed. Can be achieved.
  • an appropriate drawing method can be selected according to the shape of the linear drawing target figure, the time required for drawing can be shortened, and the drawing process can be speeded up.
  • the map drawing apparatus 10B according to the second embodiment has substantially the same structure and function as the map drawing apparatus 10A of the first embodiment, except that the operation mode when drawing a linear figure is different. Common parts are denoted by the same reference numerals and description thereof is omitted.
  • the drawing method determination unit 111 of the map drawing apparatus 10B determines a drawing method for drawing a linear drawing target figure based on the feature attribute value 142 of the drawing target object and the scale of the map.
  • Line drawing methods using OpenGL include drawing a line figure using a finite straight line (segment) (also called “continuous line drawing method”) and drawing a line figure by arranging multiple points. (Both the method of drawing continuous points with OpenGL and the method of giving points continuously from the software part using OpenGL are also referred to as “continuous point drawing method” herein).
  • the drawing method determination unit 111 selects whether to draw a linear drawing target figure using a continuous point drawing method or a continuous line drawing method based on the feature attribute value 142 and the map scale. To do.
  • FIG. 8 is a flowchart of a drawing operation executed in the map drawing apparatus 10B according to the second embodiment.
  • step SP31 as in step SP1 described above, the drawing processing unit 11 reads out and acquires object data 140 necessary for map display from the storage device.
  • the drawing technique determination unit 111 determines a drawing technique for drawing a graphic (in this case, a linear graphic) representing the drawing target object based on the feature attribute value 142 of the drawing target object. To do.
  • the drawing technique determination unit 111 determines whether or not the drawing target figure is a figure represented by a single line type based on the feature attribute value 142. In other words, the figure represented by a single line type is a drawing target figure represented by one type of line. If the drawing technique determination unit 111 determines that the drawing target graphic is not a graphic represented by a single line type, the drawing technique determination unit 111 shifts the operation process to step SP36.
  • step SP36 a drawing process related to a linear figure is performed using a line drawing method using OpenGL.
  • the process executed in step SP36 is a process executed in the line drawing unit 114 and the polygon drawing unit 117.
  • the drawing technique determination unit 111 determines that the drawing target figure is a figure represented by a single line type, the drawing process determining unit 111 shifts the operation process to step SP33.
  • step SP33 the drawing technique determination unit 111 determines whether or not the scale of the map displayed on the display unit 15 is equal to or less than a predetermined threshold value.
  • the drawing method for drawing the drawing target graphic is determined as the continuous line drawing method, and the operation process is shifted to step SP33.
  • step SP33 a drawing process related to a linear drawing target figure is performed using a continuous line drawing method.
  • the process executed in step SP33 is a process executed in the line drawing unit 114 and the polygon drawing unit 117.
  • the drawing technique determination unit 111 determines that the map scale is larger than the predetermined threshold, the drawing technique determination unit 111 determines the drawing technique for drawing the linear drawing target graphic as the continuous point drawing technique, and sets the operation process to step SP35. Transition.
  • step SP35 a drawing process related to a linear drawing target figure is performed using a continuous point drawing method.
  • the process executed in step SP33 is a process executed in the line drawing unit 114 and the polygon drawing unit 117.
  • step SP34 When the drawing process ends in step SP34, step SP35, or step SP36, the operation process moves to step SP37.
  • step SP37 it is determined whether there is an undrawn object that has not been drawn.
  • step SP31 the operation process moves to step SP31, and the processes from step SP31 to step SP37 are executed again with the undrawn object as a drawing target object.
  • step SP37 each process from step SP31 to step SP37 is repeatedly executed until there is no undrawn object.
  • the time required for selecting the drawing method can be shortened.
  • the drawing process can be speeded up.
  • an appropriate drawing method can be selected according to the line type of the linear drawing target figure, the time required for drawing can be shortened, and the drawing process can be speeded up.
  • the predetermined threshold used for comparison with the current map scale is distinguished by the boundary line in step SP33.
  • a plurality of regions may be provided according to the type of area to be stored.
  • different threshold values are set for each of a boundary line indicating a country area, a boundary line indicating a prefecture area, and a boundary line indicating a city area, and the threshold values are set so as to decrease in the order of the country area, prefecture area, and city area. That is, the threshold value (first threshold value) for the boundary line indicating the country area is maximized, and the threshold value for the boundary line indicating the city area is minimized.
  • FIG. 9 is a diagram illustrating the display mode of the boundary line according to the size of the scale.
  • the boundary line indicating the country area should be displayed as a line
  • the boundary line indicating the prefecture area as a line or point
  • the boundary line indicating the city area as a point.
  • the map drawing devices 10A and 10B having the triangulation drawing method are illustrated as the drawing method, but the map drawing devices 10A and 10B of each embodiment are replaced with the triangulation drawing method. You may make it the aspect which has a trapezoid division
  • the process of drawing a diagonal line from one vertex (point of interest) in the drawing target graphic toward the other stacked vertices is repeated while changing the vertices.
  • the drawing target area is specified by dividing into two.
  • the line drawing method using OpenGL includes the continuous point drawing method and the continuous line drawing method is exemplified.
  • a standard line drawing method other than the line drawing method using OpenGL is used.
  • a mode including a continuous point drawing method and a continuous line drawing method may be used.
  • the drawing process executed in steps SP34 to SP36 is a process using a standard line drawing method.
  • whether to perform drawing processing using a line drawing method using OpenGL or to perform drawing processing using a standard line drawing method may be determined according to the load of the arithmetic processing unit. In other words, when the load on the arithmetic processing unit is small, the drawing process is performed using the line drawing method using OpenGL, and when the load on the arithmetic processing unit is small, the drawing process is performed using the standard line drawing method. May be.
  • the embodiments can be freely combined, any component of each embodiment can be modified, or any component can be omitted in each embodiment.
  • 1 navigation device 10A, 10B map drawing device, 11 drawing processing unit, 12 storage unit, 14 storage unit, 15 display unit, 111 drawing method determining unit, 112 triangulation unit, 114 line drawing unit, 117 polygon drawing unit, 118 display control unit, 140 object data, 141 drawing data, 142 feature attribute values

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Ecology (AREA)
  • Computer Hardware Design (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Processing Or Creating Images (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)
  • Image Generation (AREA)

Abstract

Provided is a technology capable of rapidly performing a drawing process. A map drawing device (10A) is provided with an acquisition means, a drawing means and a drawing method determination unit (111). Said acquisition means acquires: drawing data (141) used when drawing a line figure that represents an object in a map image; and an land feature attribute value (142) that indicates a land feature attribute of the object. Said drawing means comprises multiple drawing methods for drawing the line figure. On the basis of the land feature attribute value (142) of an object to be drawn that is an item to be drawn, said drawing method determination unit (111) selects a drawing method for use when drawing a line figure to be drawn that represents the object to be drawn, said drawing method being selected from among the multiple drawing methods. Using the drawing method selected by the drawing method determination unit (111), the map drawing device (10A) draws the line figure to be drawn.

Description

地図描画装置、ナビゲーション装置および地図描画方法Map drawing device, navigation device, and map drawing method
 本発明は、地図データの描画技術に関する。 The present invention relates to a technique for drawing map data.
 ナビゲーション装置等の地図描画装置では、描画ライブラリ(「グラフィックスライブラリ」とも称する)を利用して、画面に表示させる地図データの描画処理が実行される。具体的には、地図描画装置は、描画対象の図形(描画対象図形)の各頂点の座標情報、描画対象図形の輪郭の線種、および描画対象図形の塗りつぶしの色等の図形情報を描画データとして取得する。そして、地図描画装置は、描画ライブラリを利用して当該描画データに基づいて地図データを描画し、当該地図データを用いた画面表示を行う。 In a map drawing device such as a navigation device, drawing processing of map data to be displayed on a screen is executed using a drawing library (also referred to as “graphics library”). Specifically, the map drawing device draws graphic information such as the coordinate information of each vertex of the drawing target figure (drawing target figure), the line type of the outline of the drawing target figure, and the fill color of the drawing target figure. Get as. Then, the map drawing apparatus draws map data based on the drawing data using a drawing library, and performs screen display using the map data.
 描画処理を実行させる描画ライブラリとしては、例えば、OpenGL(Open Graphics Library)が存在し、OpenGLは、複数の描画手法を有している。 For example, OpenGL (Open Graphics Library) exists as a drawing library for executing drawing processing, and OpenGL has a plurality of drawing methods.
 複数の描画手法のうち、いずれの描画手法を採用して地図データを描画するかに関して、特許文献1では、描画データを分析して複数の描画手法の中から1の描画手法を選択する手法が提案されている。 Regarding which drawing method is used to draw map data among a plurality of drawing methods, Patent Document 1 discloses a method of analyzing drawing data and selecting one drawing method from a plurality of drawing methods. Proposed.
特開2010-072808号公報JP 2010-072808 A
 しかしながら、特許文献1に記載の手法では、描画データの分析に時間を要し、描画処理を高速に行うことが出来ない場合があった。 However, in the method described in Patent Document 1, it takes time to analyze drawing data, and the drawing process may not be performed at high speed.
 そこで、本発明は、描画処理を高速に行うことが可能な技術を提供することを目的とする。 Therefore, an object of the present invention is to provide a technique capable of performing drawing processing at high speed.
 本発明に係る地図描画装置は、地図画像上のオブジェクトを表す線状の図形を描画する際に用いる描画データ、および前記オブジェクトの地物属性を示す地物属性情報を取得する取得手段と、前記線状の図形を描画するための複数の描画手法を有する描画手段と、描画対象となる描画対象オブジェクトの地物属性情報に基づいて、前記複数の描画手法の中から、当該描画対象オブジェクトを表す線状の描画対象図形を描画する際の描画手法を選択する選択手段とを備え、前記描画手段は、前記選択手段によって選択された描画手法を用いて、前記線状の描画対象図形を描画する。 The map drawing device according to the present invention includes drawing data used when drawing a linear figure representing an object on a map image, and acquisition means for acquiring feature attribute information indicating a feature attribute of the object, Based on drawing means having a plurality of drawing methods for drawing a linear figure and feature attribute information of the drawing target object to be drawn, the drawing target object is represented from the plurality of drawing methods. Selecting means for selecting a drawing technique for drawing a linear drawing target figure, and the drawing means draws the linear drawing target figure using the drawing technique selected by the selecting means. .
 また、本発明に係るナビゲーション装置は、地図画像上のオブジェクトを表す線状の図形を描画する際に用いる描画データ、および前記オブジェクトの地物属性を示す地物属性情報を取得する取得手段と、前記線状の図形を描画するための複数の描画手法を有する描画手段と、描画対象となる描画対象オブジェクトの地物属性情報に基づいて、前記複数の描画手法の中から、当該描画対象オブジェクトを表す線状の描画対象図形を描画する際の描画手法を選択する選択手段と、前記選択手段によって選択された描画手法を用いて描画された線状の図形を含む地図画像を表示部に出力する表示制御手段とを備える。 In addition, the navigation device according to the present invention includes drawing means used when drawing a linear figure representing an object on a map image, and acquisition means for acquiring feature attribute information indicating a feature attribute of the object; Based on the drawing means having a plurality of drawing methods for drawing the linear figure and the feature attribute information of the drawing target object to be drawn, the drawing target object is selected from the plurality of drawing methods. A selection unit that selects a drawing method for drawing a linear drawing target figure to be represented, and a map image including the linear figure drawn by using the drawing method selected by the selection unit is output to the display unit. Display control means.
 また、本発明に係る地図描画方法は、a)地図画像上のオブジェクトを表す線状の図形を描画する際に用いる描画データ、および前記オブジェクトの地物属性を示す地物属性情報を取得する工程と、b)描画対象となる描画対象オブジェクトの地物属性情報に基づいて、複数の描画手法の中から、当該描画対象オブジェクトを表す線状の描画対象図形を描画する際の描画手法を選択する工程と、c)前記b)工程において選択された描画手法を用いて、前記線状の描画対象図形を描画する工程とを備える。 In the map drawing method according to the present invention, a) a step of acquiring drawing data used when drawing a linear figure representing an object on a map image, and feature attribute information indicating a feature attribute of the object And b) selecting a drawing method for drawing a linear drawing target graphic representing the drawing target object from a plurality of drawing methods based on the feature attribute information of the drawing target object to be drawn. And c) drawing the linear drawing target figure using the drawing method selected in the step b).
 本発明によれば、描画処理を高速に行うことが可能になる。 According to the present invention, drawing processing can be performed at high speed.
第1実施形態に係るナビゲーション装置の構成を示す図である。It is a figure which shows the structure of the navigation apparatus which concerns on 1st Embodiment. 地図上に描かれる描画図形と、描画図形を描くために用いる描画データと、描画図形が表す地物の属性との関係を示す図である。It is a figure which shows the relationship between the drawing figure drawn on a map, the drawing data used in order to draw a drawing figure, and the attribute of the feature which a drawing figure represents. 地図描画装置の描画動作を示すフローチャートである。It is a flowchart which shows drawing operation | movement of a map drawing apparatus. 三角形分割描画処理を行う際の地図描画装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the map drawing apparatus at the time of performing a triangular division | segmentation drawing process. 三角形分割描画処理の具体例を説明するための図である。It is a figure for demonstrating the specific example of a triangular division | segmentation drawing process. ステンシル描画処理を行う際の地図描画装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the map drawing apparatus at the time of performing a stencil drawing process. ステンシル描画処理の具体例を説明するための図である。It is a figure for demonstrating the specific example of a stencil drawing process. 第2実施形態に係る地図描画装置において実行される描画動作のフローチャートである。It is a flowchart of the drawing operation performed in the map drawing apparatus which concerns on 2nd Embodiment. 縮尺の大きさに応じた境界線の表示態様を例示する図である。It is a figure which illustrates the display mode of the boundary line according to the magnitude | size of a reduced scale.
 以下、各実施形態について図面を参照して説明する。 Hereinafter, each embodiment will be described with reference to the drawings.
 <1.第1実施形態>
  [1-1.構成]
 図1は、第1実施形態に係るナビゲーション装置1の構成を示す図である。図2は、地図上に描かれる描画図形と、描画図形を描く際に用いる描画データと、描画図形が表す地物の属性(地物属性)との関係を示す図である。本明細書で詳述されるナビゲーション装置1としては、例えば、車両に搭載されるカーナビゲーション装置、PDA(Personal Digital Assistants)等の携帯情報端末、或いは携帯電話が想定される。
<1. First Embodiment>
[1-1. Constitution]
FIG. 1 is a diagram illustrating a configuration of a navigation device 1 according to the first embodiment. FIG. 2 is a diagram illustrating a relationship between a drawing figure drawn on a map, drawing data used when drawing the drawing figure, and a feature attribute (feature attribute) represented by the drawing figure. As the navigation device 1 described in detail in this specification, for example, a car navigation device mounted on a vehicle, a portable information terminal such as a PDA (Personal Digital Assistants), or a mobile phone is assumed.
 図1に示されるように、ナビゲーション装置1は、地図データを描画する地図描画装置10Aと、I/Oインタフェース13と、記憶装置14と、表示部15とを備えている。地図描画装置10Aは、I/Oインタフェース13を介して記憶装置14および表示部15と電気的に接続されている。 As shown in FIG. 1, the navigation device 1 includes a map drawing device 10A for drawing map data, an I / O interface 13, a storage device 14, and a display unit 15. The map drawing device 10 </ b> A is electrically connected to the storage device 14 and the display unit 15 via the I / O interface 13.
 記憶装置14は、DVD-ROM等の光ディスクを記憶媒体とした光学ドライブ装置、不揮発性メモリ(例えばSSD、フラッシュ等)、リムーバブルメディア(SDカード等)またはハードディスク装置等で構成されている。記憶装置14には、地図を構成する各構成物(オブジェクト)の情報(「オブジェクトデータ」とも称する)140が記憶されている。 The storage device 14 includes an optical drive device using an optical disk such as a DVD-ROM as a storage medium, a non-volatile memory (eg, SSD, flash, etc.), a removable medium (SD card, etc.), a hard disk device, or the like. The storage device 14 stores information (also referred to as “object data”) 140 of each component (object) constituting the map.
 地図(ここでは地図画像)を構成するオブジェクトには、例えば、道路、建物、川、鉄道等の地物に対応したオブジェクトがあり、オブジェクトデータ140は、各オブジェクトを表す図形の描画データ141と、各オブジェクトに対応する各地物の地物属性値142とを含んでいる。また、地図を構成するオブジェクトには、地物に対応したオブジェクト以外に、地物に対応しないオブジェクトも存在し、オブジェクトデータ140は、これらの地物に対応しないオブジェクトについても、図形の描画データ141と地物属性値142とを含んでいる。地物に対応しないオブジェクトとしては、県および市区町村の境界を示す境界線、国および州の境界を示す境界線、飛行機または船舶等の航路線、或いは等高線等を例示することができる。 The objects constituting the map (here, the map image) include objects corresponding to features such as roads, buildings, rivers, railroads, etc., and the object data 140 includes graphic drawing data 141 representing each object, The feature attribute value 142 of each feature corresponding to each object is included. In addition to the objects corresponding to the features, there are objects that do not correspond to the features other than the objects corresponding to the features, and the object data 140 includes graphic drawing data 141 for objects that do not correspond to these features. And a feature attribute value 142 are included. Examples of objects that do not correspond to features include boundary lines indicating boundaries between prefectures and municipalities, boundary lines indicating boundaries between countries and states, route lines such as airplanes or ships, and contour lines.
 地図描画装置10Aは、このようなオブジェクトデータ140を記憶装置14から読み出し、オブジェクトデータ140に基づいて地図データを生成する。 The map drawing apparatus 10 </ b> A reads out such object data 140 from the storage device 14 and generates map data based on the object data 140.
 ここで、描画データ141および地物属性値142について詳述する。描画データ141は、オブジェクトを表す図形の形状に関する情報であり、オブジェクトを表す図形を描画する際に用いられる。描画データ141は、描画対象となる図形の各頂点の座標情報(頂点データ)、描画図形の輪郭の線種、および描画図形の塗りつぶしの色等の情報を含んでいる。一方、地物属性値142は、描画図形によって表されるオブジェクトに対応する地物の属性を示す情報(地物属性情報)である。 Here, the drawing data 141 and the feature attribute value 142 will be described in detail. The drawing data 141 is information related to the shape of the graphic representing the object, and is used when drawing the graphic representing the object. The drawing data 141 includes information such as coordinate information (vertex data) of each vertex of the figure to be drawn, the line type of the outline of the drawing figure, and the fill color of the drawing figure. On the other hand, the feature attribute value 142 is information (feature attribute information) indicating the attribute of the feature corresponding to the object represented by the drawing figure.
 例えば、図2に示されるように、描画図形の形状が「塗りつぶされた三角形」であった場合、当該描画図形BF1に対応する描画データBD1には、描画図形BF1の3つの頂点の各座標情報、描画図形BF1の輪郭の線種、描画図形BF1の塗りつぶしの色、および描画図形BF1がポリゴン(多角形)であることを示す情報が含まれる。また、描画図形BF1によって表されるオブジェクトの地物属性は「自車位置(または建物)」であるため、地物属性が「自車位置(建物)」であることを示す値が描画図形BF1に関する地物属性値142となる。 For example, as shown in FIG. 2, when the shape of the drawing figure is “filled triangle”, the drawing data BD1 corresponding to the drawing figure BF1 includes the coordinate information of the three vertices of the drawing figure BF1. , The outline line type of the drawing figure BF1, the fill color of the drawing figure BF1, and information indicating that the drawing figure BF1 is a polygon (polygon) are included. Since the feature attribute of the object represented by the drawing figure BF1 is “own vehicle position (or building)”, a value indicating that the feature attribute is “own vehicle position (building)” is the drawing figure BF1. Is the feature attribute value 142 for.
 また、描画図形の形状が「凸多角形」であった場合、当該描画図形BF2に対応する描画データBD2には、描画図形BF2の頂点の各座標情報、描画図形BF2の輪郭の線種、描画図形BF2の塗りつぶしの色、および描画図形BF2がポリゴン(多角形)であることを示す情報が含まれる。また、描画図形BF2によって表されるオブジェクトの地物属性は「区画」であるため、地物属性が「区画」であることを示す値が描画図形BF2に関する地物属性値142となる。 When the shape of the drawing figure is a “convex polygon”, the drawing data BD2 corresponding to the drawing figure BF2 includes the coordinate information of the vertex of the drawing figure BF2, the line type of the outline of the drawing figure BF2, the drawing Information indicating the fill color of the figure BF2 and that the drawing figure BF2 is a polygon (polygon) is included. Since the feature attribute of the object represented by the drawing figure BF2 is “section”, the value indicating that the feature attribute is “section” is the feature attribute value 142 related to the drawing figure BF2.
 また、描画図形の形状が「模様線」であった場合、当該描画図形BF3に対応する描画データBD3には、描画図形BF3の頂点の各座標情報、描画図形BF3の輪郭の線種、および描画図形BF3の塗りつぶしの色が含まれる。また、描画図形BF3によって表されるオブジェクトの地物属性は「鉄道線」であるため、地物属性が「鉄道線」であることを示す値が描画図形BF3に関する地物属性値142となる。 When the shape of the drawing figure is “pattern line”, the drawing data BD3 corresponding to the drawing figure BF3 includes the coordinate information of each vertex of the drawing figure BF3, the line type of the outline of the drawing figure BF3, and the drawing The fill color of the figure BF3 is included. Further, since the feature attribute of the object represented by the drawing figure BF3 is “railway line”, the value indicating that the feature attribute is “railway line” is the feature attribute value 142 related to the drawing figure BF3.
 また、描画図形の形状が「ポリライン」であった場合、当該描画図形BF4に対応する描画データBD4には、描画図形BF4の頂点の各座標情報、描画図形BF4の輪郭の線種が含まれる。また、描画図形BF4によって表されるオブジェクトの地物属性は「道路線」であるため、地物属性が「道路線」であることを示す値が描画図形BF4に関する地物属性値142となる。なお、ポリラインとは、一続きの線分または曲線で構成されるオブジェクトである。 Further, when the shape of the drawing figure is “polyline”, the drawing data BD4 corresponding to the drawing figure BF4 includes the coordinate information of each vertex of the drawing figure BF4 and the line type of the outline of the drawing figure BF4. Since the feature attribute of the object represented by the drawing figure BF4 is “road line”, the value indicating that the feature attribute is “road line” is the feature attribute value 142 related to the drawing figure BF4. A polyline is an object composed of a continuous line segment or curve.
 ナビゲーション装置1の構成説明(図1)に戻って、表示部15は、液晶ディスプレイ(LCD)または有機ELディスプレイを用いて構成され、地図描画装置10Aにおいて描画された地図データに基づく地図画像を画面上に表示する。 Returning to the description of the configuration of the navigation device 1 (FIG. 1), the display unit 15 is configured using a liquid crystal display (LCD) or an organic EL display, and displays a map image based on the map data drawn by the map drawing device 10A. Display above.
 地図描画装置10Aは、オブジェクトデータ140に基づいてオブジェクトの描画処理を行い、地図データを生成する描画処理部11と、記憶部12とを備えている。 10 A of map drawing apparatuses are provided with the drawing process part 11 which performs the drawing process of an object based on the object data 140, and produces | generates map data, and the memory | storage part 12. FIG.
 描画処理部11は、CPU(Central Processing Unit)およびGPU(Graphics Processing Unit)のうち少なくとも1つで構成されている。描画処理部11は、記憶部12に記憶されたプログラム121を読み出して、当該プログラム121を実行することにより、各種機能部を実現する。 The rendering processing unit 11 includes at least one of a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). The drawing processing unit 11 implements various functional units by reading the program 121 stored in the storage unit 12 and executing the program 121.
 具体的には、描画処理部11は、描画手法決定部111と、三角形分割部112と、ステンシル処理部113と、線描画部114と、標準線描画部115と、マスク作成部116と、多角形描画部117と、表示制御部118とを機能的に実現する。各機能部は、CPUおよびGPUどちらでも実現可能であるが、ここでは、各機能部のうち、描画手法決定部111、三角形分割部112、および標準線描画部115がCPUで実現され、ステンシル処理部113、線描画部114、マスク作成部116、および多角形描画部117がGPUで実現されるものとする。なお、表示制御部118は、表示制御用のハードウェアで実現される。 Specifically, the drawing processing unit 11 includes a drawing method determining unit 111, a triangulation unit 112, a stencil processing unit 113, a line drawing unit 114, a standard line drawing unit 115, a mask creating unit 116, The rectangular drawing unit 117 and the display control unit 118 are functionally realized. Each functional unit can be realized by either a CPU or a GPU. Here, among the functional units, the drawing method determining unit 111, the triangulation unit 112, and the standard line drawing unit 115 are realized by the CPU, and stencil processing is performed. It is assumed that the unit 113, the line drawing unit 114, the mask creating unit 116, and the polygon drawing unit 117 are realized by a GPU. The display control unit 118 is realized by display control hardware.
 描画手法決定部111は、描画対象となる描画対象オブジェクトを表す図形(描画対象図形)を描く際の描画手法を決定する。具体的には、描画手法決定部111は、記憶装置14からオブジェクトデータ140を取得する。そして、描画手法決定部111は、描画対象図形ごとに、描画対象図形によって表される描画対象オブジェクトの地物属性値142に基づいて描画手法を決定する。 The drawing technique determination unit 111 determines a drawing technique for drawing a figure (drawing object figure) representing a drawing object to be drawn. Specifically, the drawing technique determination unit 111 acquires the object data 140 from the storage device 14. Then, the drawing technique determination unit 111 determines the drawing technique for each drawing target graphic based on the feature attribute value 142 of the drawing target object represented by the drawing target graphic.
 地図描画装置10Aは、描画手法として、OpenGLを用いた三角形分割描画手法、ステンシル描画手法および線描画手法、並びに、OpenGLを用いた線描画手法以外の他の標準的な線描画手法(標準線描画手法)を有している。描画手法決定部111は、描画対象図形の描画手法をこれらの描画手法の中から選択する選択手段として機能することになる。なお、各描画手法の詳細は、後述する。 The map drawing apparatus 10A uses a standard line drawing method (standard line drawing) other than a triangulation drawing method, a stencil drawing method and a line drawing method using OpenGL, and a line drawing method using OpenGL as drawing methods. Method). The drawing technique determination unit 111 functions as a selection unit that selects a drawing technique of a drawing target graphic from these drawing techniques. Details of each drawing method will be described later.
 三角形分割部112は、OpenGLを利用するソフトウェア部位にて実現される機能部である。三角形分割部112は、描画対象図形における1つの頂点(注目点)から、スタックされた他の頂点に向けて対角線を引く処理を、頂点を変更しつつ繰り返すことによって、描画対象図形を複数の三角形に分割して描画対象領域を特定する。描画対象領域を示すデータは、多角形描画部117に出力される。なお、三角形分割部112からは、分割された各三角形に関するデータが描画対象領域を示すデータとして多角形描画部117に出力されることになる。 The triangulation unit 112 is a functional unit realized by a software part using OpenGL. The triangle dividing unit 112 repeats the process of drawing a diagonal line from one vertex (point of interest) in the drawing target graphic toward the other stacked vertices while changing the vertex, thereby changing the drawing target graphic into a plurality of triangles. The drawing target area is specified by dividing into two. Data indicating the drawing target area is output to the polygon drawing unit 117. It should be noted that the triangle dividing unit 112 outputs data related to each divided triangle to the polygon drawing unit 117 as data indicating the drawing target area.
 ステンシル処理部113は、OpenGLを用いて実現される機能部である。ステンシル処理部113は、描画対象図形における或る頂点から他の各頂点に対して線分を引くことによって三角形を形成し、形成された各三角形の重なり回数に応じて描画対象領域を特定する。描画対象領域を示すデータは、ステンシルデータとしてマスク作成部116に出力される。 The stencil processing unit 113 is a functional unit realized using OpenGL. The stencil processing unit 113 forms a triangle by drawing a line segment from a certain vertex in the drawing target graphic to each of the other vertices, and specifies a drawing target region according to the number of overlaps of the formed triangles. Data indicating the drawing target area is output to the mask creating unit 116 as stencil data.
 線描画部114は、OpenGLを用いて実現される機能部であり、描画対象図形としての線状の図形を、VRAM等のフレームメモリ(不図示)に描画する機能を有している。 The line drawing unit 114 is a functional unit realized by using OpenGL, and has a function of drawing a linear figure as a drawing target figure in a frame memory (not shown) such as a VRAM.
 標準線描画部115は、OpenGL以外の標準的な描画ソフトウェアをCPU(またはGPU)で実行することによって実現される機能部、或いは、地図描画装置10Aに搭載される描画チップにおいて実現される処理部である。標準線描画部115では、標準的な線描画手法によって、線状の描画対象図形がフレームメモリに描画される。当該標準的な線描画手法によれば、線描画部114において実現されるOpenGLを用いた線描画手法に比べて、少ない演算量で線状の描画対象図形を描くことができる。 The standard line drawing unit 115 is a functional unit realized by executing standard drawing software other than OpenGL by a CPU (or GPU), or a processing unit realized in a drawing chip mounted on the map drawing apparatus 10A. It is. The standard line drawing unit 115 draws a linear drawing target figure in the frame memory by a standard line drawing method. According to the standard line drawing method, it is possible to draw a line drawing target figure with a small amount of calculation compared to the line drawing method using OpenGL realized in the line drawing unit 114.
 マスク作成部116は、ステンシル処理部113から入力されるステンシルデータに基づいて、マスクパターンを作成し、当該マスクパターンをステンシルバッファ119に格納する。 The mask creation unit 116 creates a mask pattern based on the stencil data input from the stencil processing unit 113 and stores the mask pattern in the stencil buffer 119.
 ここでマスクパターンとは、図形の描画箇所を特定部分に制限するものである。このマスクパターンにより、図形全体の塗りつぶしを行ったとしても描画対象箇所のみを描画することができる。 Here, the mask pattern restricts the drawing part of the figure to a specific part. With this mask pattern, even if the entire figure is filled, only the drawing target portion can be drawn.
 多角形描画部117は、フレームメモリに描画対象図形を描いて、地図データを生成する。より詳細には、多角形描画部117は、三角形分割部112から入力された描画対象領域を示すデータに基づいて、フレームメモリに、描画対象図形の輪郭を描くとともに、描画データ141に基づいて描画対象図形内の塗りつぶしを行う。また、多角形描画部117は、ステンシルバッファ119に格納されたマスクパターンおよび描画データ141を用いて、フレームメモリ上に描画対象図形を描く。 The polygon drawing unit 117 draws a drawing target figure in the frame memory and generates map data. More specifically, the polygon drawing unit 117 draws the outline of the drawing target graphic in the frame memory based on the data indicating the drawing target region input from the triangulation unit 112 and draws based on the drawing data 141. Fills the target figure. Further, the polygon drawing unit 117 draws a drawing target graphic on the frame memory using the mask pattern and the drawing data 141 stored in the stencil buffer 119.
 表示制御部118は、表示部15における表示内容を制御する。具体的には、表示制御部118は、フレームメモリにおいて形成される地図データを用いて、地図画像の表示処理を行う。 The display control unit 118 controls display contents on the display unit 15. Specifically, the display control unit 118 performs map image display processing using map data formed in the frame memory.
  [1-2.動作]
 次に、地図描画装置10Aにおいて実行される描画動作について説明する。図3は、地図描画装置10Aの描画動作を示すフローチャートである。なお、本実施形態では、鉄道線、道路線、県境等の境界線を表す線状の図形を描画する際の描画動作について説明する。
[1-2. Operation]
Next, a drawing operation executed in the map drawing apparatus 10A will be described. FIG. 3 is a flowchart showing the drawing operation of the map drawing apparatus 10A. In the present embodiment, a description will be given of a drawing operation when drawing a linear figure representing a boundary line such as a railway line, a road line, or a prefectural border.
 図3に示されるように、まず、ステップSP1では、描画処理部11は、地図表示に必要なオブジェクトデータ140を記憶装置14から読み出して取得する。 As shown in FIG. 3, first, in step SP1, the drawing processing unit 11 reads out and obtains object data 140 necessary for map display from the storage device.
 次のステップSP2では、描画手法決定部111は、描画対象オブジェクトの地物属性値142に基づいて、当該描画対象オブジェクトを表す図形(ここでは、線状の図形)を描く際の描画手法を決定する。 In the next step SP2, the drawing technique determination unit 111 determines a drawing technique for drawing a graphic (in this case, a linear graphic) representing the drawing target object based on the feature attribute value 142 of the drawing target object. To do.
 具体的には、描画手法決定部111は、地物属性値142に基づいて、描画対象の図形が、複数の多角形の組み合わせで構成された線状の特定図形であるか否かを判断する。そして、描画対象図形が線状の特定図形であった場合、描画手法決定部111は、当該図形を描くときの描画手法を三角形分割描画手法に決定し、動作工程をステップSP3に移行させる。 Specifically, the drawing technique determination unit 111 determines, based on the feature attribute value 142, whether or not the drawing target figure is a linear specific figure composed of a combination of a plurality of polygons. . If the drawing target figure is a linear specific figure, the drawing method determination unit 111 determines the drawing method for drawing the figure as the triangulation drawing method, and shifts the operation process to step SP3.
 ステップSP3では、三角形分割描画手法を用いて、当該線状の特定図形に関する描画処理が行われる。ステップSP3で実行される処理は、三角形分割部112および多角形描画部117において実行される処理である。 In step SP3, a drawing process related to the linear specific figure is performed using a triangulation drawing method. The process executed in step SP3 is a process executed in the triangulation unit 112 and the polygon drawing unit 117.
 一方、描画対象図形が線状の特定図形でなかった場合、描画手法決定部111は、当該描画対象オブジェクトを描くときの描画手法を線描画手法に決定し、動作工程をステップSP4に移行させる。 On the other hand, when the drawing target figure is not a linear specific figure, the drawing technique determination unit 111 determines the drawing technique for drawing the drawing target object as the line drawing technique, and shifts the operation process to step SP4.
 ステップSP4では、OpenGLを用いた線描画手法或いは標準的な線描画手法を用いて、線状の図形に関する描画処理が行われる。ステップSP4で実行される処理は、線描画部114および多角形描画部117、或いは標準線描画部114および多角形描画部117において実行される処理である。 In step SP4, a drawing process related to a linear figure is performed using a line drawing method using OpenGL or a standard line drawing method. The processing executed in step SP4 is processing executed in the line drawing unit 114 and the polygon drawing unit 117, or the standard line drawing unit 114 and the polygon drawing unit 117.
 複数の多角形の組み合わせで構成された線状の特定図形としては、例えば、鉄道線を示す図形を挙げることができる。鉄道線を示す図形は、複数の多角形を組み合わせて、線状に構成されるため、三角形分割描画手法を用いて描画することによれば、描画対象図形の形状に応じた適切な描画手法で描画処理を行うことができる。 As a linear specific figure composed of a combination of a plurality of polygons, for example, a figure showing a railway line can be cited. Since the figure showing the railway line is composed of a combination of multiple polygons, the figure is drawn in a straight line. Drawing processing can be performed.
 ステップSP3或いはステップSP4において描画処理が終了すると、動作工程は、ステップSP5に移行する。 When the drawing process ends in step SP3 or step SP4, the operation process moves to step SP5.
 ステップSP5では、描画されていない未描画のオブジェクトがあるか否かが判定される。 In step SP5, it is determined whether there is an undrawn object that has not been drawn.
 未描画のオブジェクトが存在しない場合、描画動作は終了する。 If there is no undrawn object, the drawing operation ends.
 一方、未描画のオブジェクトが存在する場合、動作工程は、ステップSP1に移行され、未描画のオブジェクトを描画対象オブジェクトとしてステップSP1からステップSP5の各工程が再度実行される。ステップSP5の判定処理によって、未描画のオブジェクトがなくなるまで、ステップSP1からステップSP5の各工程が繰り返し実行されることになる。 On the other hand, when there is an undrawn object, the operation process moves to step SP1, and each process from step SP1 to step SP5 is executed again with the undrawn object as a drawing target object. Each process from step SP1 to step SP5 is repeatedly executed until there is no undrawn object in the determination process of step SP5.
  [1-3.描画手法について]
 ここで、本実施形態の地図描画装置10Aが備える三角形分割描画手法について説明する。図4は、三角形分割描画手法で描画処理(三角形分割描画処理)を行う際の地図描画装置10Aの動作を示すフローチャートである。図5は、三角形分割描画処理の具体例を説明するための図である。なお、図5では、描画対象図形として多角形が示されている。
[1-3. About drawing method]
Here, a triangulation drawing method provided in the map drawing apparatus 10A of the present embodiment will be described. FIG. 4 is a flowchart showing the operation of the map drawing apparatus 10A when performing drawing processing (triangular division drawing processing) using the triangulation drawing method. FIG. 5 is a diagram for explaining a specific example of the triangulation division drawing process. In FIG. 5, a polygon is shown as a drawing target graphic.
 図4に示されるように、まず、ステップSP11では、描画対象図形における各頂点がY軸座標の降順でソートされる。例えば、図5では、描画対象となる多角形の各頂点が、頂点C,C,C,C,C,C,Cの順に並び換えられる。 As shown in FIG. 4, first, in step SP11, each vertex in the drawing target graphic is sorted in descending order of the Y-axis coordinates. For example, in FIG. 5, the vertices of the polygon to be drawn are rearranged in the order of vertices C 1 , C 2 , C 3 , C 4 , C 5 , C 6 , and C 7 .
 ステップSP12では、ソートされた各頂点の先頭から2頂点分の頂点がスタックされる。図5では、頂点Cおよび頂点Cがスタックされることになる。 In step SP12, vertices corresponding to two vertices from the top of each sorted vertex are stacked. In Figure 5, so that the vertex C 1 and vertex C 2 are stacked.
 ステップSP13では、ソートされた各頂点において、先頭から3番目の頂点が注目点Pに設定される。図5では、頂点Cが注目点Pに設定されることになる。 In step SP13, among the sorted vertices, the third vertex from the top is set as the attention point Pn . In FIG. 5, the vertex C 3 is set to the attention point P 3 .
 ステップSP14では、注目点Pnから、スタックされた頂点に対角線が引かれる。例えば、図5では、注目点P(頂点C)からスタックされている頂点Cに対角線が引かれることになる。 In step SP14, a diagonal line is drawn from the attention point Pn to the stacked vertices. For example, in FIG. 5, a diagonal line is drawn from the attention point P 3 (vertex C 3 ) to the stacked vertex C 2 .
 次のステップSP15では、描画対象図形内を全て三角形に分割したか否かが判定される。描画対象図形内が全て三角形に分割されていると判定された場合は、三角形分割描画処理は、終了する。一方、描画対象図形内が全て三角形に分割されていないと判定された場合は、動作工程は、ステップSP16に移行される。例えば、図5の例では、全て三角形に分割できていない多角形Cが存在するため、動作工程は、ステップSP16に移行されることになる。 In the next step SP15, it is determined whether or not the entire drawing target graphic is divided into triangles. When it is determined that the entire drawing target figure is divided into triangles, the triangulation drawing process ends. On the other hand, when it is determined that the entire drawing target figure is not divided into triangles, the operation process proceeds to step SP16. For example, in the example of FIG. 5, since there is a polygon C 2 C 3 C 4 C 5 C 6 C 7 that cannot be divided into all triangles, the operation process is shifted to step SP16.
 ステップSP16では、三角形に分割されなかった頂点がスタックされる。図5では、頂点C4,C5,C6,C7がスタックされることになる。 In step SP16, vertices that are not divided into triangles are stacked. In FIG. 5, vertices C4, C5, C6, and C7 are stacked.
 ステップSP17では、注目点Pが1つずらされる。図5では、注目点Cを1つずらしてCに設定されることになる。 In step SP17, the point of interest Pn is shifted by one. In Figure 5, it will be set the target point C 3 to shifted by one C 4.
 そして、再度実行されるステップSP14では、新たな注目点Cから新たにスタックされた頂点C,C,Cに向けて描画対象図形の内側に形成することができる対角線が引かれることになる。 Then, in step SP14 is executed again, the diagonal can be formed on the inside of the object shape toward the vertex C 5, C 6, C 7 newly stacked from a new point of interest C 4 is subtracted become.
 ステップSP15では、描画対象図形内を全て三角形に分割したか否かが再度判定される。図5の例では、全て三角形に分割できていない多角形Cが存在するため、動作工程は、再度ステップSP16に移行される。 In step SP15, it is determined again whether or not the entire drawing target graphic is divided into triangles. In the example of FIG. 5, since there is a polygon C 2 C 3 C 5 C 4 that cannot be divided into all triangles, the operation process moves to step SP16 again.
 ステップSP16では、三角形に分割されなかった頂点C,Cがスタックされる。 In step SP16, the vertices C 2 and C 3 that are not divided into triangles are stacked.
 ステップSP17では、注目点Pが1つずらされる。図5では、注目点Cを1つずらしてCに設定される。 In step SP17, the point of interest Pn is shifted by one. In Figure 5, is set the target point C 4 to C 5 are shifted by one.
 ステップSP14では、新たな注目点Cから新たにスタックされた頂点C,Cに向けて多角形の内側に形成することができる対角線が引かれる。 In step SP14, the retraction of the diagonal can be formed on the inner side of the polygon towards the new target point C 5 to the vertex C 2, C 3 newly stacked.
 ステップSP15では、描画対象図形内を全て三角形に分割したか否かが再度判定され、図5の例では描画対象図形を全て三角形に分割できているため、三角形分割描画処理は、終了する。 In step SP15, it is determined again whether or not the entire drawing target figure is divided into triangles. In the example of FIG. 5, since all the drawing target figures can be divided into triangles, the triangulation drawing process ends.
 このように三角形分割描画処理では、描画対象図形内を全て三角形に分割することによって、描画対象領域を特定する。 In this way, in the triangulation drawing process, the drawing target area is specified by dividing the entire drawing target figure into triangles.
 次に、地図描画装置10Aが備えるステンシル描画手法について説明する。図6は、ステンシル描画手法で描画処理(ステンシル描画処理)を行う際の地図描画装置10Aの動作を示すフローチャートである。図7は、ステンシル描画処理の具体例を説明するための図である。なお、図7では、描画対象図形として星形の多角形RF(RF1~RF6)が示されている。図7中の6つの多角形RF1~RF6は、ステンシル描画処理の進捗状況に応じた説明を行うためのものであり、これらの多角形RF1~RF6は、同一の多角形RFである。 Next, a stencil drawing method provided in the map drawing apparatus 10A will be described. FIG. 6 is a flowchart showing the operation of the map drawing apparatus 10A when drawing processing (stencil drawing processing) is performed using the stencil drawing method. FIG. 7 is a diagram for explaining a specific example of the stencil drawing process. In FIG. 7, a star-shaped polygon RF (RF1 to RF6) is shown as a drawing target graphic. The six polygons RF1 to RF6 in FIG. 7 are for explaining according to the progress of the stencil drawing process, and these polygons RF1 to RF6 are the same polygon RF.
 図6に示されるように、まず、ステップSP21では、描画対象図形の各頂点のうち先頭の頂点が開始点Pfとして登録される。例えば、図7では、多角形RFの各頂点のうち先頭の頂点Dが開始点Pfとして登録される。 As shown in FIG. 6, first, in step SP21, the top vertex among the vertices of the drawing target graphic is registered as the start point Pf. For example, in Figure 7, the vertex D 1 leading out of the vertices of the polygon RF is registered as the start point Pf.
 ステップSP22では、ステップSP21において登録された開始点Pfからその他の各頂点に対して線分を引くことによって、三角形が形成される。図7では、開始点Dからその他の各頂点D~D10に対して線分が引かれる。これにより、多角形RFでは、三角形「D」(多角形RF1参照)、三角形「D」(多角形RF2参照)、三角形「D」(多角形RF3参照)、三角形「D」(多角形RF4参照)、三角形「D」(多角形RF5参照)、および三角形「D10」(多角形RF6参照)が形成されることになる。 In step SP22, a triangle is formed by drawing a line segment from the start point Pf registered in step SP21 to each other vertex. In FIG. 7, a line segment is drawn from the start point D 1 to each of the other vertices D 2 to D 10 . Accordingly, in the polygon RF, the triangle “D 1 D 2 D 3 ” (see the polygon RF 1 ), the triangle “D 1 D 3 D 4 ” (see the polygon RF 2), the triangle “D 1 D 5 D 6 ” ( Referring polygon RF3), see triangle "D 1 D 6 D 7" (polygon RF4), triangle "D 1 D 8 D 9" (see polygonal RF5), and triangles "D 1 D 9 D 10" (multi A square RF6 is formed).
 ステップSP23では、ステップSP22において形成された三角形が、奇数回重なった部分を描画対象領域として設定する。図7では、ステップSP22において形成された三角形が奇数回重なった部分、即ち三角形が偶数回重なった三角形「D」および「D10」である描画不可能領域を除いたその他全ての三角形が、描画対象領域として設定される。 In step SP23, a portion where the triangle formed in step SP22 overlaps an odd number of times is set as a drawing target area. In FIG. 7, the non-renderable regions of the triangle formed in step SP22 that are odd-numbered, that is, the triangles “D 1 D 2 D 3 ” and “D 1 D 9 D 10 ” where the triangles are even-numbered. All the other triangles except the above are set as the drawing target area.
 このようにステンシル描画処理では、ステップSP21からステップSP23の各工程を実行することにより、多角形RF6に示す星型の描画領域を得ることができる。 As described above, in the stencil drawing process, the star-shaped drawing region indicated by the polygon RF6 can be obtained by executing the steps SP21 to SP23.
 以上のように、本実施形態の地図描画装置10Aは、地図画像上のオブジェクトを表す線状の図形を描画する際に用いる描画データ141、およびオブジェクトの地物属性を示す地物属性値142を取得する取得手段と、線状の図形を描画するための複数の描画手法を有する描画手段と、描画対象となる描画対象オブジェクトの地物属性値142に基づいて、複数の描画手法の中から、当該描画対象オブジェクトを表す線状の描画対象図形を描画する際の描画手法を選択する描画手法決定部111とを備えている。そして、地図描画装置10Aは、描画手法決定部111によって選択された描画手法を用いて、線状の描画対象図形を描画する。 As described above, the map drawing apparatus 10A according to the present embodiment uses the drawing data 141 used when drawing a linear figure representing an object on the map image, and the feature attribute value 142 indicating the feature attribute of the object. Based on the acquisition means to acquire, the drawing means having a plurality of drawing techniques for drawing a linear figure, and the feature attribute value 142 of the drawing target object to be drawn, from among a plurality of drawing techniques, And a drawing method determination unit 111 that selects a drawing method for drawing a linear drawing target graphic representing the drawing target object. Then, the map drawing apparatus 10 </ b> A draws a linear drawing target figure using the drawing method selected by the drawing method determination unit 111.
 このような地図描画装置10Aによれば、地物属性値142に基づいて描画手法を選択することができるので、描画手法の選択に要する時間を短縮することが可能になり、ひいては描画処理の高速化を図ることができる。また、線状の描画対象図形の形状に応じた適切な描画手法を選択することができるので、描画に要する時間を短縮することが可能になり、描画処理の高速化を図ることができる。 According to such a map drawing apparatus 10A, since the drawing method can be selected based on the feature attribute value 142, it is possible to reduce the time required for selecting the drawing method, and consequently, the drawing process can be performed at high speed. Can be achieved. In addition, since an appropriate drawing method can be selected according to the shape of the linear drawing target figure, the time required for drawing can be shortened, and the drawing process can be speeded up.
 <2.第2実施形態>
 次に、第2実施形態について説明する。第2実施形態に係る地図描画装置10Bは、線状の図形を描画する際の動作態様が異なる点以外は、第1実施形態の地図描画装置10Aとほぼ同様の構造および機能を有しており、共通する部分については同じ符号を付して説明を省略する。
<2. Second Embodiment>
Next, a second embodiment will be described. The map drawing apparatus 10B according to the second embodiment has substantially the same structure and function as the map drawing apparatus 10A of the first embodiment, except that the operation mode when drawing a linear figure is different. Common parts are denoted by the same reference numerals and description thereof is omitted.
 地図描画装置10Bの描画手法決定部111は、描画対象オブジェクトの地物属性値142および地図の縮尺に基づいて、線状の描画対象図形を描画する際の描画手法を決定する。 The drawing method determination unit 111 of the map drawing apparatus 10B determines a drawing method for drawing a linear drawing target figure based on the feature attribute value 142 of the drawing target object and the scale of the map.
 OpenGLを用いた線描画手法には、有限直線(線分)を用いて線状の図形を描く手法(「連続線描画手法」とも称する)と、複数の点を並べて線状の図形を描く手法(OpenGLで連続点を描画する手法、および、OpenGLを利用するソフトウェア部位から連続して点を与える手法の双方を、ここでは、「連続点描画手法」とも称する)とがある。描画手法決定部111は、線状の描画対象図形を、連続点描画手法を用いて描画するか、連続線描画手法を用いて描画するかを地物属性値142および地図の縮尺に基づいて選択する。 Line drawing methods using OpenGL include drawing a line figure using a finite straight line (segment) (also called “continuous line drawing method”) and drawing a line figure by arranging multiple points. (Both the method of drawing continuous points with OpenGL and the method of giving points continuously from the software part using OpenGL are also referred to as “continuous point drawing method” herein). The drawing method determination unit 111 selects whether to draw a linear drawing target figure using a continuous point drawing method or a continuous line drawing method based on the feature attribute value 142 and the map scale. To do.
 ここで、地図描画装置10Bにおいて実行される、線状の図形を描画する際の描画動作について説明する。図8は、第2実施形態に係る地図描画装置10Bにおいて実行される描画動作のフローチャートである。 Here, the drawing operation when drawing a linear figure executed in the map drawing apparatus 10B will be described. FIG. 8 is a flowchart of a drawing operation executed in the map drawing apparatus 10B according to the second embodiment.
 図8に示されるように、ステップSP31では、上述のステップSP1と同様、描画処理部11は、地図表示に必要なオブジェクトデータ140を記憶装置14から読み出して取得する。 As shown in FIG. 8, in step SP31, as in step SP1 described above, the drawing processing unit 11 reads out and acquires object data 140 necessary for map display from the storage device.
 次のステップSP32では、描画手法決定部111は、描画対象オブジェクトの地物属性値142に基づいて、当該描画対象オブジェクトを表す図形(ここでは、線状の図形)を描く際の描画手法を決定する。 In the next step SP32, the drawing technique determination unit 111 determines a drawing technique for drawing a graphic (in this case, a linear graphic) representing the drawing target object based on the feature attribute value 142 of the drawing target object. To do.
 具体的には、描画手法決定部111は、地物属性値142に基づいて、描画対象図形が単一の線種で表される図形であるか否かを判定する。単一の線種で表される図形とは、換言すれば、1種類の線で表される描画対象図形である。描画手法決定部111は、描画対象図形が単一の線種で表される図形でないと判定した場合、描画手法決定部111は、動作工程をステップSP36に移行させる。 Specifically, the drawing technique determination unit 111 determines whether or not the drawing target figure is a figure represented by a single line type based on the feature attribute value 142. In other words, the figure represented by a single line type is a drawing target figure represented by one type of line. If the drawing technique determination unit 111 determines that the drawing target graphic is not a graphic represented by a single line type, the drawing technique determination unit 111 shifts the operation process to step SP36.
 ステップSP36では、OpenGLを用いた線描画手法を用いて、線状の図形に関する描画処理が行われる。ステップSP36で実行される処理は、線描画部114および多角形描画部117において実行される処理である。 In step SP36, a drawing process related to a linear figure is performed using a line drawing method using OpenGL. The process executed in step SP36 is a process executed in the line drawing unit 114 and the polygon drawing unit 117.
 一方、描画手法決定部111は、描画対象図形が単一の線種で表される図形であると判定した場合、動作工程をステップSP33に移行させる。 On the other hand, if the drawing technique determination unit 111 determines that the drawing target figure is a figure represented by a single line type, the drawing process determining unit 111 shifts the operation process to step SP33.
 ステップSP33では、描画手法決定部111は、表示部15において表示されている地図の縮尺が所定の閾値以下であるか否かを判定する。地図の縮尺が所定の閾値以下であると判定した場合、当該描画対象図形を描くときの描画手法を連続線描画手法に決定し、動作工程をステップSP33に移行させる。 In step SP33, the drawing technique determination unit 111 determines whether or not the scale of the map displayed on the display unit 15 is equal to or less than a predetermined threshold value. When it is determined that the scale of the map is equal to or smaller than the predetermined threshold, the drawing method for drawing the drawing target graphic is determined as the continuous line drawing method, and the operation process is shifted to step SP33.
 ステップSP33では、連続線描画手法を用いて、線状の描画対象図形に関する描画処理が行われる。ステップSP33で実行される処理は、線描画部114および多角形描画部117において実行される処理である。 In step SP33, a drawing process related to a linear drawing target figure is performed using a continuous line drawing method. The process executed in step SP33 is a process executed in the line drawing unit 114 and the polygon drawing unit 117.
 一方、描画手法決定部111は、地図の縮尺が所定の閾値より大きいと判定した場合、線状の描画対象図形を描くときの描画手法を連続点描画手法に決定し、動作工程をステップSP35に移行させる。 On the other hand, if the drawing technique determination unit 111 determines that the map scale is larger than the predetermined threshold, the drawing technique determination unit 111 determines the drawing technique for drawing the linear drawing target graphic as the continuous point drawing technique, and sets the operation process to step SP35. Transition.
 ステップSP35では、連続点描画手法を用いて、線状の描画対象図形に関する描画処理が行われる。ステップSP33で実行される処理は、線描画部114および多角形描画部117において実行される処理である。 In step SP35, a drawing process related to a linear drawing target figure is performed using a continuous point drawing method. The process executed in step SP33 is a process executed in the line drawing unit 114 and the polygon drawing unit 117.
 ステップSP34、ステップSP35、或いはステップSP36において描画処理が終了すると、動作工程は、ステップSP37に移行される。 When the drawing process ends in step SP34, step SP35, or step SP36, the operation process moves to step SP37.
 ステップSP37では、描画されていない未描画のオブジェクトがあるか否かが判定される。 In step SP37, it is determined whether there is an undrawn object that has not been drawn.
 未描画のオブジェクトが存在しない場合、描画動作は終了する。 If there is no undrawn object, the drawing operation ends.
 一方、未描画のオブジェクトが存在する場合、動作工程は、ステップSP31に移行され、未描画のオブジェクトを描画対象オブジェクトとしてステップSP31からステップSP37の各工程が再度実行される。ステップSP37の判定処理によって、未描画のオブジェクトがなくなるまで、ステップSP31からステップSP37の各工程が繰り返し実行されることになる。 On the other hand, if there is an undrawn object, the operation process moves to step SP31, and the processes from step SP31 to step SP37 are executed again with the undrawn object as a drawing target object. By the determination process in step SP37, each process from step SP31 to step SP37 is repeatedly executed until there is no undrawn object.
 以上のように、地物属性値142に基づいて、描画対象図形の線種を判定し、判定結果を用いて描画手法を選択することによれば、描画手法の選択に要する時間を短縮することが可能になり、ひいては描画処理の高速化を図ることができる。また、線状の描画対象図形の線種に応じた適切な描画手法を選択することができるので、描画に要する時間を短縮することが可能になり、描画処理の高速化を図ることができる。 As described above, by determining the line type of the drawing target graphic based on the feature attribute value 142 and selecting the drawing method using the determination result, the time required for selecting the drawing method can be shortened. As a result, the drawing process can be speeded up. In addition, since an appropriate drawing method can be selected according to the line type of the linear drawing target figure, the time required for drawing can be shortened, and the drawing process can be speeded up.
 また、線状の描画対象図形が2つの領域間の境界を表す境界線である場合、上記のステップSP33において、現在の地図の縮尺と比較するために用いる所定の閾値を、境界線によって区別される領域の種類に応じて複数個設けるようにしてもよい。 Further, when the linear drawing target graphic is a boundary line representing the boundary between two regions, the predetermined threshold used for comparison with the current map scale is distinguished by the boundary line in step SP33. A plurality of regions may be provided according to the type of area to be stored.
 例えば、国域を示す境界線、県域を示す境界線、市域を示す境界線それぞれについて異なる閾値を設け、国域、県域、市域の順に各閾値が小さくなるように設定する。すなわち、国域を示す境界線についての閾値(第1閾値)を最大とし、市域を示す境界線についての閾値を最小とする。 For example, different threshold values are set for each of a boundary line indicating a country area, a boundary line indicating a prefecture area, and a boundary line indicating a city area, and the threshold values are set so as to decrease in the order of the country area, prefecture area, and city area. That is, the threshold value (first threshold value) for the boundary line indicating the country area is maximized, and the threshold value for the boundary line indicating the city area is minimized.
 この場合、線状の図形を図8に示す動作に従って描画し、ステップSP33において、地物属性値142に基づいて、描画対象オブジェクトが国域を示す境界線であるのか、県域を示す境界線であるのか、或いは市域を示す境界線であるのかを判別し、判別結果に基づいて閾値を選択して描画手法を決定すれば、各境界線は図9に示すように描画されることになる。図9は、縮尺の大きさに応じた境界線の表示態様を例示する図であり、比較的小さい縮尺で広域の地図を表示する際には、国域を示す境界線を線で、県域および市域を示す境界線を点で表示することになる。また、比較的大きい縮尺で狭域の地図を表示する際には、国域を示す境界線を線で、県域を示す境界線を線または点で、市域を示す境界線を点で表示することになる。 In this case, a linear figure is drawn according to the operation shown in FIG. 8, and in step SP33, based on the feature attribute value 142, whether the drawing target object is a boundary line indicating a country area or a boundary line indicating a prefecture area. If it is determined whether there is a boundary line indicating a city area, and a drawing method is determined by selecting a threshold based on the determination result, each boundary line is drawn as shown in FIG. FIG. 9 is a diagram illustrating the display mode of the boundary line according to the size of the scale. When displaying a map of a wide area at a relatively small scale, the boundary line indicating the country area is indicated by a line, The boundary line indicating the city area is displayed with dots. In addition, when displaying a map of a narrow area at a relatively large scale, the boundary line indicating the country area should be displayed as a line, the boundary line indicating the prefecture area as a line or point, and the boundary line indicating the city area as a point. become.
 これによれば、境界線を描画する際の描画手法の選択に要する時間を短縮することが可能になり、ひいては描画処理の高速化を図ることができる。また、境界線の種類に応じた適切な描画手法を選択することができるので、描画に要する時間を短縮することが可能になり、描画処理の高速化を図ることができる。 According to this, it is possible to reduce the time required for selecting the drawing method when drawing the boundary line, and it is possible to speed up the drawing process. In addition, since an appropriate drawing method according to the type of boundary line can be selected, the time required for drawing can be shortened, and the drawing process can be speeded up.
 <3.変形例>
 以上、実施の形態について説明したが、この発明は、上記に説明した内容に限定されるものではない。
<3. Modification>
Although the embodiments have been described above, the present invention is not limited to the contents described above.
 例えば、上記各実施形態では、描画手法として三角形分割描画手法を有する地図描画装置10A,10Bを例示していたが、各実施形態の地図描画装置10A,10Bは、三角形分割描画手法に代えて、台形分割描画手法を有する態様にしてもよい。 For example, in each of the above-described embodiments, the map drawing devices 10A and 10B having the triangulation drawing method are illustrated as the drawing method, but the map drawing devices 10A and 10B of each embodiment are replaced with the triangulation drawing method. You may make it the aspect which has a trapezoid division | segmentation drawing method.
 台形分割描画手法では、描画対象図形における1つの頂点(注目点)から、スタックされた他の頂点に向けて対角線を引く処理を、頂点を変更しつつ繰り返すことによって、描画対象図形を複数の台形に分割して描画対象領域が特定される。 In the trapezoidal split drawing method, the process of drawing a diagonal line from one vertex (point of interest) in the drawing target graphic toward the other stacked vertices is repeated while changing the vertices. The drawing target area is specified by dividing into two.
 また、上記第2実施形態では、OpenGLを用いた線描画手法に、連続点描画手法と連続線描画手法とが含まれる場合を例示したが、OpenGLを用いた線描画手法以外の標準線描画手法にも、連続点描画手法と連続線描画手法とが含まれる態様であってもよい。 In the second embodiment, the case where the line drawing method using OpenGL includes the continuous point drawing method and the continuous line drawing method is exemplified. However, a standard line drawing method other than the line drawing method using OpenGL is used. In addition, a mode including a continuous point drawing method and a continuous line drawing method may be used.
 この場合、ステップSP34~ステップSP36において実行される描画処理は、標準線描画手法を用いた処理となる。 In this case, the drawing process executed in steps SP34 to SP36 is a process using a standard line drawing method.
 なお、OpenGLを用いた線描画手法を用いて描画処理を行うか、或いは標準線描画手法を用いて描画処理を行うかを、演算処理部の負荷に応じて決定するようにしてもよい。すなわち、演算処理部の負荷が小さいときは、OpenGLを用いた線描画手法を用いて描画処理を行い、演算処理部の負荷が小さいときは、標準線描画手法を用いて描画処理を行うようにしてもよい。 It should be noted that whether to perform drawing processing using a line drawing method using OpenGL or to perform drawing processing using a standard line drawing method may be determined according to the load of the arithmetic processing unit. In other words, when the load on the arithmetic processing unit is small, the drawing process is performed using the line drawing method using OpenGL, and when the load on the arithmetic processing unit is small, the drawing process is performed using the standard line drawing method. May be.
 本発明はその発明の範囲内において、各実施形態の自由な組み合わせ、或いは各実施形態の任意の構成要素の変形、もしくは各実施形態において任意の構成要素の省略が可能である。 In the present invention, within the scope of the invention, the embodiments can be freely combined, any component of each embodiment can be modified, or any component can be omitted in each embodiment.
 1 ナビゲーション装置、10A,10B 地図描画装置、11 描画処理部、12 記憶部、14 記憶装置、15 表示部、111 描画手法決定部、112 三角形分割部、114 線描画部、117 多角形描画部、118 表示制御部、140 オブジェクトデータ、141 描画データ、142 地物属性値 1 navigation device, 10A, 10B map drawing device, 11 drawing processing unit, 12 storage unit, 14 storage unit, 15 display unit, 111 drawing method determining unit, 112 triangulation unit, 114 line drawing unit, 117 polygon drawing unit, 118 display control unit, 140 object data, 141 drawing data, 142 feature attribute values

Claims (9)

  1.  地図画像上のオブジェクトを表す線状の図形を描画する際に用いる描画データ、および前記オブジェクトの地物属性を示す地物属性情報を取得する取得手段と、
     前記線状の図形を描画するための複数の描画手法を有する描画手段と、
     描画対象となる描画対象オブジェクトの地物属性情報に基づいて、前記複数の描画手法の中から、当該描画対象オブジェクトを表す線状の描画対象図形を描画する際の描画手法を選択する選択手段と、
    を備え、
     前記描画手段は、前記選択手段によって選択された描画手法を用いて、前記線状の描画対象図形を描画する地図描画装置。
    Obtaining means for obtaining drawing data used when drawing a linear figure representing an object on a map image, and feature attribute information indicating a feature attribute of the object;
    A drawing means having a plurality of drawing methods for drawing the linear figure;
    Selecting means for selecting a drawing method for drawing a linear drawing target graphic representing the drawing target object from the plurality of drawing methods based on the feature attribute information of the drawing target object to be drawn; ,
    With
    The said drawing means is a map drawing apparatus which draws the said linear drawing object figure using the drawing method selected by the said selection means.
  2.  前記描画手段は、前記複数の描画手法として、
      前記描画データに含まれる前記線状の描画対象図形の頂点データに基づいて、前記線状の描画対象図形を複数の三角形に分割して描画対象領域を特定することによって、前記線状の描画対象図形を描画する三角形分割描画手法と、
      前記線状の図形を描画可能な線描画手法と、
    を有する請求項1に記載の地図描画装置。
    The drawing means includes the plurality of drawing methods,
    Based on the vertex data of the linear drawing target figure included in the drawing data, the linear drawing target figure is identified by dividing the linear drawing target figure into a plurality of triangles and specifying a drawing target area. Triangular drawing method for drawing figures,
    A line drawing technique capable of drawing the linear figure;
    The map drawing apparatus according to claim 1, comprising:
  3.  前記選択手段は、前記地物属性情報に基づいて、前記線状の描画対象図形が複数の多角形の組み合わせで構成される特定の図形であると判断した場合、前記三角形分割描画手法を当該線状の描画対象図形を描画する際の描画手法として選択する請求項2に記載の地図描画装置。 When the selection unit determines that the linear drawing target graphic is a specific graphic composed of a combination of a plurality of polygons based on the feature attribute information, the triangulation drawing method is used as the line division drawing method. The map drawing apparatus according to claim 2, wherein the map drawing apparatus is selected as a drawing method when drawing a figure to be drawn.
  4.  前記特定の図形としては、鉄道線を示す図形が含まれる請求項3に記載の地図描画装置。 The map drawing device according to claim 3, wherein the specific figure includes a figure indicating a railway line.
  5.  前記線描画手法には、複数の点を並べて前記線状の図形を描く連続点描画手法と、有限直線を用いて線状の図形を描く連続線描画手法とが存在し、
     前記選択手段は、前記地物属性情報に基づいて、前記線状の描画対象図形が単一の線種で表される図形であると判断した場合であって、前記地図画像として表示される地図の縮尺が閾値以下のとき、前記連続点描画手法を当該線状の描画対象図形を描画する際の描画手法として選択する請求項4に記載の地図描画装置。
    The line drawing method includes a continuous point drawing method for drawing the line figure by arranging a plurality of points, and a continuous line drawing method for drawing a line figure using a finite straight line,
    The selection means determines that the linear drawing target graphic is a graphic represented by a single line type based on the feature attribute information, and is a map displayed as the map image The map drawing apparatus according to claim 4, wherein when the scale is less than or equal to a threshold value, the continuous point drawing method is selected as a drawing method for drawing the linear drawing target graphic.
  6.  前記選択手段は、前記地物属性情報に基づいて、前記線状の描画対象図形が単一の線種で表される図形であると判断した場合であって、前記地図画像として表示される地図の縮尺が閾値より大きいとき、前記連続線描画手法を当該線状の描画対象図形を描画する際の描画手法として選択する請求項5に記載の地図描画装置。 The selection means determines that the linear drawing target graphic is a graphic represented by a single line type based on the feature attribute information, and is a map displayed as the map image The map drawing apparatus according to claim 5, wherein when the scale is larger than a threshold, the continuous line drawing method is selected as a drawing method for drawing the line drawing target figure.
  7.  前記単一の線種で表される描画対象図形には、地図上の2つの領域間の境界を表す境界線を示す図形が含まれる請求項6に記載の地図描画装置。 The map drawing device according to claim 6, wherein the drawing target figure represented by the single line type includes a figure indicating a boundary line representing a boundary between two regions on the map.
  8.  地図画像上のオブジェクトを表す線状の図形を描画する際に用いる描画データ、および前記オブジェクトの地物属性を示す地物属性情報を取得する取得手段と、
     前記線状の図形を描画するための複数の描画手法を有する描画手段と、
     描画対象となる描画対象オブジェクトの地物属性情報に基づいて、前記複数の描画手法の中から、当該描画対象オブジェクトを表す線状の描画対象図形を描画する際の描画手法を選択する選択手段と、
     前記選択手段によって選択された描画手法を用いて描画された線状の図形を含む地図画像を表示部に出力する表示制御手段と、
    を備えるナビゲーション装置。
    Obtaining means for obtaining drawing data used when drawing a linear figure representing an object on a map image, and feature attribute information indicating a feature attribute of the object;
    A drawing means having a plurality of drawing methods for drawing the linear figure;
    Selecting means for selecting a drawing method for drawing a linear drawing target graphic representing the drawing target object from the plurality of drawing methods based on the feature attribute information of the drawing target object to be drawn; ,
    Display control means for outputting a map image including a linear figure drawn using the drawing technique selected by the selection means to a display unit;
    A navigation device comprising:
  9.  a)地図画像上のオブジェクトを表す線状の図形を描画する際に用いる描画データ、および前記オブジェクトの地物属性を示す地物属性情報を取得する工程と、
     b)描画対象となる描画対象オブジェクトの地物属性情報に基づいて、複数の描画手法の中から、当該描画対象オブジェクトを表す線状の描画対象図形を描画する際の描画手法を選択する工程と、
     c)前記b)工程において選択された描画手法を用いて、前記線状の描画対象図形を描画する工程と、
    を備える地図描画方法。
    a) obtaining drawing data used when drawing a linear figure representing an object on a map image, and feature attribute information indicating a feature attribute of the object;
    b) selecting a drawing method for drawing a linear drawing target graphic representing the drawing target object from a plurality of drawing methods based on the feature attribute information of the drawing target object to be drawn; ,
    c) using the drawing method selected in step b) to draw the line drawing target figure;
    A map drawing method comprising:
PCT/JP2012/052103 2012-01-31 2012-01-31 Map drawing device, navigation device and map drawing method WO2013114558A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2013556116A JP5777735B2 (en) 2012-01-31 2012-01-31 Map drawing device, navigation device, and map drawing method
CN201280068681.4A CN104081439A (en) 2012-01-31 2012-01-31 Map drawing device, navigation device and map drawing method
PCT/JP2012/052103 WO2013114558A1 (en) 2012-01-31 2012-01-31 Map drawing device, navigation device and map drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/052103 WO2013114558A1 (en) 2012-01-31 2012-01-31 Map drawing device, navigation device and map drawing method

Publications (1)

Publication Number Publication Date
WO2013114558A1 true WO2013114558A1 (en) 2013-08-08

Family

ID=48904638

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/052103 WO2013114558A1 (en) 2012-01-31 2012-01-31 Map drawing device, navigation device and map drawing method

Country Status (3)

Country Link
JP (1) JP5777735B2 (en)
CN (1) CN104081439A (en)
WO (1) WO2013114558A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016037525A1 (en) * 2014-09-12 2016-03-17 华为技术有限公司 Method and apparatus for determining map interface
CN106296772A (en) * 2015-05-19 2017-01-04 中船航海科技有限责任公司 A kind of Pattern Fill method for electron sea drawing territory
US10054460B2 (en) 2016-03-28 2018-08-21 Microsoft Technology Licensing, Llc Processing map-related user input to detect route requests
CN108460143A (en) * 2018-03-14 2018-08-28 国家测绘地理信息局第三地理信息制图院(四川省第二测绘地理信息工程院) A kind of map boundary jumps the method painted automatically
CN113127485A (en) * 2021-03-24 2021-07-16 中国电力工程顾问集团西南电力设计院有限公司 Method for processing linear ground object in power transmission line engineering measurement software

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719268B (en) * 2014-12-02 2019-05-07 北京四维图新科技股份有限公司 A kind of processing method and processing device of map datum
CN106155988A (en) * 2015-03-31 2016-11-23 阿里巴巴集团控股有限公司 Data drawing list method for drafting based on excel and relevant apparatus
CN106710435A (en) * 2015-07-23 2017-05-24 环达电脑(上海)有限公司 Map line drawing device and method
CN106502667B (en) * 2016-10-18 2019-09-03 广州视睿电子科技有限公司 A kind of rendering method and device
CN109949325A (en) * 2019-02-27 2019-06-28 上海晶赞融宣科技有限公司 Map boundary line determines method, apparatus and computer storage medium
CN111340908B (en) * 2020-02-10 2023-07-25 兰州交通大学 Rail electronic map generation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009058250A (en) * 2007-08-30 2009-03-19 Zenrin Datacom Co Ltd Map display device and method
JP2010072808A (en) * 2008-09-17 2010-04-02 Mitsubishi Electric Corp Drawing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100220104A1 (en) * 2007-09-13 2010-09-02 Shoji Tanaka Map drawing device
CN101159065A (en) * 2007-11-08 2008-04-09 武汉大学 Computer automatic drafting method of complicated map symbol

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009058250A (en) * 2007-08-30 2009-03-19 Zenrin Datacom Co Ltd Map display device and method
JP2010072808A (en) * 2008-09-17 2010-04-02 Mitsubishi Electric Corp Drawing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HIROYASU NEGISHI ET AL.: "A Study on acceleration for Embedded Vector Graphics", ITE TECHNICAL REPORT, vol. 33, no. 6, 4 February 2009 (2009-02-04), pages 213 - 216 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016037525A1 (en) * 2014-09-12 2016-03-17 华为技术有限公司 Method and apparatus for determining map interface
US10534801B2 (en) 2014-09-12 2020-01-14 Huawei Technologies Co., Ltd. Map screen determining method and apparatus
CN106296772A (en) * 2015-05-19 2017-01-04 中船航海科技有限责任公司 A kind of Pattern Fill method for electron sea drawing territory
US10054460B2 (en) 2016-03-28 2018-08-21 Microsoft Technology Licensing, Llc Processing map-related user input to detect route requests
CN108460143A (en) * 2018-03-14 2018-08-28 国家测绘地理信息局第三地理信息制图院(四川省第二测绘地理信息工程院) A kind of map boundary jumps the method painted automatically
CN113127485A (en) * 2021-03-24 2021-07-16 中国电力工程顾问集团西南电力设计院有限公司 Method for processing linear ground object in power transmission line engineering measurement software
CN113127485B (en) * 2021-03-24 2023-02-03 中国电力工程顾问集团西南电力设计院有限公司 Method for processing linear ground object in power transmission line engineering measurement software

Also Published As

Publication number Publication date
CN104081439A (en) 2014-10-01
JP5777735B2 (en) 2015-09-09
JPWO2013114558A1 (en) 2015-05-11

Similar Documents

Publication Publication Date Title
JP5777735B2 (en) Map drawing device, navigation device, and map drawing method
US9824482B2 (en) Map viewer and method
CN104268911A (en) Method and device for drawing route in map
JP2014529796A5 (en)
WO2006092853A1 (en) Map display device and map display method
CN102692228A (en) Landmark icons in digital maps
CN105320518A (en) Graphical representation of roads and routes using hardware tessellation
KR20150093518A (en) Graphic processing unit
US20160307294A1 (en) Systems and Methods for Displaying Patterns of Recurring Graphics on Digital Maps
US20160239996A1 (en) 3d map display system
JP5738442B2 (en) Map drawing device, navigation device, and map drawing method
KR101517465B1 (en) 3 asterization Engine and three-dimension graphics system for rasterizing by order adapted characteristic of polygon
JP5738441B2 (en) Map drawing device, navigation device, and map drawing method
CN111226095B (en) Dynamic remodelling of digital maps
JP6533075B2 (en) Map image display device, navigation device, map image display program, and map image display method
JP5777736B2 (en) MAP DATA CREATION DEVICE, MAP DATA CREATION METHOD, AND STORAGE MEDIUM
CN112330769B (en) Method and device for generating dotted line texture and electronic equipment
US11112264B2 (en) System and method for rendering an overpass object using map and link data
KR100896137B1 (en) Apparatus and method for expressing shading in three dimesion map service
JP2006268550A (en) Navigation device
JP6058216B2 (en) Drawing apparatus, drawing method, and drawing program
JP4551355B2 (en) 3D map display device
JP6247456B2 (en) Navigation device and map drawing method
US9574900B2 (en) Navigation apparatus and method for drawing map
KR100550130B1 (en) Line clipping method and method for displaying three dimensional image using line clipping

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12867595

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2013556116

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12867595

Country of ref document: EP

Kind code of ref document: A1