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 mp.
Computes a Result that represents a Geometry made up of the points shared by this Polygon and p.
Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.
Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.
Returns the area of this Polygon.
Attempt to convert this Geometry to the provided type
Attempt to convert this Geometry to the provided type
Returns the boundary of this Polygon.
Returns the boundary of this Polygon. The boundary of a Polygon is the set of closed curves corresponding to its exterior and interior boundaries.
Computes a buffer area around this Polygon having width d.
Calculate centroid of this Geometry
Calculate centroid of this Geometry
Tests whether this Polygon contains the specified Geometry g.
Tests whether this Polygon contains the specified Geometry g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****FF*.
Tests whether this Polygon is covered by the specified TwoDimensions g.
Tests whether this Polygon is covered by the specified TwoDimensions g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*F**F*** or *TF**F*** or **FT*F*** or **F*TF***.
Tests whether this Polygon covers the specified Geometry g.
Tests whether this Polygon covers the specified Geometry g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****FF* or *T****FF* or ***T**FF* or ****T*FF*.
Tests whether this Polygon crosses the specified OneDimension g.
Tests whether this Polygon crosses the specified OneDimension g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****T** (A/L).
Tests whether this Polygon crosses the specified MultiPoint mp.
Tests whether this Polygon crosses the specified MultiPoint mp. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****T** (A/P).
Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.
Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.
Calculate the distance to another Geometry
Calculate the distance to another Geometry
Returns the exterior ring of this Polygon.
Returns true if this Polygon contains holes
Returns the hole rings of this Polygon.
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 mp.
Computes a Result that represents a Geometry made up of the points shared by this Polygon and p.
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.
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.
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.
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.
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.
Tests whether this Polygon is a rectangle.
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.
Returns the number of holes in this Polygon
Tests whether this Polygon overlaps the specified TwoDimensions g.
Tests whether this Polygon overlaps the specified TwoDimensions g. Returns true if The DE-9IM Intersection Matrix for the two geometries is T*T***T**.
Returns this Polygon's perimeter.
Returns this Polygon's perimeter. A Polygon's perimeter is the length of its exterior and interior boundaries.
Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g and all the points in g that are not in this Polygon.
Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g and all the points in g that are not in this Polygon.
Tests whether this Polygon touches the specified Geometry g.
Tests whether this Polygon touches the specified Geometry g. Returns true if the DE-9IM Intersection Matrix for the two geometries is FT*******, F**T***** or F***T****.
Computes a Result that represents a Geometry made up of all the points in this Polygon and g.
Computes a Result that represents a Geometry made up of all the points in this Polygon and g. Uses cascaded polygon union if g is a (multi)polygon else falls back to default jts union method.
Computes a Result that represents a Geometry made up of all the points in this Polygon and g.
Get the number of vertices in this geometry
Returns this Polygon's vertices.
Tests whether this Polygon is within the specified TwoDimensions g.
Tests whether this Polygon is within the specified TwoDimensions g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*F**F***.
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
Computes a Result that represents a Geometry made up of all the points in this Polygon and g.
Computes a Result that represents a Geometry made up of all the points in this Polygon and g.
(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead
(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead
(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead
(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead
(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead
Class representing a polygon