Select to view content in your preferred language

Custom GDAL raster-filter not working in 9.4

1046
8
12-18-2009 01:55 AM
MarcN
by
Deactivated User
We have developed a custom raster data-filter using GDAL. We have used it successfully in ArcGIS Desktop and ArcGIS Server 9.3.
With 9.4 beta1 it is no longer working as expected in ArcGIS Desktop. We did not test ArcGIS Server 9.4 so far.

We are following the guide from the ESRI documentation:
http://help.esri.com/en/arcgisdesktop/9.4/help/index.htm#/Rasters-and-images/0091000006TQ000000/
The first thing to note is that this page links to documentation from ArcGIS 9.3.

We perform the following steps to register our custom GDAL based DLL in ArcGIS Desktop:

  • Copy our DLL to ..\ArcGIS\Desktop9.4\bin\gdalplugins

  • Add the required entries to the RasterFormats.dat file

If we do this we can see the raster files with our file extension in the ArcCatalog window. But if I try to add one of the raster files to ArcMap I get the following error messages:

  1. "Raster data objects error": "Invalid raster dataset. Failed to create raster layer"

  2. "Warning": Could not add the specified data object to the map. Failed to open raster dataset.

Once the ArcGIS even crashed when I  tried to open the raster file.

I know that ESRI is not using the original GDAL library. We use the modified ESRI-GDAL library from http://edn.esri.com/index.cfm?fa=downloads.detail&downloadid=204 as specified in the ESRI documentation. Is it possible that a custom GDAL DLL needs to use a new Version of the ESRI-GDAL library for 9.4?
ArcGIS 9.3 contains a gdal14.dll version 9.3.1.1850.
ArcGIS 9.4 contains a gdal16.dll version 9.4.0.2198
0 Kudos
8 Replies
JoeRoubal
New Contributor
As you note, ArcGIS 9.4 uses GDAL 1.6.  Consequently, to make your GDAL driver work in 9.4, you will have to recompile your source code with the GDAL 1.6 include files and stub library.  A new GDAL driver sample for 9.4 includes the files for GDAL 1.6, and will be posted to the code gallery soon.  It also discusses some new ways to support custom geotransforms in ArcGIS 9.4.

We are in the process of posting these files, but I don't know exactly when they'll be available.
0 Kudos
MarcN
by
Deactivated User
Thanks for your answer.

I hope there will be some more detailed documentation regarding the integration of custom GDAL DLLs into ArcGIS for 9.4.

The documentation in 9.3 is very flat and implementing a custom GDAL filter was sometimes cryptic and "try&error".

My successtions are to provide some documentation how ESRI uses the GDAL interface and which functions are used. E.g. which GDAL function has to be implemented so that the copy command in ArcCatalog works with my custom GDAL DLL etc.

Would be nice if you could post here if the new GDAL library is available.
0 Kudos
MarcN
by
Deactivated User
We are in the process of posting these files, but I don't know exactly when they'll be available.


Any news when the modified GDAL libraries for ArcGIS 10 will be available? Is there a chance that they will be available with Beta 2?
0 Kudos
GünterDörffel
Frequent Contributor
Hi,

we have another business partner here who would like to develop against the ESRI branch of the gdal-libraries with beta2 now ... any chance the announced posting will be available soon?

Thanks for commenting
0 Kudos
MarcN
by
Deactivated User
Tried to find the GDAL SDK in the new Resource Center. Is it part of the ArcGIS 10 SDK or is it available in the Resource Center?
0 Kudos
MarcN
by
Deactivated User
After installing ArcGIS 10 Desktop and SDK I still can not find the GDAL SDK...
The link in the ArcGIS10 http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Building_a_customized_raster_format/00... docu still goes to the 9.3 GDAL files... :mad:
0 Kudos
JacquesBeaurain
Occasional Contributor
0 Kudos
MarcN
by
Deactivated User
Just to close this thread:
The GDAL library 1.6 for ArcGIS 10 with some samples is now available in the Imagery code gallery:
http://resources.arcgis.com/gallery/file/image-management/details?entryID=457D0F2B-1422-2418-7F4B-51...
0 Kudos