for (final Object o : spatialIndex.query(p
.getEnvelopeInternal())) {
SimpleFeature f = (SimpleFeature) o;
Geometry g = ((Geometry) f.getAttribute(geomName));
if (ppoly.intersects(g)) {
// logger.debug("***************************");
// logger.debug(p.toString());
// logger.debug(g.toString());
Geometry geom = p.intersection(g);
// logger.debug(geom.toString());