Class ForceSridProjection
java.lang.Object
nz.org.riskscape.engine.projection.ForceSridProjection
- All Implemented Interfaces:
nz.org.riskscape.engine.projection.Projection
public class ForceSridProjection
extends Object
implements nz.org.riskscape.engine.projection.Projection
Projects a tuple by modifying it's geometry in place to have a specific srid, as well as replacing the
SpatialMetadata
that the relation produces to match.
Note: This modifies the tuple in place, and doesn't clone either the tuple or the geometry that's modified. This is to support efficient modification on source datasets, where the tuples are being handed over. This behaviour might not be wanted in a querying situation.
-
Nested Class Summary
-
Field Summary
Fields inherited from interface nz.org.riskscape.engine.projection.Projection
IDENTITY
-
Constructor Summary
ConstructorDescriptionForceSridProjection
(org.geotools.api.referencing.crs.CoordinateReferenceSystem newCrs, nz.org.riskscape.engine.SRIDSet set) -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.projection.Projector>
getProjectionFunction
(nz.org.riskscape.engine.types.Struct sourceType) nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.types.Struct>
projectType
(nz.org.riskscape.engine.types.Struct source)
-
Constructor Details
-
ForceSridProjection
public ForceSridProjection(org.geotools.api.referencing.crs.CoordinateReferenceSystem newCrs, nz.org.riskscape.engine.SRIDSet set)
-
-
Method Details
-
projectType
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.types.Struct> projectType(nz.org.riskscape.engine.types.Struct source) - Specified by:
projectType
in interfacenz.org.riskscape.engine.projection.Projection
-
getProjectionFunction
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.projection.Projector> getProjectionFunction(nz.org.riskscape.engine.types.Struct sourceType) - Specified by:
getProjectionFunction
in interfacenz.org.riskscape.engine.projection.Projection
-