Package org.oscim.utils.geom
Class TileClipper
java.lang.Object
org.oscim.utils.geom.TileClipper
Clip polygons and lines to a rectangle. Output cannot expected to be valid
Simple-Feature geometry, i.e. all polygon rings are clipped independently
so that inner and outer rings might touch, etc.
based on http://www.cs.rit.edu/~icss571/clipTrans/PolyClipBack.html
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclip(GeometryBuffer geom) voidsetRect(float xmin, float ymin, float xmax, float ymax)
-
Constructor Details
-
TileClipper
public TileClipper(float xmin, float ymin, float xmax, float ymax)
-
-
Method Details
-
setRect
public void setRect(float xmin, float ymin, float xmax, float ymax) -
clip
-