GEOS: PointGeometryUnion.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

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
27 namespace geos {
28 namespace geom {
29 class GeometryFactory;
30 class Geometry;
31 class Puntal;
32 }
33 }
34
35 namespace geos {
36 namespace operation { // geos::operation
37 namespace geounion { // geos::operation::geounion
38
47 class GEOS_DLL PointGeometryUnion
48 {
49 public:
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
61 private:
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
geos::geom::Puntal
Definition: Puntal.h:32
geos::operation::geounion::PointGeometryUnion
Computes the union of a Puntal geometry with another arbitrary Geometry.
Definition: PointGeometryUnion.h:47
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
geos::geom::GeometryFactory
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25