Package org.locationtech.jtslab.clip
Class RectangleClipPolygon
- java.lang.Object
-
- org.locationtech.jtslab.clip.RectangleClipPolygon
-
public class RectangleClipPolygon extends Object
Clips polygonal geometry to a rectangle. This implementation is faster, more robust, and less sensitive to invalid input thanGeometry.intersection(Geometry). It can also enforce a supplied precision model on the computed result. The inputs do not have to meet the precision model. This allows clipping using integer coordinates in the output, for example.- Author:
- mdavis
-
-
Constructor Summary
Constructors Constructor Description RectangleClipPolygon(Envelope clipEnv)RectangleClipPolygon(Envelope clipEnv, PrecisionModel pm)RectangleClipPolygon(Geometry clipRectangle)RectangleClipPolygon(Geometry clipRectangle, PrecisionModel pm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometryclip(Geometry geom)static Geometryclip(Geometry geom, Geometry rectangle)static Geometryclip(Geometry geom, Geometry rectangle, PrecisionModel pm)GeometryclipCollection(Geometry geom)
-
-
-
Constructor Detail
-
RectangleClipPolygon
public RectangleClipPolygon(Envelope clipEnv)
-
RectangleClipPolygon
public RectangleClipPolygon(Geometry clipRectangle)
-
RectangleClipPolygon
public RectangleClipPolygon(Geometry clipRectangle, PrecisionModel pm)
-
RectangleClipPolygon
public RectangleClipPolygon(Envelope clipEnv, PrecisionModel pm)
-
-