PointGeometryUnion.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2011 Sandro Santilli <strk@kbt.io
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: operation/union/PointGeometryUnion.java r320 (JTS-1.12)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <vector>
#include <algorithm>
#include <memory>
// Forward declarations
namespace geos {
namespace geom {
class GeometryFactory;
class Geometry;
}
}
namespace geos {
namespace operation { // geos::operation
namespace geounion { // geos::operation::geounion
class GEOS_DLL PointGeometryUnion {
public:
static std::unique_ptr<geom::Geometry> Union(
const geom::Geometry& pointGeom,
const geom::Geometry& otherGeom);
PointGeometryUnion(const geom::Geometry& pointGeom,
const geom::Geometry& otherGeom);
std::unique_ptr<geom::Geometry> Union() const;
private:
const geom::Geometry& pointGeom;
const geom::Geometry& otherGeom;
const geom::GeometryFactory* geomFact;
// Declared as non-copyable
PointGeometryUnion(const PointGeometryUnion& other);
PointGeometryUnion& operator=(const PointGeometryUnion& rhs);
};
} // namespace geos::operation::union
} // namespace geos::operation
} // namespace geos
geos::geom::GeometryFactory
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:70
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom
Definition Angle.h:26
geos::operation::geounion
Classes to perform efficient unioning of collections of geometries.
Definition namespaces.h:286
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38