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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeometryFixerAGeometryFixerbased on the JTS GeometryFixer. -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Geometryfix(org.locationtech.jts.geom.Geometry geom) Attempt to fix geom (which ought to be invalid).
-
Field Details
-
DEFAULT
A
GeometryFixerbased 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
-