[gdal-dev] Call for discussion on RFC76 OGR Python drivers

Even Rouault even.rouault at spatialys.com
Mon Nov 11 06:21:40 PST 2019


On mercredi 6 novembre 2019 00:02:52 CET Mateusz Loskot wrote:
> On Tue, 5 Nov 2019 at 12:06, Even Rouault <even.rouault at spatialys.com> wrote:
> > This is a topic we already discussed a couple years ago. Please find a RFC
> > about it in:
> > 
> > https://github.com/OSGeo/gdal/pull/1984/files
> 
> I dropped some comments there, not a review though.

I've updated both the RFC and the implementation (number of changes since the
preliminary one) to what I believe should be close to their final states.

In addition to the rather dummy example of a Python driver that is in the RFC,
there are 2 more interesting examples:

* a PASSTHROUGH driver that forwards calls to the GDAL SWIG Python API:
  https://github.com/rouault/gdal/blob/pythondrivers/gdal/examples/pydrivers/ogr_PASSTHROUGH.py

* a driver implemented a simple parsing of CityJSON (https://www.cityjson.org/)
  https://github.com/rouault/gdal/blob/pythondrivers/gdal/examples/pydrivers/ogr_CityJSON.py

The tutorialshould also help:
https://github.com/rouault/gdal/blob/pythondrivers/gdal/doc/source/tutorials/vector_python_driver.rst

I'll submit the RFC to vote soon if there are no other remarks.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list