[gdal-dev] updating a HFA image

Frank Warmerdam warmerdam at pobox.com
Wed Apr 2 10:22:43 EDT 2008


Limei Ran wrote:
> Hi Frank:
> 
> The original image file was a USGS NLCD landuse image (I think it was 
> created in the IMAGINE package).   I used 
> poRDataset->GetDriver()->CopyFiles made a copy.  Then, I updated the 
> copied file.  I will file a ticket with a small area result.

Cool, thanks

> For a quick solution, could I translate the image into an EHdr format 
> image using gdal_translate and then update it with EHdr format or other 
> better format you may suggest for reading a region from the image?

That should work, or I presume you could even use the Driver CreateCopy()
method to copy the image contents, instead of literally copying all the
component files.  This would give you a GDAL generated .img file that
should hopefully be more safely updated.

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