Package org.opengis.test.referencing
Class CRSValidator
- java.lang.Object
-
- org.opengis.test.Validator
-
- org.opengis.test.referencing.ReferencingValidator
-
- org.opengis.test.referencing.CRSValidator
-
public class CRSValidator extends ReferencingValidator
ValidatesCoordinateReferenceSystem
and related objects from theorg.opengis.referencing.crs
package. This class should not be used directly; use theValidators
convenience static methods instead.- Since:
- 2.2
- Version:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ThreadLocal<java.lang.Boolean>
VALIDATING
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 Constructor Description CRSValidator(ValidatorContainer container)
Creates a new validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(CoordinateReferenceSystem object)
Dispatches the given object to one ofvalidate
methods.private java.util.Set<AxisDirection>
getAxisDirections(CoordinateSystem cs)
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
validate(ImageCRS object)
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
validateGeneralDerivedCRS(GeneralDerivedCRS object)
Validates the conversion in the given derived CRS.-
Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate, validateIdentifiedObject, validateReferenceSystem
-
-
-
-
Field Detail
-
VALIDATING
private final java.lang.ThreadLocal<java.lang.Boolean> 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 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 ofvalidate
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, ornull
.
-
validate
public void validate(GeographicCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(ProjectedCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(DerivedCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.
-
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 publicvalidate(ProjectedCRS)
andvalidate(DerivedCRS)
methods.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(ImageCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(EngineeringCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(VerticalCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(TemporalCRS object)
Validates the given coordinate reference system.- Parameters:
object
- The object to validate, ornull
.
-
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.
-
-