mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 09:32:46 +00:00
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:
parent
3e215083cc
commit
1a343cd92c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue