Attempt to convert this Geometry to the provided type
Attempt to convert this Geometry to the provided type
Calculate centroid of this Geometry
Calculate centroid of this Geometry
Calculate the distance to another 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.
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
Check the validity of this geometry
Return the wrapped jts Geometry
Return the wrapped jts Geometry
Returns a unique representation of the geometry based on standard coordinate ordering.
Get the number of vertices in this geometry
Get the number of vertices in this geometry
Returns this Geometry's vertices.
Returns this Geometry's vertices.
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
A collection of geometries (itself a Geometry)