GIS vector map generation method, device and equipment and computer storage medium

By generating vector map outlines on electronic maps and overlaying them with the planar map to be drawn, GIS information is automatically added, solving the problem of low efficiency in GIS vector map generation in existing technologies and achieving efficient GIS vector map generation.

CN115272512BActive Publication Date: 2026-03-03CHINA MOBILE GROUP DESIGN INST +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110483108.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-30
Publication Date
2026-03-03
Estimated Expiration
2041-04-30

AI Technical Summary

Technical Problem

The efficiency of generating GIS vector maps in existing technologies is relatively low, mainly because users manually input the latitude and longitude of the indoor environment, resulting in low efficiency in vector map generation.

Method used

The electronic map obtains target address information from the Internet map, generates vector vector outlines in response to outline drawing operations, overlays them with the planar map to be drawn, obtains the latitude and longitude information of the vector vector outlines for marking, and finally performs vectorization processing to generate GIS vector maps.

Benefits of technology

It enables the automated generation of GIS vector maps, improving generation efficiency and avoiding the inefficient process of manually inputting geographic coordinate point information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115272512B_ABST
    Figure CN115272512B_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of computer data processing, and disclose a GIS vector map generation method, device and equipment and a computer storage medium. The method comprises: obtaining a vector map generation request, wherein the vector map generation request comprises target address information and a to-be-drawn plan; obtaining an electronic map corresponding to the target address information through an Internet map; generating a vector map contour in the electronic map in response to a contour drawing operation; superimposing the vector map contour and the to-be-drawn plan; obtaining target longitude and latitude information of the vector map contour in the electronic map, marking the to-be-drawn plan in the electronic map with longitude and latitude according to the target longitude and latitude information; and performing vectorization processing on the to-be-drawn plan marked with longitude and latitude to obtain a target GIS vector map corresponding to the target address information. Through the above method, the present application achieves efficient GIS vector map generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer data processing technology, specifically to a method, apparatus, device, and computer storage medium for generating GIS vector graphics. Background Technology

[0002] In the field of mobile communications, in order to manage and troubleshoot indoor communication equipment, it is necessary to locate the communication equipment indoors. When performing indoor positioning, it is necessary to use a vector map with geographic information corresponding to the indoor environment, that is, a GIS vector map of the indoor environment.

[0003] The inventors discovered during the implementation of the existing technology that the efficiency and accuracy of adding geographic information to the vector map corresponding to the indoor floor plan based on the latitude and longitude of the indoor environment by having the user manually input the latitude and longitude are both low, resulting in low efficiency in generating GIS vector maps. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention provide a GIS vector map generation method, apparatus, device, and computer storage medium to solve the problem of low efficiency in GIS vector map generation in the prior art.

[0005] According to one aspect of the present invention, a method for generating GIS vector graphics is provided, the method comprising:

[0006] Obtain a vector graphic generation request, which includes target address information and a planar map to be drawn;

[0007] Obtain the electronic map corresponding to the target address information through an internet map;

[0008] In response to the contour drawing operation, a vector map contour is generated in the electronic map;

[0009] Overlay the vector outline onto the planar image to be drawn;

[0010] Obtain the target latitude and longitude information of the vector image outline in the electronic map, and mark the latitude and longitude of the planar map to be drawn in the electronic map according to the target latitude and longitude information;

[0011] The planar map to be drawn after latitude and longitude marking is vectorized to obtain the target GIS vector map corresponding to the target address information.

[0012] In an alternative approach, the method further includes:

[0013] Determine the target latitude and longitude range based on the target address information;

[0014] Call an internet map service to obtain electronic map data corresponding to the latitude and longitude range of the target;

[0015] Create a map container and generate map layers in the map container based on the electronic map data.

[0016] In one alternative approach, the contour drawing operation includes drawing control parameter information; the method further includes:

[0017] Create a first layer and overlay the first layer onto the map layer;

[0018] Draw the vector outline on the first layer according to the drawing control parameter information.

[0019] In an alternative approach, the method further includes:

[0020] A second layer is generated in the map container based on the plan to be drawn.

[0021] Overlay the second layer onto the first layer.

[0022] In an alternative approach, the method further includes:

[0023] In response to the plan adjustment operation, adjust the second layer;

[0024] When it is determined that the adjustment of the second layer is complete, the latitude and longitude information corresponding to the vector image outline in the map layer is obtained as the target latitude and longitude information.

[0025] In an alternative approach, the method further includes:

[0026] Determine the first pixel coordinates of each first pixel point in the planar drawing to be drawn and the second pixel coordinates of each second pixel point in the vector outline;

[0027] Each first pixel coordinate is matched with each second pixel coordinate, and the second pixel point corresponding to the matched second pixel coordinate is used as the positioning reference point. The first pixel point corresponding to the matched second pixel coordinate is used as the point to be marked.

[0028] Obtain the first latitude and longitude information of the positioning reference point in the map layer;

[0029] Based on the first latitude and longitude information, the points to be marked are marked with latitude and longitude on the planar map to be drawn.

[0030] In one alternative approach, the planar adjustment operation includes adjusting control point parameter information; the control point is one of the vertices of the planar graph to be drawn.

[0031] The method further includes: determining the positional relationship between each of the other vertices of the plan view to be drawn and the adjustment control point;

