#36196: django.contrib.gis.GDALRaster support for driver configuration options
--------------------------------+---------------------------------------
Reporter: Jordi Castells | Type: New feature
Status: new | Component: GIS
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+---------------------------------------
Some raster files will refuse to open when using newer versions of GDAL
(for example 3.8).
GDAL behaves as expected, although it is not always as desired. It brought
to my attention that there is no support for driver specific open options
when calling `contrib.gis.GDALRaster`
There is driver option support via `papsz_options` when creating
GDALRaster from scratch
(https://docs.djangoproject.com/en/5.1/ref/contrib/gis/gdal/#creating-
rasters-from-data) but not when opening an existing raster file
(https://docs.djangoproject.com/en/5.1/ref/contrib/gis/gdal/#gdalraster).
The example that I can come up now is opening a `COG` directly with
`contrib.gis.GDALRaster` and requiring the option
`IGNORE_COG_LAYOUT_BREAK`, but I imagine that other drivers would benefit
from this capability.
--
Ticket URL: <https://code.djangoproject.com/ticket/36196>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701951332cd5b-7fa3f180-9f09-4b3b-a54a-2a84031971e9-000000%40eu-central-1.amazonses.com.