GeometryExamples.h File Reference

A set of geometry examples. More...

#include <terralib_buildconfig.h>
#include <terralib/geometry.h>

Go to the source code of this file.

Functions

Geometry constructors methods.

Methods used to create differentes types of geometries.

te::gm::PointcreatePoint (const double &x, const double &y)
 
te::gm::PointcreatePointZ (const double &x, const double &y, const double &z)
 
te::gm::LineStringcreateLineString (const double &xi, const double &yi, const double &xf, const double &yf)
 
te::gm::LinearRingcreateSquare (const double &xc, const double &yc, const double &size)
 
te::gm::PolygoncreatePolygon ()
 
te::gm::PolygoncreatePolygonWithHole ()
 
te::gm::GeometryCollectioncreateGeometryCollection ()
 
Spatial relations methods.

Method used to calculate the spatial relation between geometries.

bool spatialRelation (te::gm::Geometry *g1, te::gm::Geometry *g2, te::gm::SpatialRelation relation)
 
Set operations methods.

Method used to execute set operations between geometries.

te::gm::Geometrydifference (te::gm::Geometry *g1, te::gm::Geometry *g2)
 
te::gm::Geometryintersection (te::gm::Geometry *g1, te::gm::Geometry *g2)
 
te::gm::GeometryUnion (te::gm::Geometry *g1, te::gm::Geometry *g2)
 
Wkt / Wkb manipulation methods.

Example methods that deal with Wkt and Wkb for geometries.

void readWkts (const std::string &filePath)
 

Detailed Description

A set of geometry examples.

Definition in file GeometryExamples.h.

Function Documentation

te::gm::LineString* createLineString ( const double &  xi,
const double &  yi,
const double &  xf,
const double &  yf 
)
te::gm::Point* createPoint ( const double &  x,
const double &  y 
)

Definition at line 6 of file GeometryConstructors.cpp.

References p.

Referenced by createGeometries(), and createGeometryCollection().

te::gm::Point* createPointZ ( const double &  x,
const double &  y,
const double &  z 
)
te::gm::Polygon* createPolygonWithHole ( )
te::gm::LinearRing* createSquare ( const double &  xc,
const double &  yc,
const double &  size 
)
te::gm::Geometry* intersection ( te::gm::Geometry g1,
te::gm::Geometry g2 
)
void readWkts ( const std::string &  filePath)

Definition at line 12 of file Wkt.cpp.

References te::gm::Geometry::asText(), te::gm::WKTReader::read(), and te::common::Exception::what().

Referenced by main().