Skip to content

Instantly share code, notes, and snippets.

@andrewharvey
Last active February 9, 2020 13:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save andrewharvey/7cf29f20159aecbe076ededc0ff7be0e to your computer and use it in GitHub Desktop.
Airborne Research Australia Bushfire 2020 Imagery processing for OpenStreetMap

Airborne Research Australia Bushfire 2020 Imagery

https://www.airborneresearch.org.au/fires-2020

unzip

for f in *.zip; do
  unzip -j "$f"
done

fix projections for gdal

for f in *.jpg; do
    srs="EPSG:28354"
    b=`basename $f .jpg`
    case $b in
    WRa*)
        srs="EPSG:28353"
        ;;
    CygnetPark*)
        srs="EPSG:28353"
        ;;
    esac

    gdal_translate -of 'VRT' -a_srs "$srs" $f $f.vrt
done

footprints

gdaltindex -f GeoJSON -t_srs 'EPSG:4326' index.geojson *.vrt

mosaic

gdalwarp -t_srs 'EPSG:3857' -multi -wo NUM_THREADS=ALL_CPUS -co TILED=YES -co BLOCKXSIZE=256 -co BLOCKYSIZE=256 -co COMPRESS=JPEG -co BIGTIFF=YES *.vrt ARA.tiff

COG GeoTIFF

gdalwarp -of COG -t_srs 'EPSG:3857' -multi -wo NUM_THREADS=ALL_CPUS -co TILING_SCHEME=GoogleMapsCompatible -co COMPRESS=JPEG -co BIGTIFF=YES *.vrt ARA-COG.tiff
@andrewharvey
Copy link
Author

This has been folded into https://gitlab.com/andrewharvey/ara-cogeo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment