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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com