A class containing helper methods to make overlay algorithms more robust and safer to execute when dealing with invalid geometries. \description When some exception is thrown during the execution of the basic overlay algorithms, this class will handle it, try to make the geoemtries valid, and try again. More...
#include <SafeOverlay.h>
Public Member Functions | |
SafeOverlay ()=delete | |
< Constructor | |
~SafeOverlay ()=delete | |
Tries to clip the geometry. If an exception is thrown, it tries to make the geometry valid and retry again. | |
Static Public Member Functions | |
static te::gm::Geometry * | ClipGeometry (const te::gm::Geometry *geometry, const te::gm::Envelope &envelope) |
Tries to make the difference. If an exception is thrown, it tries to make the geometry valid and retry again. | |
static te::gm::GeometryPtr | Difference (const te::gm::Geometry *g1, const te::gm::Geometry *g2) |
Tries to make the intersection. If an exception is thrown, it tries to make the geometry valid and retry again. | |
static te::gm::GeometryPtr | Intersection (const te::gm::Geometry *g1, const te::gm::Geometry *g2) |
Tries to make the geometry pair valid. If it is unable to do that, it will throw an exception. | |
static std::unique_ptr< te::gm::GeometryPair > | MakeValid (const te::gm::Geometry *g1, const te::gm::Geometry *g2) |
A class containing helper methods to make overlay algorithms more robust and safer to execute when dealing with invalid geometries. \description When some exception is thrown during the execution of the basic overlay algorithms, this class will handle it, try to make the geoemtries valid, and try again.
Definition at line 53 of file SafeOverlay.h.
|
delete |
< Constructor
Destructor
|
delete |
Tries to clip the geometry. If an exception is thrown, it tries to make the geometry valid and retry again.
|
static |
Tries to make the difference. If an exception is thrown, it tries to make the geometry valid and retry again.
|
static |
Tries to make the intersection. If an exception is thrown, it tries to make the geometry valid and retry again.
|
static |
Tries to make the geometry pair valid. If it is unable to do that, it will throw an exception.
|
static |