[gdal-dev] Fwd: arcsde ogr driver and GDAL 2+

Even Rouault even.rouault at spatialys.com
Thu Nov 3 07:23:44 PDT 2016


Le jeudi 03 novembre 2016 15:08:29, Johan Van de Wauw a écrit :
> Hi all,
> 
> I wonder if anyone has used the arcsde driver with GDAL 2+

Nobody has maintained it in years. Never compiled it myself.

> 
> I immediately bumped on two issues:
> the first is a compilation error, see patch:
> https://github.com/johanvdw/gdal/commit/b83ef2eaf1c2bcca8b012d4fb39ee058930
> 2fe93

Applied in trunk and 2.1 branch per https://trac.osgeo.org/gdal/ticket/6714

> 
> The second is an error because there are both an OGR and a raster driver:
> johan at wp1270-debian:~/test# ogrinfo arcsde.vrt sde_layer
> Error opening file for reading: No such file or directory
> ERROR 1: A non OGR driver is registered with the same name: SDE
> FAILURE:
> Unable to open datasource `arcsde.vrt' with the following drivers.
> 
> I could fix this error by renaming the ogr driver:
> https://github.com/johanvdw/gdal/commit/dc3c5f50af10372995a1cff23bd87469430
> 9231a Not sure though if that is the best possible fix.

I've applied a variation and used "OGR_SDE" instead (similarly to the OGR_VRT 
vs VRT drivers). So that the logic in  OGRSFDriverRegistrar::GetDriverByName() 
can select the right driver when used the old OGR driver API with the SDE 
name.

Even

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


More information about the gdal-dev mailing list