GeometryFactory gf = g.getFactory(); CoordinateSequenceFactory csf = gf.getCoordinateSequenceFactory(); Polygon fence = gf.createPolygon(buildBoundsString(gf, csf), null); return g.intersection(fence); } else {
GeometryFactory gf = g.getFactory(); CoordinateSequenceFactory csf = gf.getCoordinateSequenceFactory(); return g.intersection(gf.createPolygon(buildBoundsString(gf, csf), null)); } else { return clipPolygon((Polygon) g);