[gdal-dev] GDALDriver::CopyFiles

Frank Warmerdam warmerdam at pobox.com
Mon Mar 24 14:56:32 EDT 2008


Limei Ran wrote:
> Hi:
> 
> I am using GDALDriver::CopyFiles in our cpp program to copy an image 
> file in HFA format.  But, the old file has three file list:
> File list 0 = 
> /nas/uncch/depts/cep/emc/lran/nlcd2001/nlcd/landcover1_3k_022007.img
> File list 1 = 
> /nas/uncch/depts/cep/emc/lran/nlcd2001/nlcd/landcover1_3k_022007.img.aux.xml 
> 
> File list 2 = 
> /nas/uncch/depts/cep/emc/lran/nlcd2001/nlcd/landcover1_3k_022007.rrd
> 
> CopyFiles failed with error:
> ERROR 1: Unable to rename fileset due irregular basenames.
> 
> I found that it was failed in CPLGetBasename function due to 
> landcover1_3k_022007.img.aux.xml file name. Does GDAL use 
> landcover1_3k_022007.img.aux.xml file?  Or, Can I delete it?

Limei,

GDAL does consult the .aux.xml file (which is actually created by
GDAL!) and it ought to be able to copy it.  If not, please file a
ticket on the issue and I'll try to get it fixed for 1.5.2.  In the
meantime you can likely live without the .aux.xml file as a workaround.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list