GEOSHasZ now checks both DoubleNotANumber and isFinite

git-svn-id: http://svn.osgeo.org/postgis/trunk@1099 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2004-11-17 15:18:09 +00:00
parent 3e215083cc
commit 1a343cd92c

View file

@ -1719,5 +1719,5 @@ GEOSHasZ(Geometry *g)
double az = g->getCoordinate()->z;
//sprintf(msg, "ZCoord: %g", az);
//NOTICE_MESSAGE(msg);
return (isfinite(az));
return (isfinite(az) && ! az == DoubleNotANumber);
}