[postgis-users] postgis c or c++ parser
Frank Warmerdam
warmerdam at pobox.com
Wed Feb 18 13:43:33 PST 2004
Seamus Thomas Carroll wrote:
> Hi,
>
> Does a parser exist that turns the postgis data read from postgres into a
> data structure that can be easily used?
>
> IE. An array of doubles representing the points returned. Something
> similiar in function to the java postgis library.
Seamus,
It isn't really a lightweight solution, but the OGR library can be used
for this purpose. It will read PostGIS features and turn them into C++
objects from which you can get geometry bits, attribute values and so
forth.
http://ogr.maptools.org/
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 postgis-users
mailing list