Package nz.org.riskscape.engine.geo
Interface GeometryFixer
- All Known Implementing Classes:
GeometryFixer.Base
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A utility for automatically fixing invalid Geometry
.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GeometryFixer
AGeometryFixer
based on the JTS GeometryFixer. -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Geometry
fix
(org.locationtech.jts.geom.Geometry geom) Attempt to fix geom (which ought to be invalid).
-
Field Details
-
DEFAULT
A
GeometryFixer
based on the JTS GeometryFixer.
-
-
Method Details
-
fix
org.locationtech.jts.geom.Geometry fix(org.locationtech.jts.geom.Geometry geom) Attempt to fix geom (which ought to be invalid).
- Parameters:
geom
- geometry to fix- Returns:
- a fixed version of geom if fixing was possible, else null
-