if (geom.contains(testRect)) { return getSolidTile(); } else if (geom.disjoint(testRect)) { return getBlankTile(); } else {
protected SpatialRelation relate(Geometry oGeom) { //see http://docs.geotools.org/latest/userguide/library/jts/dim9.html#preparedgeometry if (oGeom instanceof com.vividsolutions.jts.geom.Point) { if (preparedGeometry != null) return preparedGeometry.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS; return geom.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS; } if (preparedGeometry == null) return intersectionMatrixToSpatialRelation(geom.relate(oGeom)); else if (preparedGeometry.covers(oGeom)) return SpatialRelation.CONTAINS; else if (preparedGeometry.coveredBy(oGeom)) return SpatialRelation.WITHIN; else if (preparedGeometry.intersects(oGeom)) return SpatialRelation.INTERSECTS; return SpatialRelation.DISJOINT; }
if (prepared.disjoint(sample.location)) { continue;
protected SpatialRelation relate(Geometry oGeom) { //see http://docs.geotools.org/latest/userguide/library/jts/dim9.html#preparedgeometry if (oGeom instanceof com.vividsolutions.jts.geom.Point) { if (preparedGeometry != null) return preparedGeometry.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS; return geom.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS; } if (preparedGeometry == null) return intersectionMatrixToSpatialRelation(geom.relate(oGeom)); else if (preparedGeometry.covers(oGeom)) return SpatialRelation.CONTAINS; else if (preparedGeometry.coveredBy(oGeom)) return SpatialRelation.WITHIN; else if (preparedGeometry.intersects(oGeom)) return SpatialRelation.INTERSECTS; return SpatialRelation.DISJOINT; }
for (int i = 0; i < poly.getNumInteriorRing(); i++) { LinearRing hole = (LinearRing) poly.getInteriorRingN(i); if (prepared.disjoint(hole)) { continue;
part.getEnvelopeInternal()).iterator(); iter.hasNext();) { NearFeature sample = iter.next(); if (sample.id.equals(id) || prepared.disjoint(sample.location)) { continue;
part.getEnvelopeInternal()).iterator(); iter.hasNext();) { NearFeature sample = iter.next(); if (sample.id.equals(id) || prepared.disjoint(sample.location)) { continue;
source.getEnvelopeInternal()).iterator(); iter.hasNext();) { NearFeature sample = iter.next(); if (sample.id.equals(id) || prepared.disjoint(sample.location)) { continue;
if (praparedGeom.disjoint(triangle)) { continue; } else {
Geometry finalVoronoi = voronoiPolygon; if (praparedGeom.disjoint(voronoiPolygon)) { continue; } else if (!praparedGeom.contains(voronoiPolygon)) {