Last active
September 26, 2018 09:08
-
-
Save andrewharvey/44911914a7602aa13d26240f9195c142 to your computer and use it in GitHub Desktop.
Melbourne May 2018 Imagery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://s3-ap-southeast-2.amazonaws.com/opendata-aerial-imagery/mga55_gda94_10cm_2018_CoM_true_ortho.zip | |
unzip mga55_gda94_10cm_2018_CoM_true_ortho.zip | |
rm mga55_gda94_10cm_2018_CoM_true_ortho.zip | |
gdalwarp -multi -wo NUM_THREADS=ALL_CPUS -r lanczos -t_srs 'EPSG:3857' -co COMPRESS=JPEG -co TILED=YES mga55_gda94_10cm_2018_CoM_true_ortho/mga55_gda94_10cm_2018_CoM_true_ortho.jp2 CoM_10cm_May_2018_EPSG3857.tiff | |
# the alpha band is being misunderstood by most software, creating a transpaent image, so we can just ignore the alpha band | |
gdal_translate -co COMPRESS=JPEG -b 1 -b 2 -b 3 CoM_10cm_May_2018_EPSG3857.tiff CoM_10cm_May_2018_EPSG3857_RGB.tiff | |
# You may find it easier to run this on the Docker image at https://hub.docker.com/r/klokantech/gdal/ which has various JP2 drivers installed | |
# docker run -ti --rm -v $(pwd):/data klokantech/gdal gdalwarp ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment