CN105447101B - Map engine implementation method and device - Google Patents

Map engine implementation method and device Download PDF

Info

Publication number
CN105447101B
CN105447101B CN201510769826.9A CN201510769826A CN105447101B CN 105447101 B CN105447101 B CN 105447101B CN 201510769826 A CN201510769826 A CN 201510769826A CN 105447101 B CN105447101 B CN 105447101B
Authority
CN
China
Prior art keywords
map
application program
target
program interface
party
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.)
Active
Application number
CN201510769826.9A
Other languages
Chinese (zh)
Other versions
CN105447101A (en
Inventor
史全龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201510769826.9A priority Critical patent/CN105447101B/en
Publication of CN105447101A publication Critical patent/CN105447101A/en
Application granted granted Critical
Publication of CN105447101B publication Critical patent/CN105447101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The embodiment of the invention discloses a map engine implementation method and a map engine implementation device, wherein the method comprises the following steps: according to the received map drawing request, using target map data to draw a map, generating a target map, and returning the target map to the client; transmitting a user input instruction received based on the target map to a corresponding target application program interface so as to realize the calling execution of a target application program; and updating the target map according to the calling execution result of the target application program, and returning the updating result or the calling execution result of the target application program to the client. The technical scheme provided by the embodiment of the invention realizes the visual display of the secondary development service data of the user input instruction and the target map data in combination, optimizes the prior map engine technology and meets the increasing personalized map drawing requirements of people.

Description

Map engine implementation method and device
Technical Field
The embodiment of the invention relates to the technical field of map engines, in particular to a map engine implementation method and device.
Background
The Web Geographic Information System (Web Geographic Information System, WEBGIS) is a map engine technology that expands and perfects a Geographic Information System (GIS) by using World Wide Web (Web) technology, and is characterized in that a hypertext transfer protocol (HTTP) standard is embedded in Web Geographic Information System (Web Geographic Information System, GIS), so that management and release of spatial Information in the Internet environment are realized. WEBGIS can adopt a plurality of hosts and a plurality of databases to carry out distributed deployment, interconnection is realized through the Internet, and the WEBGIS is a browser/server (B/S) structure.
However, with the continuous progress of geographic information technology, the existing webdis map engine system cannot meet the increasing personalized map drawing requirements of people and the secondary development of map engine services.
Disclosure of Invention
The embodiment of the invention provides a map engine system, which is used for optimizing the existing map engine technology and meeting the increasing personalized map drawing requirements of people.
In one aspect, an embodiment of the present invention provides a map engine implementation method, including:
according to the received map drawing request, using target map data to draw a map, generating a target map, and returning the target map to the client;
transmitting a user input instruction received based on the target map to a corresponding target application program interface so as to realize the calling execution of a target application program;
and updating the target map according to the calling execution result of the target application program, and returning the updating result or the calling execution result of the target application program to the client.
Further, the method also comprises the following steps:
the method comprises the steps of obtaining map elements in a set format issued in a network, and converting the obtained map elements into target map data for map drawing.
Further, the acquiring a map element in a set format published in a network and converting the acquired map element into target map data for mapping includes:
obtaining map elements to be converted with extension names of ship and/or mif released in a network;
and converting the map element to be converted into target map data with the extension name of-ora based on a set format conversion algorithm.
Further, the mapping using the target map data according to the received mapping request to generate the target map and returning the target map to the client includes:
constructing at least two mapping instructions according to the received mapping request, wherein the mapping instructions comprise the area range of the mapped map;
respectively sending each mapping instruction to a designated server in a cluster server to indicate each server to finish mapping in a designated interval range;
and combining the maps of the appointed section ranges returned by the servers, generating the target map based on the map display size of the map drawing request client, and returning the target map to the client.
Further, the constructing at least two mapping instructions according to the received mapping request includes:
according to a received map drawing request, constructing a map drawing area which is larger than a set multiple of the map display size based on the map display size of a map drawing request client, and constructing at least two map drawing instructions based on the map drawing area;
correspondingly, the method also comprises the following steps:
and combining the maps of the specified interval range returned by each server, and storing the map exceeding the display size part of the map.
Further, the transferring the user input instruction received based on the target map to a corresponding target application program interface to implement the call execution of the target application program includes:
receiving a collision analysis instruction input by a user based on the target map, and acquiring at least two pieces of first position information included in the collision analysis instruction;
transmitting the at least two pieces of first position information to a collision analysis application program interface so as to realize the calling execution of a collision analysis application program;
the collision analysis application program interface comprises at least two first position parameters, and the collision analysis application program is used for acquiring objects appearing at the positions of the at least two first position parameters in a set time interval after acquiring the at least two first position parameter values received by the collision analysis application program interface, and returning the acquired objects.
Further, the transferring the user input instruction received based on the target map to a corresponding target application program interface to implement the call execution of the target application program includes:
receiving a single-point map-on instruction input by a user based on the target map, and acquiring second position information included in the single-point map-on instruction;
transmitting the second position information to a single-point map application program interface so as to realize the calling execution of the single-point map application program;
the single-point map application program interface comprises a second position parameter, and the single-point map application program is used for acquiring feature points in a set area around the position of the second position parameter value after acquiring the second position parameter value received through the single-point map application program interface, and drawing and returning the second position parameter value and each feature point at the corresponding position of the target map.
Further, the transferring the user input instruction received based on the target map to a corresponding target application program interface to implement the call execution of the target application program includes:
receiving a multipoint map-loading instruction input by a user based on the target map, and acquiring at least one piece of third position information included in the multipoint map-loading instruction;
the at least one third position information is transmitted to a multipoint map application program interface so as to realize the calling execution of the multipoint map application program;
the multi-point mapping application program interface comprises at least one third position parameter, the multi-point mapping application program is used for obtaining feature points in a set area around the position of the at least one third position parameter value after obtaining the at least one third position parameter value received through the multi-point mapping application program interface, and drawing and returning the at least one third position parameter value and each feature point at the corresponding position of the target map.
Further, the transferring the user input instruction received based on the target map to a corresponding target application program interface to implement the call execution of the target application program includes:
receiving a third-party map engine access instruction input by a user based on the target map, and acquiring third-party map engine information included in the third-party map engine access instruction;
transmitting the third-party map engine information to a third-party map engine access application program interface so as to realize the calling execution of the third-party map engine access application program;
the third-party map engine access application program interface comprises third-party map engine parameters, and the third-party map engine access application program is used for calling the application program interface of the third-party map engine corresponding to the third-party map engine parameter values after the third-party map engine parameter values received through the third-party map engine access application program interface are obtained.
On the other hand, an embodiment of the present invention further provides a map engine implementation apparatus, including:
the map drawing module is used for drawing a map by using target map data according to the received map drawing request, generating a target map and returning the target map to the client;
the service interface module is used for transmitting a user input instruction received based on the target map to a corresponding target application program interface so as to realize the calling execution of a target application program;
and the update display module is used for updating the target map according to the call execution result of the target application program and returning the update result or the call execution result of the target application program to the client.
According to the map engine implementation method and device provided by the embodiment of the invention, the user input instruction is transmitted to the corresponding target application program interface based on the drawn target map, the calling execution of the target application program is realized, the target map is updated according to the calling execution result of the target application program, and the secondary development service data of the user input instruction and the target map data are combined to be displayed visually according to the target map data and the acquired user input instruction of the client by calling the target application program, so that the existing map engine technology is optimized, and the increasingly personalized map drawing requirements of people are met.
Drawings
Fig. 1 is a flowchart of a map engine implementation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a logical structure of target map generation according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a cluster server according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a mapping area provided by an embodiment of the invention;
FIG. 5 is a flowchart of a map engine implementation method according to a second embodiment of the present invention;
FIG. 6 is a schematic diagram of a logical structure of a map engine implementation according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a map engine implementation apparatus according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in further detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a map engine implementation method according to an embodiment of the present invention. The method of the present embodiment may be performed by a map engine implementation device, which may be implemented by means of hardware and/or software, and the device may be provided inside the map engine server as a part of the map engine server.
As shown in fig. 1, a map engine implementation method provided in an embodiment of the present invention includes the following steps:
and step 101, according to the received map drawing request, using target map data to draw a map, generating a target map, and returning the target map to the client.
Before this step, the following steps can be further included: the method comprises the steps of obtaining map elements in a set format issued in a network, and converting the obtained map elements into target map data for map drawing.
The obtaining of the map element in the set format published in the network and converting the obtained map element into the target map data for map drawing may specifically include: obtaining map elements to be converted with extension names of ship and/or mif released in a network; and converting the map element to be converted into target map data with the extension name of-ora based on a set format conversion algorithm.
The target map data may be map elements with set formats (for example, with the extension of the ship and/or mif formats) acquired from the network, target map data with the extension of the ora acquired from a database, or target map data with the extension of the ora generated by converting the map elements with the set formats acquired from the network based on a set format conversion algorithm. Wherein the database comprises PostGIS, Mysql and Oracle.
Fig. 2 is a schematic diagram of a logical structure of target map generation according to an embodiment of the present invention. As shown in fig. 2, the data access layer 21 obtains map elements (the map elements may be files with a set format, such as a file with an extension of "ship", or data stored in a database, such as a PostGIS) for map drawing, the data structure layer 22 analyzes the map elements based on a set format conversion algorithm to obtain target map data, and the data drawing layer 23 draws a target map according to the target map data. The target Map object (Map object) is formed by superposing a group of Map layers, each Map Layer corresponds to one Map element, the Map object is a container of the Map Layer (Layer), and the Map object is a container of a graphic element.
The step may specifically include: constructing at least two mapping instructions according to the received mapping request, wherein the mapping instructions comprise the area range of the mapped map; respectively sending each mapping instruction to a designated server in a cluster server to indicate each server to finish mapping in a designated interval range; and combining the maps of the appointed section ranges returned by the servers, generating the target map based on the map display size of the map drawing request client, and returning the target map to the client.
The specified interval range can be determined according to the performance of each server in the cluster server, and the area range of the drawn map can be evenly distributed and obtained according to the number of the servers in the cluster server. For example, if the number of servers in a cluster server is 9, then each server may be instructed to complete 1/9 mapping of the entire area to be mapped.
Fig. 3 is a schematic structural diagram of a cluster server according to an embodiment of the present invention. As shown in fig. 3, the area range of the drawn map (the sum of Img _1 to Img _9) is allocated to each server according to the number of servers in the server cluster, and each server is instructed to complete drawing of the map to be drawn of the designated section range (Img _1 or Img _2 … or Img _ 9). The benefits of this arrangement are: on one hand, the method can support drawing of massive map data, on the other hand, the burden of a map engine server is reduced, and the speed and the efficiency of drawing the map are increased.
Wherein the constructing at least two mapping instructions according to the received mapping request comprises: according to a received map drawing request, constructing a map drawing area which is larger than a set multiple of the map display size based on the map display size of a map drawing request client, and constructing at least two map drawing instructions based on the map drawing area; correspondingly, the method can further comprise the following steps: and combining the maps of the specified interval range returned by each server, and storing the map exceeding the display size part of the map.
Fig. 4 is a schematic diagram of a Map drawing area according to an embodiment of the present invention, and as shown in fig. 4, a Map drawing area (a + B) that is larger than a set multiple of a Map display size a is constructed based on the Map display size a of a Map drawing request client according to a received Map drawing request, maps of specified section ranges returned by each server are combined, the target Map is generated based on the Map display size a of the Map drawing request client, and is returned to the client, so that the target Map of the area range a is displayed on the client, that is, the Map is displayed on the interface shown in fig. 4, and the Map of the specified section range returned by each server is combined and then cached, that is, the Map exceeding the Map display size B is cached as the cache Map shown in fig. 4. The benefits of this arrangement are: when a user map drawing request for the area B is received, the cached map of the area B can be directly obtained, and the speed of responding the user map drawing request is increased.
102, transmitting a user input instruction received based on the target map to a corresponding target application program interface to realize the calling execution of a target application program;
the step may specifically include: receiving a collision analysis instruction input by a user based on the target map, and acquiring at least two pieces of first position information included in the collision analysis instruction; transmitting the at least two pieces of first position information to a collision analysis application program interface so as to realize the calling execution of a collision analysis application program; the collision analysis application program interface comprises at least two first position parameters, and the collision analysis application program is used for acquiring objects appearing at the positions of the at least two first position parameters in a set time interval after acquiring the at least two first position parameter values received by the collision analysis application program interface, and returning the acquired objects.
The object appearing at the position of the at least two first position parameter values may be information related to a person or a thing, for example, after receiving a collision analysis instruction including the information of the place a and the information of the place B, a collision analysis application program interface may be invoked to analyze people appearing at the same time of the place a and the place B so as to obtain information for apprehending a suspect.
The step may specifically include: receiving a single-point map-on instruction input by a user based on the target map, and acquiring second position information included in the single-point map-on instruction; transmitting the second position information to a single-point map application program interface so as to realize the calling execution of the single-point map application program; the single-point map application program interface comprises a second position parameter, and the single-point map application program is used for acquiring feature points in a set area around the position of the second position parameter value after acquiring the second position parameter value received through the single-point map application program interface, and drawing and returning the second position parameter value and each feature point at the corresponding position of the target map.
The step may further include: receiving a multipoint map-loading instruction input by a user based on the target map, and acquiring at least one piece of third position information included in the multipoint map-loading instruction; the at least one third position information is transmitted to a multipoint map application program interface so as to realize the calling execution of the multipoint map application program; the multi-point mapping application program interface comprises at least one third position parameter, the multi-point mapping application program is used for obtaining feature points in a set area around the position of the at least one third position parameter value after obtaining the at least one third position parameter value received through the multi-point mapping application program interface, and drawing and returning the at least one third position parameter value and each feature point at the corresponding position of the target map.
The feature points in the set area around the location may be information of the surrounding environment of the second location, such as building, hotel, base station, advertisement information, and the like.
The step may further include: receiving a third-party map engine access instruction input by a user based on the target map, and acquiring third-party map engine information included in the third-party map engine access instruction; transmitting the third-party map engine information to a third-party map engine access application program interface so as to realize the calling execution of the third-party map engine access application program; the third-party map engine access application program interface comprises third-party map engine parameters, and the third-party map engine access application program is used for calling the application program interface of the third-party map engine corresponding to the third-party map engine parameter values after the third-party map engine parameter values received through the third-party map engine access application program interface are obtained.
The third-party map engine comprises a Google map engine, a Baidu map engine, a heaven and earth map engine and an Arcgis Server platform.
The step may further include: receiving a map dimension selection instruction input by a user based on the target map, and acquiring map dimension information included in the map dimension selection instruction; transmitting the map dimension information to a map dimension selection application program interface to realize the calling execution of the map dimension selection application program; the map dimension selection application program interface comprises a map dimension parameter, and the map dimension selection application program is used for determining the dimension type of a subsequently called application program after the map dimension parameter value received through the map dimension selection application program interface is obtained, wherein the dimensions comprise two dimensions and three dimensions.
And 103, updating the target map according to the calling execution result of the target application program, and returning the updating result or the calling execution result of the target application program to the client.
Illustratively, when the user input instruction is a collision analysis instruction, the result of the call to the collision analysis application program is: returning the obtained objects appearing at the positions of the at least two first position parameter values in the set time interval to the client; when the user input instruction is a single-point drawing instruction, according to a calling result of the single-point drawing application program: and updating the target map by the acquired feature points in the set area around the position of the second position parameter value, and returning the updating result to the client.
According to the technical scheme provided by the embodiment of the invention, the user input instruction is transmitted to the corresponding target application program interface based on the drawn target map, the calling execution of the target application program is realized, the target map is updated according to the calling execution result of the target application program, the secondary development service data of the user input instruction and the target map data are combined to be displayed visually according to the target map data and the acquired user input instruction of the client side through the calling of the target application program, the existing map engine technology is optimized, and the ever-increasing personalized map drawing requirements of people are met.
Example two
Fig. 5 is a flowchart of a map engine implementation method according to a second embodiment of the present invention. The present embodiment provides a preferred embodiment based on the first embodiment, and reference is made to the first embodiment for details that are not described in detail in the present embodiment. As shown in fig. 5, the map engine implementation method provided in this embodiment includes the following steps:
step 201, obtaining target map data for map drawing.
Fig. 6 is a schematic diagram of a logical structure of a map engine implementation according to a second embodiment of the present invention. As shown in fig. 6, the target map data for mapping is acquired in the following manner: map tile data 631 is acquired or a spatial data file 632 published in a network is acquired or data 633 stored in a spatial database (e.g., PostGIS, Mysql, and Oracle) is acquired. In addition, the spatial data file of the set format can be converted into map data of the extension of.org by setting the conversion algorithm shiptemp mysql. The tile data can be map tile data, map grid data or map picture data.
Step 202, according to the received map drawing request, using the target map data to draw a map, generating a target map, and returning the target map to the client.
As shown in fig. 6, GeoTools in the GeoServer62 may be used to draw a map, and the drawn map exceeding the map display size of the map requesting client may be stored in a cached cache. The GeoServer supports layer services in various Map data formats, including Web element services (WFS), Web Map Services (WMS), Web overlay services (WCS), and the like.
Step 203, transmitting a user input instruction received based on the target map to a corresponding target application program interface to realize the calling execution of the target application program;
the target application program interface 61 may include an application program interface provided by OpenLayers, may be used for performing spatial query, spatial analysis, layer style determination, single layer drawing, and multi-layer stacking, may further include an application program interface of secondary encapsulation, and may be used for drawing points, drawing lines, pictures, translation/roaming, zooming in/out, eagle eyes, coordinate extraction, drawing points, drawing grids, drawing tracks, collision analysis, and captions.
In addition, the target application program interface 61 further includes a third party map engine access application program interface 611, which is used for calling an application program interface for loading the third party map engine; a secondary application development application program interface 612 for providing an application program interface capable of performing secondary development application, a single-point drawing application program interface and a multi-point drawing application program interface 613 for acquiring information of a single-point or multi-point surrounding environment.
And 204, updating the target map according to the calling execution result of the target application program, and returning the updating result or the calling execution result of the target application program to the client.
The engine classes encapsulated in the target application program interface are given below, and are used for secondary development of each business system:
1) openlayers.control refers to the engine and calls the method to the map control API, and can realize the map operation control function. The called method and the realization function are as follows:
ArgParser: and analyzing and matching the precision of the map.
Attribution: and obtaining the layer attribute value.
Button: and (4) controlling buttons on the map.
And (4) CacheRead: and reading map cache data.
CacheWrite: and writing map cache data.
DragFeature: single-picture example drag.
dragPan: and (6) translating the map.
Drawfeature: single-figure example drawing.
Editingtoolbar: and editing the map navigation bar.
Keyboardddefaults: the keyboard shortcut key operates the map, including moving the map up, down, left and right.
LayerSwitcher: and displaying a multi-layer tree structure and stacking layers.
MousePosition: the mouse pointer displays the longitude and latitude in real time.
NavigationHistory: and the map history playback operation has map action forward and backward functions.
NavToolbar: the map scale control bar.
OverviewMap: and displaying the multiple layers in an overlapping manner.
Pan: and (6) translating the map.
Panel: and (5) displaying the map in a translation mode.
PanPanel: the map panel translates.
Panzoom: a map pan zoom operation.
PanZoomBar: the scaling is controlled using a scale bar.
Permalink: and the layer is provided with a hyperlink function.
Selectfeature: and selecting the layer event, namely the event needing to be operated.
SLDSselect: the selected attribute ID value is obtained.
TouchNavigation: map navigation triggers events.
TransformFeature: and (4) layer conversion events.
UTFGrid: and setting a grid data encoding format.
WMSGetFeatureInfo: loading WFS online map attribute information.
WMTSGetFeatureInfo: and loading WMT online map attribute information.
Zoom: and controlling the attribute by the layer scale.
ZoomBox: and controlling the range of the layer scale.
ZoomIn: and amplifying the layer scale.
Zoomeout: and reducing the layer scale.
Zoompanel: and displaying the layer scale panel by remarking.
ZoomToMaxExtent: and (5) limiting range of the layer scale.
2) The Feature tailor function is a combination of geography and attributes, so that a map is more flexible, more and more dazzling effects can be superposed on the map, and the engine type calling method and the implementation function are as follows:
vector: vector data draws a geometric description of the class. They have an "attribute, which is a data object, and a" style "attribute default, which is defined in an openlayers.
3) Format is a read/write Format for basic data. Formats, a method having reading and writing is preset, and the calling method and the implementation function are as follows.
ArcXML: reading or writing ArcXML data can be used for geo-data manipulation, creating a new instance with openlayers format ArcXML construct.
Atom: atom digest information of the read/write map.
Context: the base classes are Format.WMC and Format.OWSContext, and WMC and OWSC format data contents are obtained.
CQL: reading the CQL character string to obtain OpenLayers. Create a new parser and openlayers format cql construct.
CSWGetDomain: to obtain the map engine version number.
4) Geometry space Geometry is a description of a geographic object, which is a typical Geometry type, and can draw points, lines and faces in multiple layers, and the method and implementation functions of the calling are as follows:
and (3) Collection: a collection of different geometries is stored, these are stored in a local parameters component (which can pass to the construct as a parameter), they are not clones as new geometries are added to the collection, they need to refer to the specification when geometry is removed (i.e. they must be deleted by being on the exact geometry). The getLength function, covering getArea and getLength, summarizes the respective domains and lengths by the components herein as mere iterations.
Curve: drawing a curve on a map, and forming a curve graph at multiple points.
LinearRing: the linear shape is a special ring, the copy of the first point is used as the final end point to be automatically closed, addPoint/removePoint is supported to be added and deleted, and the getArea function can calculate the area of the linear shape.
LineString: a draw string is a curve that is never less than two points long once two points have been added to it.
MultiPoint: and drawing a plurality of dot patterns.
MultiPolygon: drawing a plurality of surface patterns.
Point: a single point is drawn.
Polygon: drawing a single surface.
5) The method for activating and closing the Handler processing interface program acquires a browser event method and registers the browser event method as a corresponding intercepted event, and the calling method and the realizing function are as follows:
box: the map frame displays the event.
Click: a map click event.
Drags: the map drags the event.
Hover: and the hovering processing program is used for simulating a mouse to hover on the DOM element on the map.
Keyboard: the keyboard handles the event.
MouseWheel: mouse up/down events.
And (4) Path: the handler draws a path on the map.
Point: acts on a point event on the map.
Polygon: an event that acts on one side of the map.
Regular polygon: a square event is applied to the map.
6) The Layer provides drawing of layers, calling of the layers and Layer space analysis for a core package of the whole engine, and the calling method and the realizing function are as follows:
ArcIMS: the ArcIMS server is loaded online.
And (4) Bing: and binding a certain service on the layer, and providing service for the outside of the layer.
And (4) Boxes: the div is superimposed on the map.
EventPane: a third party providing a DOM element is moused-event.
FixedZoomLevels: a zoom level is defined.
GeoRSS: add to your map GeoRSS point feature.
Google: an API for loading Google maps is provided.
Grid: and loading the grid layer data.
HTTPRequest:
Image: and the accessed image or picture is loaded and displayed as a layer.
KaMap: KA map cache notes may be loaded.
KaMapCache: as above.
MapGuide: and (3) online map viewing API technology.
MapServer: online map data from MapServer CGI is displayed.
Markers: and drawing points on the map to obtain the ornaments.
OSM: tile data published by an OpenStreetMap may be accessed.
PointGrid: the grid layer dynamic generation is a grid composed of regularly spaced point features.
PointTrack: and drawing track points.
SphericalMercator: converting coordinates to a commercial API uses a spherical mercator projection.
Text: the data given by the tag is created in a text file.
TileCache: and loading the tile cache data on line and slicing on line.
TMS: creating a map layer for a service that conforms to a Tile map service Specification
Vector: used to render vector data, there are a variety of geometric figures for the data.
Vector. Combining special layers into a renderer container
WMS: and loading the WMS map service which conforms to the OGC specification.
WMTS: and loading the WMS tile map data service which conforms to the OGC specification.
WorldWind:
XYZ: a spatial coordinate system.
Zoomify:
UTFGrid: read the encoding format of the text or Josn data source.
7) Marker is a combined application class of openlayers.
Box: the content is marked.
8) Popup a small window on a pop-up map, which may float on the map, usually in response to clicking a marker, the method and implementation of such calls is as follows:
anchored: and displaying the point information on the map.
Anchoredbubble: the round corners use the border-radius property of CSS 3.
Framed: inheriting Anchored type realization points.
FramedCloud: the Framed type implementation points are inherited.
9) The Protocol abstract vector layer Protocol comprises the following calling methods and realizing functions:
WFS: for creating a version WFS protocol layer. The default version is 1.0.0.
10) Render spatial data query analysis, which is the base class of all renderers, the method and implementation functions of this type of call are as follows:
a Canvas: and rendering and drawing the two-dimensional graphic primitive on a Canvas drawing board.
elementsIndexer: according to a given indexing method, the elements needing to be searched are found.
SVG:
VML: and constructing a VML rendering function by using the VML vector rendering function.
11) And obtaining Request layer data, wherein a cross-browser follows a W3C format, and the calling method and the realizing function are as follows:
XMLHttpRequest: a cross-browser implementation of an XMLHttpRequest object that conforms to the standard (W3C).
12) The method for calling the graph layer comprises the following steps of Strategy graph layer operation, graph layer editing and vector data graph layer class, and the calling method and the realizing function are as follows:
BBOX: a simple strategy reads and reads the new characteristics of the map.
Cluster: and (5) clustering vector features.
A Filter: one strategy to limit functionality by evaluating a filter keeps caching functionality up to the upper level of removefeatures.
Fixed: with each access, new data is retrieved.
Paging: vector feature paging strategy.
Refresh: and the layer refreshing function can set the automatic refreshing time.
Save: the space data modification and storage function can automatically store data.
13) Symbolozer dynamic rendering, representing the method and implementation functions for feature rendering, such calls are as follows:
line: used for rendering line data, and superimposing the drawn line on the map.
Point: used for rendering point data, and the drawn points are superposed on the map.
Polygon: used for rendering the surface data and superposing the drawn surface on the map.
Raster: used to render tile data, and superimpose the stitched facets on the map.
Text: for rendering text label functionality.
14) Tile data storage and Tile layer release, and the calling method and the realizing function are as follows:
image: for managing the image slices of the various layers used.
Image, iframe: image tiles obtained from remote services, images will be loaded using HTTP-POST to iframe.
UTFGrid: this is an unusual tile type because it does not have a rendered image, only "trellises" are available to find spatial attributes.
According to the technical scheme provided by the second embodiment of the invention, the target map is drawn by acquiring the target map data for drawing the map, the user input instruction is transmitted to the corresponding target application program interface based on the drawn target map, the calling execution of the target application program is realized, the target map is updated according to the calling execution result of the target application program, the secondary development service data of the user input instruction and the target map data are combined and visually displayed by calling the target application program according to the target map data and the acquired user input instruction of the client, the existing map engine technology is optimized, and the increasingly-growing personalized map drawing requirements of people are met.
EXAMPLE III
Fig. 7 is a schematic structural diagram of a map engine implementation apparatus according to a third embodiment of the present invention. As shown in fig. 7, the map engine implementing apparatus provided in this embodiment includes:
the map drawing module 71 is configured to perform map drawing using target map data according to the received map drawing request, generate a target map, and return the target map to the client;
the service interface module 72 is configured to transmit a user input instruction received based on the target map to a corresponding target application program interface, so as to implement call execution of a target application program;
and the update display module 73 is configured to update the target map according to the call execution result of the target application program, and return the update result and/or the call execution result of the target application program to the client.
Further, the method also comprises the following steps:
and the target map data acquisition module is used for acquiring map elements in a set format released in a network and converting the acquired map elements into target map data for map drawing.
Further, the target map data obtaining module is further configured to:
obtaining map elements to be converted with extension names of ship and/or mif released in a network;
and converting the map element to be converted into target map data with the extension name of-ora based on a set format conversion algorithm.
Further, the mapping module specifically includes:
a drawing instruction construction unit for constructing at least two map drawing instructions, wherein the map drawing instructions include an area range of the drawn map;
the drawing instruction distribution unit is used for respectively sending each map drawing instruction to a designated server in the cluster servers so as to instruct each server to finish the map drawing of the designated interval range;
and the local map combination unit is used for combining the maps of the specified interval ranges returned by the servers, generating the target map based on the map display size of the map drawing request client and returning the target map to the client.
Further, the drawing instruction constructing unit is further configured to:
constructing a map drawing area which is larger than a set multiple of the map display size based on the map display size of a map drawing request client, and constructing the map drawing instruction based on the map drawing area;
correspondingly, the mapping module further comprises:
and the data caching unit is used for combining the maps of the specified interval ranges returned by the servers and storing the map exceeding the display size of the map.
Optionally, the service interface module is specifically configured to:
receiving a collision analysis instruction input by a user based on the target map, and acquiring at least two pieces of first position information included in the collision analysis instruction;
transmitting the at least two pieces of first position information to a collision analysis application program interface so as to realize the calling execution of a collision analysis application program;
the collision analysis application program interface comprises at least two first position parameters, and the collision analysis application program is used for acquiring objects appearing at the positions of the at least two first position parameters in a set time interval after acquiring the at least two first position parameter values received by the collision analysis application program interface, and returning the acquired objects.
Optionally, the service interface module is specifically configured to:
receiving a single-point map-on instruction input by a user based on the target map, and acquiring second position information included in the single-point map-on instruction;
transmitting the second position information to a single-point map application program interface so as to realize the calling execution of the single-point map application program;
the single-point map application program interface comprises a second position parameter, and the single-point map application program is used for acquiring feature points in a set area around the position of the second position parameter value after acquiring the second position parameter value received through the single-point map application program interface, and drawing and returning the second position parameter value and each feature point at the corresponding position of the target map.
Optionally, the service interface module is specifically configured to:
receiving a multipoint map-loading instruction input by a user based on the target map, and acquiring at least one piece of third position information included in the multipoint map-loading instruction;
the at least one third position information is transmitted to a multipoint map application program interface so as to realize the calling execution of the multipoint map application program;
the multi-point mapping application program interface comprises at least one third position parameter, the multi-point mapping application program is used for obtaining feature points in a set area around the position of the at least one third position parameter value after obtaining the at least one third position parameter value received through the multi-point mapping application program interface, and drawing and returning the at least one third position parameter value and each feature point at the corresponding position of the target map.
Optionally, the service interface module is specifically configured to:
receiving a third-party map engine access instruction input by a user based on the target map, and acquiring third-party map engine information included in the third-party map engine access instruction;
transmitting the third-party map engine information to a third-party map engine access application program interface so as to realize the calling execution of the third-party map engine access application program;
the third-party map engine access application program interface comprises third-party map engine parameters, and the third-party map engine access application program is used for calling the application program interface of the third-party map engine corresponding to the third-party map engine parameter values after the third-party map engine parameter values received through the third-party map engine access application program interface are obtained.
The map engine implementation device provided by the embodiment of the invention can execute the map engine implementation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
The foregoing is considered as illustrative of the preferred embodiments of the invention and technical principles employed. The present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in more detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the claims.

