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

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     
  • Field Summary

    Fields inherited from interface nz.org.riskscape.engine.projection.Projection

    IDENTITY
  • Constructor Summary

    Constructors
    Constructor
    Description
    ForceSridProjection(org.geotools.api.referencing.crs.CoordinateReferenceSystem newCrs, nz.org.riskscape.engine.SRIDSet set)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nz.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface nz.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 interface nz.org.riskscape.engine.projection.Projection