Class CRSValidator


  • public class CRSValidator
    extends ReferencingValidator
    Validates CoordinateReferenceSystem and related objects from the org.opengis.referencing.crs package. This class should not be used directly; use the Validators convenience static methods instead.
    Since:
    2.2
    Version:
    3.0
    • Constructor Detail

      • CRSValidator

        public CRSValidator​(ValidatorContainer container)
        Creates a new validator.
        Parameters:
        container - The container of this validator.
    • Method Detail

      • dispatch

        public void dispatch​(CoordinateReferenceSystem object)
        Dispatches the given object to one of validate methods.
        Parameters:
        object - The object to dispatch.
      • validate

        public void validate​(GeocentricCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • validate

        public void validate​(GeographicCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • validate

        public void validate​(ProjectedCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • validate

        public void validate​(DerivedCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • validateGeneralDerivedCRS

        private void validateGeneralDerivedCRS​(GeneralDerivedCRS object)
        Validates the conversion in the given derived CRS. This method is private because it doesn't perform a full validation; only the one not already done by the public validate(ProjectedCRS) and validate(DerivedCRS) methods.
        Parameters:
        object - The object to validate, or null.
      • validate

        public void validate​(ImageCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • validate

        public void validate​(EngineeringCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • validate

        public void validate​(VerticalCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • validate

        public void validate​(TemporalCRS object)
        Validates the given coordinate reference system.
        Parameters:
        object - The object to validate, or null.
      • getAxisDirections

        private java.util.Set<AxisDirection> getAxisDirections​(CoordinateSystem cs)
        Returns the axis directions from the given coordinate system.
        Parameters:
        cs - The coordinate system from which to get axis directions.
        Returns:
        The axis directions.