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

Johan Van de Wauw johan.vandewauw at gmail.com
Thu Nov 3 07:08:29 PDT 2016

Hi all,

I wonder if anyone has used the arcsde driver with GDAL 2+

I immediately bumped on two issues:
the first is a compilation error, see patch:

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
Unable to open datasource `arcsde.vrt' with the following drivers.

I could fix this error by renaming the ogr driver:
Not sure though if that is the best possible fix.

After that fix there was still an error which I'm still investigating,
but I'd like to know if this is a good way to fix that error or if I
should do sth else.

I got the driver working before on 1.9 -> 1.11.5, but this also
required some plumbing (linking gdal to pthread_atfork.o, which can be
extracted on debian as:
ar -xv /usr/lib/x86_64-linux-gnu/libpthread.a pthread_atfork.o
). See the problems reported here: [1]

Kind Regards,
[1] https://lists.osgeo.org/pipermail/gdal-dev/2011-September/030195.html

More information about the gdal-dev mailing list