CN109388409A - A kind of method that Intranet disposes map tile service and path planning - Google Patents

A kind of method that Intranet disposes map tile service and path planning Download PDF

Info

Publication number
CN109388409A
CN109388409A CN201811019836.0A CN201811019836A CN109388409A CN 109388409 A CN109388409 A CN 109388409A CN 201811019836 A CN201811019836 A CN 201811019836A CN 109388409 A CN109388409 A CN 109388409A
Authority
CN
China
Prior art keywords
tile
map
intranet
mod
request
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.)
Pending
Application number
CN201811019836.0A
Other languages
Chinese (zh)
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.)
China Network Information Security Ltd By Share Ltd
Original Assignee
China Network Information Security Ltd By Share 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 China Network Information Security Ltd By Share Ltd filed Critical China Network Information Security Ltd By Share Ltd
Priority to CN201811019836.0A priority Critical patent/CN109388409A/en
Publication of CN109388409A publication Critical patent/CN109388409A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to electronic map technique fields, more particularly to a kind of method that Intranet disposes map tile service and path planning, include the following steps downloading data source, installation Open-Source Tools, configuration PostgreSQL, for Apache add mod_tile module, Apache is received and front end request, send request, tile analysis, rendering tile, OSRM parse OSM data, build front end page.Beneficial effects of the present invention: the Vector spatial data of OpenStreetMap is utilized, cooperate the mod_tile module of apache as map server, OSRM is as path planning engine, and using renderd and mapnik as map renderer, leaflet is as front-end map frame, a perfect Map Services are built in Intranet, after disposing Intranet Map Services, the similar effects of commercial Internet map can be reached in Intranet, it and include the functions such as navigation and path planning, while improving user experience;Using PostgreSQL storage space of database vector data, the rendering speed of mapnik is considerably increased.

Description