[0032] The third pixel coordinate of the adjustment control point is determined based on the adjustment control point parameter information;

[0033] The fourth pixel coordinates of each of the other vertices of the planar graph to be drawn are determined based on the third pixel coordinates and the positional relationship.

[0034] The planar image to be drawn is adjusted in the second layer based on the third pixel coordinates and the fourth pixel coordinates.

[0035] According to another aspect of the present invention, a GIS vector map generation apparatus is provided, comprising:

[0036] The first acquisition module is used to acquire a vector graphic generation request, which includes target address information and a plan view to be drawn;

[0037] The second acquisition module is used to acquire the electronic map corresponding to the target address information through an internet map;

[0038] A drawing module is used to generate vector graphic outlines in the electronic map in response to outline drawing operations;

[0039] An overlay module is used to overlay the vector graphic outline with the planar graphic to be drawn;

[0040] The marking module is used to obtain the target latitude and longitude information of the vector image outline in the electronic map, and to mark the planar map to be drawn in the electronic map according to the target latitude and longitude information;

[0041] The processing module is used to vectorize the latitude and longitude marked planar map to be drawn, so as to obtain the target GIS vector map corresponding to the target address information.

[0042] According to another aspect of the present invention, a GIS vector map generation device is provided, comprising:

[0043] The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus.

[0044] The memory is used to store at least one executable instruction that causes the processor to perform the operation of the GIS vector map generation method.

[0045] According to another aspect of the present invention, a computer-readable storage medium is provided, the storage medium storing at least one executable instruction that causes a GIS vector map generation device to perform the operation of the GIS vector map generation method.

[0046] This invention first obtains a vector map generation request, which includes target address information and a planar map to be drawn. Then, it obtains an electronic map corresponding to the target address information from an internet map and, in response to a contour drawing operation, generates a vector map contour in the electronic map. The latitude and longitude information of the vector map contour in the electronic map provides the GIS information for the planar map to be drawn. Next, the vector map contour is overlaid on the planar map to be drawn, so that each point in the planar map corresponds to a point in the vector map contour with latitude and longitude information. Finally, the target latitude and longitude information of the vector map contour in the electronic map is obtained, and the planar map to be drawn in the electronic map is marked with latitude and longitude based on the target latitude and longitude information, realizing the automatic addition of GIS information. Finally, the latitude and longitude marked planar map is vectorized to obtain the target GIS vector map corresponding to the target address information.

[0047] Therefore, this embodiment of the invention draws a vector map outline on an electronic map and matches the planar map to be drawn with the vector map outline. This allows for the automatic addition of GIS information to the planar map to be drawn using the latitude and longitude information of the vector map outline on the electronic map. This overcomes the problem of inefficient GIS vector map generation caused by the need to manually input the geographic coordinate point information of the vector map base map in the prior art.

[0048] The above description is merely an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0049] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0050] Figure 1 A flowchart illustrating the GIS vector map generation method provided in an embodiment of the present invention is shown;

[0051] Figure 2A schematic diagram of the structure of the GIS vector map generation device provided in an embodiment of the present invention is shown;

[0052] Figure 3 A schematic diagram of the structure of the GIS vector map generation device provided in an embodiment of the present invention is shown. Detailed Implementation

[0053] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0054] Before describing the GIS vector map generation method of the present invention, the relevant terms will be explained.

[0055] GIS: Geographic Information System, is an information system used to collect, store, manage, analyze, and represent spatial data. It serves as a tool for representing and simulating the real spatial world and for processing and analyzing spatial data. With the application and popularization of information technologies such as remote sensing, internet technology, and computer technology, GIS has gradually shifted from a purely technical and research-oriented approach to a geographic information service-oriented one.

[0056] GeoJSON: A format for encoding various geographic data structures, a geospatial information data exchange format based on JavaScript object representation.

[0057] SHP, short for Shapefile, is an open spatial data format developed by the Environmental Systems Research Institute (ESRI). This file format has become an open standard in the geographic information software industry. Shapefiles are used to describe geometric objects: points, polylines, and polygons. Shapefile is a vector graphics format that can save the position and related attributes of geometric shapes.

[0058] OpenLayers: As a GIS service client, it is an open-source WebGIS engine. It can load GeoJSON data and display it as a standard GIS map. It supports standard map interface integration and coordinate transformation. The map interface can include various Internet map interfaces such as Hemap (developed by China Mobile), Google Maps, and Amap. Coordinate transformation can be achieved by using preset projection functions to convert latitude and longitude coordinates to screen pixel coordinates.

[0059] LeafLet: An open-source JavaScript library for mobile-friendly interactive maps.

[0060] HTML5 Canvas: Canvas is a new component added in HTML5 (Hyper Text Markup Language). Placing a canvas element on a webpage is equivalent to placing a "canvas" on the webpage. Through HTML5 technology, various charts and animations can be drawn on this canvas.

[0061] Figure 1 A flowchart illustrating a GIS vector map generation method provided by an embodiment of the present invention is shown. This method is executed by a computer processing device. Specific computer processing devices may include mobile phones, laptops, etc. Figure 1 As shown, the method includes the following steps:

[0062] Step 101: Obtain a vector graphic generation request, which includes target address information and a plan view to be drawn.

