[Gdal-dev] Do I need to write adriver with that?

Frank Warmerdam warmerdam at pobox.com
Mon Sep 10 12:14:38 EDT 2007


Oliver Eichler wrote:
> Hi Frank
> 
>> A lot depends on the nature of the source data.  If the image data is
>> regularly laid out on disk, it may be sufficient to write one of the
>> various "raw header" files such as the .aux for the PAux driver.
> 
> Well it's the GeoGrid format used by EADS. This is pretty similar to blocked geotiff data. 
> 
>> If you need to use code to read your source file (compressed,oddly
>> laied out, etc) then you will have to do more.  It could be a small
>> standalone utility that writes out some GDAL compatible format (such
>> as raw+header) or you could implement a driver within GDAL.  In part
> 
> Thus, if I get you correctly, data always have to be read via file into GDAL. There is no direct API approach.

Oliver,

Ah, I neglected to mention that.  Yes, reading via some other
mechanism and then writing via GDAL is quite doable.  You would
use Create() for some format that supports direct file creation
and use RasterIO() to write the data to it.

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