A kind of method that Intranet disposes map tile service and path planning
Technical field
The present invention relates to electronic map technique fields, and in particular to a kind of deployment map tile service of Intranet and path rule The method drawn.
Background technique
As people's trip requirements and data visualization develop, GIS has penetrated into the every aspect of life.From 2005 Year Google Maps is announced to the world splendidly, and a hundred flowers blossom for electronic map till now, and electronic map has thoroughly incorporated our life Living, it is convenient that the various industries such as navigation, positioning, express delivery, public security are dependent on electronic map bring.
Currently, existing many commercial electronic maps on internet, and online API open service interface is provided, pass through These JavaScript interfaces of online access can be used Map Services provided by the maps quotient such as Baidu, high moral, but have one A precondition, that is, have to connection internet, for that cannot connect the situation of internet, traditional way is by each quotient Changed offline with the tile data of map, a set of HTTP request response system is affixed one's name in the middle part of Intranet, to the index return pair of each tile The tile figure answered, this mode is first is that violate the User Agreement of commercial map;Second is that user experience is very bad.
Summary of the invention
It is an object of the invention to overcome problems of the prior art, a kind of Intranet deployment map tile service is provided And the method for path planning, it may be implemented for Intranet or offline deployment electronic map and path planning service, inside Reach the similar effects of commercial Internet map in net, and includes the functions such as navigation and path planning.
To realize above-mentioned technical purpose and the technique effect, the present invention is achieved by the following technical solutions:
A kind of method that Intranet disposes map tile service and path planning comprising following steps:
Step 1, downloading data source: downloading OpenStreetMap space vector data source;
Step 2, installation Open-Source Tools: Apache, mod_tile, PostgreSQL, mapnik, OSRM work are successively installed Tool;
Step 3, configuration PostgreSQL: osm initial data is imported into PostgreSQL database;
Step 4 adds mod_tile module for Apache;
Step 5, Apache are received and front end request;
Step 6 sends request: sending the request to mod_tile module and is handled;
Step 7, tile analysis: mod_tile first checks that buffer area whether there is the tile after receiving tile request, if In the presence of the map tile is then directly returned, otherwise, request is added in render-ahead queue by mod_tile, further by mapnik Reason;
Step 8, rendering tile: Mapnik successively takes out request from render-ahead queue, analyzes requested map tile index, OSM space vector data is loaded, renders corresponding map tile according to pattern the file information;
Step 9, OSRM parse OSM data: OSM vector file are parsed using OSRM, for constructing urban road network, root According to two o'clock latitude and longitude information, the moulds such as the shortest path between two o'clock is quickly calculated, and walking can be distinguished, cycle, drive Formula, and cache analysis result;
Step 10 builds front end page: the map tile that server returns being spliced into one completely using leaflet Map builds front end displayed page.
Preferably, osm2pgsql tool is utilized in the step 3, and osm initial data is converted into PostgreSQL data It is stored in PostgreSQL database.
Beneficial effects of the present invention: 1, using the Vector spatial data of OpenStreetMap, cooperate the mod_ of apache As map server, OSRM is rendered tile module as path planning engine, and using renderd and mapnik as map Device, leaflet build a perfect Map Services as front-end map frame, in Intranet, can after disposing Intranet Map Services It to reach the similar effects of commercial Internet map in Intranet, and include the functions such as navigation and path planning, while improving use Family experience;2, it one group of Open-Source Tools of optimal screening and integrates, improves index efficiency;3, PostgreSQL database is utilized Memory space vector data considerably increases the rendering speed of mapnik.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will be described below to embodiment required Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the method flow diagram that a kind of Intranet of the present invention disposes map tile service and path planning.
Specific embodiment
In order to be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, below will In conjunction with the attached drawing in the embodiment of the present invention, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that Described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the implementation in the present invention Example, all other embodiment obtained by those of ordinary skill in the art without making creative efforts belong to The scope of protection of the invention.
The method of a kind of deployment map tile service of Intranet and path planning as shown in Figure 1 comprising following steps:
Step 1, downloading data source: downloading OpenStreetMap space vector data source, OpenStreetMap is a By the map datum service of public common creation editor, open source, it is changed using the strength and free contribution of public collective The kind relevant geodata of map, OSM is non-profit, and meeting real-time update, while can improve geodata accuracy;
Step 2, installation Open-Source Tools: Apache, mod_tile, PostgreSQL, mapnik, OSRM work are successively installed Tool;
Step 3, configuration PostgreSQL: osm initial data is imported into PostgreSQL database;
Step 4 adds mod_tile module for Apache;
Step 5, Apache are received and front end request;
Step 6 sends request: sending the request to mod_tile module and is handled;
Step 7, tile analysis: mod_tile first checks that buffer area whether there is the tile after receiving tile request, if In the presence of the map tile is then directly returned, otherwise, request is added in render-ahead queue by mod_tile, further by mapnik Reason;
Step 8, rendering tile: Mapnik successively takes out request from render-ahead queue, analyzes requested map tile index, OSM space vector data is loaded, renders corresponding map tile according to pattern the file information;
Step 9, OSRM parse OSM data: OSM vector file are parsed using OSRM, for constructing urban road network, root According to two o'clock latitude and longitude information, the moulds such as the shortest path between two o'clock is quickly calculated, and walking can be distinguished, cycle, drive Formula, and cache analysis result;
Step 10 builds front end page: the map tile that server returns being spliced into one completely using leaflet Map builds front end displayed page.
Osm2pgsql tool is utilized in the step 3, and osm initial data is converted into the deposit of PostgreSQL data PostgreSQL database greatly increases the rendering speed of mapnik.
Present invention disclosed above preferred embodiment is only intended to help to illustrate the present invention.There is no detailed for preferred embodiment All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification, It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to better explain the present invention Principle and practical application, so that skilled artisan be enable to better understand and utilize the present invention.The present invention is only It is limited by claims and its full scope and equivalent.

Claims (2)