[0063] In one embodiment of the present invention, the vector graphic generation request can be obtained through a preset operation interface. This operation interface is implemented based on HTML5 Canvas technology and can be displayed in front-ends such as browsers and apps to provide vector graphic drawing services.

[0064] The floor plan to be drawn can be a two-dimensional image in various preset formats, such as engineering drawings, design drawings, and photographs of the target space. The target space can be an indoor space, such as a room in a building equipped with an indoor antenna system.

[0065] Target address information refers to location information such as city, street, and building information that can uniquely identify the target space. In another embodiment of the present invention, the target address information may also be the latitude and longitude information of the target space.

[0066] Step 102: Obtain the electronic map corresponding to the target address information through an internet map.

[0067] In one embodiment of the present invention, an internet map service can be invoked through a GIS service engine to obtain internet map data, and the data can be displayed and preset interactive operations can be provided based on the internet map data. The GIS service engine may include OpenLayers and LeafLet, etc. For the convenience of subsequent GIS vector drawing, the obtained electronic map can be displayed as layers on the aforementioned operation interface through the GIS service engine.

[0068] Therefore, in one embodiment of the present invention, step 102 further includes at least:

[0069] Step 1021: Determine the target latitude and longitude range based on the target address information.

[0070] In one embodiment of the present invention, a method for generating GIS vector graphics using OpenLayers as the GIS service engine is described.

[0071] First, internet map data is imported into OpenLayers. This internet map data can include online or offline data from Google Maps, China Mobile's HeMap, and Amap, among others. In one embodiment of this invention, relevant libraries such as the HeMap's JavaScript library and CSS files can be imported.

[0072] Then, based on the target address information, a query is performed in the Internet map data imported by Openlayers to obtain the latitude and longitude coverage area corresponding to the target address information as the target latitude and longitude range. The Internet map data contains optional electronic map data corresponding to each optional address, and the optional electronic map data includes optional latitude and longitude information.

[0073] Step 1022: Call the Internet map service to obtain the electronic map data corresponding to the target latitude and longitude range.

[0074] Obtain optional electronic map data corresponding to the optional latitude and longitude information that matches the target latitude and longitude range.

[0075] Step 1023: Create a map container and generate a map layer in the map container based on the electronic map data.

[0076] In one embodiment of the present invention, the process of generating a map layer may be as follows: An `ol.Map` class (i.e., a map class) is initialized in OpenLayers. Under this map class, a new `div` element is created as a map container, and a layer is created using the `ol.layer.Tile` method. The map layer is obtained by writing electronic map data to the `source` parameter in `ol.layer.Tile`. Here, the `div` element is used to specify an area, which can be regarded as a container that can hold various data elements, and the data elements in the container are processed as a whole. `ol.layer.Tile` is a method in OpenLayers for creating tile layers. The map layer is obtained by loading electronic map data into the `source` parameter of the tile layer, i.e., the map source parameter.

[0077] In another embodiment of the present invention, to improve the user's drawing experience, the view parameters of the map container can be adjusted using the `new ol.View` method. These view parameters can include, for example, the projection method, the initial center of the view, and the map zoom level. Here, `ol.View` is a method for setting the map view in OpenLayers.

[0078] Step 103: In response to the contour drawing operation, generate a vector outline in the electronic map.

[0079] In one embodiment of the present invention, the contour drawing operation includes drawing control parameter information. The drawing control refers to preset basic elements for contour drawing, such as points, lines, circles, and polygons. The drawing control parameters include the drawing control type and drawing control coordinate change information.

[0080] In another embodiment of the present invention, drawing control parameter information can be obtained by setting listener events for each drawing control in the map class.

[0081] Step 103 also includes step 1031: creating a first layer and overlaying the first layer onto the map layer.

[0082] In one embodiment of the present invention, in order to allow users to draw vector outlines on a map layer, the first layer can be a vector layer. The first layer can be created using the `map.addLayer(vectorLayer)` method in OpenLayers and then displayed above the map layer. Here, `map.addLayer(vectorLayer)` is a method provided by OpenLayers for adding vector layers to a map.

[0083] Step 1032: Draw the vector outline on the first layer according to the drawing control parameter information.

[0084] In one embodiment of the present invention, the drawing control can be a drawing point, and the drawing control parameters can include the screen coordinates corresponding to multiple drawing points respectively. The polygon can also be obtained as the outline of the vector graphic by calculating based on the screen coordinates corresponding to each drawing point.

[0085] In another embodiment of the present invention, in order to facilitate users in drawing vector graphic outlines, the transparency of the first layer can be set to make it completely transparent, so that users can view the map information on the map layer more clearly, thereby realizing the ability to draw outlines directly on the map layer without any noticeable difference.

[0086] In another embodiment of the present invention, after the vector graphic outline is drawn, considering that the user's subsequent interaction is mainly based on the coverage of the vector graphic outline, the first center point of the vector graphic outline can be determined, and then the first center point can be set as the visual center of the map container, so as to ensure that the vector graphic outline is displayed in the center position of the map container and improve the user's GIS vector graphic drawing experience.

[0087] Step 104: Overlay the vector outline with the planar diagram to be drawn.

