diff --git a/include/geos/operation/relateng/RelateGeometry.h b/include/geos/operation/relateng/RelateGeometry.h index df0277d19c..e96a3b8787 100644 --- a/include/geos/operation/relateng/RelateGeometry.h +++ b/include/geos/operation/relateng/RelateGeometry.h @@ -97,7 +97,7 @@ class GEOS_DLL RelateGeometry { static bool isZeroLength(const LineString* line); - bool isZeroLengthLine(const Geometry* g) { + bool isZeroLengthLine(const Geometry* g) const { // avoid expensive zero-length calculation if not linear if (getDimension() != Dimension::L) return false; @@ -160,7 +160,7 @@ class GEOS_DLL RelateGeometry { return geomEnv; } - int getDimension() const { + inline int getDimension() const { return geomDim; }