Sign inSign up

openmaptiles/import-natural-earth

By openmaptiles

•Updated over 6 years ago

Docker image to import NaturalEarth data into PostGIS using ogr2ogr.

Image
2

100K+

openmaptiles/import-natural-earth repository overview

⁠Import Natural Earth into PostGIS

Docker Automated build

This is a Docker image to import a subset of NaturalEarth⁠ using ogr2ogr into a PostGIS database. The SQLite database containing the tables for the import is already baked into the container to make distribution and execution easier.

⁠Usage

Provide the database credentials and run import-natural-earth.

docker run --rm -it --net=host \
    -e PGHOST="127.0.0.1" \
    -e PGDATABASE="openmaptiles" \
    -e PGUSER="openmaptiles" \
    -e PGPASSWORD="openmaptiles" \
    openmaptiles/import-natural-earth

Optional environment variables:

  • PGPORT (defaults to 5432)
  • PGCONN - Postgres connection string to override all previous env vars

Legacy env variables are still supported, but they are not recommended: POSTGRES_HOST,POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_PORT

⁠Natural Earth

Using version 4.1⁠.

Tag summary

Content type

Image

Digest

Size

175.3 MB

Last updated

over 6 years ago

docker pull openmaptiles/import-natural-earth