[FWTools] OGR example on C

Frank Warmerdam warmerdam at pobox.com
Wed May 20 08:35:05 EST 2009


Aurora Sánchez Fernández wrote:
> Hi,
> 
> I'm trying to use OGR API. I have seen that it's developped in C++ but I 
> can only use C in Eclipse platform. I have seen that there is a version 
> for C, using ogr_api.h. There is a little example called 
> ogr_capi_test.c. Does anyone know where is it? I can't find it in the 
> web site.

Aurora,

The source can be reviewed at:

   http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogr_capi_test.c

You might also find the following a useful example of using the OGR C API:

   http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal2ogr.c

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 FWTools mailing list