Attempt to convert this Geometry to the provided type
Calculate centroid of this Geometry
Calculate the distance to another Geometry
Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.
Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.
Computes a Result that represents a Geometry made up of the points shared by this Polygon and g. If it fails, it reduces the precision to avoid TopologyException.
Is this Geometry empty? This is faster than checking manually like:
Is this Geometry empty? This is faster than checking manually like:
val mp: MultiPoint = ... val ps: Array[Point] = mp.points // `.points` is a lazy val with processing overhead ps.isEmpty // possible, but mp.isEmpty is faster
It would be similar for MultiLine or MultiPolygon.
Check the validity of this geometry
Determine whether another Geometry is within a given distance
Determine whether another Geometry is within a given distance
The geometry to check
The radius of the circle within which this check is conducted
(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead
A trait inherited by classes which wrap a jts.Geometry