Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for quickly deploying OSM slicing service based on Docker container

A docker container and slicing technology, applied in the field of map service deployment, can solve problems such as low efficiency, loss of file data, and time-consuming, and achieve the effect of speeding up deployment, saving input costs, and reducing developers.

Pending Publication Date: 2022-03-08
南京控维通信科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, for the deployment of the written files, it is necessary to completely copy the data files and style files to the new server, configure the Java environment required by geoserver, configure environment variables, and overcome some other minor problems, so these operations often lead to traditional The deployment of map services is inefficient, and it takes a lot of time to copy data, and saving data in the form of files can easily lead to loss of file data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for quickly deploying OSM slicing service based on Docker container
  • Method and system for quickly deploying OSM slicing service based on Docker container
  • Method and system for quickly deploying OSM slicing service based on Docker container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] A method for quickly deploying OSM slice services based on Docker containers is proposed, which is used to accelerate the deployment speed of map services and flexibly configure map styles. The method specifically includes the following steps:

[0043] Step 1. Obtain the map deployment project to be run, and formulate the corresponding program script;

[0044] Step 2. Modify the program script and server configuration file according to the requirements;

[0045] Step 3, convert the required file format into a Mathematics Markup Language file by means of cyclic iteration, and name the corresponding mirror image file;

[0046] Step 4, package the image file and run it to realize the osm slicing service of the custom style.

[0047] In this embodiment, by converting the required file format into a Mathematics Markup Language file, and naming the corresponding image file, the layer can be made to have multiple open-sourced exquisite styles in the repeated situation. In ad...

Embodiment 2

[0061] In a further embodiment based on the first embodiment, when constructing the image file, include such as figure 2 The steps shown, specifically:

[0062] Step 3.1, pull the image file warehouse of the current project file;

[0063] Step 3.2, modify the corresponding script program according to the requirement;

[0064] Step 3.3, generating a mirror image through file conversion;

[0065] Step 3.4, using the file push script program to push the generated image file to the private library.

[0066] Among them, when modifying the corresponding script program in step 3.2, for the osm style file and the osm-light style file, install the catro dependency package, compile the mml file, and overwrite the mapnik.xml file in the project to modify the corresponding script program. At the same time, when configuring renderd.conf to modify the address mapping to the style file, use the copy script to replace the rendered.conf file generated in the container and modify the corres...

Embodiment 3

[0069] In the prior art, when implementing deployment, the following methods are often used:

[0070] Step 1. dockerhub pulls Overv / openstreetmap-tile-server image docker pull;

[0071] Step 2, start the image to run the command; namely:

[0072] docker run \

[0073] -v / absolute / path / to / luxembourg.osm.pbf: / data.osm.pbf \

[0074] -v / absolute / path / to / luxembourg.poly: / data.poly\

[0075] -v openstreetmap-data: / var / lib / postgresql / 12 / main \

[0076] overv / openstreetmap-tile-server \

[0077] Import

[0078] Step 3, docker run exec -it overv / openstreetmap-tile-server / bin / bash to run the container;

[0079] Step 4. Enter the home / renderer / src / openstreetmap-carto folder;

[0080] Step 5. Use the vi command to modify the file ending with .mss according to the required style, exit and save;

[0081] Step 6. Use the Exit command to exit the overv / openstreetmap-tile-server container, and use the docker restart imageId command to restart the container.

[0082] Step 7. The de...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a system for quickly deploying an OSM slice service based on a Docker container. The method and the system aim at accelerating map service deployment speed and realizing flexible configuration of map styles at the same time. The method specifically comprises the following steps: step 1, acquiring a map deployment project to be operated, and formulating a corresponding program script; 2, correcting a program script and a server configuration file according to requirements; 3, converting a required file format into a mathematical markup language file in a loop iteration mode, and naming the mathematical markup language file as a corresponding mirror image file; and step 4, packaging and running the mirror image file, and realizing an osm slicing service of a user-defined style. A containerization technology is fully combined, repeated configuration tasks are eliminated by using docker, and a map service mirror image is quickly constructed. In the deployment implementation process, only the mirror image needs to be pulled, the container is started, and the deployment time and learning cost of developers are saved to a great extent.

Description

technical field [0001] The invention relates to a method and system for quickly deploying OSM slice services based on Docker containers, in particular to the technical field of map service deployment. Background technique [0002] With the rapid development of map service technology, users pay more and more attention to the generation, storage, management, analysis and display of spatial data. In addition to these basic functions, deployment speed and exquisite style have also become additional requirements for the audience. [0003] When solving the visual layout presentation, the method often adopted in the prior art is to use the geoserver to directly publish the shapefile, so modifying the style requires writing an SLD file. Since the corresponding SLD files need to be compiled, developers need to master the new markup language SLD, which makes the learning cost high. In the face of visual pursuits, good design skills are required to produce exquisite styles. In addit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/60
CPCG06F8/60
Inventor 陈蓉赖海光郑成辉
Owner 南京控维通信科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products