Interface IVerticalCoordinateTransform


  • public interface IVerticalCoordinateTransform
    Defines an interface for transforming the vertical coordinate value of a feature when loading it.
    • Method Detail

      • transform

        double transform​(int referenceIndex,
                         double z)
        Transform the vertical coordinate of a feature. The arguments to this method are intended to provide considerable flexibility for cases in which the data source features may not include a meaningful Z coordinate directly, but must obtain one from a supplemental or associated metadata source. Thus the reference index is also provided. Implementations may use the reference index as appropriate to access auxiliary data files. For example, a shapefile reader might use it to access the metadata in the DBF file associated with the Shapefile.
        Parameters:
        referenceIndex - an optional, supplemental index defined by the implementation.
        z - the vertical coordinate from the data source. In some cases, an implementation may elect to treat this value as undefined or meaningless and may derive a vertical coordinate from the reference index.
        Returns:
        a floating point value to be assigned to the feature according to the needs of the application.