Skip to content

Instantly share code, notes, and snippets.

@andrewharvey

andrewharvey/README.md

Last active Feb 9, 2020
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@andrewharvey andrewharvey commented Feb 9, 2020

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
You can’t perform that action at this time.