bool PreparedPoint::intersects(const geom::Geometry* g) { if (! envelopesIntersect( g)) return false; // This avoids computing topology for the test geometry return isAnyTargetComponentInTest( g); }
bool PreparedPoint::intersects(const geom::Geometry* g) const { if (! envelopesIntersect( g)) return false; const Point *pt_geom = dynamic_cast<const Point *>(g); if (pt_geom) return getGeometry().equals(g); // This avoids computing topology for the test geometry return isAnyTargetComponentInTest( g); }