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.
Comment (by Claude Paroz):
[https://github.com/django/django/pull/16650 WIP PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:2>
* owner: nobody => stimver
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:3>
* owner: stimver => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:4>
* owner: (none) => stimver
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:5>
* owner: stimver => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:6>
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>
* 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>
* owner: (none) => Claude Paroz
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34411#comment:6>
* 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>