kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
2e6cf4fa03
For some reason, Venezuela's osm_id in import-external/countries.json was quoted. As a result, ogr2ogr could choose "character varying" type for osm_id instead of bigint. (This happened for me because I probably use different version of gdal-bin package). Quotes is now removed, potential problem is gone. |
||
---|---|---|
.. | ||
Dockerfile | ||
README.md | ||
clean-natural-earth.sh | ||
countries.geojson | ||
import-external-detail-flow-diagram.png | ||
import-external-flow-diagram.png | ||
import-labels.sh | ||
import-natural-earth.sh | ||
import-water.sh | ||
import.sh | ||
seas.geojson | ||
sql.sh | ||
states.geojson |
README.md
import-external
The import-external component is responsible for importing all data that is not mapped directly from OSM into the PostGIS database.
Usage
Docker
To use import-external you only need the osm2vectortiles/import-external Docker image, all the data sources are baked into the Docker container already.
You need to run import-external before you import OSM data with import-osm and you only need to run the import once!
docker-compose run import-external
Flow Diagram
import-external takes data from three data sources and imports them into PostGIS.
Details
Sources
Seas
The seas.geojson file is derived from OpenStreetMap data and licensed under the ODbL. The file was created by taking place=ocean
and place=sea
nodes and drawing lines by hand to replace some of the points.