public class RectangleClipPolygon extends Object
Geometry.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.| Constructor and Description |
|---|
RectangleClipPolygon(org.locationtech.jts.geom.Envelope clipEnv) |
RectangleClipPolygon(org.locationtech.jts.geom.Envelope clipEnv,
org.locationtech.jts.geom.PrecisionModel pm) |
RectangleClipPolygon(org.locationtech.jts.geom.Geometry clipRectangle) |
RectangleClipPolygon(org.locationtech.jts.geom.Geometry clipRectangle,
org.locationtech.jts.geom.PrecisionModel pm) |
| Modifier and Type | Method and Description |
|---|---|
org.locationtech.jts.geom.Geometry |
clip(org.locationtech.jts.geom.Geometry geom) |
static org.locationtech.jts.geom.Geometry |
clip(org.locationtech.jts.geom.Geometry geom,
org.locationtech.jts.geom.Geometry rectangle) |
static org.locationtech.jts.geom.Geometry |
clip(org.locationtech.jts.geom.Geometry geom,
org.locationtech.jts.geom.Geometry rectangle,
org.locationtech.jts.geom.PrecisionModel pm) |
org.locationtech.jts.geom.Geometry |
clipCollection(org.locationtech.jts.geom.Geometry geom) |
public RectangleClipPolygon(org.locationtech.jts.geom.Envelope clipEnv)
public RectangleClipPolygon(org.locationtech.jts.geom.Geometry clipRectangle)
public RectangleClipPolygon(org.locationtech.jts.geom.Geometry clipRectangle,
org.locationtech.jts.geom.PrecisionModel pm)
public RectangleClipPolygon(org.locationtech.jts.geom.Envelope clipEnv,
org.locationtech.jts.geom.PrecisionModel pm)
public static org.locationtech.jts.geom.Geometry clip(org.locationtech.jts.geom.Geometry geom,
org.locationtech.jts.geom.Geometry rectangle)
public static org.locationtech.jts.geom.Geometry clip(org.locationtech.jts.geom.Geometry geom,
org.locationtech.jts.geom.Geometry rectangle,
org.locationtech.jts.geom.PrecisionModel pm)
public org.locationtech.jts.geom.Geometry clip(org.locationtech.jts.geom.Geometry geom)
public org.locationtech.jts.geom.Geometry clipCollection(org.locationtech.jts.geom.Geometry geom)
Copyright © 2021. All rights reserved.