[geos-devel] [GEOS] #259: IsValidOp unit test<1> failed on windows
msvc2008 build environment
GEOS
geos-trac at osgeo.org
Sat Jun 6 15:47:39 EDT 2009
#259: IsValidOp unit test<1> failed on windows msvc2008 build environment
------------------------+---------------------------------------------------
Reporter: sanak | Owner: geos-devel at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 3.2.0
Component: Default | Version: svn-trunk
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
FINITE(DoubleNotANumber) doesn't return 0 at IsValidOp::isValid.
I had make patch for this problem.
the fixed points are as follows.[[BR]]
1) change DoubleNotANumber value from 1.7e-308 to
numeric_limits<double>::quiet_NaN().[[BR]]
1) change DoubleInfinity value from 1.7e+308 to
numeric_limits<double>::infinity().[[BR]]
2) add DoubleMax definition (use numeric_limits<double>::max()), because
JTS Double.MAX_VALUE and Double.POSITIVE_INFINITY are same in GEOS (I
think that this is a bug).[[BR]]
3) add Coordinate::isNull for get equality of NaN value.[[BR]]
I think that xnix environment have same problem (platform.h.in).
Regards,
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/259>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list