#36196: django.contrib.gis.GDALRaster support for driver configuration options
--------------------------------+--------------------------------------
Reporter: Jordi Castells | Owner: (none)
Type: New feature | Status: new
Component: GIS | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Description changed by Jordi Castells:
Old description:
> 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.
New description:
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.
.. note: I can prepare this patch myself but first I would like opinion
from the maintainers :-)
--
--
Ticket URL: <https://code.djangoproject.com/ticket/36196#comment:1>
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/0107019513f6ab96-83e2d46b-2fce-4235-9e09-956f6d8ca5c9-000000%40eu-central-1.amazonses.com.