1. a kind of method of Intranet deployment map tile service and path planning, which is characterized in that it includes the following steps:
Step 1, downloading data source: downloading OpenStreetMap space vector data source;
Step 2, installation Open-Source Tools: Apache, mod_tile, PostgreSQL, mapnik, OSRM tool are successively installed;
Step 3, configuration PostgreSQL: osm initial data is imported into PostgreSQL database;
Step 4 adds mod_tile module for Apache;
Step 5, Apache are received and front end request;
Step 6 sends request: sending the request to mod_tile module and is handled;
Step 7, tile analysis: mod_tile first checks that buffer area whether there is the tile after receiving tile request, if there is The map tile is then directly returned to, otherwise, request is added in render-ahead queue by mod_tile, is further processed by mapnik;
Step 8, rendering tile: Mapnik successively takes out request from render-ahead queue, analyzes requested map tile index, load OSM space vector data renders corresponding map tile according to pattern the file information;
Step 9, OSRM parse OSM data: OSM vector file are parsed using OSRM, for constructing urban road network, according to two Point latitude and longitude information, quickly calculates the shortest path between two o'clock, and can distinguish walking, cycle, isotype of driving, and Caching analysis result;
Step 10 builds front end page: the map tile that server returns being spliced into one completely using leaflet Figure, builds front end displayed page.
2. the method for a kind of Intranet deployment map tile service according to claim 1 and path planning, feature exists In, in the step 3 utilize osm2pgsql tool, by osm initial data be converted to PostgreSQL data deposit PostgreSQL database.
CN201811019836.0A 2018-09-03 2018-09-03 A kind of method that Intranet disposes map tile service and path planning Pending CN109388409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811019836.0A CN109388409A (en) 2018-09-03 2018-09-03 A kind of method that Intranet disposes map tile service and path planning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811019836.0A CN109388409A (en) 2018-09-03 2018-09-03 A kind of method that Intranet disposes map tile service and path planning

Publications (1)

Publication Number Publication Date
CN109388409A true CN109388409A (en) 2019-02-26

Family

ID=65417543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811019836.0A Pending CN109388409A (en) 2018-09-03 2018-09-03 A kind of method that Intranet disposes map tile service and path planning

Country Status (1)

