Class GeometryBoxDeleter
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.geom.GeometryBoxDeleter
-
public class GeometryBoxDeleter extends Object
Deletes vertices or components from a geometry which lie inside a given box. If the box completely contains one or more components (including polygon holes), those components are deleted and the operation stops. Otherwise if the box contains a subset of vertices from a component, those vertices are deleted. When deleting vertices only one component of the geometry is modified (the first one found which has vertices in the box).- Author:
- Martin Davis
-
-
Constructor Summary
Constructors Constructor Description GeometryBoxDeleter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Geometry
deleteComponents(Geometry geom, Envelope env, boolean deleteIntersecting)
static Geometry
deleteComponentsAndVertices(Geometry geom, Envelope env)
static Geometry
deleteComponentsAndVertices(Geometry geom, Envelope env, boolean deleteIntersectingComponents)
static Geometry
deleteVertices(Geometry geom, Envelope env)
-
-
-
Method Detail
-
deleteComponentsAndVertices
public static Geometry deleteComponentsAndVertices(Geometry geom, Envelope env)
-
deleteComponentsAndVertices
public static Geometry deleteComponentsAndVertices(Geometry geom, Envelope env, boolean deleteIntersectingComponents)
-
deleteComponents
public static Geometry deleteComponents(Geometry geom, Envelope env, boolean deleteIntersecting)
-
-