Package nz.org.riskscape.engine.geo
Class GeometryFixer.Base
java.lang.Object
nz.org.riskscape.engine.geo.GeometryFixer.Base
- All Implemented Interfaces:
GeometryFixer
- Enclosing interface:
- GeometryFixer
A base implementation. Package private to allow for test access.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.geo.GeometryFixer
GeometryFixer.Base
-
Field Summary
Fields inherited from interface nz.org.riskscape.engine.geo.GeometryFixer
DEFAULT
-
Constructor Summary
-
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).
-
Constructor Details
-
Base
-
-
Method Details
-
fix
public org.locationtech.jts.geom.Geometry fix(org.locationtech.jts.geom.Geometry geom) Description copied from interface:GeometryFixer
Attempt to fix geom (which ought to be invalid).
- Specified by:
fix
in interfaceGeometryFixer
- Parameters:
geom
- geometry to fix- Returns:
- a fixed version of geom if fixing was possible, else null
-