[0088] In one embodiment of the present invention, considering the independence of operations between layers and the correspondence of screen coordinates in the map container, in order to facilitate the subsequent addition of the latitude and longitude of the vector map outline to the pixels of the planar map to be drawn, and to ensure that the user's drawing operations on the planar map to be drawn do not change the map layer, the planar map to be drawn can also be displayed as a layer. Specifically, an image layer can be generated based on the planar map to be drawn, and this image layer can be superimposed on the first layer.

[0089] Step 104 also includes step 1041: generating a second layer in the map container based on the plan to be drawn.

[0090] In one embodiment of the present invention, considering that Openlayers mainly provides GIS service functions, its structure is relatively complex, and it requires some custom controls to be implemented in drawing, while the Canvas technology in HTML5 provides rich drawing methods, and HTML5 Canvas can be completed directly based on the front-end browser, therefore, in one embodiment of the present invention, the second layer can be generated by the Canvas technology in HTML5, thereby improving the drawing efficiency of GIS vector graphics.

[0091] Specifically, the `drawImage` method in HTML5 Canvas can be used to generate the second layer based on the planar image to be drawn. The `drawImage` method is a method provided by HTML5 Canvas for loading images or videos onto the canvas. In another embodiment of the invention, the `Quune` component can be used to complete the drawing of the second layer.

[0092] Step 1042: Overlay the second layer onto the first layer.

[0093] In one embodiment of the present invention, the first dimension and the first position of the first layer in the map container are acquired in real time, and the first dimension and the first position are respectively determined as the second dimension and the second position of the second layer in the map container. This allows the second layer to be superimposed on the first layer, with the screen position of the second layer coinciding with the display window of the first layer. The vector map outline in the first layer and the planar map to be drawn in the second layer share the same screen coordinate system, thereby enabling the transparent transmission of GIS information between the coordinate points of the first layer and the second layer.

[0094] In another embodiment of the present invention, it is considered that only when the outline of the vector map is also the outline of the planar map to be drawn, are the points in the planar map to be drawn and the points with latitude and longitude information in the map layer the same location in geographic space. Since the planar maps uploaded by users may vary in size, in order to further improve the accuracy of the latitude and longitude information of the vector map, in addition to adjusting the position of the planar map to be drawn in the map container according to the outline of the vector map, it is also necessary to make the outline of the vector map coincide with the outline of the planar map to be drawn.

[0095] Therefore, after step 1042, the following step may also be included: step 421: in response to the plan view adjustment operation, adjust the second layer.

[0096] In one embodiment of the present invention, the planar view adjustment operation may include at least operations such as rotation, translation, and scaling of the planar view to be drawn. The planar adjustment operation includes adjusting control point parameter information; the adjustment control point is one of the vertices of the planar view to be drawn. The adjustment control point parameter information includes coordinate change information of the adjustment control point.

[0097] The position of the adjusted planar diagram in the second layer is determined based on the coordinate changes of the adjustment control point and its relative position to other vertices in the planar diagram to be drawn.

[0098] In yet another embodiment of the present invention, step 421 further includes at least:

[0099] Step 4211: Determine the positional relationship between each of the other vertices of the planar diagram to be drawn and the adjustment control point.

[0100] Positional relationships can include the distance and angle between vertices and adjustment control points, where the angle is the angle between a first line and a second line; where the first line is the line containing the long or wide side of the smallest outer matrix of the planar graph to be drawn, passing through the adjustment control point, and the second line is the line between the vertex and the line passing through the adjustment control point and the vertex.

[0101] Step 4212: Determine the third pixel coordinate of the adjustment control point based on the adjustment control point parameter information.

[0102] In one embodiment of the present invention, when the planar view adjustment operation is a translation operation, the last coordinate of the adjustment control point is determined as the third pixel coordinate based on the coordinate change information of the adjustment control point.

[0103] Step 4213: Determine the fourth pixel coordinates of each of the other vertices of the planar graph to be drawn based on the third pixel coordinates and the positional relationship.

[0104] In one embodiment of the present invention, when the planar view adjustment operation is a rotation operation, the rotation angle is determined based on the coordinate change information of the adjustment control point, and the fourth pixel coordinates of each other vertex of the planar view to be drawn are determined based on the rotation angle, positional relationship, and third pixel coordinates.

[0105] When the planar view adjustment operation is a scaling operation, the scaling ratio is determined based on the change information of the control point coordinates. The fourth pixel coordinates of each other vertex of the planar view to be drawn are determined based on the scaling ratio, positional relationship, and third pixel coordinates.

[0106] Step 4214: Adjust the planar image to be drawn in the second layer according to the third pixel coordinate and the fourth pixel coordinate.

[0107] Based on the third pixel coordinates and the fourth pixel coordinates, the vertices of the planar image to be drawn in the second layer are re-determined, and the planar image to be drawn is re-rendered to obtain the adjusted planar image to be drawn.

[0108] In another embodiment of the present invention, the adjustment of the plan view to be drawn can also be accomplished through the following steps:

[0109] Determine the minimum bounding rectangle of the planar diagram to be drawn in the second layer.

[0110] Establish an image coordinate system with one vertex of the smallest bounding rectangle as the first origin and the directions of the long and short sides passing through the first origin as coordinate axes.

[0111] Calculate the rotation matrix between the image coordinate system and the map coordinate system, where the map coordinate system is the screen coordinate system corresponding to the electronic map.

