SetOperations.cpp
Go to the documentation of this file.
1 // Examples
2 #include "GeometryExamples.h"
3 
5 {
6  return g1->difference(g2);
7 }
8 
10 {
11  return g1->intersection(g2);
12 }
13 
15 {
16  return g1->Union(g2);
17 }
virtual Geometry * difference(const Geometry *const rhs) const _NOEXCEPT_OP(false)
It returns a geometric object that represents the point set difference with another geometry...
virtual Geometry * intersection(const Geometry *const rhs) const _NOEXCEPT_OP(false)
It returns a geometric object that represents the point set intersection with another geometry...
virtual Geometry * Union(const Geometry *const rhs) const _NOEXCEPT_OP(false)
It returns a geometric object that represents the point set union with another geometry.
te::gm::Geometry * intersection(te::gm::Geometry *g1, te::gm::Geometry *g2)
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
te::gm::Geometry * difference(te::gm::Geometry *g1, te::gm::Geometry *g2)
A set of geometry examples.
te::gm::Geometry * Union(te::gm::Geometry *g1, te::gm::Geometry *g2)