Package org.opengis.test.referencing
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> true
if validation of the conversion byvalidateGeneralDerivedCRS(org.opengis.referencing.crs.GeneralDerivedCRS)
is under way.Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(CoordinateReferenceSystem object) Dispatches the given object to one ofvalidate
methods.private Set
<AxisDirection> Returns the axis directions from the given coordinate system.void
validate
(DerivedCRS object) Validates the given coordinate reference system.void
validate
(EngineeringCRS object) Validates the given coordinate reference system.void
validate
(GeocentricCRS object) Validates the given coordinate reference system.void
validate
(GeographicCRS object) Validates the given coordinate reference system.void
Validates the given coordinate reference system.void
validate
(ProjectedCRS object) Validates the given coordinate reference system.void
validate
(TemporalCRS object) Validates the given coordinate reference system.void
validate
(VerticalCRS object) Validates the given coordinate reference system.private void
Validates the conversion in the given derived CRS.Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate, validateIdentifiedObject, validateReferenceSystem
-
Field Details
-
VALIDATING
true
if validation of the conversion byvalidateGeneralDerivedCRS(org.opengis.referencing.crs.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 ofvalidate
methods.- 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.
-