Module org.elasticsearch.geo
Package org.elasticsearch.geometry.simplify
package org.elasticsearch.geometry.simplify
-
ClassDescriptionGeometrySimplifier<T extends Geometry>The geometry simplifier can simplify any geometry, and does so by internally making use of the StreamingGeometrySimplifier, to minimize memory usages.This class wraps a collection of other simplifiers.GeometrySimplifier.Identity<G extends Geometry>This simplifier simply returns the original geometry unsimplified.This behaves the same as the Line simplifier except that it assumes the first and last point are the same point.Simplifies a Line geometry to the specified maximum number of points.This class wraps a collection of Polygon simplifiers.This class wraps a collection of LinearRing simplifiers for polygon holes.Estimate the error as the height of the point above the base, but including support for back-paths in the sense that of the point to be removed is father from either end than the height, we take that distance instead.Calculate the triangle area using cartesian coordinates as described at Area of a triangleThis record captures a point defined using a 3D vector (x, y, z)This 3D rotation matrix allows for rotating 3D vectors (eg.Estimate the error as the height of the point above the base, but including support for back-paths in the sense that of the point to be removed is father from either end than the height, we take that distance instead.Calculate the triangle area using geographic coordinates and Herons formula (side lengths) as described at Area of a triangleCalculate the triangle area using geographic coordinates and Herons formula (side lengths) as described at Area of a triangle, but scale the area down by the inverse of the length of the base (left-right), which estimates the height of the triangle.Math functions that trade off accuracy for speed.StreamingGeometrySimplifier<T extends Geometry>The streaming geometry simplifier can only simplify geometries composed on a single list of Points provided on a stream.This behaves the same as the
LineSimplifier
except that it assumes the first and last point are the same point.Simplifies a Line geometry to the specified maximum number of points.Implementation of this interface will receive calls with internal data at each step of the simplification algorithm.Override this method to use alternative objects within the algorithm.Each point on the geometry has an error estimate, which is a measure of how much error would be introduced to the geometry should this point be removed from the geometry.Override this method to use alternative objects within the algorithm.As with theLinearRingSimplifier
, this works similarly to theLineSimplifier
except that it assumes the and requires that first and last point are the same point.