Claims (9)

1. A map engine implementation method is characterized by comprising the following steps:
according to the received map drawing request, using target map data to draw a map, generating a target map, and returning the target map to the client;
transmitting a user input instruction received based on the target map to a corresponding target application program interface so as to realize the calling execution of a target application program;
updating the target map according to the calling execution result of the target application program, and returning the updating result or the calling execution result of the target application program to the client;
wherein the transferring the user input instruction received based on the target map to the corresponding target application program interface to implement the call execution of the target application program comprises:
receiving a collision analysis instruction input by a user based on the target map, and acquiring at least two pieces of first position information included in the collision analysis instruction;
transmitting the at least two pieces of first position information to a collision analysis application program interface so as to realize the calling execution of a collision analysis application program;
the collision analysis application program interface comprises at least two first position parameters, and the collision analysis application program is used for acquiring objects appearing at the positions of the at least two first position parameters in a set time interval after acquiring the at least two first position parameter values received by the collision analysis application program interface, and returning the acquired objects.
2. The method of claim 1, further comprising:
the method comprises the steps of obtaining map elements in a set format issued in a network, and converting the obtained map elements into target map data for map drawing.
3. The method according to claim 2, wherein the acquiring a formatted map element published in a network and converting the acquired map element into target map data for mapping comprises:
obtaining map elements to be converted with extension names of ship and/or mif released in a network;
and converting the map element to be converted into target map data with the extension name of-ora based on a set format conversion algorithm.
4. The method of claim 1, wherein the mapping using the target map data according to the received mapping request, generating the target map, and returning to the client comprises:
constructing at least two mapping instructions according to the received mapping request, wherein the mapping instructions comprise the area range of the mapped map;
respectively sending each mapping instruction to a designated server in a cluster server to indicate each server to finish mapping in a designated interval range;
and combining the maps of the appointed section ranges returned by the servers, generating the target map based on the map display size of the map drawing request client, and returning the target map to the client.
5. The method of claim 4, wherein constructing at least two mapping instructions from the received mapping request comprises:
according to a received map drawing request, constructing a map drawing area which is larger than a set multiple of the map display size based on the map display size of a map drawing request client, and constructing at least two map drawing instructions based on the map drawing area;
correspondingly, the method also comprises the following steps:
and combining the maps of the specified interval range returned by each server, and storing the map exceeding the display size part of the map.
6. The method of claim 1, wherein passing the user input instruction received based on the target map to a corresponding target application program interface to implement the call execution of the target application program comprises:
receiving a single-point map-on instruction input by a user based on the target map, and acquiring second position information included in the single-point map-on instruction;
transmitting the second position information to a single-point map application program interface to realize the calling execution of the single-point map application program;
the single-point map application program interface comprises a second position parameter, and the single-point map application program is used for acquiring feature points in a set area around the position of the second position parameter value after acquiring the second position parameter value received through the single-point map application program interface, and drawing and returning the second position parameter value and each feature point at the corresponding position of the target map.
7. The method of claim 1, wherein passing the user input instruction received based on the target map to a corresponding target application program interface to implement the call execution of the target application program comprises:
receiving a multipoint map-loading instruction input by a user based on the target map, and acquiring at least one piece of third position information included in the multipoint map-loading instruction;
the at least one third position information is transmitted to a multipoint map application program interface so as to realize the calling execution of the multipoint map application program;
the multi-point mapping application program interface comprises at least one third position parameter, the multi-point mapping application program is used for obtaining feature points in a set area around the position of the at least one third position parameter value after obtaining the at least one third position parameter value received through the multi-point mapping application program interface, and drawing and returning the at least one third position parameter value and each feature point at the corresponding position of the target map.
8. The method of claim 1, wherein passing the user input instruction received based on the target map to a corresponding target application program interface to implement the call execution of the target application program comprises:
receiving a third-party map engine access instruction input by a user based on the target map, and acquiring third-party map engine information included in the third-party map engine access instruction;
transmitting the third-party map engine information to a third-party map engine access application program interface so as to realize the calling execution of the third-party map engine access application program;
the third-party map engine access application program interface comprises third-party map engine parameters, and the third-party map engine access application program is used for calling the application program interface of the third-party map engine corresponding to the third-party map engine parameter values after the third-party map engine parameter values received through the third-party map engine access application program interface are obtained.
9. A map engine implementation apparatus, comprising:
the map drawing module is used for drawing a map by using target map data according to the received map drawing request, generating a target map and returning the target map to the client;
the service interface module is used for transmitting a user input instruction received based on the target map to a corresponding target application program interface so as to realize the calling execution of a target application program;
the update display module is used for updating the target map according to the call execution result of the target application program and returning the update result or the call execution result of the target application program to the client;
wherein the transferring the user input instruction received based on the target map to the corresponding target application program interface to implement the call execution of the target application program comprises:
receiving a collision analysis instruction input by a user based on the target map, and acquiring at least two pieces of first position information included in the collision analysis instruction;
transmitting the at least two pieces of first position information to a collision analysis application program interface so as to realize the calling execution of a collision analysis application program;
the collision analysis application program interface comprises at least two first position parameters, and the collision analysis application program is used for acquiring objects appearing at the positions of the at least two first position parameters in a set time interval after acquiring the at least two first position parameter values received by the collision analysis application program interface, and returning the acquired objects.
CN201510769826.9A 2015-11-12 2015-11-12 Map engine implementation method and device Active CN105447101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510769826.9A CN105447101B (en) 2015-11-12 2015-11-12 Map engine implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510769826.9A CN105447101B (en) 2015-11-12 2015-11-12 Map engine implementation method and device

