Class DefaultPassThroughOperation

    • Field Detail

      • operation

        protected final Operation operation
        The operation to apply on the subset of a coordinate tuple.
    • Constructor Detail

      • DefaultPassThroughOperation

        public DefaultPassThroughOperation​(Map<String,​?> properties,
                                           CoordinateReferenceSystem sourceCRS,
                                           CoordinateReferenceSystem targetCRS,
                                           Operation operation,
                                           int firstAffectedOrdinate,
                                           int numTrailingOrdinates)
        Constructs a single operation from a set of properties. The properties given in argument follow the same rules than for the AbstractCoordinateOperation constructor. Affected ordinates will range from firstAffectedOrdinate inclusive to dimTarget-numTrailingOrdinates exclusive.
        Parameters:
        properties - Set of properties. Should contains at least "name".
        sourceCRS - The source CRS.
        targetCRS - The target CRS.
        operation - The operation to apply on the subset of a coordinate tuple.
        firstAffectedOrdinate - Index of the first affected ordinate.
        numTrailingOrdinates - Number of trailing ordinates to pass through.
      • DefaultPassThroughOperation

        public DefaultPassThroughOperation​(Map<String,​?> properties,
                                           CoordinateReferenceSystem sourceCRS,
                                           CoordinateReferenceSystem targetCRS,
                                           Operation operation,
                                           MathTransform transform)
        Constructs a single operation from a set of properties and the given transform. The properties given in argument follow the same rules than for the AbstractCoordinateOperation constructor.
        Parameters:
        properties - Set of properties. Should contains at least "name".
        sourceCRS - The source CRS.
        targetCRS - The target CRS.
        operation - The operation to apply on the subset of a coordinate tuple.
        transform - The pass through transform.
    • Method Detail

      • getModifiedCoordinates

        public int[] getModifiedCoordinates()
        Ordered sequence of positive integers defining the positions in a coordinate tuple of the coordinates affected by this pass-through operation. The returned index are for source coordinates.
        Specified by:
        getModifiedCoordinates in interface PassThroughOperation
        Returns:
        The modified coordinates.
      • formatWKT

        protected String formatWKT​(Formatter formatter)
        Format this operation as a pseudo-WKT format. No WKT format were defined for coordinate operation at the time this method was written. This method may change in any future version until a standard format is found.
        Overrides:
        formatWKT in class AbstractCoordinateOperation
        Parameters:
        formatter - The formatter to use.
        Returns:
        The WKT element name.
        See Also:
        Formattable.toWKT(), Formattable.toString()