[geos-commits] [SCM] GEOS branch master updated. 9092e28a1fcb496e092278db31d2eefa2cd4d39a
git at osgeo.org
git at osgeo.org
Thu Dec 20 06:57:51 PST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, master has been updated
via 9092e28a1fcb496e092278db31d2eefa2cd4d39a (commit)
from 0a306ee487120730bfe2688db2f79bf0635dd128 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9092e28a1fcb496e092278db31d2eefa2cd4d39a
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Dec 20 06:57:35 2018 -0800
Avoid using reflection
JTS ef92b816438c416303df2eecbc0f655db6e21466
diff --git a/src/geom/Geometry.cpp b/src/geom/Geometry.cpp
index 065a09f..bd156dc 100644
--- a/src/geom/Geometry.cpp
+++ b/src/geom/Geometry.cpp
@@ -702,11 +702,12 @@ Geometry::isEquivalentClass(const Geometry *other) const
return false;
}
+/*public static*/
void
Geometry::checkNotGeometryCollection(const Geometry *g)
//throw(IllegalArgumentException *)
{
- if ((typeid(*g)==typeid(GeometryCollection))) {
+ if (g->getSortIndex() == SORTINDEX_GEOMETRYCOLLECTION) {
throw geos::util::IllegalArgumentException("This method does not support GeometryCollection arguments\n");
}
}
-----------------------------------------------------------------------
Summary of changes:
src/geom/Geometry.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list