geotiff icon indicating copy to clipboard operation
geotiff copied to clipboard

Images for testing purposes

Open gschulze opened this issue 1 year ago • 5 comments

I'm looking for GeoTIFFs for testing purposes. In particular, I want something like https://download.osgeo.org/geotiff/samples/GeogToWGS84GeoKey/GeogToWGS84GeoKey5.tif for testing various coordinate transformation methods, with easily identifiable control points:

  1. One image using the ModelTiePoint and PixelScale tags
  2. One image using the ModelTransformation tag
  3. One image using multiple ModelTiePoints (or ground control points)

I'm currently trying to prepare such images, but maybe I can save some work by using existing images. Do you have an idea where to look, @weiji14, @dominikbucher, or @kylebarron?

gschulze avatar Sep 24 '24 08:09 gschulze

I don't know but @geospatial-jeff and @vincentsarago might

kylebarron avatar Sep 24 '24 14:09 kylebarron

Check out https://github.com/OSGeo/gdal/tree/master/autotest/gcore/data

kylebarron avatar Sep 24 '24 14:09 kylebarron

Yeah, I wish there was a standard set of GeoTIFF files for testing somewhere. Generally I try and find them in the test/ folder of repos, e.g.:

  • https://github.com/rasterio/rasterio/tree/1.3.11/tests/data
  • https://github.com/cogeotiff/rio-tiler/tree/6.7.0/tests/fixtures
  • https://github.com/locationtech/geotrellis/tree/v3.7.1/raster/data
  1. One image using multiple ModelTiePoints (or ground control points)

Only dataset with GCPs I'm aware of are Sentinel-1 GRD files but they're quite big... Maybe see this comment for ideas - https://github.com/gjoseph92/stackstac/pull/182#issuecomment-1256574850, specifically the pointer to how rioxarray generates a synthetic GeoTIFF with GCPs.

Oh, and we might want to be careful with having too many GeoTIFF files commited to git history. If it's possible to generate synthetic images on-the-fly and test roundtrip write/read operations, that would be best. But I understand that we might still want a few test fixture files to test only the read-part.

weiji14 avatar Sep 24 '24 23:09 weiji14

  1. One image using multiple ModelTiePoints (or ground control points)

You can find a small one in rio-tiler fixture: https://github.com/cogeotiff/rio-tiler/blob/main/tests/fixtures/cog_gcps.tif

If it's possible to generate synthetic images on-the-fly and test roundtrip write/read operations, that would be best. But I understand that we might still want a few test fixture files to test only the read-part.

@geospatial-jeff started to work on https://github.com/cogeotiff/cog-fixtures/tree/master

in rio-tiler I've also a dataset fixture https://github.com/cogeotiff/rio-tiler/blob/main/tests/conftest.py#L23-L94

vincentsarago avatar Sep 25 '24 07:09 vincentsarago

@kylebarron, @weiji14, @vincentsarago thank you all for your suggestions. I have to see whether there's something usable for that purpose; otherwise, I'll probably create a test image myself.

gschulze avatar Sep 27 '24 17:09 gschulze