java.lang.Object
org.elasticsearch.geometry.utils.GeographyValidator
- All Implemented Interfaces:
GeometryValidator
Validator that checks that lats are between -90 and +90 and lons are between -180 and +180 and altitude is present only if
ignoreZValue is set to true
-
Field Summary
Fields inherited from interface org.elasticsearch.geometry.utils.GeometryValidator
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAltitude
(double zValue) protected void
checkLatitude
(double latitude) validates latitude value is within standard +/-90 coordinate boundsprotected void
checkLongitude
(double longitude) validates longitude value is within standard +/-180 coordinate boundsstatic GeometryValidator
instance
(boolean ignoreZValue) void
Validates the geometry and throws IllegalArgumentException if the geometry is not valid
-
Constructor Details
-
GeographyValidator
protected GeographyValidator(boolean ignoreZValue)
-
-
Method Details
-
instance
-
checkLatitude
protected void checkLatitude(double latitude) validates latitude value is within standard +/-90 coordinate bounds -
checkLongitude
protected void checkLongitude(double longitude) validates longitude value is within standard +/-180 coordinate bounds -
checkAltitude
protected void checkAltitude(double zValue) -
validate
Description copied from interface:GeometryValidator
Validates the geometry and throws IllegalArgumentException if the geometry is not valid- Specified by:
validate
in interfaceGeometryValidator
-