CN106294484A - A kind of method and device updating electronic map data - Google Patents
A kind of method and device updating electronic map data Download PDFInfo
- Publication number
- CN106294484A CN106294484A CN201510304513.6A CN201510304513A CN106294484A CN 106294484 A CN106294484 A CN 106294484A CN 201510304513 A CN201510304513 A CN 201510304513A CN 106294484 A CN106294484 A CN 106294484A
- Authority
- CN
- China
- Prior art keywords
- data
- area block
- area
- block
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000010586 diagram Methods 0.000 claims description 9
- 230000008878 coupling Effects 0.000 claims 2
- 238000010168 coupling process Methods 0.000 claims 2
- 238000005859 coupling reaction Methods 0.000 claims 2
- 239000010410 layer Substances 0.000 abstract description 109
- 239000002344 surface layer Substances 0.000 abstract description 6
- 238000006243 chemical reaction Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Instructional Devices (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明提供一种更新电子地图数据的方法及装置,该方法包括:获取基础业务数据;将所述基础业务数据转换成空间数据,并确定所述空间数据的数据类型,所述数据类型为点数据类型、线数据类型以及面数据类型;将所述空间数据添加到与所述数据类型对应的图层中,所述图层为点图层、线图层以及面图层,且所述图层预先加载到电子地图中。本发明通过预先在电子地图图层中加载点图层、线图层及面图层,将基础业务数据对应的空间数据实时添加到相应类型的预加载图层中,提高了更新电子地图数据的实时性。
The present invention provides a method and device for updating electronic map data. The method includes: obtaining basic business data; converting the basic business data into spatial data, and determining the data type of the spatial data, and the data type is point Data type, line data type and surface data type; Add the spatial data to the layer corresponding to the data type, the layer is a point layer, line layer and surface layer, and the map Layers are preloaded into the electronic map. The present invention adds the spatial data corresponding to the basic business data to the corresponding type of preloaded layers in real time by preloading the point layer, the line layer and the area layer in the electronic map layer, thereby improving the efficiency of updating the electronic map data. real-time.
Description
技术领域technical field
本发明涉及电子地图技术领域,尤其涉及一种更新电子地图数据的方法及装置。The invention relates to the technical field of electronic maps, in particular to a method and device for updating electronic map data.
背景技术Background technique
目前,为了使用方便,通常将移动通信行业的基础业务数据在电子地图上显示,其中,基础业务数据包括:基站所覆盖的小区或社区名字、地理位置,移动营业厅的标识以及地理位置,基站所处位置的经纬度,移动营业厅对应的经纬度等。At present, for the convenience of use, the basic business data of the mobile communication industry are usually displayed on an electronic map. The basic business data includes: the name and geographical location of the cell or community covered by the base station, the logo and geographical location of the mobile business hall, the base station The latitude and longitude of the location, the latitude and longitude corresponding to the mobile business hall, etc.
现有技术中将基础业务数据更新到电子地图中显示的方式如下:In the prior art, the way to update the basic business data to display in the electronic map is as follows:
首先,将基础业务数据以表格形式存储,如表一所示:First, store the basic business data in table form, as shown in Table 1:
表一Table I
其次,将存储有基础业务数据的表格打包并转换成SHP图层格式文件;再加入地理编码,使基础业务数据具有空间数据坐标系属性,成为空间数据。Secondly, the tables storing the basic business data are packaged and converted into SHP layer format files; then geocoding is added to make the basic business data have the attributes of the spatial data coordinate system and become spatial data.
最后,电子地图引擎根据空间数据的类型生成不同的图层,并关闭电子地图服务,将生成的图层与当前电子地图图层进行叠加后重新启动电子地图服务,即可将基础业务数据加载到电子地图中,实现电子地图数据的更新。Finally, the electronic map engine generates different layers according to the type of spatial data, closes the electronic map service, overlays the generated layer with the current electronic map layer, restarts the electronic map service, and then loads the basic business data into In the electronic map, the update of the electronic map data is realized.
其中,空间数据的数据类型与基础业务数据的数据类型相对应。基础业务数据的类型有三种,分别为:点数据类型、线数据类型以及面数据类型,对应的空间数据的数据类型也有三种,分别为:点数据类型、线数据类型以及面数据类型,空间数据生成的图层也包括三种,分别为:点图层、线图层和面图层。Wherein, the data type of the spatial data corresponds to the data type of the basic business data. There are three types of basic business data, namely: point data type, line data type, and area data type, and there are also three data types of corresponding spatial data, namely: point data type, line data type, and area data type, and spatial data type The layers generated by the data also include three types: point layer, line layer and area layer.
现有的更新电子地图数据的方式在实际应用时会出现以下情况:如果当前基础业务数据的数据类型仅为点数据类型,那么电子地图引擎就会生成点图层,此时,关闭电子地图服务,并将生成的点图层与当前电子地图图层进行叠加后重新启动电子地图服务。添加了上述点数据类型的基础业务数据后,如果需要将线数据类型或面数据类型的基础业务数据更新到电子地图中,那么电子地图引擎就会生成线图层或面图层,此时,需再一次关闭电子地图服务,并将生成的线图层或面图层与电子地图图层进行叠加后再一次重新启动电子地图服务,从而导致更新电子地图数据的实时性差。The existing method of updating electronic map data will appear in the following situation in actual application: if the data type of the current basic business data is only point data type, then the electronic map engine will generate a point layer, at this time, close the electronic map service , and restart the electronic map service after overlaying the generated point layer with the current electronic map layer. After adding the basic business data of the above point data type, if it is necessary to update the basic business data of the line data type or area data type to the electronic map, then the electronic map engine will generate a line layer or area layer. At this time, It is necessary to close the electronic map service again, and restart the electronic map service after superimposing the generated line layer or area layer with the electronic map layer, resulting in poor real-time update of electronic map data.
发明内容Contents of the invention
本发明提供一种更新电子地图数据的方法及装置,用以解决现有技术中更新电子地图数据的实时性差的问题。The invention provides a method and device for updating electronic map data to solve the problem of poor real-time updating of electronic map data in the prior art.
一种更新电子地图数据的方法,包括:A method for updating electronic map data, comprising:
获取基础业务数据;Obtain basic business data;
将所述基础业务数据转换成空间数据,并确定所述空间数据的数据类型,所述数据类型为点数据类型、线数据类型以及面数据类型;Converting the basic business data into spatial data, and determining the data type of the spatial data, the data types are point data type, line data type and surface data type;
将所述空间数据添加到与所述数据类型对应的图层中,所述图层为点图层、线图层以及面图层,且所述图层预先加载到电子地图中。The spatial data is added to layers corresponding to the data types, the layers are point layers, line layers and area layers, and the layers are preloaded into the electronic map.
所述方法中,所述将所述基础业务数据转换成空间数据,具体包括:In the method, the converting the basic business data into spatial data specifically includes:
确定所述基础业务数据的经纬度信息;Determining the latitude and longitude information of the basic business data;
通过预设对象模型对所述经纬度信息进行数据矢量处理,得到所述基础业务数据的空间数据。The data vector processing is performed on the latitude and longitude information through a preset object model to obtain the spatial data of the basic business data.
本发明实施例自动化的实现了将基础业务数据转换成空间数据。The embodiment of the present invention automatically converts basic business data into spatial data.
所述方法中,所述基础业务数据的数据类型为面数据类型;In the method, the data type of the basic business data is a plane data type;
所述确定所述基础业务数据的经纬度信息,具体包括:The determining the latitude and longitude information of the basic business data specifically includes:
绘制所述基础业务数据的第一区域块;drawing the first area block of the basic business data;
确定所述电子地图中每层级的各第二区域块;determining each second area block of each level in the electronic map;
确定各第二区域块中与所述第一区域块匹配的第二区域块;determining a second area block matching the first area block among the second area blocks;
将匹配的第二区域块的经纬度信息确定为所述基础业务数据的经纬度信息。Determining the latitude and longitude information of the matched second area block as the latitude and longitude information of the basic service data.
本发明实施例,针对不包括经纬度信息的面数据类型的基础业务数据,能够确定该基础业务数据的经纬度信息。In the embodiment of the present invention, for the basic business data of the area data type that does not include the latitude and longitude information, the latitude and longitude information of the basic business data can be determined.
所述方法中,所述确定各第二区域块中与所述第一区域块匹配的第二区域块,具体包括:In the method, the determining the second area block matching the first area block among the second area blocks specifically includes:
确定所述第一区域块对应的第一最小外接矩形,以及各第二区域块对应的各第二最小外接矩形;determining a first minimum circumscribing rectangle corresponding to the first region block, and each second minimum circumscribing rectangle corresponding to each second region block;
以设定长度和设定宽度的小网格为模板,分别对所述第一最小外接矩形以及各第二最小外接矩形进行小网格划分;Using a small grid with a set length and a set width as a template, divide the first minimum circumscribed rectangle and each second minimum circumscribed rectangle into small grids respectively;
确定所述第一区域块所占的小网格数量,并确定各第二区域块所占的小网格数量;determining the number of small grids occupied by the first area block, and determining the number of small grids occupied by each second area block;
在各第二区域块中确定与所述第一区域块所占的小网格的数量匹配,且与所述第一区域块的形状匹配的第二区域块。A second area block matching the number of small grids occupied by the first area block and matching the shape of the first area block is determined in each second area block.
本优选实施例,通过对各区域块进行小网格划分,确定与第一区域块匹配的第二区域块。In this preferred embodiment, the second area block matching the first area block is determined by performing small grid division on each area block.
所述方法中,所述在各第二区域块中确定与所述第一区域块所占的小网格的数量匹配,且与所述第一区域块的形状匹配的第二区域块,具体包括:In the method, the determination of the second area blocks in each second area block matches the number of small grids occupied by the first area block and matches the shape of the first area block, specifically include:
在各第二区域块中确定与所述第一区域块所占的小网格数量的差值在设定阈值范围内,且与所述第一区域块的形状相同的第二区域块。In each second area block, a second area block whose difference with the number of small grids occupied by the first area block is within a set threshold range and whose shape is the same as that of the first area block is determined.
本发明实施例,由于匹配的第二区域块与第一区域块相同,从而使确定出的第一区域块的经纬度信息更加准确。In the embodiment of the present invention, since the matched second area block is the same as the first area block, the determined latitude and longitude information of the first area block is more accurate.
本发明还提供一种更新电子地图数据的装置,其特征在于,包括:The present invention also provides a device for updating electronic map data, which is characterized in that it includes:
获取单元,用于获取基础业务数据;An acquisition unit, used to acquire basic business data;
转换单元,用于将所述基础业务数据转换成空间数据,并确定所述空间数据的数据类型,所述数据类型为点数据类型、线数据类型、面数据类型;A conversion unit, configured to convert the basic business data into spatial data, and determine the data type of the spatial data, where the data type is a point data type, a line data type, or a surface data type;
更新单元,用于将所述空间数据添加到与所述数据类型对应的图层中,所述图层为点图层、线图层以及面图层,且所述图层预先加载到电子地图中。An update unit, configured to add the spatial data to a layer corresponding to the data type, the layer is a point layer, a line layer and a surface layer, and the layers are preloaded into the electronic map middle.
所述装置中,所述转换单元具体用于:In the device, the conversion unit is specifically used for:
确定所述基础业务数据对应的经纬度信息;Determining the latitude and longitude information corresponding to the basic business data;
通过预设对象模型对所述经纬度信息进行数据矢量处理,得到所述基础业务数据对应的空间数据。Data vector processing is performed on the latitude and longitude information through a preset object model to obtain spatial data corresponding to the basic business data.
所述装置中,所述转换单元在确定所述基础业务数据经纬度时具体用于:所述基础业务数据的数据类型为面数据类型时,绘制所述基础业务面数据第一类区域块;In the device, when determining the latitude and longitude of the basic business data, the conversion unit is specifically configured to: draw the first type of area block of the basic business plane data when the data type of the basic business data is a plane data type;
确定所述电子地图中每层级的各第二区域快;Determining each second area block of each level in the electronic map;
确定各第二区域块中与所述第一区域块匹配的第二区域块;determining a second area block matching the first area block among the second area blocks;
将匹配的第二区域块的经纬度信息确定为所述基础业务数据的经纬度信息。Determining the latitude and longitude information of the matched second area block as the latitude and longitude information of the basic service data.
所述装置中,所述转换单元在确定各第二区域块中与所述第一区域块匹配的第二区域块时,具体用于:In the device, when the conversion unit determines the second area block matching the first area block among the second area blocks, it is specifically configured to:
确定所述第一区域块的最小外接矩形,以及各第二区域块对应的各第二最小外接矩形;determining the minimum circumscribing rectangle of the first area block, and each second minimum enclosing rectangle corresponding to each second area block;
以设定长度和设定宽度的小网格为模板,分别对所述第一最小外接矩形以及各第二最小外接矩形进行小网格划分;Using a small grid with a set length and a set width as a template, divide the first minimum circumscribed rectangle and each second minimum circumscribed rectangle into small grids respectively;
确定所述第一区域块所占的小网格数量,并确定各第二区域块所占的小网格数量;determining the number of small grids occupied by the first area block, and determining the number of small grids occupied by each second area block;
在各第二区域块中确定与所述第一区域块所占的小网格的数量匹配,且与所述第一区域块的形状匹配的第二区域块。A second area block matching the number of small grids occupied by the first area block and matching the shape of the first area block is determined in each second area block.
所述装置中,所述转换单元具体用于:In the device, the conversion unit is specifically used for:
在各第二区域块中确定与所述第一区域块所占的小网格数量的差值在设定阈值范围内,且与所述第一区域块的形状相同的第二区域块。In each second area block, a second area block whose difference with the number of small grids occupied by the first area block is within a set threshold range and whose shape is the same as that of the first area block is determined.
利用本发明提供更新电子地图的方法及装置,具有以下有益效果:由于预先在电子地图中加载了点图层、线图层和面图层三种图层,因此,只需要重启一次电子地图服务,后期如果需要更新电子地图数据,只需要将数据添加到相应的图层中即可,从而减少了关闭电子地图服务的次数,在一定程度上达到了在不需要关闭电子地图服务的情况下自动化的更新电子地图数据目的,提高了更新电子地图的实时性。Utilizing the method and device for updating an electronic map provided by the present invention has the following beneficial effects: since three layers of point layer, line layer and surface layer are loaded in the electronic map in advance, it is only necessary to restart the electronic map service once , if you need to update the electronic map data in the later stage, you only need to add the data to the corresponding layer, thereby reducing the number of times to close the electronic map service, and to a certain extent achieve automation without closing the electronic map service The purpose of updating the electronic map data improves the real-time performance of updating the electronic map.
附图说明Description of drawings
图1为本发明实施例提供的更新电子地图数据的方法流程图;FIG. 1 is a flow chart of a method for updating electronic map data provided by an embodiment of the present invention;
图2为本发明实施例提供的确定基础业务数据对应的经纬度信息的方法流程图;FIG. 2 is a flowchart of a method for determining latitude and longitude information corresponding to basic business data provided by an embodiment of the present invention;
图3为本发明实施例提供的确定各第二区域块中与第一区域块匹配的第二区域块的流程图;Fig. 3 is a flow chart of determining the second area block matching the first area block among the second area blocks provided by the embodiment of the present invention;
图4为本发明实施例提供的更新电子地图数据的装置示意图。Fig. 4 is a schematic diagram of an apparatus for updating electronic map data provided by an embodiment of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明提供的更新电子地图数据的方法及装置进行更详细地说明。The method and device for updating electronic map data provided by the present invention will be described in more detail below with reference to the accompanying drawings and embodiments.
本发明实施例提供一种更新电子地图数据的方法,如图1所示,包括:An embodiment of the present invention provides a method for updating electronic map data, as shown in Figure 1, including:
步骤101,获取基础业务数据。Step 101, acquiring basic business data.
具体的,获取的基础业务数据的数据类型包括点数据类型、线数据类型以及面数据类型。可从预先存储的表格中获取基础业务数据,也可从数据流中实时获取基础业务数据。Specifically, the data types of the obtained basic business data include point data types, line data types, and surface data types. Basic business data can be obtained from pre-stored tables, or real-time from data streams.
步骤102,将所述基础业务数据转换成空间数据,并确定所述空间数据的数据类型,所述数据类型包括点数据类型、线数据类型以及面数据类型。Step 102, converting the basic business data into spatial data, and determining the data type of the spatial data, the data type includes point data type, line data type and area data type.
具体的,基础业务数据并不能直接添加到电子地图图层中,而需要将基础业务数据转换成符合电子地图数据格式的空间数据,符合电子地图格式的空间数据的数据类型也分为:点数据类型、线数据类型和面数据类型。将所述基础业务数据对应的数据类型确定为该基础业务数据对应的空间数据的数据类型。Specifically, the basic business data cannot be directly added to the electronic map layer, but the basic business data needs to be converted into spatial data conforming to the electronic map data format. The data types of the spatial data conforming to the electronic map format are also divided into: point data type, line data type, and area data type. The data type corresponding to the basic business data is determined as the data type of the spatial data corresponding to the basic business data.
步骤103,将所述空间数据添加到与所述数据类型对应的图层中,所述图层为点图层、线图层以及面图层,且所述图层预先加载到电子地图中。Step 103, adding the spatial data to layers corresponding to the data types, the layers are point layers, line layers and area layers, and the layers are preloaded into the electronic map.
具体的,由于电子地图的数据一般使用矢量数据进行存储,在存储矢量数据时利用了几何图形,例如点、线(一系列点组成)、面(由至少三条线组成)来表现客观对象,因此,电子地图可包括点图层、线图层和面图层。本发明实施例在确定空间数据的数据类型后,将该空间数据添加到与数据类型相应的图层中,从而实现对电子地图数据的更新。本发明实施例确定出空间数据的数据类型后,根据空间数据的数据类型,将该空间数据实时添加到与数据类型对应的图层中。具体将空间数据添加到电子地图图层中的方法为现有方法,这里不再赘述。Specifically, because the data of the electronic map is generally stored using vector data, geometric figures such as points, lines (composed of a series of points), and surfaces (composed of at least three lines) are used to represent objective objects when storing vector data, so , the electronic map can include point layer, line layer and area layer. In the embodiment of the present invention, after the data type of the spatial data is determined, the spatial data is added to a layer corresponding to the data type, thereby realizing updating of the electronic map data. After the data type of the spatial data is determined in the embodiment of the present invention, the spatial data is added to the layer corresponding to the data type in real time according to the data type of the spatial data. The specific method for adding spatial data to the electronic map layer is an existing method, and will not be repeated here.
当确定出的空间数据的数据类型为点数据类型时,将该点空间数据添加到预先加载的点图层中,在更新电子地图以呈现给用户时,添加了点空间数据的点图层生成该点空间数据对应的点,并将各点呈现在电子地图中以供用户查看;当确定出的空间数据的数据类型为线数据类型时,将该线空间数据添加到预先加载的线图层中,在更新电子地图以呈现给用户时,添加了线空间数据的线图层将该线空间数据包含的各个点依次连接生成一条线,并将该条线呈现在电子地图中以供用户查看;当确定出的空间数据的数据类型为面数据类型时,将该面空间数据添加到预先加载的面图层中,在更新电子地图以呈现给用户时,添加了面空间数据的面图层将该面空间数据包含的各个点依次连接后进行渲染生成面区域,并将该面区域呈现在电子地图中以供用户查看。When the determined data type of the spatial data is a point data type, the point spatial data is added to the preloaded point layer, and when the electronic map is updated to present to the user, the point layer with the point spatial data added is generated The point corresponding to the point spatial data, and present each point in the electronic map for users to view; when the determined data type of the spatial data is a line data type, add the line spatial data to the preloaded line layer In , when the electronic map is updated to present to the user, the line layer added with the line spatial data connects each point contained in the line spatial data to generate a line, and presents the line in the electronic map for the user to view ; When the data type of the determined spatial data is the area data type, add the area spatial data to the preloaded area layer, and add the area layer of the area spatial data when updating the electronic map to present to the user The points included in the surface space data are connected in sequence and rendered to generate a surface area, and the surface area is presented on the electronic map for users to view.
本发明实施例中,基础业务数据包括:移动通信系统中基站的位置信息、基站的覆盖区域信息、网络运营商的营业厅所处的位置信息等,还可以包括其它对业务具有特殊要求的数据,这里不做限定。其中,更新的电子地图数据即更新电子地图中的业务图层的基础业务数据,电子地图的业务图层包括预先加载的点图层、线图层以及面图层,即本发明实施例更新的是电子地图的业务图层中的数据。业务图层为在电子地图中显示通信行业基础业务数据的图层,该业务图层中显示的数据均为基础业务数据。In the embodiment of the present invention, the basic business data includes: the location information of the base station in the mobile communication system, the coverage area information of the base station, the location information of the business hall of the network operator, etc., and may also include other data with special requirements for the business , there is no limitation here. Wherein, the updated electronic map data is to update the basic business data of the business layer in the electronic map, and the business layer of the electronic map includes the pre-loaded point layer, line layer and surface layer, which are updated in the embodiment of the present invention. It is the data in the operational layer of the electronic map. The business layer is a layer that displays the basic business data of the communication industry in the electronic map, and the data displayed in the business layer are all basic business data.
本发明实施例,由于预先在电子地图中加载了点图层、线图层和面图层三种图层,因此,只需要重启一次电子地图服务,后期如果需要更新电子地图数据,只需要将将数据添加到相应的图层中即可,从而在一定程度上达到了在不需要关闭电子地图服务的情况下自动化的更新电子地图数据目的,提高了更新电子地图的实时性。In the embodiment of the present invention, since the three layers of point layer, line layer and area layer are loaded in the electronic map in advance, it is only necessary to restart the electronic map service once. If the electronic map data needs to be updated later, only the Just add the data to the corresponding layer, so that to a certain extent, the purpose of automatically updating the electronic map data without closing the electronic map service is achieved, and the real-time performance of updating the electronic map is improved.
优选地,步骤102中,将所述基础业务数据转换成空间数据,具体包括:Preferably, in step 102, converting the basic business data into spatial data specifically includes:
确定所述基础业务数据对应的经纬度信息,通过预设对象模型对所述经纬度信息进行数据矢量处理,得到所述基础业务数据对应的空间数据。The latitude and longitude information corresponding to the basic service data is determined, and data vector processing is performed on the latitude and longitude information through a preset object model to obtain spatial data corresponding to the basic service data.
其中,基础业务数据包括基础业务数据对应的经纬度信息,根据经纬度信息,通过预设的对象模型对经纬度信息进行数据矢量处理,形成非拓扑的矢量数据(shapfile),通过对非拓扑的矢量数据进行处理得到基础业务数据对应的空间数据。本发明实施例能够实现自动的将基础业务数据转换成空间数据,不需要借助其它转换工具。Among them, the basic business data includes the latitude and longitude information corresponding to the basic business data. According to the latitude and longitude information, the data vector processing is performed on the latitude and longitude information through the preset object model to form non-topological vector data (shapfile). Process to obtain the spatial data corresponding to the basic business data. The embodiment of the present invention can automatically convert basic service data into spatial data without resorting to other conversion tools.
优选地,确定空间数据的数据类型可采用如下方式:Preferably, the following methods can be used to determine the data type of spatial data:
确定所述经纬度信息包括一组经纬度时,确定所述基础业务数据对应的数据类型为点数据类型;确定所述经纬度信息包括包括多组经纬度,且所述多组经纬度中至少包括两组不同的经纬度,且第一组经纬度和最后一组经纬度不同时,确定所述基础业务数据对应的数据类型为线数据类型;确定所述经纬度信息包括至少四组经纬度,且,第一组经纬度与最后一组经纬度相同时,确定所述基础业务数据对应的数据类型为面数据类型。也可利用现有技术中的其它方法确定空间数据的数据类型。其中,两组相同的经纬度指,其中一组经度和另一组的经度相同,且,其中一组纬度和另一组的纬度相同。When it is determined that the latitude and longitude information includes a set of latitude and longitude, it is determined that the data type corresponding to the basic business data is a point data type; it is determined that the latitude and longitude information includes multiple sets of latitude and longitude, and at least two different sets of latitude and longitude are included in the multiple sets of latitude and longitude Longitude and latitude, and when the first group of longitude and latitude and the last group of longitude and latitude are different, it is determined that the data type corresponding to the basic business data is a line data type; it is determined that the longitude and latitude information includes at least four groups of longitude and latitude, and the first group of longitude and latitude and the last When the longitude and latitude of the group are the same, it is determined that the data type corresponding to the basic business data is the plane data type. Other methods in the prior art may also be used to determine the data type of the spatial data. Wherein, two sets of the same longitude and latitude refer to that one set of longitudes is the same as the longitude of the other set, and that one set of latitudes is the same as the other set of latitudes.
具体的,根据基础业务数据中,各个基础业务数据对应的经纬度信息确定该基础业务数据对应的空间数据的数据类型,比如,一组经纬度表示为(x,y)其中,x表示经度,y表示纬度,则如果某个基础业务数据的经纬度信息为(110,40)则该基础业务数据对应的空间数据的数据类型为点数据类型;如果某个基础业务数据的经纬度信息为(110,40,111,41,…,115,40),即,该经纬度信息中第一组经纬度(110,40)与最后一个经纬度(115,40)不同且至少包括两组不同的经纬度,则该基础业务数据对应的空间数据的数据类型线数据类型;如果某个基础业务数据对应的经纬度信息为(110,40,111,41,…,112,42,110,40),即,该经纬度信息中至少包括四组经纬度,且第一组经纬度与最后一组经纬度相同,则该基础业务数据对应的空间数据的数据类型为面数据类型。Specifically, according to the latitude and longitude information corresponding to each basic business data in the basic business data, the data type of the spatial data corresponding to the basic business data is determined. latitude, if the latitude and longitude information of a certain basic business data is (110, 40), then the data type of the spatial data corresponding to the basic business data is a point data type; if the latitude and longitude information of a certain basic business data is (110, 40, 111, 41, ..., 115, 40), that is, the first group of longitude and latitude (110, 40) in the longitude and latitude information is different from the last longitude and latitude (115, 40) and includes at least two groups of different longitude and latitude, then the basic business data The data type of the corresponding spatial data is the line data type; if the latitude and longitude information corresponding to a certain basic business data is (110, 40, 111, 41, ..., 112, 42, 110, 40), that is, the latitude and longitude information includes at least Four sets of longitude and latitude, and the first set of longitude and latitude is the same as the last set of longitude and latitude, then the data type of the spatial data corresponding to the basic business data is the surface data type.
其中,将数据类型为点数据类型的空间数据添加到预先加载的点图层中对应的伪代码为:Among them, the pseudocode corresponding to adding the spatial data whose data type is point data type to the preloaded point layer is:
insert into点图层表名(空间字段,普通字段)values(st_point(经度,纬度),其它数据)//其中st_point为处理复杂SQL点对象涵数;insert into point layer table name (spatial field, ordinary field) values (st_point (longitude, latitude), other data)//where st_point is the function of processing complex SQL point objects;
将数据类型为线数据类型的空间数据添加到预先加载的线图层中对应的伪代码为:The pseudocode corresponding to adding the spatial data whose data type is line data type to the preloaded line layer is:
insert into线图层表名(空间字段,普通字段)values(st_line(经度,纬度,经度,纬度),其它数据)//其中st_line为处理复杂SQL线对象涵数;insert into line layer table name (spatial field, common field) values (st_line (longitude, latitude, longitude, latitude), other data)//where st_line is the function for processing complex SQL line objects;
将数据类型为面数据类型的空间数据添加到预先加载的面图层中对应的伪代码为:The pseudo-code corresponding to adding the spatial data whose data type is the area data type to the preloaded area layer is:
insert into面图层表名(空间字段,普通字段)values(st_polygon(经度,纬度,经度,纬度,经度,纬度,经度,纬度),其它数据)//其中st_polygon为处理复杂SQL面对象涵数。insert into surface layer table name (spatial field, common field) values(st_polygon(longitude, latitude, longitude, latitude, longitude, latitude, longitude, latitude), other data)//where st_polygon is the function for processing complex SQL surface objects .
具体的,面数据类型的基础业务数据可能包括经纬度信息,也可能不包括经纬度信息,针对包括经纬度信息的面数据类型的基础业务数据,确定所述基础业务数据对应的经纬度信息,具体包括:从所述基础业务数据中提取所述基础业务数据的经纬度信息。Specifically, the basic business data of the area data type may or may not include latitude and longitude information, and for the basic business data of the area data type including the latitude and longitude information, determine the latitude and longitude information corresponding to the basic business data, specifically including: The latitude and longitude information of the basic business data is extracted from the basic business data.
针对不包括经纬度信息的面数据类型的基础业务数据,则确定所述基础业务数据的经纬度信息,如图2所示,具体包括:For the basic business data of the area data type that does not include latitude and longitude information, then determine the latitude and longitude information of the basic business data, as shown in Figure 2, specifically including:
步骤201,绘制所述基础业务数据的第一区域块。Step 201, draw the first area block of the basic service data.
具体的,针对每个面数据类型的基础业务数据,该基础业务数据对应一个区域块,根据基础业务数据,手动绘制出该基础业务数据对应的第一区域块。Specifically, for the basic business data of each plane data type, the basic business data corresponds to an area block, and the first area block corresponding to the basic business data is manually drawn according to the basic business data.
步骤202,确定所述电子地图中每层级的各第二区域块。Step 202, determining each second area block of each level in the electronic map.
具体的,从层级最高的电子地图图层开始,确定该层级中的各第二区域块,如果电子地图层级分为省级、市级、县级、乡级,则电子地图层级由高到低分别为省级、市级、县级、乡级,其中,各层级的电子地图图层是由多个道路图层拼接而成,多个道路图层包括高速路图层、国道图层、省道图层、街道图层等,每个第二区域块是由至少三条道路相交部分对应的区域块。Specifically, starting from the highest-level electronic map layer, each second area block in this level is determined. If the electronic map level is divided into provincial, city, county, and township levels, the electronic map level is from high to low. They are provincial level, city level, county level, and township level. The electronic map layers at each level are composed of multiple road layers, and the multiple road layers include highway layers, national road layers, and provincial road layers. road layer, street layer, etc., and each second area block is an area block corresponding to the intersection of at least three roads.
步骤203,确定各第二区域块中与所述第一区域块匹配的第二区域块。Step 203, determining a second area block matching the first area block among the second area blocks.
具体的,将第一区域块分别与各第二区域块逐个进行匹配。其中,若各第二区域块中均不与第一区域块匹配,则确定第一区域块对应的基础业务数据为无效数据,不执行将该无效基础业务数据添加到电子地图中的操作。确定各第二区域块中与所述第一区域块匹配的第二区域块,具体可通过确定第二区域块中与第一区域块的面积匹配,且与第一区域块的形状匹配的第二区域块。也可通过其他方式确定匹配的第二区域块。Specifically, the first area block is matched with each second area block one by one. Wherein, if none of the second area blocks matches the first area block, it is determined that the basic service data corresponding to the first area block is invalid data, and the operation of adding the invalid basic service data to the electronic map is not performed. Determining the second area block that matches the first area block among the second area blocks, specifically by determining the second area block that matches the area of the first area block and matches the shape of the first area block among the second area blocks. Two area blocks. The matching second area block may also be determined in other ways.
步骤204,将匹配的第二区域块的经纬度信息确定为所述基础业务数据的经纬度信息。Step 204, determining the latitude and longitude information of the matched second area block as the latitude and longitude information of the basic service data.
其中,如果在某一层级找到与第一区域块匹配的第二区域块,则将该匹配的区域块的经纬度信息确定为第一区域块对应的基础业务数据的经纬度信息。具体的,可通过确定第一区域块与各第二区域块中的任一区域块的面积和形状都相同或相似时,确定匹配成功,还可以采用其它方式确定匹配成功,这里不做限定。Wherein, if a second area block matching the first area block is found at a certain level, the latitude and longitude information of the matched area block is determined as the latitude and longitude information of the basic service data corresponding to the first area block. Specifically, it can be determined that the matching is successful by determining that the areas and shapes of the first area block and any area block of the second area blocks are the same or similar, and other methods can also be used to determine that the matching is successful, which is not limited here.
利用本发明实施例,能够确定面数据类型的基础业务数据的经纬度信息,从而根据该确定的经纬度信息,确定该基础业务面数据对应的空间数据,进而将该空间数据添加到电子地图中,实现电子地图数据的在线实时更新。Utilizing the embodiment of the present invention, it is possible to determine the latitude and longitude information of the basic business data of the surface data type, thereby determining the spatial data corresponding to the basic business surface data according to the determined latitude and longitude information, and then adding the spatial data to the electronic map to realize Online real-time update of electronic map data.
基于图2所示的实施例,优选地,步骤203中,确定各第二区域块中与所述第一区域块匹配的第二区域块,如图3所示,具体包括:Based on the embodiment shown in FIG. 2 , preferably, in step 203, the second area block matching the first area block among the second area blocks is determined, as shown in FIG. 3 , specifically including:
步骤301,确定所述第一区域块对应的最小外接矩形,以及各第二区域块对应的各最小外接矩形。Step 301, determine the minimum circumscribed rectangle corresponding to the first area block, and each minimum circumscribed rectangle corresponding to each second area block.
具体的确定最小外接矩形的方式为现有方式,这里不再赘述。每个第二区域块对应一个最小外接矩形。The specific way of determining the minimum circumscribed rectangle is an existing way, and will not be repeated here. Each second area block corresponds to a minimum circumscribed rectangle.
步骤302,以设定长度和设定宽度的小网格为模板,分别对第一最小外接矩形以及各第二最小外接矩形进行小网格划分。Step 302 , using the small grids with a set length and a set width as templates, respectively divide the first minimum circumscribed rectangle and each second minimum circumscribed rectangle into small grids.
具体的,将第一最小外接矩形划分为若干个设定长度和设定宽度的小网格,并将各第二最小外接矩形都也划分为若干个设定长度和设定宽度的小网格。第一区域块在第一最小外接矩形中对应了一定数量的小网格,各第二区域块在其对应的第二外接矩形中对应了一定数量的小网格。Specifically, the first minimum circumscribed rectangle is divided into several small grids with a set length and a set width, and each second minimum circumscribed rectangle is also divided into several small grids with a set length and a set width . The first area block corresponds to a certain number of small grids in the first smallest circumscribing rectangle, and each second area block corresponds to a certain number of small grids in its corresponding second circumscribing rectangle.
步骤303,确定所述第一区域块所占的小网格数量,并确定各第二区域块所占的小网格数量。Step 303, determining the number of small grids occupied by the first area block, and determining the number of small grids occupied by each second area block.
具体的,将第一最小外接矩形进行小网格划分后,可确定第一区域块在第一最小外接矩形中所占的小网格数量,同样,将各第二最小外接矩形进行小网格划分后,可确定各第二区域块在对应的第二最小外接矩形中所占的小网格数量。Specifically, after the first minimum circumscribed rectangle is divided into small grids, the number of small grids occupied by the first area block in the first minimum circumscribed rectangle can be determined. Similarly, each second minimum circumscribed rectangle is divided into small grids After division, the number of small grids that each second area block occupies in the corresponding second smallest circumscribed rectangle can be determined.
步骤304,在各第二区域块中确定与所述第一区域块所占的小网格数量匹配,且与所述第一区域块形状匹配的第二区域块。Step 304, determining a second area block in each second area block that matches the number of small grids occupied by the first area block and matches the shape of the first area block.
具体的,首先,确定与第一区域块所占的小网格数量匹配的第二区域块;其次,在与第一区域块所占的小网格数量匹配的第二区域块中确定与第一区域块的形状匹配的第二区域块;或者,首先确定与第一区域块的形状匹配的第二区域块;其次,在与第一区域块的形状匹配的第二区域块中确定与第一区域块所占的小网格数量匹配的第二区域块。Specifically, firstly, determine the second area block that matches the number of small grids occupied by the first area block; secondly, determine the second area block that matches the number of small grids occupied by the first area block A second area block that matches the shape of the first area block; or, first determine the second area block that matches the shape of the first area block; secondly, determine the second area block that matches the shape of the first area block A second area block that matches the number of small grids occupied by the first area block.
本优选实施例,通过对各区域块进行小网格划分,确定与第一区域块匹配的第二区域块。In this preferred embodiment, the second area block matching the first area block is determined by performing small grid division on each area block.
优选地,在各第二区域块中确定与所述第一区域块所占的小网格数量匹配,且与所述第一区域块形状匹配的第二区域块,具体包括:在各第二区域块中确定与所述第一区域块所占的小网格数量的差值在设定阈值范围内,且与所述第一区域块的形状相同的第二区域块。Preferably, in each second area block, determining a second area block that matches the number of small grids occupied by the first area block and that matches the shape of the first area block specifically includes: in each second area block A second area block whose difference with the number of small grids occupied by the first area block is within a set threshold range and which has the same shape as the first area block is determined among the area blocks.
具体的,每个最小外接矩形中的每个小网格对应一个编号,其中每个最小外接矩形中为小网格编号的规则相同,第一区域块的形状与第二区域块的形状相同,具体包括:第一区域对应的各小网格在第一最小外接矩形中的编号与第二区域块对应的各小网格在第二最小外接矩形中的编号相同,且第一区域块的形状与第二区域块的形状相同。Specifically, each small grid in each minimum bounding rectangle corresponds to a number, wherein the rules for numbering the small grids in each minimum bounding rectangle are the same, the shape of the first area block is the same as that of the second area block, It specifically includes: the numbers of the small grids corresponding to the first area in the first smallest bounding rectangle are the same as the numbers of the small grids corresponding to the second area block in the second smallest bounding rectangle, and the shape of the first area block Same shape as the second area block.
具体的,步骤103中,将空间数据添加到与数据类型对应的图层中之前,还包括:确定空间数据对应的基础业务数据的地域属性信息,从而得知该基础业务数据所属的地域,以便在电子地图对应的地域显示该基础业务数据,以呈现给用户。Specifically, in step 103, before adding the spatial data to the layer corresponding to the data type, it also includes: determining the regional attribute information of the basic business data corresponding to the spatial data, so as to know the region to which the basic business data belongs, so that The basic service data is displayed in the region corresponding to the electronic map to present to the user.
可采用如下方式确定各基础业务数据的地域属性信息:The following methods can be used to determine the geographical attribute information of each basic business data:
首先,将基础业务数据对应的空间数据匹配到西安84大地坐标系等大地坐标系,通过匹配后的空间数据,根据不同的数据类型,对不同数据类型的空间数据进行不同的缓冲区运算。具体的,在设定BUFF(缓冲区)的范围内对空间数据进行BUFF运算,进行BUFF运算可通过启动空间数据缓冲函数实现,伪代码如下:First, the spatial data corresponding to the basic business data is matched to the geodetic coordinate system such as the Xi'an 84 geodetic coordinate system. Through the matched spatial data, different buffer operations are performed on the spatial data of different data types according to different data types. Specifically, the BUFF operation is performed on the spatial data within the range of the set BUFF (buffer), and the BUFF operation can be realized by starting the spatial data buffer function. The pseudo code is as follows:
Function buffGeometry(geometry):Geometry{Function buffGeometry(geometry):Geometry{
Geometry geo=Server.buffGeometry(geometry);//生成要素BUFF对象 Geometry geo=Server.buffGeometry(geometry);//Generate element BUFF object
return geo;} return geo; }
其次,确定不同数据类型的空间数据对应的BUFF结果与基础地图中区域图层(包括省界图层、市界图层、县界图层等)所在地域面的面数据的拓扑关系(包括相交关系、相离关系、包含关系)。其中,基础地图是电子地图中的一部分,该基础地图中的数据不会被更新,通常包括行政区域、森林、水系、道路以及POI(Point of Interest,兴趣点)等。地域面是指基础地图中真实存在的空间位置区域,一般由国界、省界、市界、县界等界线组成,并且在基础地图中属于固定索引图层。Secondly, determine the topological relationship (including intersection) between the BUFF results corresponding to the spatial data of different data types and the area data of the area layer (including the provincial boundary layer, city boundary layer, county boundary layer, etc.) in the base map. relationship, separation relationship, inclusion relationship). Wherein, the base map is a part of the electronic map, and the data in the base map will not be updated, usually including administrative regions, forests, water systems, roads, POI (Point of Interest, point of interest), etc. Geographic polygons refer to the real spatial location areas in the base map, generally composed of national boundaries, provincial boundaries, city boundaries, county boundaries, etc., and belong to fixed index layers in the base map.
再次,确定某一空间数据对应的BUFF包含于基础地图中区域图层所在地域面时,则该空间数据对应的基础业务数据具备该地域面的属性,比如,某一空间数据对应的BUFF包含于空间基础信息地域图层中的某个省下属的某个市,则该空间数据对应的基础业务数据的权限归属于该省下属的该市;确定某一空间数据对应的BUFF与基础地图中区域图层所在地域面相交或相离时,则该空间数据对应的基础业务数据不具备该地域面的属性。Again, when it is determined that the BUFF corresponding to a certain spatial data is included in the area where the regional layer in the base map is located, the basic business data corresponding to the spatial data has the attributes of the area. For example, the BUFF corresponding to a certain spatial data is included in For a city under a certain province in the basic spatial information geographic layer, the authority of the basic business data corresponding to the spatial data belongs to the city under the province; determine the BUFF corresponding to a certain spatial data and the area in the basic map When the region where the layer is located intersects or separates from each other, the basic business data corresponding to the spatial data does not have the attribute of the region.
其中,根据空间数据的地理位置信息的权限归属可得到该空间数据对应的基础业务数据的多重属性信息,比如某空间数据对应的基础业务数据属于某省是一个属性信息,该空间数据对应的基础业务数据具体属于某省下的某市,又是一个属性信息。根据BUFF结果与基础地图中区域图层所在地域面的比较结果,可得到各基础业务数据所拥有的地域属性信息。Among them, according to the attribution of the geographical location information of the spatial data, the multiple attribute information of the basic business data corresponding to the spatial data can be obtained. For example, it is an attribute information that the basic business data corresponding to a certain spatial data belongs to a certain province. The business data specifically belongs to a certain city in a certain province, which is another attribute information. According to the comparison result of the BUFF result and the regional plane where the regional layer in the basic map is located, the regional attribute information owned by each basic business data can be obtained.
进一步地,可根据基础业务数据的地域属性信息确定基础业务数据在电子地图上的可见层级,即基础业务数据被访问的层级权限信息,以便确定在电子地图的哪个层级显示该基础业务数据以呈现给用户,具体为:Further, the visible level of the basic business data on the electronic map can be determined according to the geographic attribute information of the basic business data, that is, the access level authority information of the basic business data, so as to determine which level of the electronic map to display the basic business data to present to the user, specifically:
针对每个基础业务数据,根据该基础业务数据的地域属性信息,从电子地图的配置文件中获取电子地图中该基础业务数据所属的地域的可见层级(电子地图的切片级别中的可视层级),使该基础业务数据的可见层级默认与该基础业务数据所属的地域的可见层级保持一致。具体实现的伪代码如下:For each basic business data, according to the regional attribute information of the basic business data, the visible level of the region to which the basic business data belongs in the electronic map (the visible level in the slice level of the electronic map) is obtained from the configuration file of the electronic map , so that the visible hierarchy of the basic business data is consistent with the visible hierarchy of the region to which the basic business data belongs by default. The specific implementation pseudo code is as follows:
Function setMapLayerLevelFilter(){Function setMapLayerLevelFilter(){
map.enableLayerLevelLocaltion(number level);//启动对图层进行层级可见范围过滤方法,默认启动与基础地图保持一致}; map.enableLayerLevelLocaltion(number level);//Enable the hierarchical visible range filtering method for the layer, and the default activation is consistent with the base map};
进一步地,可根据基础业务数据的地域属性信息确定基础业务数据在电子地图中的地图访问地域权限,具体为:Further, the map access regional authority of the basic business data in the electronic map can be determined according to the regional attribute information of the basic business data, specifically:
针对每个基础业务数据,根据该基础业务数据的地域属性信息,从电子地图的权限配置表中获取地域配置表信息;并根据该基础业务数据的地域属性信息,对该基础业务数据进行隐藏与显示设置,即,若当前地图的可视范围不包括该基础业务数据时,不加载该基础业务数据,并不在电子地图上显示该基础业务数据,若当前地图的可视范围包括该基础业务数据时,加载该基础业务数据,并在电子地图上显示该基础业务数据。具体实现的伪代码如下:For each basic business data, according to the regional attribute information of the basic business data, the regional configuration table information is obtained from the authority configuration table of the electronic map; and according to the regional attribute information of the basic business data, the basic business data is hidden and Display settings, that is, if the visible range of the current map does not include the basic business data, the basic business data will not be loaded, and the basic business data will not be displayed on the electronic map. If the visible range of the current map includes the basic business data , load the basic business data and display the basic business data on the electronic map. The specific implementation pseudo code is as follows:
Function setMapLayerFilter(){Function setMapLayerFilter(){
map.enableLayerLocaltion();//启动对图层进行基于位置过滤方法} map.enableLayerLocaltion();//Start the location-based filtering method for the layer}
具体的,上述确定各基础业务数据的地域属性信息的方法、根据基础业务数据的地域属性信息确定基础业务数据在电子地图上的可见层级的方法以及根据基础业务数据的地域属性信息确定基础业务数据在电子地图中的地图访问地域权限的方法均为现有技术,这里不做过多说明。Specifically, the above-mentioned method for determining the regional attribute information of each basic business data, the method for determining the visible level of the basic business data on the electronic map according to the regional attribute information of the basic business data, and the method for determining the basic business data according to the regional attribute information of the basic business data The methods for accessing the regional authority of the map in the electronic map are all existing technologies, and will not be described too much here.
具体的,在某基础业务数据所属的地域之外的范围内接收到访问该基础业务数据的请求时,则拒绝该访问请求,即不允许在该基础业务数据所属的地域之外的范围内访问该基础业务数据。例如某基础业务数据属于A省,则在B省不具备访问该基础业务数据的权限。Specifically, when a request to access the basic business data is received outside the region to which the basic business data belongs, the access request is rejected, that is, access outside the region to which the basic business data belongs is not allowed The basic business data. For example, if some basic business data belongs to province A, province B does not have the right to access the basic business data.
基于与上述发明实施例提供的更新电子地图数据的方法相同的发明构思,本发明实施例还提供一种更新电子地图数据的装置,如图4所示,包括:Based on the same inventive concept as the method for updating electronic map data provided by the above-mentioned embodiment of the invention, the embodiment of the present invention also provides a device for updating electronic map data, as shown in FIG. 4 , including:
获取单元401,用于获取基础业务数据;An acquisition unit 401, configured to acquire basic business data;
转换单元402,用于将所述基础业务数据转换成空间数据,并确定所述空间数据的数据类型,所述数据类型为点数据类型、线数据类型、面数据类型;A conversion unit 402, configured to convert the basic business data into spatial data, and determine the data type of the spatial data, where the data type is a point data type, a line data type, or a surface data type;
更新单元403,用于将所述空间数据添加到与所述数据类型对应的图层中,所述图层为点图层、线图层以及面图层,且所述图层预先加载到电子地图中。An updating unit 403, configured to add the spatial data to a layer corresponding to the data type, the layer is a point layer, a line layer, and a surface layer, and the layers are preloaded into the electronic in the map.
优选地,所述装置中,所述转换单元具体用于:Preferably, in the device, the conversion unit is specifically used for:
确定所述基础业务数据对应的经纬度信息;Determining the latitude and longitude information corresponding to the basic business data;
通过预设对象模型对所述经纬度信息进行数据矢量处理,得到所述基础业务数据对应的空间数据。Data vector processing is performed on the latitude and longitude information through a preset object model to obtain spatial data corresponding to the basic service data.
优选地,所述装置中,所述转换单元在确定所述基础业务数据经纬度时具体用于:所述基础业务数据的数据类型为面数据类型时,绘制所述基础业务面数据第一类区域块;Preferably, in the device, when the conversion unit determines the latitude and longitude of the basic business data, it is specifically configured to: draw the first type area of the basic business plane data when the data type of the basic business data is a plane data type piece;
确定所述电子地图中每层级的各第二区域快;Determining each second area block of each level in the electronic map;
确定各第二区域块中与所述第一区域块匹配的第二区域块;determining a second area block matching the first area block among the second area blocks;
将匹配的第二区域块的经纬度信息确定为所述基础业务数据的经纬度信息。Determining the latitude and longitude information of the matched second area block as the latitude and longitude information of the basic service data.
优选地,所述装置中,所述转换单元在确定各第二区域块中与所述第一区域块匹配的第二区域块时,具体用于:Preferably, in the device, when the conversion unit determines the second area block matching the first area block among the second area blocks, it is specifically configured to:
确定所述第一区域块的最小外接矩形,以及各第二区域块对应的各第二最小外接矩形;determining the minimum circumscribing rectangle of the first area block, and each second minimum enclosing rectangle corresponding to each second area block;
以设定长度和设定宽度的小网格为模板,分别对所述第一最小外接矩形以及各第二最小外接矩形进行小网格划分;Using a small grid with a set length and a set width as a template, divide the first minimum circumscribed rectangle and each second minimum circumscribed rectangle into small grids respectively;
确定所述第一区域块所占的小网格数量,并确定各第二区域块所占的小网格数量;determining the number of small grids occupied by the first area block, and determining the number of small grids occupied by each second area block;
在各第二区域块中确定与所述第一区域块所占的小网格的数量匹配,且与所述第一区域块的形状匹配的第二区域块。A second area block matching the number of small grids occupied by the first area block and matching the shape of the first area block is determined in each second area block.
优选地,所述装置中,所述转换单元具体用于:Preferably, in the device, the conversion unit is specifically used for:
在各第二区域块中确定与所述第一区域块所占的小网格数量的差值在设定阈值范围内,且与所述第一区域块的形状相同的第二区域块。In each second area block, a second area block whose difference with the number of small grids occupied by the first area block is within a set threshold range and whose shape is the same as that of the first area block is determined.
利用本发明实施例提供的更新电子地图数据的方法及装置,具有以下有益效果:由于预先在电子地图中加载了点图层、线图层和面图层三种图层,因此,只需要重启一次电子地图服务,后期如果需要更新电子地图数据,只需要将数据添加到相应的图层中即可,从而减少了关闭电子地图服务的次数,在一定程度上达到了在不需要关闭电子地图服务的情况下自动化的更新电子地图数据目的,提高了更新电子地图的实时性。Utilizing the method and device for updating electronic map data provided by the embodiments of the present invention has the following beneficial effects: since three layers of point layer, line layer and area layer are loaded in the electronic map in advance, only need to restart Once an electronic map service, if you need to update the electronic map data later, you only need to add the data to the corresponding layer, thereby reducing the number of times to close the electronic map service, and to a certain extent, it is possible to achieve the goal of not needing to close the electronic map service. In the case of automatically updating the electronic map data purpose, the real-time performance of updating the electronic map is improved.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510304513.6A CN106294484B (en) | 2015-06-05 | 2015-06-05 | A method and device for updating electronic map data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510304513.6A CN106294484B (en) | 2015-06-05 | 2015-06-05 | A method and device for updating electronic map data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106294484A true CN106294484A (en) | 2017-01-04 |
CN106294484B CN106294484B (en) | 2019-11-08 |
Family
ID=57659123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510304513.6A Active CN106294484B (en) | 2015-06-05 | 2015-06-05 | A method and device for updating electronic map data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294484B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107862979A (en) * | 2017-12-27 | 2018-03-30 | 昆山爱上艺术品有限公司 | A kind of map line drawing handicraft picture and preparation method thereof |
CN109241207A (en) * | 2017-06-30 | 2019-01-18 | 上海大唐移动通信设备有限公司 | A kind of method and device showing data on map |
CN110785797A (en) * | 2018-06-06 | 2020-02-11 | 北京嘀嘀无限科技发展有限公司 | System and method for identifying grids of geographic regions in a map |
CN111666357A (en) * | 2019-03-05 | 2020-09-15 | 阿里巴巴集团控股有限公司 | Method and device for organizing map slice data |
CN114090606A (en) * | 2021-11-30 | 2022-02-25 | 中国电信集团系统集成有限责任公司 | Electronic map target object information updating method and system |
CN114238541A (en) * | 2021-12-22 | 2022-03-25 | 广东省交通规划设计研究院集团股份有限公司 | Sensitive target information acquisition method and device and computer equipment |
CN114360255A (en) * | 2022-03-21 | 2022-04-15 | 北京闪马智建科技有限公司 | Flow determination method and device, storage medium and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101008573A (en) * | 2006-01-27 | 2007-08-01 | 环达电脑(上海)有限公司 | Method for displaying map date matching the current position in mobile device |
CN101109639A (en) * | 2006-07-18 | 2008-01-23 | 株式会社电装 | Navigation system |
CN101650890A (en) * | 2009-09-18 | 2010-02-17 | 西安煤航信息产业有限公司 | Method for expressing processing of roads on map |
CN102375879A (en) * | 2011-08-22 | 2012-03-14 | 河南理工大学 | Mobile GIS (Geographic Information System) system based on intelligent mobile phone and application thereof |
CN102997928A (en) * | 2011-09-08 | 2013-03-27 | 北京掌城科技有限公司 | Inter-city road network index and matching method |
CN103678743A (en) * | 2012-09-17 | 2014-03-26 | 南车青岛四方机车车辆股份有限公司 | Subway limit drawing method |
-
2015
- 2015-06-05 CN CN201510304513.6A patent/CN106294484B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101008573A (en) * | 2006-01-27 | 2007-08-01 | 环达电脑(上海)有限公司 | Method for displaying map date matching the current position in mobile device |
CN101109639A (en) * | 2006-07-18 | 2008-01-23 | 株式会社电装 | Navigation system |
CN101650890A (en) * | 2009-09-18 | 2010-02-17 | 西安煤航信息产业有限公司 | Method for expressing processing of roads on map |
CN102375879A (en) * | 2011-08-22 | 2012-03-14 | 河南理工大学 | Mobile GIS (Geographic Information System) system based on intelligent mobile phone and application thereof |
CN102997928A (en) * | 2011-09-08 | 2013-03-27 | 北京掌城科技有限公司 | Inter-city road network index and matching method |
CN103678743A (en) * | 2012-09-17 | 2014-03-26 | 南车青岛四方机车车辆股份有限公司 | Subway limit drawing method |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109241207A (en) * | 2017-06-30 | 2019-01-18 | 上海大唐移动通信设备有限公司 | A kind of method and device showing data on map |
CN109241207B (en) * | 2017-06-30 | 2021-06-11 | 上海大唐移动通信设备有限公司 | Method and device for displaying data on map |
CN107862979A (en) * | 2017-12-27 | 2018-03-30 | 昆山爱上艺术品有限公司 | A kind of map line drawing handicraft picture and preparation method thereof |
CN107862979B (en) * | 2017-12-27 | 2020-09-08 | 昆山爱上艺术品有限公司 | Map line drawing craft picture and manufacturing method thereof |
CN110785797A (en) * | 2018-06-06 | 2020-02-11 | 北京嘀嘀无限科技发展有限公司 | System and method for identifying grids of geographic regions in a map |
CN110785797B (en) * | 2018-06-06 | 2020-08-14 | 北京嘀嘀无限科技发展有限公司 | System and method for identifying grids of geographic regions in a map |
US11526536B2 (en) | 2018-06-06 | 2022-12-13 | Beijing Didi Infinity Technology And Development Co., Ltd. | Systems and methods for identifying grids of geographical region in map |
CN111666357A (en) * | 2019-03-05 | 2020-09-15 | 阿里巴巴集团控股有限公司 | Method and device for organizing map slice data |
CN114090606A (en) * | 2021-11-30 | 2022-02-25 | 中国电信集团系统集成有限责任公司 | Electronic map target object information updating method and system |
CN114238541A (en) * | 2021-12-22 | 2022-03-25 | 广东省交通规划设计研究院集团股份有限公司 | Sensitive target information acquisition method and device and computer equipment |
CN114360255A (en) * | 2022-03-21 | 2022-04-15 | 北京闪马智建科技有限公司 | Flow determination method and device, storage medium and electronic device |
CN114360255B (en) * | 2022-03-21 | 2022-08-30 | 北京闪马智建科技有限公司 | Flow determination method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN106294484B (en) | 2019-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106294484B (en) | A method and device for updating electronic map data | |
CN110321443B (en) | Three-dimensional live-action model database construction method and device and data service system | |
CN112559667B (en) | Map editor, map engine, map editing system, map editing method, and storage medium | |
US20030187819A1 (en) | Three-dimensional volumetric geo-spatial querying | |
WO2017206484A1 (en) | Geographic data presentation method and apparatus | |
CN105160707B (en) | Threedimensional model quick visualization method based on viewpoint index | |
CN109688532A (en) | A kind of method and device dividing city function region | |
CN104408297A (en) | General aviation weather information processing system | |
CN104537031B (en) | The amending method and device of a kind of map datum | |
CN111859187B (en) | POI query method, device, equipment and medium based on distributed graph database | |
CN110059209A (en) | Information of real estate display methods, device, equipment and storage medium | |
US20170186225A1 (en) | Method and apparatus for generating a composite indexable linear data structure to permit selection of map elements based on linear elements | |
CN106504523A (en) | A kind of traffic isochrone information generating method and device | |
CN109992640A (en) | Determination method and device, equipment and the storage medium of position grid | |
KR101797325B1 (en) | Map processing method based on multi-scale model for building object | |
CN106611438A (en) | Method and device for updating and slicing local area of three-dimensional simulation map | |
Aringer et al. | Bavarian 3D building model and update concept based on LiDAR, image matching and cadastre information | |
CN106611056B (en) | Method and device for cutting three-dimensional simulation map | |
CN105844031A (en) | Mobile phone positioning data based urban traffic corridor identification method | |
CN107330975A (en) | A kind of three-dimensional military marker mapping system | |
CN103985249A (en) | Road elevation information extracting method and device | |
CN114463499A (en) | Building three-dimensional modeling method and device | |
CN114238528A (en) | Map loading method and device, electronic equipment and storage medium | |
Markowska et al. | An evaluation of GIS tools for generating area cartograms | |
CN110887495B (en) | Method for applying real-time road conditions of cloud platform to urban emergency GIS platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |