GEOS  3.13.0dev
UnionStrategy.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
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 
53  virtual std::unique_ptr<geom::Geometry> Union(std::unique_ptr<geom::Geometry> &&,
54  std::unique_ptr<geom::Geometry> &&);
55 
65  virtual bool isFloatingPrecision() const = 0;
66 
67 
68 };
69 
70 } // namespace geos::operation::geounion
71 } // namespace geos::operation
72 } // namespace geos
73 
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
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: Angle.h:25