Class DeferredCoordinateOperation

All Implemented Interfaces:
Serializable, Formattable, Deprecable, LenientComparable, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.CoordinateOperation

public final class DeferredCoordinateOperation extends AbstractCoordinateOperation
Place-holder for a CoordinateOperation whose creation is deferred. Used for iterating on instances returned by EPSGDataAccess.createFromCoordinateReferenceSystemCodes(String, String) where many operations may exist but only one (typically) will be retained.
Since:
0.8
Version:
0.8
See Also:
  • Field Details

    • factory

      private final org.opengis.referencing.operation.CoordinateOperationAuthorityFactory factory
      The factory to use for creating the actual coordinate operation.
  • Constructor Details

    • DeferredCoordinateOperation

      public DeferredCoordinateOperation(Map<String,?> properties, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory factory)
      Creates a deferred coordinate operation.
      Parameters:
      properties - the properties to be given to the identified object.
      sourceCRS - the source CRS, or null if unspecified.
      targetCRS - the target CRS, or null if unspecified.
      factory - the factory to use for creating the actual coordinate operation.
  • Method Details

    • create

      public org.opengis.referencing.operation.CoordinateOperation create() throws org.opengis.util.FactoryException
      Creates the actual coordinate operation.
      Returns:
      the coordinate operation.
      Throws:
      org.opengis.util.FactoryException - if the factory failed to create the coordinate operation.