[0112] Determine the image coordinates of each second pixel in the image coordinate system; calculate the image coordinates based on the rotation matrix to obtain the adjusted coordinates of each second pixel;

[0113] The adjusted plan view is determined based on the adjusted coordinates, and the second layer is updated based on the adjusted plan view.

[0114] Step 422: When it is determined that the adjustment of the second layer is completed, obtain the latitude and longitude information corresponding to the vector image outline in the map layer as the target latitude and longitude information.

[0115] In one embodiment of the present invention, a preset function menu is displayed on the operation interface; the function menu includes an adjustment completion button; when the trigger action of the adjustment completion button is detected, it is determined that the adjustment of the second layer is completed.

[0116] Step 105: Obtain the target latitude and longitude information of the vector map outline in the electronic map, and mark the latitude and longitude of the planar map to be drawn in the electronic map according to the target latitude and longitude information.

[0117] In one embodiment of the present invention, step 105 includes at least:

[0118] Step 1051: Determine the first pixel coordinates of each first pixel point in the planar drawing to be drawn and the second pixel coordinates of each second pixel point in the vector outline.

[0119] Step 1052: Match each of the first pixel coordinates with each of the second pixel coordinates, obtain the second pixel point corresponding to the matched second pixel coordinates as the positioning reference point, and obtain the first pixel point corresponding to the matched second pixel coordinates as the point to be marked.

[0120] Step 1053: Obtain the first latitude and longitude information of the positioning reference point in the map layer.

[0121] In one embodiment of the present invention, the getLonLatFromPixel method in OpenLayers can be called to convert the second pixel coordinates of the positioning reference point into corresponding first latitude and longitude coordinates as the first latitude and longitude information here. Here, getLonLatFromPixel is a method in OpenLayers that converts the pixel coordinates of points in a map container into latitude and longitude coordinates.

[0122] Step 1054: Mark the points to be marked on the planar map to be drawn according to the first latitude and longitude information.

[0123] The first latitude and longitude coordinates are determined as the latitude and longitude coordinates of the point to be marked.

[0124] In another embodiment of the present invention, after latitude and longitude marking is completed, the geographic information provided by Openlayers and Internet map services is no longer needed. Therefore, the first layer can be deleted, thereby making the user interface cleaner and improving the user's vector drawing experience.

[0125] Step 106: Vectorize the latitude and longitude marked planar map to obtain the target GIS vector map corresponding to the target address information.

[0126] In another embodiment of the present invention, after generating the target GIS vector map, the target GIS vector map can also be saved in a preset format for export. The preset formats include at least SHP and GeoJSON formats.

[0127] The GIS vector map generation method of this invention draws the vector map outline on an electronic map and matches the planar map to be drawn with the vector map outline. In this way, the GIS information of the planar map to be drawn is automatically added by using the latitude and longitude information of the vector map outline on the electronic map. This can overcome the problem that the geographic coordinate point information of the vector map base map needs to be manually input in the prior art, which leads to the inefficiency of GIS vector map generation and improves the generation efficiency of GIS vector maps.

[0128] Figure 2 A schematic diagram of the GIS vector map generation device provided in an embodiment of the present invention is shown. Figure 2 As shown, the device 200 includes: a first acquisition module 201, a second acquisition module 202, a drawing module 203, an overlay module 204, a marking module 205, and a processing module 206.

[0129] In one alternative approach, the first acquisition module 201 is used to acquire a vector graphic generation request, wherein the vector graphic generation request includes target address information and a plan view to be drawn.

[0130] The second acquisition module 202 is used to acquire the electronic map corresponding to the target address information through an internet map;

[0131] Drawing module 203 is used to generate vector map outlines in the electronic map in response to outline drawing operations;

[0132] The overlay module 204 is used to overlay the vector outline with the planar diagram to be drawn;

[0133] The marking module 205 is used to obtain the target latitude and longitude information of the vector map outline in the electronic map, and to mark the planar map to be drawn in the electronic map according to the target latitude and longitude information;

[0134] The processing module 206 is used to perform vectorization processing on the plan map to be drawn after latitude and longitude marking to obtain the target GIS vector map corresponding to the target address information.

[0135] In an alternative embodiment, the second acquisition module 202 is further configured to: determine the target latitude and longitude range based on the target address information;

[0136] Call an internet map service to obtain electronic map data corresponding to the latitude and longitude range of the target;

[0137] Create a map container and generate map layers in the map container based on the electronic map data.

[0138] In one alternative approach, the outline drawing operation includes drawing control parameter information; the drawing module 203 is further configured to: create a first layer and overlay the first layer onto the map layer;

[0139] Draw the vector outline on the first layer according to the drawing control parameter information.

[0140] In an alternative embodiment, the overlay module 204 is further configured to:

[0141] A second layer is generated in the map container based on the plan to be drawn.

[0142] Overlay the second layer onto the first layer.

[0143] In an alternative embodiment, the overlay module 204 is further configured to:

[0144] In response to the plan adjustment operation, adjust the second layer;

[0145] When it is determined that the adjustment of the second layer is complete, the latitude and longitude information corresponding to the vector image outline in the map layer is obtained as the target latitude and longitude information.

[0146] In an alternative embodiment, the marking module 205 is further configured to:

[0147] Determine the first pixel coordinates of each first pixel point in the planar drawing to be drawn and the second pixel coordinates of each second pixel point in the vector outline;

