GEOS 3.6.2
PointGeometryUnion.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: operation/union/PointGeometryUnion.java r320 (JTS-1.12)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_OP_UNION_POINTGEOMETRYUNION_H
20#define GEOS_OP_UNION_POINTGEOMETRYUNION_H
21#include <geos/export.h>
22
23#include <vector>
24#include <algorithm>
25
26// Forward declarations
27namespace geos {
28 namespace geom {
29 class GeometryFactory;
30 class Geometry;
31 class Puntal;
32 }
33}
34
35namespace geos {
36namespace operation { // geos::operation
37namespace geounion { // geos::operation::geounion
38
47class GEOS_DLL PointGeometryUnion
48{
49public:
50
51 static std::auto_ptr<geom::Geometry> Union(
52 const geom::Puntal& pointGeom,
53 const geom::Geometry& otherGeom);
54
55
56 PointGeometryUnion(const geom::Puntal& pointGeom,
57 const geom::Geometry& otherGeom);
58
59 std::auto_ptr<geom::Geometry> Union() const;
60
61private:
62 const geom::Geometry& pointGeom;
63 const geom::Geometry& otherGeom;
64 const geom::GeometryFactory* geomFact;
65
66 // Declared as non-copyable
67 PointGeometryUnion(const PointGeometryUnion& other);
68 PointGeometryUnion& operator=(const PointGeometryUnion& rhs);
69};
70
71} // namespace geos::operation::union
72} // namespace geos::operation
73} // namespace geos
74
75#endif
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:67
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Definition Puntal.h:38
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25