[Gdal-dev] geoTiff: set georef using metadata tags
Frank Warmerdam
warmerdam at pobox.com
Fri Dec 15 01:51:41 EST 2006
On 12/13/06, Gennady Khokhorin <gok at aerometric-ak.com> wrote:
> Hello, all.
> I have a problem translating geoTiff tags values to prettyWKT and back.
>
> I have char* raw data buffers for each GeoKeyDirectory, GeoDoubleParams and GeoASCIIParams.
> How I can put those raw data in existing .tif?
>
> GDALSetMetadataItem(hDataSet, "GeoKeyDirectory", tagValue, NULL) command handles string tagValue only.
Gok,
Normally to write the geotiff tags using GDAL you would need
to set the projection and geotransform appropriately. Then the
driver will internally reorganize things into a form suitable to write
to the geotiff tags.
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 | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list