Country Link
CN (1) CN109388409A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209756A (en) * 2019-06-17 2019-09-06 广东电网有限责任公司清远供电局 A kind of the map exchange method and system of O&M of transmitting electricity
CN111259767A (en) * 2020-01-13 2020-06-09 厦门大学 Traffic illegal behavior identification method and system based on traffic data and street view data
CN114413926A (en) * 2021-12-13 2022-04-29 武汉中海庭数据技术有限公司 Map display method based on mapbox engine osm data and high-precision data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005250658A (en) * 2004-03-02 2005-09-15 Nec Corp Method for specifying system and server monitoring system
CN104035950A (en) * 2013-03-05 2014-09-10 多费俉株式会社 User-based Map Manufacturing Apparatus
CN104539681A (en) * 2014-12-23 2015-04-22 北京超图软件股份有限公司 Distributed GIS accelerating system and GIS service processing method
CN104700646A (en) * 2015-03-31 2015-06-10 南京大学 Online GPS data based abnormal taxi track real-time detection method
CN105824899A (en) * 2016-03-15 2016-08-03 深圳市两步路信息技术有限公司 Offline map downloading method based on tile map technology
CN107590226A (en) * 2017-09-05 2018-01-16 中国电子科技集团公司第二十八研究所 A kind of map vector rendering intent based on tile

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005250658A (en) * 2004-03-02 2005-09-15 Nec Corp Method for specifying system and server monitoring system
CN104035950A (en) * 2013-03-05 2014-09-10 多费俉株式会社 User-based Map Manufacturing Apparatus
CN104539681A (en) * 2014-12-23 2015-04-22 北京超图软件股份有限公司 Distributed GIS accelerating system and GIS service processing method
CN104700646A (en) * 2015-03-31 2015-06-10 南京大学 Online GPS data based abnormal taxi track real-time detection method
CN105824899A (en) * 2016-03-15 2016-08-03 深圳市两步路信息技术有限公司 Offline map downloading method based on tile map technology
CN107590226A (en) * 2017-09-05 2018-01-16 中国电子科技集团公司第二十八研究所 A kind of map vector rendering intent based on tile

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
STEPHAN HUBER: "Calculate Travel Time and Distance with Openstreetmap Data Using the Open Source Routing Machine (OSRM)", 《HTTPS://JOURNALS.SAGEPUB.COM/DOI/10.1177/1536867X1601600209》 *
佚名: "Build Your Own OpenStreetMap Tile Server on", 《HTTPS://ITSOLUTIONDESIGN.WORDPRESS.COM/2017/07/11/BUILD-YOUR-OWN-OPENSTREETMAP-TILE-SERVER-ON-UBUNTU-16-04/》 *
李晓君: "基于OpenStreetMap移动GIS地图服务***的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209756A (en) * 2019-06-17 2019-09-06 广东电网有限责任公司清远供电局 A kind of the map exchange method and system of O&M of transmitting electricity
CN111259767A (en) * 2020-01-13 2020-06-09 厦门大学 Traffic illegal behavior identification method and system based on traffic data and street view data
CN111259767B (en) * 2020-01-13 2023-04-18 厦门大学 Traffic illegal behavior identification method and system based on traffic data and street view data
CN114413926A (en) * 2021-12-13 2022-04-29 武汉中海庭数据技术有限公司 Map display method based on mapbox engine osm data and high-precision data
CN114413926B (en) * 2021-12-13 2023-10-13 武汉中海庭数据技术有限公司 Map display method based on mapbox engine osm data and high-precision data

Similar Documents

Publication Publication Date Title
KR102056882B1 (en) Managing map elements using aggregate feature identifiers
US8725395B2 (en) System for constructing a spanning forest in a vehicular network
KR102001646B1 (en) Map tile data pre-fetching based on mobile device generated event analysis
KR101725886B1 (en) Navigation directions between automatically determined startin points and selected distinations
RU2011102554A (en) METHOD AND DEVICE OF NAVIGATION
CN109388409A (en) A kind of method that Intranet disposes map tile service and path planning
CN107464018A (en) A kind of Distribution path optimization method and device, computer equipment, storage medium
US20210325203A1 (en) High-precision map-based human-machine interaction method and apparatus
CN109934892A (en) Inertial navigation motion profile method for drafting, device and computer equipment
JP2023542576A (en) Navigation route planning method, navigation route planning device, electronic device, non-transitory computer readable storage medium and computer program
US20180216948A1 (en) Route recommendation in map service
US20230273040A1 (en) System and method of creating custom dynamic neighborhoods for individual drivers
US11181387B2 (en) Dynamic routing system
CN107609080A (en) A kind of map datum acquisition methods and system, electronic equipment and storage medium
JP2020536222A (en) Systems and methods for selecting POIs to associate with navigation maneuvers
US11928641B2 (en) Self adaptive delivery based on simulated disruption
JP6912570B2 (en) Methods, systems and programs for detecting and simulating movement events in navigation systems
CN114116946A (en) Data processing method and device, electronic equipment and storage medium
CN109631934A (en) Information processing method, device, server and the storage medium of map application
CN107195000A (en) The display methods and device of a kind of charging of calling a taxi
Herrera-Quintero et al. ITS for Smart Parking Systems, towards the creation of smart city services using IoT and cloud approaches
CN103020324A (en) Searching method, searching equipment and searching system based on application
CN113360791B (en) Interest point query method and device of electronic map, road side equipment and vehicle
US20130325659A1 (en) Systems and Methods for User Goal Oriented Mapping
CN103793497B (en) Method for searching path and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190226