[0148] Each first pixel coordinate is matched with each second pixel coordinate, and the second pixel point corresponding to the matched second pixel coordinate is used as the positioning reference point. The first pixel point corresponding to the matched second pixel coordinate is used as the point to be marked.

[0149] Obtain the first latitude and longitude information of the positioning reference point in the map layer;

[0150] Based on the first latitude and longitude information, the points to be marked are marked with latitude and longitude on the planar map to be drawn.

[0151] In one alternative approach, the planar adjustment operation includes adjusting control point parameter information; the adjustment control point is one of the vertices of the planar diagram to be drawn; the overlay module 204 is further configured to:

[0152] Determine the positional relationship between each of the other vertices of the planar diagram to be drawn and the adjustment control point;

[0153] The third pixel coordinate of the adjustment control point is determined based on the adjustment control point parameter information;

[0154] The fourth pixel coordinates of each of the other vertices of the planar graph to be drawn are determined based on the third pixel coordinates and the positional relationship.

[0155] The planar image to be drawn is adjusted in the second layer based on the third pixel coordinates and the fourth pixel coordinates.

[0156] The GIS vector map generation device of this invention draws the outline of a vector map on an electronic map and matches the planar map to be drawn with the vector map outline. In this way, the GIS information of the planar map to be drawn is automatically added by using the latitude and longitude information of the vector map outline on the electronic map. This can overcome the problem that the geographic coordinate point information of the vector map base map needs to be manually input in the prior art, which leads to the inefficiency of GIS vector map generation.

[0157] Figure 3 The diagram shows a structural schematic of a GIS vector map generation device provided in an embodiment of the present invention. The specific implementation of the GIS vector map generation device is not limited by the specific embodiments of the present invention.

[0158] like Figure 3 As shown, the GIS vector map generation device may include: a processor 302, a communication interface 304, a memory 306, and a communication bus 308.

[0159] The processor 302, communication interface 304, and memory 306 communicate with each other via communication bus 308. Communication interface 304 is used to communicate with other network elements, such as clients or other servers. The processor 302 executes program 310, specifically performing the relevant steps described in the embodiment of the GIS vector map generation method.

[0160] Specifically, program 310 may include program code, which includes computer-executable instructions.

[0161] Processor 302 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The GIS vector map generation device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0162] Memory 306 is used to store program 310. Memory 306 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0163] Specifically, program 310 can be called by processor 302 to cause the GIS vector map generation device to perform the following operations:

[0164] Obtain a vector graphic generation request, which includes target address information and a planar map to be drawn;

[0165] Obtain the electronic map corresponding to the target address information through an internet map;

[0166] In response to the contour drawing operation, a vector map contour is generated in the electronic map;

[0167] Overlay the vector outline onto the planar image to be drawn;

[0168] Obtain the target latitude and longitude information of the vector image outline in the electronic map, and mark the latitude and longitude of the planar map to be drawn in the electronic map according to the target latitude and longitude information;

[0169] The planar map to be drawn after latitude and longitude marking is vectorized to obtain the target GIS vector map corresponding to the target address information.

[0170] In an alternative manner, the program 310 is invoked by the processor 302 to cause the GIS vector map generation device to perform the following operations:

[0171] Determine the target latitude and longitude range based on the target address information;

[0172] Call an internet map service to obtain electronic map data corresponding to the latitude and longitude range of the target;

[0173] Create a map container and generate map layers in the map container based on the electronic map data.

[0174] In an alternative approach, the contour drawing operation includes drawing control parameter information; the program 310 is invoked by the processor 302 to cause the GIS vector graphic generation device to perform the following operations:

[0175] Create a first layer and overlay the first layer onto the map layer;

[0176] Draw the vector outline on the first layer according to the drawing control parameter information.

[0177] In an alternative manner, the program 310 is invoked by the processor 302 to cause the GIS vector map generation device to perform the following operations:

[0178] A second layer is generated in the map container based on the plan to be drawn.

[0179] Overlay the second layer onto the first layer.

[0180] In an alternative manner, the program 310 is invoked by the processor 302 to cause the GIS vector map generation device to perform the following operations:

[0181] In response to the plan adjustment operation, adjust the second layer;

[0182] When it is determined that the adjustment of the second layer is complete, the latitude and longitude information corresponding to the vector image outline in the map layer is obtained as the target latitude and longitude information.

[0183] In an alternative manner, the program 310 is invoked by the processor 302 to cause the GIS vector map generation device to perform the following operations:

[0184] Determine the first pixel coordinates of each first pixel point in the planar drawing to be drawn and the second pixel coordinates of each second pixel point in the vector outline;

[0185] Each first pixel coordinate is matched with each second pixel coordinate, and the second pixel point corresponding to the matched second pixel coordinate is used as the positioning reference point. The first pixel point corresponding to the matched second pixel coordinate is used as the point to be marked.

[0186] Obtain the first latitude and longitude information of the positioning reference point in the map layer;

[0187] Based on the first latitude and longitude information, the points to be marked are marked with latitude and longitude on the planar map to be drawn.

[0188] In one alternative approach, the planar adjustment operation includes adjusting control point parameter information; the control point is one of the vertices of the planar map to be drawn; the program 310 is invoked by the processor 302 to cause the GIS vector map generation device to perform the following operations:

