Package org.opengis.test.geometry
Class GeometryValidator
- java.lang.Object
-
- org.opengis.test.Validator
-
- org.opengis.test.geometry.GeometryValidator
-
public class GeometryValidator extends Validator
ValidatesGeometry
and related objects from theorg.opengis.geometry
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 double
tolerance
Small tolerance values for comparisons of floating point numbers.-
Fields inherited from class org.opengis.test.Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
-
Constructor Summary
Constructors Constructor Description GeometryValidator(ValidatorContainer container)
Creates a new validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(DirectPosition object)
Validates the given position.void
validate(Envelope object)
Validates the given envelope.
-
-
-
Field Detail
-
tolerance
public double tolerance
Small tolerance values for comparisons of floating point numbers. The default value is 1.0E-6. Implementors can change this value before to run the tests.
-
-
Constructor Detail
-
GeometryValidator
public GeometryValidator(ValidatorContainer container)
Creates a new validator.- Parameters:
container
- The container of this validator.
-
-
Method Detail
-
validate
public void validate(Envelope object)
Validates the given envelope.- Parameters:
object
- The object to validate, ornull
.
-
validate
public void validate(DirectPosition object)
Validates the given position.- Parameters:
object
- The object to validate, ornull
.
-
-