[Gdal-dev] GDAL and C
Frank Warmerdam
warmerdam at pobox.com
Thu Sep 18 23:44:59 EDT 2003
André Vinícius dos Santos wrote:
> Thanks Frank!
> But, do you know how I can to open a geotiff image on C ?
>
> André Vinícus
Andre,
Yes:
#include "gdal.h"
int main()
{
GDALDatasetH hDS;
GDALAllRegister();
hDS = GDALOpen( "abc.tif", GA_ReadOnly );
}
I really think you need to look at the tutorial material for GDAL
programming, the C API reference docs, gdal_translate.cpp, and gdal.h
before asking more general questions.
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