CN110309249B - Map service publishing method and device - Google Patents

Map service publishing method and device Download PDF

Info

Publication number
CN110309249B
CN110309249B CN201910561340.4A CN201910561340A CN110309249B CN 110309249 B CN110309249 B CN 110309249B CN 201910561340 A CN201910561340 A CN 201910561340A CN 110309249 B CN110309249 B CN 110309249B
Authority
CN
China
Prior art keywords
data
map service
spatial
layer
information
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
CN201910561340.4A
Other languages
Chinese (zh)
Other versions
CN110309249A (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 Yuetu Data Technology Development Co Ltd
Original Assignee
Beijing Yuetu Data Technology Development 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 Yuetu Data Technology Development Co Ltd filed Critical Beijing Yuetu Data Technology Development Co Ltd
Publication of CN110309249A publication Critical patent/CN110309249A/en
Application granted granted Critical
Publication of CN110309249B publication Critical patent/CN110309249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a map service publishing method and device. The method comprises the following steps: setting a default style file according to a geographic entity library; inquiring, screening and acquiring spatial data issued by a data providing center according to user requirements, wherein the data providing center stores the spatial data according to a uniform storage specification; integrating and verifying different layer data of the acquired spatial data; and rendering the verified layer according to the default style file to generate a new style file for releasing the map service. The embodiment of the invention inquires, screens and acquires spatial data with unified storage specifications from a data providing center, integrates layer data sources, and dynamically renders layers by using Mapnik, thereby realizing rapid browsing and publishing of a sliced map service.

Description

Map service publishing method and device
Technical Field
The embodiment of the invention relates to the technical field of remote sensing, in particular to a method and a device for publishing a map service.
Background
At present, space data are mainly acquired by an image sensor carried by a satellite or an airplane, and the space data provided by each data providing center are stored and managed by using respective standards. Different levels of data centers govern different business directions, spatial ranges and geographic data, and different data combinations of target areas need to be retrieved and extracted from different data centers in the application of actually issuing map services.
The existing map services have an isolated property, when the map services are released, a data source must be ensured to be in the same data center, data acquisition and processing are difficult and heavy, the data source cannot realize dynamic updating, the released map services cannot modify map styles, only the released map services can be deleted, and the modified map services are released again, so that the efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a map service publishing method and device, which are used for solving the problem of low publishing efficiency of a map service in the prior art.
The embodiment of the invention provides a map service publishing method, which comprises the following steps:
setting a default style file according to a geographic entity library;
inquiring, screening and acquiring spatial data issued by a data providing center according to user requirements, wherein the data providing center stores the spatial data according to a uniform storage specification;
integrating and verifying different layer data of the acquired spatial data;
and rendering the verified layer according to the default style file to generate a new style file for releasing the map service.
The embodiment of the invention provides a map service publishing method, which is applied to a data providing center and comprises the following steps:
storing time, space and attribute information of space data in a database table mode according to a uniform storage specification which can be identified by a map service center, and storing vector data and raster data in a readable file mode;
performing data query and screening according to the query, screening and acquisition requests of the map service center, and sending spatial data meeting the requirements to the map service center;
checking whether data exists according to the verification request of the map service center, whether the production or uploading time of the data meets the requirement, whether the spatial range of the data is within the requirement range and whether the attribute information of the data meets the requirement setting;
and updating the stored spatial data and synchronously sharing the updated data to the map service center.
The embodiment of the invention provides a map service release device, which comprises:
the setting unit is used for setting a default style file according to the geographic entity library;
the system comprises an acquisition unit, a data providing center and a data processing unit, wherein the acquisition unit is used for inquiring, screening and acquiring spatial data issued by the data providing center according to user requirements, and the data providing center stores the spatial data according to a uniform storage standard;
the processing unit is used for integrating and verifying different layer data of the acquired spatial data;
and the generating unit is used for rendering the verified layer according to the default style file to generate a new style file for releasing the map service.
The embodiment of the invention provides a map service release device, which is positioned in a data providing center and comprises:
the storage unit is used for storing time, space and attribute information of the space data in a database table mode according to the specification which can be identified by the map service center, and storing vector data and raster data in a readable file mode;
the sending unit is used for inquiring and screening data according to the inquiry, screening and acquisition requests of the map service center and sending spatial data meeting the requirements to the map service center;
the verification unit is used for checking whether data exist or not, whether the production or uploading time of the data meets requirements or not, whether the spatial range of the data is within the requirement range or not and whether the attribute information of the data meets the setting of the requirements or not according to the verification request of the map service center;
and the data updating unit is used for updating the stored spatial data and synchronously sharing the updated data to the map service center.
The embodiment of the invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the map service publishing method when executing the program.
An embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the map service publishing method described above.
According to the map service publishing method and device provided by the embodiment of the invention, the map service center inquires, screens and obtains spatial data with uniform storage specifications from the data providing center, integrates the data source of the map layer, and dynamically renders the map layer by using Mapnik, so that the quick browsing and publishing of the slice map service are realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a map service publishing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a structure of a Mapnik style file according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a structure of an image layer tag in a Mapnik style file according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a map service publishing method according to another embodiment of the present invention;
fig. 5 is a schematic flowchart of a distributed map service publishing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a map service publishing device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a map service publishing device according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention is applied to a map service center, the map service center is used for completing the release and management of the map service, and the data of the map service is provided by a data providing center. And finally, under the support of a map service center and a data service center, the description of the map service is completed by relying on Mapnik style files.
Mapnik is an open-source library with a map rendering function, the core of the Mapnik is a C + + shared library, algorithms and modes for providing spatial data access and visualization are provided, the Mapnik is an open-source lightweight map rendering engine, and the Mapnik is characterized by dynamic generation of tiles.
Fig. 1 shows a flowchart of a method for publishing a map service according to an embodiment of the present invention.
As shown in fig. 1, the method specifically includes the following steps:
s11, setting a default style file according to the geographic entity library;
specifically, a map service center sets a default service publishing mode, sets a default layer according to types aiming at space data universal to a geographic entity library, presets thematic map layer combinations commonly used in the industry field, and stores the map layer combination as a default Mapnik style file after rendering the layer to publish a custom map service. When the map service is released according to the user requirements, the data is modified according to the requirements on the map service, and the map service style file is updated.
It should be noted that the default Mapnik style file used by the custom service is not finished, and the purpose is to maintain the original style of the data.
S12, inquiring, screening and acquiring spatial data issued by a data providing center according to user requirements, wherein the data providing center stores the spatial data according to a uniform storage specification;
specifically, user requirements are analyzed, and required data are screened and extracted from a data providing center, wherein the data providing center stores data information according to a specification which can be recognized by a map service center.
S13, integrating and verifying different layer data of the acquired spatial data;
specifically, the map service center performs data integration on the extracted spatial data according to different layer types, the data of different layer types are combined into different data sets, for example, data sets of layer types such as points, lines, or planes are combined, and the data sets are ordered according to a predefined arrangement mode. While sending a request to the data-providing center to verify the validity of the consolidated data and the feasibility of the demand.
And S14, rendering the verified layer according to the default style file to generate a new style file for publishing the map service.
Specifically, map layer dynamic rendering is performed on the verified demand service by using Mapnik, a new Mapnik style file is generated, the position and the query method of a data source are confirmed in the data source part of a map layer label of the file, and a default map style is used in the map layer rendering part.
Fig. 2 shows a schematic diagram of the composition of the Mapnik style file.
The Mapnik style file is composed of different XML tags, each tag has its own representative meaning, and as shown in FIG. 2, the Mapnik style file is mainly divided into a map tag, a style tag and a layer tag. Wherein:
map labeling: the service label is description information of the map service, such as the name of the map service, the space projection information of the map service, and the style of elements in the map.
Style labeling: the method comprises the steps of defining the pattern of a layer, distinguishing element types, mainly setting map rendering conditions such as fonts, line types and filling, and the like, wherein the pattern label does not specify which layer belongs to.
Fig. 3 shows a schematic diagram of the composition of layer labels in the Mapnik style file.
As shown in fig. 3, the layer labels include a layer name, a style name, coordinate information, data source information (e.g., information such as a server address, a database instance name, a database username, and a password), and a query statement of a data source in a database, where the query statement specifies that the layer is rendered using style labels with the same name according to a database standard (e.g., PostGreSql standard).
In a single style file, there is only one map tab, and a plurality of style tabs and layer tabs may be defined. The method includes the steps of defining pattern labels of different layer types such as points, lines, surfaces and grids, using multiple types of data in one map service, enabling different types of layer data to be rendered in different styles, also achieving the same type of data, and using different pattern labels, for example, supermarket point layers and water system surface layers use different pattern labels, or supermarket point layers and bank point layers can be rendered by using different pattern labels. The map layers of different data sources are defined, data do not need to be stored in a map service center or the same data providing center, and when the map layers are designed, the map service can be accurately and quickly released only by correctly filling server information and database information corresponding to the data sources.
The embodiment of the invention depends on map service release of Mapnik data rendering slices, reduces the data storage pressure of a map service center, and realizes the management and the use of the map service in a unified way.
According to the map service publishing method provided by the embodiment of the invention, the map service center inquires, screens and obtains spatial data with uniform storage specifications from the data providing center, integrates the layer data source, and dynamically renders the layer by using Mapnik, so that the quick browsing and publishing of the slice map service are realized.
On the basis of the foregoing embodiment, S11 specifically includes:
setting default layers of different data types according to the global geographic entity data;
setting a rendering style of each default layer, wherein the rendering style comprises a font, a line type and filling;
and saving the rendered layer combination as a default style file.
Specifically, a default service publishing mode is set in the map service center, different types of data sets are ordered according to a defined arrangement mode, and a default layer and a style file are set. When the map service is released, only fast data selection (without concerning data sources) is needed, and the map service is released by using a default map style.
On the basis of the foregoing embodiment, S13 specifically includes:
integrating the spatial data of different layers;
determining data source information of integrated data of different layers, wherein the data source information comprises server information, database information and query statements of a data source in a database;
registering a map service, and storing customized information of the map service, wherein the customized information comprises query information of integrated data;
and sending a verification request to the data providing center according to the customized information of the map service, and verifying the validity and feasibility of the integrated data.
Specifically, according to the user requirements, the default style and the data source information of the map service are inquired and determined, the map service is registered in a map service center, and the customization result of the map service is stored.
The method comprises the steps of sending a request to a data center according to service customization information of a map service center, verifying validity and feasibility of integrated data according to 'time-space-attribute' information of the data, checking whether the data exists, whether production or uploading time of the data meets requirements, whether a spatial range of the data is within a requirement range, and whether attribute information of the data meets requirements.
On the basis of the foregoing embodiment, S14 specifically includes:
querying default rendering styles of different layer integration data from the default style file, and rendering the layers;
and storing the data source information of the different layer integration data and the rendered layer as a new style file.
Specifically, the map service center generates a new Mapnik style file according to the verified customized service, the data source part of the layer label of the new style file is added with the position of the data source and the query statement, and the layer rendering part uses a default map style.
On the basis of the above embodiment, the method further includes:
dynamically modifying the layer data source information and the style information of the style file according to the change of the user requirement, regenerating the style file, and realizing the dynamic rendering update of the map service;
specifically, the published map service modifies the rendering style part and the data source part of the style file according to new requirements.
And automatically inquiring, screening and acquiring new spatial data issued by a data providing center at regular intervals, and adding new layer data source information and data inquiry sentences to corresponding tags in the style files to realize dynamic update of the map service.
Specifically, when the map service is refreshed, the new style tag content is read to render the map, the new data source tag content is read, data is requested from the service providing center again, and updating of the map service style and the data source is achieved.
On the basis of the above embodiment, the method further includes:
performing administrative division on the spatial data according to the actual position covered by the data, and performing different types and formats of the spatial data;
the method comprises the steps of determining the place name addresses of data of different regions and determining the storage modes of space data of different types and formats, so that the data providing center stores the space data according to a uniform storage specification.
Specifically, the map service center designs a uniform data storage specification, including multiple items of contents such as time, space, attributes and the like, so that the data providing center stores data information according to the specification recognizable by the map service center.
The unified data storage specification may be defined as follows:
(1) classifying according to data types and according to the existing geographic entity library standards, such as road grade, river grade and the like; or directly organized as combined data, such as a custom location name address library. And confirming the range and administrative division of the data according to the actual position covered by the data.
(2) The data stored in the data providing center is in multiple formats according to the type and format of the data, for example, data in different formats is stored by adopting a database or standard data files (files in formats of GeoTIFF, sharefile, CSV, GeoJson and the like), each type of data meets the requirements of the map service center, such as the name of a specified field of vector data and the structure of a CSV file, and the format of raster data is unified into the format of GeoTIFF.
Fig. 4 is a flowchart illustrating a map service publishing method according to an embodiment of the present invention.
The method is applied to a data providing center, and specifically comprises the following steps as shown in fig. 4:
s21, storing time, space and attribute information of spatial data in a database table mode according to a uniform storage specification which can be identified by a map service center, and storing vector data and raster data in a readable file mode;
specifically, the data providing center counts distributable geospatial data, the vector number is stored in a structure of a readable CSV file according to a unified storage specification recognizable by a map service center, and the raster data is stored in a GeoTIFF file format. Vector data is mainly obtained by field measurement and grid data vectorization, and grid data is mainly obtained by satellite or airplane carried image sensors.
The PostgreSQL is an open-source object-relationship data management system, has rich data type support and good spatial data expansion, and is a database management system which uniquely supports the characteristics of things, sub-queries and the like. And has a good-performance geographic data expansion-geographic data object (PostGISGPL).
The embodiment of the invention adopts the PostgreSQL database to store the 'time-space-attribute' information of the geographic data, and the data combined by a plurality of data providing centers realizes the diversification of the data, and the map slicing service with wider space range, more thematic types, more comprehensive content and stronger timeliness is issued.
S22, performing data query and screening according to the query, screening and acquisition requests of the map service center, and sending spatial data meeting requirements to the map service center;
s23, checking whether data exist, whether the production or uploading time of the data meets the requirement, whether the spatial range of the data is in the requirement range and whether the attribute information of the data meets the requirement according to the verification request of the map service center;
and S24, updating the stored spatial data and synchronously sharing the updated data to the map service center.
Specifically, the data providing center provides data retrieval service and data verification service for the map service center. And the data stored in the data providing center is dynamically updated in real time, and the updated information is synchronously shared to the data service of the map service. The map service realizes dynamic update of the map service by modifying the style file and updating the data source.
According to the map service publishing method provided by the embodiment of the invention, the data providing center provides data retrieval service and data verification service for the map service center, and regularly or regularly maintains the data source, so that the coverage range and the data content of the map service are expanded.
In summary, the capabilities of the map service center include: the method comprises the steps of defining a geographic entity library, customizing a default map style aiming at the geographic entity library, setting hierarchy and spatial display grade between default geographic entities, presetting thematic map layer combinations commonly used in the industry field, aiming at the requirement of user registration, combining the existing data resources, checking the feasibility of the requirement and map data virtual integration verification, sending the validity of verification data and the feasibility of customizing service to a data providing center, modifying a style file according to the requirement, updating the map service and managing the map service.
Capabilities of the data providing center include: the method comprises the steps of storing geographic data in a database table form, storing the geographic data in a readable file form, and realizing data retrieval service and data verification service, updating a data source of thermal response and synchronously sharing the updating information to a data service of a map service on the basis of a condition of the time-space-attribute.
The embodiment of the invention uses the dynamic rendering slice (vector data and raster data) of the data of the Mapnik map service to realize the distributed storage and management of the data on the basis of the rich data type support of PostgreSQL and good spatial data expansion (PostGIS). The characteristics of distributed storage, Mapnik dynamic slicing and timing cleaning of the map service in the embodiment of the invention ensure that a service center cannot store a large number of cache files, and reasonable utilization of resources is realized.
Fig. 5 is a flowchart illustrating a distributed map service publishing method according to an embodiment of the present invention.
As shown in fig. 5, the successful release of the map service needs to include the steps of configuration process (i.e., setting default style), analysis of requirements, customization of service, verification process, generation of style file, release of service, management of service composition, and modification of style file according to new requirement change.
The specific implementation of each step is described in detail in the above embodiments, and is not described herein again.
Fig. 6 is a schematic structural diagram illustrating a map service publishing device according to an embodiment of the present invention.
As shown in fig. 6, the map service distribution apparatus provided in the embodiment of the present invention is applied to a map service center, and includes: a setting unit 11, an acquisition unit 12, a processing unit 13, and a generation unit 14, wherein:
the setting unit 11 is configured to set a default style file according to the geographic entity library;
specifically, a default service publishing mode is set, a default layer is set according to types aiming at space data universal to a geographic entity library, a thematic map layer combination commonly used in the industry field is preset, and the default Mapnik style file is stored after the layer is rendered.
The default Mapnik style file is not finished in order to preserve the original style of the data.
The acquiring unit 12 is configured to query, screen and acquire spatial data issued by a data providing center according to user requirements, where the data providing center stores the spatial data according to a uniform storage specification;
specifically, required data is screened and extracted from a data providing center, wherein the data providing center stores data information according to a specification recognizable by a map service center.
The processing unit 13 is configured to perform integration and verification of different layer data on the acquired spatial data;
specifically, the extracted spatial data is subjected to data integration according to different layer types, the data of different layer types are combined into different data sets, for example, data sets of layer types such as points, lines, or planes are combined, and the data sets are ordered according to a predefined arrangement mode. While sending a request to the data-providing center to verify the validity of the consolidated data and the feasibility of the demand.
The generating unit 14 is configured to render the verified layer according to the default style file, and generate a new style file for issuing a map service.
Specifically, map layer dynamic rendering is performed on the verified demand service by using Mapnik, a new Mapnik style file is generated, the position and the query method of a data source are confirmed in the data source part of a map layer label of the file, and a default map style is used in the map layer rendering part.
The composition of the Mapnik style file is shown in fig. 2 and 3, and will not be described herein.
According to the map service publishing device provided by the embodiment of the invention, the map service center inquires, screens and acquires spatial data with uniform storage specifications from the data providing center, integrates the layer data source, and dynamically renders the layer by using Mapnik, so that the quick browsing and publishing of the slice map service are realized.
On the basis of the above embodiment, the setting unit 11 includes:
the first setting module is used for setting default image layers of different data types according to the global geographic entity data;
the second setting module is used for setting the rendering style of each default layer, and the rendering style comprises fonts, line types and filling;
and the first storage module is used for storing the rendered layer combination as a default style file.
Specifically, a default service publishing mode is set in the map service center, different types of data sets are ordered according to a defined arrangement mode, and a default layer and a style file are set. When the map service is released, only fast data selection (without concerning data sources) is needed, and the map service is released by using a default map style.
On the basis of the above embodiment, the processing unit 13 includes:
the integration module is used for integrating the spatial data of different layers;
the determining module is used for determining data source information of the integrated data of different layers, wherein the data source information comprises server information, database information and query statements of data sources in a database;
the system comprises a registration module, a data processing module and a data processing module, wherein the registration module is used for registering map service and storing customized information of the map service, and the customized information comprises query information of integrated data;
and the verification module is used for sending a verification request to the data providing center according to the customized information of the map service and verifying the validity and feasibility of the integrated data.
Specifically, according to the user requirements, the default style and the data source information of the map service are inquired and determined, the map service is registered in a map service center, and the customization result of the map service is stored.
The verification module sends a request to the data center according to service customization information of the map service center, verifies the validity and feasibility of the integrated data according to the 'time-space-attribute' information of the data, and checks whether the data exists, whether the production or uploading time of the data meets the requirement, whether the spatial range of the data is within the requirement range, and whether the attribute information of the data meets the setting of the requirement.
On the basis of the above embodiment, the generating module 14 includes:
the rendering module is used for inquiring default rendering styles of different layer integration data from the default style file and rendering the layers;
and the second storage module is used for storing the data source information of the different layer integration data and the rendered layer as a new style file.
Specifically, the map service center generates a new Mapnik style file according to the verified customized service, the data source part of the layer label of the new style file is added with the position of the data source and the query statement, and the layer rendering part uses a default map style.
On the basis of the above embodiment, the apparatus further includes:
the modification unit is used for dynamically modifying the layer data source information and the style information of the style file according to the change of the user requirement, regenerating the style file and realizing the dynamic rendering and updating of the map service;
specifically, the published map service modifies the rendering style part and the data source part of the style file according to new requirements.
And the updating unit is used for automatically inquiring, screening and acquiring new spatial data issued by the data providing center at regular intervals, and adding new layer data source information and data inquiry sentences to corresponding tags in the style files to realize dynamic updating of the map service.
Specifically, when the map service is refreshed, the new style tag content is read to render the map, the new data source tag content is read, data is requested from the service providing center again, and updating of the map service style and the data source is achieved.
On the basis of the above embodiment, the apparatus further includes:
the classification unit is used for dividing administrative divisions of the spatial data according to the actual positions covered by the data and distinguishing different types and formats of the spatial data;
the determining unit is used for determining the place name addresses of the data of different regions and determining the storage modes of the spatial data of different types and formats, so that the data providing center stores the spatial data according to the uniform storage specification.
Specifically, the map service center designs a uniform data storage specification, including multiple items of contents such as time, space, attributes and the like, so that the data providing center stores data information according to the specification recognizable by the map service center.
Fig. 7 is a schematic structural diagram illustrating a map service distribution apparatus according to an embodiment of the present invention.
The apparatus is applied to a data providing center, and as shown in fig. 7, the apparatus includes: a storage unit 21, a transmission unit 22, an authentication unit 23, and a data update unit 24, wherein:
the storage unit 21 is configured to store time, space, and attribute information of spatial data in a form of a database table according to a uniform storage specification that can be recognized by a map service center, and store vector data and raster data in a readable file form;
specifically, the data providing center counts distributable geospatial data, the vector number is stored in a structure of a readable CSV file according to a unified storage specification recognizable by a map service center, and the raster data is stored in a GeoTIFF file format. Vector data is mainly obtained by field measurement and grid data vectorization, and grid data is mainly obtained by satellite or airplane carried image sensors.
The PostgreSQL is an open-source object-relationship data management system, has rich data type support and good spatial data expansion, and is a database management system which uniquely supports the characteristics of things, sub-queries and the like. And has a good-performance geographic data expansion-geographic data object (PostGISGPL).
The embodiment of the invention adopts the PostgreSQL database to store the 'time-space-attribute' information of the geographic data, and the data combined by a plurality of data providing centers realizes the diversification of the data, and the map slicing service with wider space range, more thematic types, more comprehensive content and stronger timeliness is issued.
The sending unit 22 is configured to perform data query and screening according to the query, screening and acquisition requests of the map service center, and send spatial data meeting requirements to the map service center;
the verification unit 23 is configured to check whether data exists, whether the production or uploading time of the data meets the requirement, whether the spatial range of the data is within the requirement range, and whether the attribute information of the data meets the requirement setting according to the verification request of the map service center;
the data updating unit 24 is configured to update the stored spatial data and synchronously share the updated data to the map service center.
Specifically, the data providing center provides data retrieval service and data verification service for the map service center. And the data stored in the data providing center is dynamically updated in real time, and the updated information is synchronously shared to the data service of the map service. The map service realizes dynamic update of the map service by modifying the style file and updating the data source.
According to the map service publishing method provided by the embodiment of the invention, the data providing center provides data retrieval service and data verification service for the map service center, and regularly or regularly maintains the data source, so that the coverage range and the data content of the map service are expanded.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
An example is as follows:
fig. 8 illustrates a physical structure diagram of a server, and as shown in fig. 8, the server may include: a processor (processor)31, a communication Interface (communication Interface)32, a memory (memory)33 and a communication bus 34, wherein the processor 31, the communication Interface 32 and the memory 33 are communicated with each other via the communication bus 34. The processor 31 may call logic instructions in the memory 33 to perform the following method:
setting a default style file according to spatial data issued by a geographic entity library data supply center;
inquiring, screening and acquiring spatial data issued by a data providing center according to user requirements, wherein the data providing center stores the spatial data according to a uniform storage specification;
integrating and verifying different layer data of the acquired spatial data;
and rendering the verified layer according to the default style file to generate a new style file for releasing the map service.
In addition, the logic instructions in the memory 33 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (9)

1. A method for publishing a map service, the method comprising:
setting a default style file according to a geographic entity library;
inquiring, screening and acquiring spatial data issued by a data providing center according to user requirements, wherein the data providing center stores the spatial data according to a uniform storage specification;
integrating and verifying different layer data of the acquired spatial data;
rendering the verified layer according to the default style file to generate a new style file for releasing map service;
the integrating and verifying of the different layer data of the acquired spatial data comprises:
integrating the spatial data of different layers;
determining data source information of integrated data of different layers, wherein the data source information comprises server information, database information and query statements of a data source in a database;
registering a map service, and storing customized information of the map service, wherein the customized information comprises query information of integrated data;
sending a verification request to a data providing center according to the customized information of the map service, and verifying the validity and feasibility of the integrated data;
rendering the verified layer according to the default style file, and generating a new style file comprises:
querying default rendering styles of different layer integration data from the default style file, and rendering the layers;
and storing the data source information of the different layer integration data and the rendered layer as a new style file.
2. The method of claim 1, wherein setting the default style file according to the repository of geographic entities comprises:
setting default layers of different data types according to the global geographic entity data;
setting a rendering style of each default layer, wherein the rendering style comprises a font, a line type and filling;
and saving the rendered layer combination as a default style file.
3. The method of claim 1, further comprising:
dynamically modifying the layer data source information and the style information of the style file according to the change of the user requirement, regenerating the style file, and realizing the dynamic rendering update of the map service;
and automatically inquiring, screening and acquiring new spatial data issued by a data providing center at regular intervals, and adding new layer data source information and data inquiry sentences to corresponding tags in the style files to realize dynamic update of the map service.
4. The method of claim 1, further comprising:
performing administrative division on the spatial data according to the actual position covered by the data, and performing different types and formats of the spatial data;
the method comprises the steps of determining the place name addresses of data of different regions and determining the storage modes of space data of different types and formats, so that the data providing center stores the space data according to a uniform storage specification.
5. A map service publishing method is applied to a data providing center and comprises the following steps:
storing time, space and attribute information of space data in a database table mode according to a uniform storage specification which can be identified by a map service center, and storing vector data and raster data in a readable file mode;
performing data query and screening according to the query, screening and acquisition requests of the map service center, and sending spatial data meeting the requirements to the map service center;
checking whether data exists according to the verification request of the map service center, whether the production or uploading time of the data meets the requirement, whether the spatial range of the data is within the requirement range and whether the attribute information of the data meets the requirement setting;
and updating the stored spatial data and synchronously sharing the updated data to the map service center.
6. A map service distribution apparatus, characterized in that the apparatus comprises:
the setting unit is used for setting a default style file according to the geographic entity library;
the system comprises an acquisition unit, a data providing center and a data processing unit, wherein the acquisition unit is used for inquiring, screening and acquiring spatial data issued by the data providing center according to user requirements, and the data providing center stores the spatial data according to a uniform storage standard;
the processing unit is used for integrating and verifying different layer data of the acquired spatial data;
the generating unit is used for rendering the verified layer according to the default style file to generate a new style file for releasing the map service;
the processing unit includes:
the integration module is used for integrating the spatial data of different layers;
the determining module is used for determining data source information of the integrated data of different layers, wherein the data source information comprises server information, database information and query statements of data sources in a database;
the system comprises a registration module, a data processing module and a data processing module, wherein the registration module is used for registering map service and storing customized information of the map service, and the customized information comprises query information of integrated data;
the verification module is used for sending a verification request to the data providing center according to the customized information of the map service and verifying the validity and feasibility of the integrated data;
the generation unit includes:
the rendering module is used for inquiring default rendering styles of different layer integration data from the default style file and rendering the layers;
and the second storage module is used for storing the data source information of the different layer integration data and the rendered layer as a new style file.
7. A map service distribution apparatus, wherein the apparatus is located in a data providing center, the apparatus comprising:
the storage unit is used for storing time, space and attribute information of the space data in a database table mode according to a uniform storage specification which can be identified by the map service center, and storing vector data and raster data in a readable file mode;
the sending unit is used for inquiring and screening data according to the inquiry, screening and acquisition requests of the map service center and sending spatial data meeting the requirements to the map service center;
the verification unit is used for checking whether data exist or not, whether the production or uploading time of the data meets requirements or not, whether the spatial range of the data is within the requirement range or not and whether the attribute information of the data meets the setting of the requirements or not according to the verification request of the map service center;
and the data updating unit is used for updating the stored spatial data and synchronously sharing the updated data to the map service center.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the map service distribution method according to any one of claims 1 to 5 are implemented when the processor executes the program.
9. A non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the map service publishing method according to any one of claims 1 to 5.
CN201910561340.4A 2019-02-26 2019-06-26 Map service publishing method and device Active CN110309249B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910143357.8A CN109947882A (en) 2019-02-26 2019-02-26 Map Services dissemination method and device
CN2019101433578 2019-02-26

Publications (2)

Publication Number Publication Date
CN110309249A CN110309249A (en) 2019-10-08
CN110309249B true CN110309249B (en) 2021-07-30

Family

ID=67008073

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910143357.8A Pending CN109947882A (en) 2019-02-26 2019-02-26 Map Services dissemination method and device
CN201910561340.4A Active CN110309249B (en) 2019-02-26 2019-06-26 Map service publishing method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910143357.8A Pending CN109947882A (en) 2019-02-26 2019-02-26 Map Services dissemination method and device

Country Status (1)

Country Link
CN (2) CN109947882A (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699428A (en) * 2019-10-23 2021-04-23 阿里巴巴集团控股有限公司 Method and device for generating map data and computer system
CN111159326B (en) * 2020-01-02 2023-05-09 中国航空工业集团公司西安航空计算技术研究所 Airborne digital map local data increment updating method and device
CN112073507B (en) * 2020-09-04 2022-08-05 上海领旌信息科技有限公司 Geographic information system, application configuration method and APP client loading method
CN112256255A (en) * 2020-09-27 2021-01-22 中孚安全技术有限公司 Dynamic configuration display method and system for map layer of electronic map
CN113379912B (en) * 2021-07-01 2023-09-26 中煤航测遥感集团有限公司 Map service issuing method, device, terminal equipment and readable storage medium
CN115114356B (en) * 2022-06-28 2023-03-21 河北平普数政科技有限公司 Real-time decryption method based on vector data front-end display

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108764678A (en) * 2018-05-18 2018-11-06 天津科技大学 Industrial and mining enterprises' management information system based on Arcgis
CN109086286A (en) * 2017-12-07 2018-12-25 中国科学院电子学研究所苏州研究院 A kind of production of Pictorial Map and dissemination method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104531A1 (en) * 2006-09-29 2008-05-01 Stambaugh Thomas M Spatial organization and display of enterprise operational integration information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086286A (en) * 2017-12-07 2018-12-25 中国科学院电子学研究所苏州研究院 A kind of production of Pictorial Map and dissemination method
CN108764678A (en) * 2018-05-18 2018-11-06 天津科技大学 Industrial and mining enterprises' management information system based on Arcgis

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MapServer 之 发布网络地图服务(WMS-Web Map Service);庆祝亚运会;《https://blog.csdn.net/qingyafan/article/details/46500127》;20150615;全文 *

Also Published As

Publication number Publication date
CN110309249A (en) 2019-10-08
CN109947882A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN110309249B (en) Map service publishing method and device
CN108776699B (en) Method and device for processing meteorological data and satellite remote sensing data
US8832130B2 (en) System and method for implementing on demand cloud database
US20150378721A1 (en) Methods for managing applications using semantic modeling and tagging and devices thereof
CN109472524B (en) Information processing method and device
US8935241B2 (en) Using geographical location to determine element and area information to provide to a computing device
CN111090440B (en) Information processing method, system, device and storage medium
CN113094601B (en) GIS cloud management method and system
US20150363435A1 (en) Declarative Virtual Data Model Management
CN110619554A (en) House resource display method, device, equipment and storage medium
CA2484521C (en) Workstation deployment
CN112699151B (en) Data processing method, device, equipment and medium
CN109360106A (en) Portrait construction method, system, medium and computer system
CN111552010A (en) Satellite remote sensing quick response and visualization service platform for global meteorological disasters
CN112685443A (en) Data query method and device, electronic equipment and computer readable storage medium
CN104301354B (en) A kind of method and system of the spatial class business datum GISization service based on cloud computing
CN111090803A (en) Data processing method and device, electronic equipment and storage medium
CN114444478A (en) Voucher visualization method and device, electronic equipment and storage medium
CN113918669A (en) Device and method for realizing natural resource homeland space planning one-map system
CN111737330A (en) Spatial data standardization method and device, computer equipment and storage medium
JP2008225686A (en) Data arrangement management device and method in distributed data processing platform, and system and program
CN116383223A (en) Asset data processing method, related device and storage medium
CN114124977B (en) Cross-tenant data sharing method and device and electronic equipment
CN106940725B (en) Credit investigation data storage scheduling method and system
CN113934729A (en) Data management method based on knowledge graph, related equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100094 Room 303, 3 / F, building 1, area 2, courtyard 81, Beiqing Road, Haidian District, Beijing

Applicant after: Beijing yuetu Data Technology Development Co., Ltd

Address before: 100085 room A515, building 79, Shuang Qing Lu, Haidian District, Beijing.

Applicant before: BEIJING YUETU REMOTE SENSING TECHNOLOGY DEVELOPMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant