Class CRSValidator
java.lang.Object
org.opengis.test.Validator
org.opengis.test.referencing.ReferencingValidator
org.opengis.test.referencing.CRSValidator
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ThreadLocal<Boolean> trueif validation of the conversion byvalidateGeneralDerivedCRS(GeneralDerivedCRS)is under way.Fields inherited from class Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(CoordinateReferenceSystem object) Dispatches the given object to one ofvalidatemethods.private Set<AxisDirection> Returns the axis directions from the given coordinate system.voidvalidate(DerivedCRS object) Validates the given coordinate reference system.voidvalidate(EngineeringCRS object) Validates the given coordinate reference system.voidvalidate(GeocentricCRS object) Validates the given coordinate reference system.voidvalidate(GeographicCRS object) Validates the given coordinate reference system.voidValidates the given coordinate reference system.voidvalidate(ProjectedCRS object) Validates the given coordinate reference system.voidvalidate(TemporalCRS object) Validates the given coordinate reference system.voidvalidate(VerticalCRS object) Validates the given coordinate reference system.private voidValidates the conversion in the given derived CRS.Methods inherited from class ReferencingValidator
dispatchObject, validate, validateIdentifiedObject, validateReferenceSystem
-
Field Details
-
VALIDATING
trueif validation of the conversion byvalidateGeneralDerivedCRS(GeneralDerivedCRS)is under way. Used in order to avoid never-ending recursivity.
-
-
Constructor Details
-
CRSValidator
Creates a new validator.- Parameters:
container- The container of this validator.
-
-
Method Details
-
dispatch
Dispatches the given object to one ofvalidatemethods.- Parameters:
object- The object to dispatch.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
validateGeneralDerivedCRS
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 publicvalidate(ProjectedCRS)andvalidate(DerivedCRS)methods.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given coordinate reference system.- Parameters:
object- The object to validate, ornull.
-
getAxisDirections
Returns the axis directions from the given coordinate system.- Parameters:
cs- The coordinate system from which to get axis directions.- Returns:
- The axis directions.
-