[gdal-dev] RFC 46 GDAL/OGR unification adopted and commited

Etienne Tourigny etourigny.dev at gmail.com
Sat May 24 12:28:39 PDT 2014


Hi Even, great work!

Quick testing was fine and revealed no errors.

I was able to compile it in QGIS master very easily. The only "issue" I
encountered was related to GDALRegisterAll() and OGRAllRegister()
registering all drivers (raster and vector), requiring to ignore the
vector-only drivers in the raster-only related code in QGIS.

May I suggest a change that would improve backwards-compatibility and avoid
unwanted issues? Perhaps these 2 functions should only register raster or
vector drivers (as in GDAL 1.x), instead of all drivers, and a new function
would register both raster and vector drivers. This would ensure old code
behaves as previously, and ensure that no extra drivers are loaded and
probed when only raster/vector drivers are needed.

Just to be clearer here is how I would see it:
GDALRegisterAll() -> registers raster drivers (those with
GDAL_DCAP_RASTER="YES")
OGRAllRegister() -> registers vector drivers (those with
GDAL_DCAP_VECTOR="YES")
GDALRegisterDrivers() -> registers all drivers

On the other habd, I imagine this may not be easy to implement and could
cause some confusion in the future. Also, probing optimization can instead
be achieved using GDALOpenEx() specifying raster vs.vector drivers.

cheers,
Etienne




On Sat, May 24, 2014 at 11:35 AM, Even Rouault <even.rouault at mines-paris.org
> wrote:

> > Motion : I move to adopt RFC 46: GDAL/OGR unification
> >
> >     http://trac.osgeo.org/gdal/wiki/rfc46_gdal_ogr_unification
> >
>
> Hi,
>
> The motion has been adopted with support from PSC members JukkaR, FrankW,
> DanielM, TamasS and myself.
>
> The code has also been merged in trunk now. Version number upgraded to
> 2.0dev.
> Full rebuild needed ! Let me know if issues arise.
>
> I've also done some unification of the online documentation on gdal.orgtoo, by
> merging the previous gdal.org/ogr/index.html into the main
> gdal.org/index.html. Basically the "make docs" target in GDAL root
> directory
> generate the whole doc. Those changes will be reflected on the server in a
> few
> hours. Still work to do to update the tutorials.
> I've installed in http://gdal.org/1.11/ the snapshot of the 1.11
> documentation, that will be mentionned in gdal.org main page, so that the
> trunk documentation can evolve more easily.
>
> Question : I see that in http://gdal.org/credits.html we still have
> mentions
> to past sponsors, but the sponsorship program is more or less abandonned,
> so I
> think we could remove the Sponsorship section, and make sure that those
> past
> sponsors are just mentionned in the "Corporate" section.
>
> Best regards,
>
> Even
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140524/8700d2dc/attachment.html>


More information about the gdal-dev mailing list