[Django] #30519: Add sanity checks to Django RasterField deserialization for rasters that are not fully managed through Django.

5 views
Skip to first unread message

Django

unread,
May 28, 2019, 5:47:23 AM5/28/19
to django-...@googlegroups.com
#30519: Add sanity checks to Django RasterField deserialization for rasters that
are not fully managed through Django.
------------------------------------------------+------------------------
Reporter: Daniel Wiesmann | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: master
Severity: Normal | Keywords: raster
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
When using the RasterField for raster columns in PostGIS that are not
fully managed by Django, the raster table could be of a type that is not
supported by the GDALRaster. Examples are out-of-db rasters, or rasters
that have an unsupported pixeltype (single bit rasters, 2 or 4 bit
rasters).

A paragraph about this could be added to the documentation, and some
sanity checks could be added to the raster deserialization here:

https://github.com/django/django/blob/master/django/contrib/gis/db/backends/postgis/pgraster.py

This ticket is related to https://code.djangoproject.com/ticket/30489 and
https://github.com/django/django/pull/11381

--
Ticket URL: <https://code.djangoproject.com/ticket/30519>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 28, 2019, 6:03:35 AM5/28/19
to django-...@googlegroups.com
#30519: Add sanity checks to Django RasterField deserialization for rasters that
are not fully managed through Django.
--------------------------------------+------------------------------------

Reporter: Daniel Wiesmann | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: raster | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Claude Paroz):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/30519#comment:1>

Django

unread,
Jul 9, 2020, 12:50:11 PM7/9/20
to django-...@googlegroups.com
#30519: Add sanity checks to Django RasterField deserialization for rasters that
are not fully managed through Django.
-------------------------------------+-------------------------------------
Reporter: Daniel Wiesmann | Owner: Srinivas
Type: | Reddy Thatiparthy
Cleanup/optimization | Status: assigned
Component: GIS | Version: master

Severity: Normal | Resolution:
Keywords: raster | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Srinivas Reddy Thatiparthy):

* owner: nobody => Srinivas Reddy Thatiparthy
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/30519#comment:2>

Reply all
Reply to author
Forward
0 new messages