[0189] Determine the positional relationship between each of the other vertices of the planar diagram to be drawn and the adjustment control point;

[0190] The third pixel coordinate of the adjustment control point is determined based on the adjustment control point parameter information;

[0191] The fourth pixel coordinates of each of the other vertices of the planar graph to be drawn are determined based on the third pixel coordinates and the positional relationship.

[0192] The planar image to be drawn is adjusted in the second layer based on the third pixel coordinates and the fourth pixel coordinates.

[0193] The GIS vector map generation device of this invention draws the outline of a vector map on an electronic map and matches the planar map to be drawn with the vector map outline. In this way, the GIS information of the planar map to be drawn is automatically added by using the latitude and longitude information of the vector map outline on the electronic map. This can overcome the problem that the geographic coordinate point information of the vector map base map needs to be manually input in the prior art, which leads to the inefficiency of GIS vector map generation.

[0194] This invention provides a computer storage medium storing at least one executable instruction. When the executable instruction is run on a GIS vector map generation device, it causes the GIS vector map generation device to perform the GIS vector map generation method in any of the above method embodiments.

[0195] Specifically, the executable instructions can be used to cause the GIS vector map generation device to perform the following operations:

[0196] Obtain a vector graphic generation request, which includes target address information and a planar map to be drawn;

[0197] Obtain the electronic map corresponding to the target address information through an internet map;

[0198] In response to the contour drawing operation, a vector map contour is generated in the electronic map;

[0199] Overlay the vector outline onto the planar image to be drawn;

[0200] Obtain the target latitude and longitude information of the vector image outline in the electronic map, and mark the latitude and longitude of the planar map to be drawn in the electronic map according to the target latitude and longitude information;

[0201] The planar map to be drawn after latitude and longitude marking is vectorized to obtain the target GIS vector map corresponding to the target address information.

[0202] In an alternative approach, the executable instructions are further configured to cause the GIS vector map generation device to perform the following operations:

[0203] Determine the target latitude and longitude range based on the target address information;

[0204] Call an internet map service to obtain electronic map data corresponding to the latitude and longitude range of the target;

[0205] Create a map container and generate map layers in the map container based on the electronic map data.

[0206] In one alternative approach, the contour drawing operation includes drawing control parameter information; the executable instructions are further configured to cause the GIS vector graphic generation device to perform the following operations:

[0207] Create a first layer and overlay the first layer onto the map layer;

[0208] Draw the vector outline on the first layer according to the drawing control parameter information.

[0209] In an alternative approach, the executable instructions are further configured to cause the GIS vector map generation device to perform the following operations:

[0210] A second layer is generated in the map container based on the plan to be drawn.

[0211] Overlay the second layer onto the first layer.

[0212] In an alternative approach, the executable instructions are further configured to cause the GIS vector map generation device to perform the following operations:

[0213] In response to the plan adjustment operation, adjust the second layer;

[0214] When it is determined that the adjustment of the second layer is complete, the latitude and longitude information corresponding to the vector image outline in the map layer is obtained as the target latitude and longitude information.

[0215] In an alternative approach, the executable instructions are further configured to cause the GIS vector map generation device to perform the following operations:

[0216] Determine the first pixel coordinates of each first pixel point in the planar drawing to be drawn and the second pixel coordinates of each second pixel point in the vector outline;

[0217] Each first pixel coordinate is matched with each second pixel coordinate, and the second pixel point corresponding to the matched second pixel coordinate is used as the positioning reference point. The first pixel point corresponding to the matched second pixel coordinate is used as the point to be marked.

[0218] Obtain the first latitude and longitude information of the positioning reference point in the map layer;

[0219] Based on the first latitude and longitude information, the points to be marked are marked with latitude and longitude on the planar map to be drawn.

[0220] In one alternative approach, the planar adjustment operation includes adjusting control point parameter information; the control point is one of the vertices of the planar map to be drawn; the executable instructions are further configured to cause the GIS vector map generation device to perform the following operations:

[0221] Determine the positional relationship between each of the other vertices of the planar diagram to be drawn and the adjustment control point;

[0222] The third pixel coordinate of the adjustment control point is determined based on the adjustment control point parameter information;

[0223] The fourth pixel coordinates of each of the other vertices of the planar graph to be drawn are determined based on the third pixel coordinates and the positional relationship.

[0224] The planar image to be drawn is adjusted in the second layer based on the third pixel coordinates and the fourth pixel coordinates.

[0225] The computer storage medium of this invention draws vector map outlines on electronic maps and matches the planar map to be drawn with the vector map outlines. This allows for the automatic addition of GIS information to the planar map to be drawn using the latitude and longitude information of the vector map outlines on the electronic map. This overcomes the problem of inefficient GIS vector map generation caused by the need to manually input geographic coordinate point information of the vector map base map in the prior art.

[0226] This invention provides a GIS vector map generation apparatus for performing the above-described GIS vector map generation method.

[0227] This invention provides a computer program that can be called by a processor to cause a GIS vector map generation device to execute the GIS vector map generation method in any of the above method embodiments.

[0228] This invention provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed on a computer, cause the computer to perform the GIS vector map generation method in any of the above method embodiments.

