[geos-devel] Converting shape files to GEOS geometries
Mateusz Loskot
mateusz at loskot.net
Wed Jan 10 09:54:42 EST 2007
Jean-Claude Repetto wrote:
> Perhaps there is already a program or a library that can do that ?
Check sources of GDAL/OGR.
There is exportToGEOS function which follows this scheme:
1. Read shape to OGR geometry
2. Pass OGR geometry to the exportToGEOS
3. Export OGR geometry to WKB
4. Import WKB to GEOS
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the geos-devel
mailing list