LineIntersectsVisitor(const geom::Polygon &rect) : rectangle(rect), rectEnv(*(rect.getEnvelopeInternal())), intersectsVar(false), rectSeq(*(rect.getExteriorRing()->getCoordinatesRO())) {}
ContainsPointVisitor(const geom::Polygon &rect) : rectEnv(*(rect.getEnvelopeInternal())), containsPointVar(false), rectSeq(*(rect.getExteriorRing()->getCoordinatesRO())) {}