Class WraparoundAxesFinder
java.lang.Object
org.apache.sis.internal.referencing.WraparoundAxesFinder
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
FieldsModifier and TypeFieldDescriptionfinal org.opengis.referencing.crs.CoordinateReferenceSystem
The CRS that may contain wraparound axes.final org.opengis.referencing.operation.MathTransform
The transform frompreferredCRS
to the CRS specified at construction time. -
Constructor Summary
ConstructorsConstructorDescriptionWraparoundAxesFinder
(org.opengis.referencing.crs.CoordinateReferenceSystem crs) Searches wraparound axes in the specified CRS or its base CRS (if any). -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
periods()
Returns the range (maximum - minimum) of wraparound axes.
-
Field Details
-
preferredCRS
public final org.opengis.referencing.crs.CoordinateReferenceSystem preferredCRSThe 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 preferredToSpecifiedThe transform frompreferredCRS
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.
-