[GDAL-dev] GEOS with GDAL

abhay menon abhay.menon at gmail.com
Thu Jul 26 03:00:57 EDT 2007


Hello all,

How do I verify that GEOS compilation is working with my GDAL utility.

I have compiled the gdal-1.4.1 with geos-3.0.0-rc4 in vs2003 for some
process to build in vc6.

  OGRPolygon *poPolygon = new OGRPolygon();
  OGRPoint *pSt = new OGRPoint();

when I issue this :

1)  int i = poPolygon->PointOnSurface(pSt);

result pSt is empty and i = 6.
and when I try this :

2)  int i =  poPolygon->Centroid(pSt);

it gives me an error and the application quits

But when I tried the same with vs2003 the 2) step breaks at getX();
1) step result the same as earlier.


-- 
Best Regards

Abhay Menon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070726/8ed07eff/attachment.html


More information about the Gdal-dev mailing list