Giter Club home page Giter Club logo

Comments (6)

rouault avatar rouault commented on June 26, 2024 2

yes, you can call GDALGetMetadataItem(GDALGetDriverByName("GTiff"), GDAL_DMD_CREATIONOPTIONLIST, NULL).
This will return the XML snippet that you can see with "gdalinfo --format GTiff". If you know which formats to look for, you can just find for the string, or parse the XML if you want to get the list

from rasterio-wheels.

sgillies avatar sgillies commented on June 26, 2024 2

My preference would be to not add any round-tripping tests with actual data to rasterio-wheels, but to extend rio-env with an option (--format-details maybe?) that would produce structured information comparable to gdalinfo --format. Confirming that, e.g., GTiff/LERC is available would be a big improvement.

from rasterio-wheels.

rbuffat avatar rbuffat commented on June 26, 2024 1

Fiona has some limited capabilities to access driver options (using GDALGetMetadataItem): https://github.com/Toblerity/Fiona/blob/master/fiona/meta.py#L135-L171
https://github.com/Toblerity/Fiona/blob/master/fiona/ogrext.pyx#L2143-L2179

Not sure if it is still the case, but if I remember correctly the Metadata was defined by the drivers manually, thus it depends on the driver how accurate the information is.

Fiona has also some round-trip tests, that test if data can be written using a driver and then read back again. But due to the slight difference between Fionas data model and GDALs data model these tests are quite messy.

from rasterio-wheels.

AndrewAnnex avatar AndrewAnnex commented on June 26, 2024

one potential idea would be to just convert things on-the-fly within the github action using rasterio methods

from rasterio-wheels.

sgillies avatar sgillies commented on June 26, 2024

@AndrewAnnex yeah, that's the difficult issue at the heart of this, isn't it? Listing available formats doesn't say whether optional variants of those formats (LERC, JXL, etc) have been built. I wonder if GDAL driver metadata does or could could help us? @rouault can the GTiff driver tell us what its compression options are?

from rasterio-wheels.

AndrewAnnex avatar AndrewAnnex commented on June 26, 2024

would be neat to make a new dict expanding on rasterio.drivers.raster_driver_extensions to include the results from that metadata call

from rasterio-wheels.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.