logo       

Re: GDAL and C: msg#00089

gis.gdal.devel

Subject: Re: GDAL and C

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@xxxxxxxxx
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise