[Gdal-dev] Specifying PixelIsArea vs PixelIsPoint in GDAL
Frank Warmerdam
warmerdam at pobox.com
Wed Mar 1 18:57:27 EST 2006
Ilya Varaev wrote:
> Hello folks,
> I wonder whether there is any way to store a tiff file with the raster
> type of 'PixelIsPoint' instead of the default 'PixelIsArea'. It's
> clearly possible if working directly with libgeotiff, but we are
> trying to stay on the generic GDAL level (and well, it can probalby be
> useful for a few other formats that support both modes). I've tried to
> RTFM, but didn't find any references to this parameter.
> If it's impossible to do, how safe is it to mix GDAL calls with
> directly accessing format-specific features (e.g. directly modifying
> tiff tags)?
Ilya,
Yes, if you set the metadata item on the dataset named AREA_OR_POINT
to a value of POINT it will be written as a PixelIsPoint geotiff file.
eg.
gdal_translate -mo AREA_OR_POINT=POINT utm.tif out.tif
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 OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list