[Gdal-dev] Re: Motion: Adopt RFC 12: Improved File Management

Frank Warmerdam warmerdam at pobox.com
Wed May 9 10:52:50 EDT 2007


Daniel Morissette wrote:
> Frank Warmerdam wrote:
>> Doh!  I just realized that my original contract delivery also included 
>> a copy
>> operation.  I would like to withdraw my original motion, and instead move
>> to adopt a revised version of RFC 12 which includes a Copy operator:
>>
>>   http://trac.osgeo.org/gdal/wiki/rfc12_filemanagement
>>
>> The copy operator works similarly to rename, but doesn't alter the 
>> source.
>>
> 
> 
> Since the copy function is called pfnCopyFiles(), should we call the 
> rename function pfnMoveFiles() instead of pfnRename(), just for 
> consistency?
> 
> Actually, at the higher level I see that you have GDALCopyDatasetFiles() 
> and GDALRenameDataset() ... um ... why the "Files" suffix in one case 
> and not the other?

Daniel,

I added the word Files to the Copy operation to try and clarify the
distinction between it and the CreateCopy() method which is a "data
model oriented" copy rather than a literal file copy.

I would agree that it is peculiar that rename and copy are not similarly
named in this regard.

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