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
ValidatesCoordinateReferenceSystemand related objects from theorg.opengis.referencing.crspackage. This class should not be used directly; use theValidatorsconvenience static methods instead.- Since:
- 2.2
- Version:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ThreadLocal<java.lang.Boolean>VALIDATINGtrueif 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 voiddispatch(CoordinateReferenceSystem object)Dispatches the given object to one ofvalidatemethods.private java.util.Set<AxisDirection>getAxisDirections(CoordinateSystem cs)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.voidvalidate(ImageCRS object)Validates 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 voidvalidateGeneralDerivedCRS(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
trueif 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 ofvalidatemethods.- 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.
-
-