import-osm | Import OpenStreetMap into PostGIS using imposm3 | Map library
kandi X-RAY | import-osm Summary
kandi X-RAY | import-osm Summary
This Docker image will import an OSM PBF file using imposm3 and a custom mapping configuration.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of import-osm
import-osm Key Features
import-osm Examples and Code Snippets
Community Discussions
Trending Discussions on import-osm
QUESTION
I'm working on a routing application using OSM data in pgrouting. I'm using overpass-api to access the data from a specific bounding box. However, after downloading the data, there seem to be tag_keys missing from the data.
When inspecting the data using postgis or QGIS, certain tag_keys are there, like "highway", "oneway" or "maxpeed". However, others seem to be missing. In particular the tag keys "bicycle" (with possible values like "yes" or "no") or "access" are not included in the data. These tag keys are available on OSM online, however.
The following code is used to retrieve the data from OSM through Overpass-API and put it into PGrouting
...ANSWER
Answered 2019-Jun-11 at 08:20I'm not familiar with osm2pgrouting. However it looks like mapconfig.xml doesn't include "bicycle" and "access" tags. You either need to add them or create your own config file. If you want osm2pgrouting to consider these tags during routing this might not be enough, though.
QUESTION
I am wanting to show admin_level 6 boundaries at lower zoom levels (8, 7, 6), currently they start showing at zoom level 9.
I realize that I need to modify the import script so that this data is saved into the .mbtiles file. I have edited the boundary.sql file to change WHERE admin_level <= 4
to WHERE admin_level <= 6
for boundary_z6
, boundary_z7
and boundary_z8
.
I see the .sh file at /var/lib/docker/overlay/d9c758ee5fef79d79f0412880332a2efe66fd5c3d9614d6a710211c87e7bc04c/root/usr/src/app/import_osmborder_lines.sh
, however I don't know if that will be overwritten at some point?
However, after a new import boundaries are still not shown at levels 8, 7, 6.
Looking deeper, it appears that I need to also modify the import_osmborder_lines.sh script so those lines get imported, but that is in its own docker file that I don't know how to edit so the quickstart.sh
will use it.
How can I edit the import-osmborder
docker file and have my quickstart.sh
script use this for import? Or, am I going about this completely wrong?
ANSWER
Answered 2018-Oct-04 at 23:18I ended up editing the import_osmborder_lines.sh
that is in the /var/lib/docker/
directory. This worked, but I still am not sure this is the ideal method.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install import-osm
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page