[Django] #34411: Update obsolete GDAL API for DataSource handling

22 views
Skip to first unread message

Django

unread,
Mar 13, 2023, 1:44:52 PM3/13/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
------------------------------------------------+------------------------
Reporter: Claude Paroz | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 1 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
Some part of the GDAL API is deprecated and we should sooner or later move
to the new API (available since GDAL 2.0).

I have a WIP patch, but was unable to make the OGROpen -> GDALOpenEx
switch, as the API is different. I need someone more familiar with C
interfaces to come and help finish the patch.

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

Django

unread,
Mar 13, 2023, 1:45:31 PM3/13/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
-------------------------------------+-------------------------------------

Reporter: Claude Paroz | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: GIS | Version: dev
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz):

[https://github.com/django/django/pull/16650 WIP PR]

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

Django

unread,
Mar 13, 2023, 2:37:58 PM3/13/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
--------------------------------------+------------------------------------

Reporter: Claude Paroz | Owner: nobody
Type: Cleanup/optimization | Status: new

Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

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

* stage: Unreviewed => Accepted


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

Django

unread,
Mar 25, 2023, 1:45:04 AM3/25/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
--------------------------------------+------------------------------------
Reporter: Claude Paroz | Owner: stimver
Type: Cleanup/optimization | Status: assigned

Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by stimver):

* owner: nobody => stimver
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:3>

Django

unread,
Mar 25, 2023, 1:46:08 AM3/25/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
--------------------------------------+------------------------------------
Reporter: Claude Paroz | Owner: (none)
Type: Cleanup/optimization | Status: new

Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by stimver):

* owner: stimver => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:4>

Django

unread,
Mar 25, 2023, 1:54:46 AM3/25/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
--------------------------------------+------------------------------------
Reporter: Claude Paroz | Owner: stimver
Type: Cleanup/optimization | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by stimver):

* owner: (none) => stimver


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:5>

Django

unread,
Mar 25, 2023, 1:55:19 AM3/25/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
--------------------------------------+------------------------------------
Reporter: Claude Paroz | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by stimver):

* owner: stimver => (none)


* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:6>

Django

unread,
Apr 1, 2023, 12:33:23 PM4/1/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
--------------------------------------+------------------------------------
Reporter: Claude Paroz | Owner: (none)
Type: Cleanup/optimization | Status: assigned

Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Claude Paroz):

For anyone passing by, the C signature of GDALOpenEx is:
`GDALDatasetH GDALOpenEx(const char *pszFilename, unsigned int nOpenFlags,
const char *const *papszAllowedDrivers, const char *const
*papszOpenOptions, const char *const *papszSiblingFiles)`

The trick is to find the [https://docs.python.org/3/library/ctypes.html
ctypes] equivalent signature.

--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:4>

Django

unread,
Dec 17, 2023, 1:51:58 PM12/17/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
--------------------------------------+------------------------------------
Reporter: Claude Paroz | Owner: (none)
Type: Cleanup/optimization | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Claude Paroz):

* needs_better_patch: 1 => 0


Comment:

Patch should be reviewable now, thanks to David Smith!

--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:5>

Django

unread,
Dec 18, 2023, 3:43:07 AM12/18/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
-------------------------------------+-------------------------------------
Reporter: Claude Paroz | Owner: Claude
Type: | Paroz

Cleanup/optimization | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

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

* owner: (none) => Claude Paroz
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:6>

Django

unread,
Dec 18, 2023, 4:20:44 AM12/18/23
to django-...@googlegroups.com
#34411: Update obsolete GDAL API for DataSource handling
-------------------------------------+-------------------------------------
Reporter: Claude Paroz | Owner: Claude
Type: | Paroz
Cleanup/optimization | Status: closed
Component: GIS | Version: dev
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"08306bad57761b5eb176894649ac7d4e735c52dd" 08306bad]:
{{{
#!CommitTicketReference repository=""
revision="08306bad57761b5eb176894649ac7d4e735c52dd"
Fixed #34411 -- Updated GDAL API to handle vector DataSource's.

Co-authored-by: David Smith <smi...@gmail.com>
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:7>

Reply all
Reply to author
Forward
0 new messages