GEOS 3.11.1
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
23namespace geos {
24namespace geom {
25class Geometry;
26}
27}
28
29namespace geos {
30namespace operation { // geos::operation
31namespace geounion { // geos::operation::geounion
32
40class GEOS_DLL UnionStrategy {
41
42public:
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: geos.h:39