Class TileClipper

java.lang.Object
org.oscim.utils.geom.TileClipper

public class TileClipper extends Object
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 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

      public boolean clip(GeometryBuffer geom)