Object
Validator
ReferencingValidator
CRSValidator
Validates
CoordinateReferenceSystem
and related objects from the
org.opengis.referencing.crs
package.
This class is provided for users wanting to override the validation methods. When the default
behavior is sufficient, the Validators
static methods provide a more
convenient way to validate various kinds of objects.
- Since:
- 2.2
-
Field Summary
Modifier and TypeFieldDescriptionboolean
true
if standard names shall be enforced when such names are defined by an OGC/ISO standard.Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
Constructor Summary
ConstructorDescriptionCRSValidator
(ValidatorContainer container) Creates a new validator instance. -
Method Summary
Modifier and TypeMethodDescriptionint
dispatch
(CoordinateReferenceSystem object) For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this class (if any).void
validate
(CompoundCRS object) Validates the given coordinate reference system.void
validate
(DerivedCRS object) Validates the given coordinate reference system.void
validate
(EngineeringCRS object) Validates the given coordinate reference system.void
validate
(GeodeticCRS object) Validates the given coordinate reference system.void
Deprecated.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.Methods inherited from class org.opengis.test.referencing.ReferencingValidator
dispatchObject, validate
-
Field Details
-
enforceStandardNames
true
if standard names shall be enforced when such names are defined by an OGC/ISO standard. For example, the ISO 19111 standard constraints theGeographicCRS
axis names togeodetic latitude
,geodetic longitude
andellipsoidal height
(if 3D) names. Those axis names will be verified by this validator, unless this fields is explicitly set tofalse
.- Since:
- 3.1
- See Also:
-
-
Constructor Details
-
CRSValidator
Creates a new validator instance.- Parameters:
container
- the set of validators to use for validating other kinds of objects (see field javadoc).
-
-
Method Details
-
dispatch
For each interface implemented by the given object, invokes the correspondingvalidate(…)
method defined in this class (if any).- Parameters:
object
- the object to dispatch tovalidate(…)
methods, ornull
.- Returns:
- number of
validate(…)
methods invoked in this class for the given object.
-
validate
Validates the given coordinate reference system. If theenforceStandardNames
field is set totrue
(which is the default), then this method expects the axes to have the following names:- For ellipsoidal coordinate system,
geodetic latitude
,geodetic longitude
andellipsoidal height
(if 3D). - For Cartesian coordinate system,
geocentric X
,geocentric Y
andgeocentric Z
. - For spherical coordinate system,
spherical latitude
,spherical longitude
andgeocentric radius
.
- Parameters:
object
- the object to validate, ornull
.- Since:
- 3.1
- For ellipsoidal coordinate system,
-
validate
Validates the given coordinate reference system. If theenforceStandardNames
field is set totrue
(which is the default), then this method expects the axes to have the following names:northing
orsouthing
,easting
orwesting
.
- Parameters:
object
- the object to validate, ornull
.
-
validate
Validates the given coordinate reference system.- Parameters:
object
- the object to validate, ornull
.
-
validate
Deprecated.ImageCRS
is replaced byEngineeringCRS
as of ISO 19111:2019.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. If theenforceStandardNames
field is set totrue
(which is the default), then this method expects the axes to have the following names:depth
orgravity-related height
.
- 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. This method will validate every individual components in the given compound CRS.- Parameters:
object
- the object to validate, ornull
.- Since:
- 3.1
-
ImageCRS
is replaced byEngineeringCRS
as of ISO 19111:2019.