Skip to content

Instantly share code, notes, and snippets.

View Kirill888's full-sized avatar

Kirill Kouzoubov Kirill888

  • Canberra Australia
View GitHub Profile
@perrygeo
perrygeo / .geotiff_headers.md
Last active June 2, 2020 16:21
Parsing geotiff headers

Optimized determination of Geotiff bounds

This is functional but is merely a workaround until we get vsis3 - you can try out preliminary vsis3 support with GDAL 2.1 and rasterio 0.32a1

Goal: Based on the GeoTiff and TIFF specs, manually parse out tags to allow for the most IO-efficient reading of georeferencing information.

It works almost the same as rio info --bounds but gives a json array, and it's fast

$ time rio info --bounds R4C1.tif

153.984375 24.2578125 154.072265625 24.345703125

@omad
omad / delete_odc_product.sql
Last active March 17, 2021 17:22
Delete an Open Data Cube Product using RAW SQL
--------------------------------------
-- SQL to Delete a Data Cube Product
--------------------------------------
--
-- Use with psql from the command line:
--
-- psql -v product_name=<product-to-delete> -f delete_odc_product.sql -h <database-hostname> <dbname>
--
--