Select to view content in your preferred language

Passing custom parameters to a GDAL driver's CreateCopy method

501
0
08-19-2010 04:57 AM
MatthewSnively
New Contributor
I've been working on creating a custom raster format and designing the GDAL driver to work with ArcMap, but I've ran into a problem. When converting another raster file to the new format, the [url=http://www.gdal.org/classGDALDriver.html#d0f7a33b0bd7f9d685bbd90d04fde629]CreateCopy[/url] method of the driver needs a few unique options not covered by the ones provided by [url=http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeoDatabase/IRasterStorageDef.htm]IR...].

As far as I can tell, all I can do is call [url=http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeoDatabase/ISaveAs2_SaveAsRasterDat...] method and ArcMap will call CreateCopy on its own, handling everything between the two itself. From my understanding, the properties of the IRasterStorageDef class passed to SaveAsRasterDataset become the keys in the papszOptions parameter of the CreateCopy method. I was wondering if it would be possible to simply create another class that inherits from IRasterStorageDef (like ESRI does with IRasterStorageDef2) and ArcMap would automatically handle the new properties, or if it has to be done some other way.

Any other advice regarding new GDAL drivers and ArcMap would also be appreciated, as I've never attempted anything like it before. Thanks!
0 Kudos
0 Replies