UnionStrategy.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <memory>
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
}
}
namespace geos {
namespace operation { // geos::operation
namespace geounion { // geos::operation::geounion
class GEOS_DLL UnionStrategy {
public:
virtual ~UnionStrategy() {};
virtual std::unique_ptr<geom::Geometry> Union(const geom::Geometry*, const geom::Geometry*) = 0;
virtual std::unique_ptr<geom::Geometry> Union(std::unique_ptr<geom::Geometry> &&,
std::unique_ptr<geom::Geometry> &&);
virtual bool isFloatingPrecision() const = 0;
};
} // namespace geos::operation::geounion
} // namespace geos::operation
} // namespace geos
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::operation::geounion::UnionStrategy
Definition UnionStrategy.h:40
geos::operation::geounion::UnionStrategy::isFloatingPrecision
virtual bool isFloatingPrecision() const =0
geos::operation::geounion::UnionStrategy::Union
virtual std::unique_ptr< geom::Geometry > Union(const geom::Geometry *, const geom::Geometry *)=0
geos::geom
Definition Angle.h:26
geos::operation::geounion
Classes to perform efficient unioning of collections of geometries.
Definition namespaces.h:286
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38