Skip to content

OpenDataLand/gdaltippe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

gdal-tippecanoe

This Docker package combines the ogr2ogr tools from GDAL with the Felt version of Tippecanoe and the go-pmtiles tool for geospatial ETLing.

Use this package to extract/convert your geospatial files with ogr2ogr and create an MBTiles file in a single Docker command.

Example

  1. Edit the example environment file (postgis.env) with your own values:
PGHOST=postgres
PGUSER=postgres
PGPASSWORD=postgres
PGDATABASE=postgres
  1. Edit the example Bash file (download_table.sh) with your table information:
ogr2ogr \
  -f FlatGeoBuf example.fgb \
  PG:"" -sql "SELECT name, the_geom FROM test_table" && \
tippecanoe \
  -zg \
  -o test_table.mbtiles \
  --drop-densest-as-needed \
  example.fgb && \
rm ./example.fgb

echo "Done!"
  1. Run ogr2ogr and tippecanoe in Docker:
docker run \
  -v `pwd`:`pwd` \
  -w `pwd` -i -t \
  jimmyrocks/gdaltippe:latest \
  --env-file ./postgis.env \
  bash ./download_table.sh
  1. You should now have a file named test_table.mbtiles in your present working directory.

About

Combines the ogr2ogr tools with Tippecanoe all in one Docker package, for great Geospatial ETLing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors