[gdal-dev] OGRGeometry creation

Mateusz Loskot mateusz at loskot.net
Fri Nov 23 15:46:45 EST 2007


mchapman at texelinc.com wrote:
> Look at your if statement.  You are saying if ier equals err_none is
> true when it should be ier not equal ogr_errnone.  U have a logical
> operator wrong for error check. Your code is the problem.

I don't think the condition is incorrectly defined.
AFAIU, Yuriy is trying to do:

1. import OGR geometry from WKT
2. if imported correctly
2.1 export OGR geometry back to WKT

The 2. is true if OGRERR_NONE is returned, then 2.1 is executed.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net


More information about the gdal-dev mailing list