Comments (6)
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.
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.
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.
one potential idea would be to just convert things on-the-fly within the github action using rasterio methods
from rasterio-wheels.
@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.
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)
- rasterio-1.3.5 macosx_10_15_x86_64 wheels failing on import. HOT 2
- Patch GDAL 3.5.3 to fix OSR bug HOT 1
- New wheels of rasterio no longer read AIG grids HOT 2
- 1.3.6 binary wheels doesnt support GPKG, but 1.3.5 supports it HOT 3
- Build GDAL binaries against libcrypto for MacOS HOT 12
- Upgrade curl to 7.80.0
- GitHub Actions for some wheel builds HOT 9
- HDF5 cross-compilation issues block macosx arm64 wheels HOT 7
- Update GDAL to latest 3.4.x HOT 1
- cibuildwheel HOT 1
- WebP-in-TIFF support
- Update HDF version
- Vulnerable shared libraries might make rasterio vulnerable. Can you help upgrade to patch versions? HOT 2
- Delocate error HOT 3
- 1.3.0.post1 to restore ZSTD in GeoTIFF HOT 1
- Get GDALFillNodata patch for rasterio 1.3.1 wheels
- Cannot read ZSTD compressed rasters with latest release on Windows HOT 5
- LERC unsupported with 1.3.0 HOT 5
- Upload wheels directly to pypi on release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rasterio-wheels.