GDAL driver in ArcMap 10.4

4297
4
05-27-2016 07:37 AM
MarkRubelmann
New Contributor III

I'm having trouble getting our custom GDAL driver to work in ArcMap 10.4.  It works fine in 10.3 and below.  In 10.4, ArcMap is calling the dll's entry point when it starts up.  Our code is then calling GDALDriverManager’s RegisterDriver function for several file types.  That's returning a valid index each time, and calling GDALGetDriverByName seems to work as well.  Everything appears to be okay, but then ArcMap never calls the drivers we've registered when the time comes to actually use it.

Pretty weird, right?  Well here's another weird thing - the gdal_i.lib files from both of these links are identical.

10.3: http://www.arcgis.com/home/item.html?id=44e9c39d342d4b5c8225e3c535a7eec1

10.4: http://www.arcgis.com/home/item.html?id=9a1de2cfeced4f21956342ae91ef89e3

The page for the 10.4 sample makes it sound like despite the version number still being 1.8, the libraries are actually different.  Given that, I'd expect the two versions of gdal_i.lib to be different.  Am I missing something?  Has anyone made their own GDAL driver for ArcMap 10.4?

4 Replies
DanPatterson_Retired
MVP Emeritus

Here is the gdal info from the 10.4 install, how does it compare to the 10.3 version

gdal.png

0 Kudos
MarkRubelmann
New Contributor III

Thanks Dan!  The one from 10.3 is 7.83 megs.  Different indeed!  I think Esri packaged up the wrong .lib in the sample.  Do you know if there's anywhere else to download the driver?

0 Kudos
DanPatterson_Retired
MVP Emeritus

there is a repository on github

GitHub - OSGeo/gdal: GDAL is an open source X/MIT licensed translator library for raster and vector ...

and on gdal's main site

GDAL: GDAL - Geospatial Data Abstraction Library

you will have to troll around, but perhaps esri 'did' something and created their own repo

0 Kudos
MattWilkie3
Occasional Contributor II
0 Kudos