[0229] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0230] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0231] Similarly, it should be understood that, in order to streamline the invention and aid in understanding one or more of the various aspects of the invention, features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.

[0232] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0233] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A GIS vector map generation method characterized by, The method comprises: acquiring a vector graph generation request, the vector graph generation request comprising target address information and a to-be-drawn plan, wherein the to-be-drawn plan is a two-dimensional picture in a preset format of a target space, and the target space is an indoor space provided with an indoor antenna system; acquiring an electronic map corresponding to the target address information through an Internet map, wherein a target latitude-longitude range is determined according to the target address information, an Internet map service is called to acquire electronic map data corresponding to the target latitude-longitude range, and a map container is created to generate a map layer in the map container according to the electronic map data; generating a vector graph contour in the electronic map in response to a contour drawing operation; superimposing the vector graph contour on the to-be-drawn plan; acquiring target latitude-longitude information of the vector graph contour in the electronic map, and marking the to-be-drawn plan in the electronic map with latitude and longitude according to the target latitude-longitude information, wherein a first pixel coordinate of each first pixel point in the to-be-drawn plan and a second pixel coordinate of each second pixel point in the vector graph contour are determined respectively, each first pixel coordinate is matched with each second pixel coordinate, a second pixel point corresponding to the matched second pixel coordinate is acquired as a positioning reference point, and a first pixel point corresponding to the matched second pixel coordinate is acquired as a to-be-marked point, first latitude-longitude information of the positioning reference point in the map layer is acquired, and the to-be-marked point is marked with latitude and longitude in the to-be-drawn plan according to the first latitude-longitude information; performing vectorization processing on the to-be-drawn plan marked with latitude and longitude to obtain a target GIS vector graph corresponding to the target address information.

2. The method of claim 1, wherein, The contour drawing operation comprises drawing control point parameter information; the vector graph contour is generated in the electronic map in response to the contour drawing operation, comprising: creating a first layer and superimposing the first layer on the map layer; drawing the vector graph contour on the first layer according to the drawing control point parameter information.

3. The method of claim 2, wherein, The vector graph contour is superimposed on the to-be-drawn plan, comprising: generating a second layer in the map container according to the to-be-drawn plan; superimposing the second layer on the first layer.

4. The method of claim 3, wherein, Before the target latitude-longitude information of the vector graph contour in the electronic map is acquired, the method further comprises: adjusting the second layer in response to a plan adjustment operation; when it is determined that the second layer adjustment is completed, acquiring latitude-longitude information corresponding to the vector graph contour in the map layer as the target latitude-longitude information.

5. The method of claim 4, wherein, The plan adjustment operation comprises adjustment control point parameter information; the adjustment control point is one of the vertices of the to-be-drawn plan; the second layer is adjusted in response to the plan adjustment operation, comprising: determining the positional relationship between each vertex of the to-be-drawn plan and the adjustment control point; determining third pixel coordinates of the adjustment control point according to the adjustment control point parameter information; determine fourth pixel coordinates of each of the other vertices of the to-be-drawn planar graph according to the third pixel coordinates and the positional relationship; adjust the to-be-drawn planar graph in the second layer according to the third pixel coordinates and the fourth pixel coordinates.

6. A GIS vector map generation apparatus characterized by comprising: The device comprises: The first obtaining module is configured to obtain a vector graph generation request, wherein the vector graph generation request comprises target address information and a to-be-drawn planar graph, the to-be-drawn planar graph is a two-dimensional picture in a preset format of a target space, and the target space is an indoor space provided with an indoor antenna system. The second obtaining module is configured to obtain an electronic map corresponding to the target address information through an Internet map, wherein a target latitude-longitude range is determined according to the target address information, an Internet map service is called to obtain electronic map data corresponding to the target latitude-longitude range, and a map container is created to generate a map layer in the map container according to the electronic map data. The drawing module is configured to generate a vector graph contour in the electronic map in response to a contour drawing operation. The superimposition module is configured to superimpose the vector graph contour and the to-be-drawn planar graph. The marking module is configured to obtain target latitude-longitude information of the vector graph contour in the electronic map, mark the to-be-drawn planar graph in the electronic map according to the target latitude-longitude information, determine first pixel coordinates of each first pixel point in the to-be-drawn planar graph and second pixel coordinates of each second pixel point in the vector graph contour, match each first pixel coordinate with each second pixel coordinate, obtain a second pixel point corresponding to the matched second pixel coordinate as a positioning reference point, obtain a first pixel point corresponding to the matched second pixel coordinate as a to-be-marked point, obtain first latitude-longitude information of the positioning reference point in the map layer, and mark the to-be-marked point in the to-be-drawn planar graph according to the first latitude-longitude information. The processing module is configured to perform vectorization processing on the to-be-drawn planar graph after latitude-longitude marking to obtain a target GIS vector graph corresponding to the target address information.

7. A GIS vector map generation device characterized by comprising: The device comprises: The processor, the memory, the communication interface and the communication bus complete communication among each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the operations of the GIS vector graph generation method in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The storage medium stores at least one executable instruction, and the executable instruction causes the GIS vector graph generation device to perform the operations of the GIS vector graph generation method in any one of claims 1-5 when the GIS vector graph generation device runs.

Citation Information

Patent Citations

  • Manufacturing method of unearthed simple silk transcription based on digital image processing

    CN103632386A