GEOS  3.9.1
UnionStrategy.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://trac.osgeo.org/geos
5  *
6  * Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
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 #pragma once
16 
17 #include <geos/export.h>
18 
19 #include <memory>
20 
21 
22 // Forward declarations
23 namespace geos {
24 namespace geom {
25 class Geometry;
26 }
27 }
28 
29 namespace geos {
30 namespace operation { // geos::operation
31 namespace geounion { // geos::operation::geounion
32 
40 class GEOS_DLL UnionStrategy {
41 
42 public:
43 
44  virtual ~UnionStrategy() {};
45 
51  virtual std::unique_ptr<geom::Geometry> Union(const geom::Geometry*, const geom::Geometry*) = 0;
52 
62  virtual bool isFloatingPrecision() const = 0;
63 
64 
65 };
66 
67 } // namespace geos::operation::geounion
68 } // namespace geos::operation
69 } // namespace geos
70 
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Definition: UnionStrategy.h:40
virtual bool isFloatingPrecision() const =0
virtual std::unique_ptr< geom::Geometry > Union(const geom::Geometry *, const geom::Geometry *)=0
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26