Class GeographyValidator

  • All Implemented Interfaces:
    GeometryValidator

    public class GeographyValidator
    extends Object
    implements 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
    • Constructor Detail

      • GeographyValidator

        public GeographyValidator​(boolean ignoreZValue)
    • Method Detail

      • 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

        public void validate​(Geometry geometry)
        Description copied from interface: GeometryValidator
        Validates the geometry and throws IllegalArgumentException if the geometry is not valid
        Specified by:
        validate in interface GeometryValidator