[gdal-dev] Best vector driver?

Even Rouault even.rouault at spatialys.com
Wed Feb 15 07:37:52 PST 2017


On mercredi 15 février 2017 07:19:43 CET Kurt Schwehr wrote:
> Hey all,
> 
> What are the top couple vector drivers in terms of being up-to-date w.r.t.
> API changes?  I'm finally trying to start into adding code and I've got a
> couple vector drivers I'd like to write.  I've started reading RFC 46
> (GDAL/OGR unification), but I'm trying to figure out the cleanest setup of
> the driver, data source and layers classes.  I've spent tons of time with
> line by line issues, but that gives me very little sense of where we want
> GDAL vector drivers to converge to.
> 
> Thoughts on what are the best couple drivers to pattern after?

Kurt,

There's no such thing as the best driver. It depends pretty much on the capabilities of the 
format you want to write a driver for. The most feature full drivers (SQLite, GeoPackage, 
PostGIS, ...) tend to be the ones the most difficult to understand. And for other drivers, you 
will get lost in the code that deals with the format itself rather than the driver structure.

Basically start writing GetNextFeature() and implement other methods if they make sense 
for the format. Skimming quickly through http://gdal.org/ogr_drivertut.html, it seems to be a 
good starting point (as you make progress in your journey, updating it might be a good idea)
For real world examples, I think the SUA or BNA drivers must be among the most simple 
ones.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170215/9c5f37c3/attachment-0001.html>


More information about the gdal-dev mailing list