90 static std::unique_ptr<geom::Geometry>
98 static std::unique_ptr<geom::Geometry>
106 static std::unique_ptr<geom::Geometry>
115 : geomFact(&geomFactIn)
116 , unionFunction(&defaultUnionFunction)
124 , unionFunction(&defaultUnionFunction)
131 , unionFunction(&defaultUnionFunction)
138 unionFunction = unionFun;
151 std::unique_ptr<geom::Geometry>
Union();
155 template <
typename T>
157 extractGeoms(
const T& geoms)
159 for(
typename T::const_iterator
172 using namespace geom::util;
178 GeometryExtracter::extract<geom::Polygon>(geom, polygons);
179 GeometryExtracter::extract<geom::LineString>(geom, lines);
180 GeometryExtracter::extract<geom::Point>(geom, points);
195 std::unique_ptr<geom::Geometry>
196 unionNoOpt(
const geom::Geometry& g0)
201 return unionFunction->Union(&g0, empty.get());
213 std::unique_ptr<geom::Geometry> unionWithNull(
214 std::unique_ptr<geom::Geometry> g0,
215 std::unique_ptr<geom::Geometry> g1
219 std::vector<const geom::Polygon*> polygons;
220 std::vector<const geom::LineString*> lines;
221 std::vector<const geom::Point*> points;
223 const geom::GeometryFactory* geomFact;
224 std::unique_ptr<geom::Geometry> empty;
226 UnionStrategy* unionFunction;
227 ClassicUnionStrategy defaultUnionFunction;
const GeometryFactory * getFactory() const
Gets the factory which contains the context in which this geometry was created.
Definition Geometry.h:216