java.lang.Object
org.elasticsearch.geometry.utils.StandardValidator
- All Implemented Interfaces:
GeometryValidator
Validator that only checks that altitude only shows up if ignoreZValue is set to true. Despite the name,
this is not a generic "default" validator: it is CRS-agnostic, and used to parse both geographic and
cartesian WKT/GeoJSON (see e.g. server's
GeometryParser, used by both geo_shape and
shape field mapping/queries). Because of that, it must not gain any check that differs between
CRSes -- e.g. rectangle/envelope ordinate ordering, which GeographyValidator and
CartesianValidator each enforce differently. Add such checks to those classes instead.-
Field Summary
Fields inherited from interface org.elasticsearch.geometry.utils.GeometryValidator
NOOP -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckZ(double zValue) static GeometryValidatorinstance(boolean ignoreZValue) voidValidates the geometry and throws IllegalArgumentException if the geometry is not validMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.geometry.utils.GeometryValidator
validateBBox
-
Method Details
-
instance
-
checkZ
protected void checkZ(double zValue) -
validate
Description copied from interface:GeometryValidatorValidates the geometry and throws IllegalArgumentException if the geometry is not valid- Specified by:
validatein interfaceGeometryValidator
-