Publications (2)

Publication Number Publication Date
CN105447101A CN105447101A (en) 2016-03-30
CN105447101B true CN105447101B (en) 2020-01-07

Family

ID=55557279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510769826.9A Active CN105447101B (en) 2015-11-12 2015-11-12 Map engine implementation method and device

Country Status (1)

Country Link
CN (1) CN105447101B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708942A (en) * 2016-11-22 2017-05-24 北京锐安科技有限公司 Map engine implementation method and device
CN107485855B (en) * 2017-09-01 2021-02-26 北京乐动卓越科技有限公司 Method and device for storing scene resources of super-large map
CN108681453A (en) * 2018-05-21 2018-10-19 京东方科技集团股份有限公司 The implementation method and device of engine map
CN109117124A (en) * 2018-06-23 2019-01-01 上海泽阳智能科技有限公司 A kind of function programming method of more return values
CN108955692A (en) * 2018-08-02 2018-12-07 德清知域信息科技有限公司 It is a kind of by the vehicle-mounted air navigation aid being connect with pedestrian's scene
CN109260708B (en) * 2018-08-24 2020-01-10 腾讯科技(深圳)有限公司 Map rendering method and device and computer equipment
CN109670011B (en) * 2018-12-31 2020-08-14 航天精一(广东)信息科技有限公司 Multi-map-source map service engine
CN110032610A (en) * 2019-03-12 2019-07-19 紫光云数科技有限公司 A kind of scale vector method for exhibiting data and system
CN111813876A (en) * 2019-04-12 2020-10-23 阿里巴巴集团控股有限公司 Map interface display method and device, navigation equipment and readable storage medium
CN111127275A (en) * 2019-12-16 2020-05-08 武汉大千信息技术有限公司 Method for obtaining target track complete graph of optimal map hierarchy
CN111143709B (en) * 2019-12-18 2023-11-21 深圳市超时空探索科技有限公司 Revocation method and device in 3D map scene
CN111209034B (en) * 2020-01-13 2023-03-03 成都卓影科技股份有限公司 Method for configuring visual dynamic page of TV large screen
CN112099781A (en) * 2020-09-18 2020-12-18 江苏神彩科技股份有限公司 Map visualization method and device, storage medium and equipment
CN116980397B (en) * 2023-09-25 2023-12-12 云粒智慧科技有限公司 Tile downloading method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103247226A (en) * 2013-04-23 2013-08-14 北京小米科技有限责任公司 Method and device for determining electronic map
CN103927374A (en) * 2014-04-24 2014-07-16 盐城工学院 Web GIS map layer establishing method based on SharpMap
CN104317798A (en) * 2014-09-02 2015-01-28 北京奇虎科技有限公司 Method and system for displaying nearby search client side on electronic map
CN104463634A (en) * 2014-12-19 2015-03-25 深圳先进技术研究院 Internet autonomous advertisement publishing method based on street view
CN104850596A (en) * 2015-04-28 2015-08-19 国家电网公司 Distribution network data processing method based on mobile GIS (Geographic Information System) and RTK (Real Time Kinematic) positioning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103247226A (en) * 2013-04-23 2013-08-14 北京小米科技有限责任公司 Method and device for determining electronic map
CN103927374A (en) * 2014-04-24 2014-07-16 盐城工学院 Web GIS map layer establishing method based on SharpMap
CN104317798A (en) * 2014-09-02 2015-01-28 北京奇虎科技有限公司 Method and system for displaying nearby search client side on electronic map
CN104463634A (en) * 2014-12-19 2015-03-25 深圳先进技术研究院 Internet autonomous advertisement publishing method based on street view
CN104850596A (en) * 2015-04-28 2015-08-19 国家电网公司 Distribution network data processing method based on mobile GIS (Geographic Information System) and RTK (Real Time Kinematic) positioning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
奥维互动地图V4.5.2;腾牛网;《https://www.qqtn.com/azsoft/81131.html》;20150629;第1-2页应用截图和应用介绍部分 *

