Class WraparoundAxesFinder

java.lang.Object
org.apache.sis.internal.referencing.WraparoundAxesFinder

public final class WraparoundAxesFinder extends Object
Finds the axes where wraparound may happen in a CRS. The search may be indirect. For example if the given CRS is projected, this class will search in geographic CRS.
Since:
1.2
Version:
1.2
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final org.opengis.referencing.crs.CoordinateReferenceSystem
    The CRS that may contain wraparound axes.
    final org.opengis.referencing.operation.MathTransform
    The transform from preferredCRS to the CRS specified at construction time.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WraparoundAxesFinder(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
    Searches wraparound axes in the specified CRS or its base CRS (if any).
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    Returns the range (maximum - minimum) of wraparound axes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • preferredCRS

      public final org.opengis.referencing.crs.CoordinateReferenceSystem preferredCRS
      The CRS that may contain wraparound axes. Geographic CRS are preferred, but will be the CRS specified at construction time if we found nothing better.
    • preferredToSpecified

      public final org.opengis.referencing.operation.MathTransform preferredToSpecified
      The transform from preferredCRS to the CRS specified at construction time. Never null but may be the identity transform.
  • Constructor Details

    • WraparoundAxesFinder

      public WraparoundAxesFinder(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
      Searches wraparound axes in the specified CRS or its base CRS (if any).
      Parameters:
      crs - the CRS where to search for wraparound axes.
  • Method Details

    • periods

      public double[] periods()
      Returns the range (maximum - minimum) of wraparound axes. For non-wraparound axes, the value is set to 0. The length of this array is the smallest length necessary for handing all wraparound axes. It may be smaller than the CRS dimension.
      Returns:
      periods of axes (0 for non-wraparound axes), or null if none.