Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 1.72 KB

README.md

File metadata and controls

46 lines (25 loc) · 1.72 KB

dg-tile-explorer

Get a geoTif from digital Globe, convert it to tiles and upload it.

Requirements

  • Python version: > 2.4
  • GDAL
  • s4cmd (or s3cmd)

SETUP (Mac OS X)

Python (Mac OS X)

Install Python for Mac OS X. Follow the instructions here.

GDAL (Mac OS X)

Install GDAL for Mac OS X. Follow the instructions here.

s4cmd

Install s4cmd: pip install s4cmd - Follow the instructions here.

Do not forget to set the S3_ACCESS_KEY and S3_SECRET_KEY environment variables to contain your S3 credentials.

Process

Get a geoTif from digital Globe

Download Images from digitalglobe or Get the bbox and select a featureid from the WFS service as an identifier https://services.digitalglobe.com/catalogservice/wfsaccess?SERVICE=WFS&REQUEST=GetFeature&maxFeatures=1&typeName=DigitalGlobe:FinishedFeature&VERSION=1.1.1&CONNECTID=<CONNECTID>&BBOX=<Your coordinates>&width=3000&height=3000

Next you will put the identifier for getCovertures from the WCS service. https://services.digitalglobe.com/deliveryservice/wcsaccess?service=WCS&request=GetCoverage&connectid=<CONNECTID>&identifier=<IDENTIFIER>&version=1.1.1&boundingBox=<BBOX>&Output:format=image/geotiff

Convert images to tiles

  gdal2tiles.py -z 1-18 image_file_name.tif [target folder]

Upload tiles to Amazon s3

  s4cmd.py sync /path_to/dirA s3://bucket/path_to/dirB/