Class GeometryValidator
java.lang.Object
org.opengis.test.Validator
org.opengis.test.geometry.GeometryValidator
Validates
Geometry and related objects from the org.opengis.geometry
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 TypeFieldDescriptiondoubleSmall tolerance values for comparisons of floating point numbers.Fields inherited from class Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(DirectPosition object) Validates the given position.voidValidates the given envelope.
-
Field Details
-
tolerance
public double toleranceSmall 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 Details
-
GeometryValidator
Creates a new validator.- Parameters:
container- The container of this validator.
-
-
Method Details
-
validate
Validates the given envelope.- Parameters:
object- The object to validate, ornull.
-
validate
Validates the given position.- Parameters:
object- The object to validate, ornull.
-