Also Published As

Publication number Publication date
CN105447101A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105447101B (en) Map engine implementation method and device
KR101627169B1 (en) System for authorting and providing augmented reality cotents
US9465513B2 (en) Visual representation of map navigation history
US20180052572A1 (en) Modifying style layer properties of a digital map
US20080059889A1 (en) System and Method of Overlaying and Integrating Data with Geographic Mapping Applications
JP2010504560A (en) Method and system for displaying graphic objects on a digital map
CA2827920C (en) Map creation
US20120213416A1 (en) Methods and systems for browsing heterogeneous map data
US20160062961A1 (en) Hotspot editor for a user interface
CN111080782A (en) Visual system based on live-action three-dimensional geographic information system
Koutsoudis et al. 3dsse–a 3d scene search engine: Exploring 3d scenes using keywords
Gazcón et al. Fieldwork in Geosciences assisted by ARGeo: A mobile Augmented Reality system
Singh et al. Web 3D GIS application for flood simulation and querying through open source technology
US20130167049A1 (en) Geographic information service system
Kang et al. Spatial-temporal visualization and analysis of earth data under Cesium Digital Earth Engine
JP4968275B2 (en) Map data editing device and server for map data editing device
JP2021519481A (en) Media content planning system
Von Reumont et al. Visualization of geologic geospatial datasets through X3D in the frame of WebGIS
Wood et al. BGS Groundhog® desktop Geoscientific Information System external user manual
CN111815495B (en) CIM platform decision method, system, equipment and storage medium based on mixed reality
Dykes et al. Visualization with Google Earth and GIS
Keon Automated web-based analysis and visualization of spatiotemporal data
Denbo The scientific graphics toolkit
Di Pasquale et al. New frontiers for WebGIS platforms generation
Satheendran et al. Web-based 3DGIS Spatial Visualization for Karunagappally Municipality, A Fast Growing Town in the Southern Kerala using Open Source Standards

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