On 8/15/08, Brent Fraser <[EMAIL PROTECTED]> wrote:
> I'm using OGR's Geos functions (e.g. OGRGeometry::IsValid) to process some
> polygons.  Geos spits out messages to console (stderr?) like "Warning 1:
> Self-intersection at or near point ...".  Is there a way to disable these
> messages via OGR?

Brent,

OGR reroutes GEOS errors and warnings via the CPL error reporting
mechanism.  So, if you are working programatically you could
install a custom warning/error handler (see CPLPushErrorHandler()
for instance).

If you are just using the utilities there is no practical way to filter
out the GEOS messages other than by redirecting stderr to
/dev/null.

Best regards,


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to