Class LinearGeometryProjection
java.lang.Object
nz.org.riskscape.engine.projection.LinearGeometryProjection
- All Implemented Interfaces:
nz.org.riskscape.engine.projection.Projection
public class LinearGeometryProjection
extends Object
implements nz.org.riskscape.engine.projection.Projection
Projector that prevents CurvedGeometry from entering RiskScape.
If a CurvedGeometry is encountered then:
- an InvalidTupleException will be thrown if tolerance is empty
- or the geometry will be linearized by calling CurvedGeometry.linearize(double)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface nz.org.riskscape.engine.projection.Projection
IDENTITY -
Constructor Summary
ConstructorsConstructorDescriptionLinearGeometryProjection(Optional<Double> tolerance) Creates a newLinearGeometryProjectioninstance. -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.projection.Projector>getProjectionFunction(nz.org.riskscape.engine.types.Struct sourceType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.projection.Projection
projectType
-
Field Details
-
PROBLMES
-
-
Constructor Details
-
LinearGeometryProjection
Creates a new
LinearGeometryProjectioninstance.- Parameters:
tolerance- Tolerance to use when linearizingCurvedGeometry.If this value is empty then any
CurvedGeometryencountered will result in anInvalidTupleExceptionbeing thrown.
-
-
Method Details
-
getProjectionFunction
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.projection.Projector> getProjectionFunction(nz.org.riskscape.engine.types.Struct sourceType) - Specified by:
getProjectionFunctionin interfacenz.org.riskscape.engine.projection.Projection
-