te::gm::GEOSWriter Class Reference

A class that converts a TerraLib geometry to a GEOS geometry. More...

#include <GEOSWriter.h>

Inheritance diagram for te::gm::GEOSWriter:
te::common::Static

Static Public Member Functions

static geos::geom::Geometry * write (const Geometry *teGeom)
 It reads a TerraLib geometry and make a GEOS geometry. More...
 
static geos::geom::Point * write (const Point *tePt)
 It converts the TerraLib point to a GEOS point. More...
 
static geos::geom::LineString * write (const LineString *teLine)
 It converts the TerraLib line string to a GEOS line string. More...
 
static geos::geom::LinearRing * write (const LinearRing *teRing)
 It converts the TerraLib linear ring to a GEOS linear ring. More...
 
static geos::geom::Polygon * write (const Polygon *tePoly)
 It converts the TerraLib polygon to a GEOS polygon. More...
 
static geos::geom::MultiPolygon * write (const MultiPolygon *teMPoly)
 It converts the TerraLib multi polygon to a GEOS multi polygon. More...
 
static geos::geom::MultiLineString * write (const MultiLineString *teMLine)
 It converts the TerraLib multi line string to a GEOS multi line string. More...
 
static geos::geom::MultiPoint * write (const MultiPoint *teMPt)
 It converts the TerraLib multi point to a GEOS multi point. More...
 
static geos::geom::Envelope * write (const Envelope *teEnv)
 It converts the TerraLib Geometry Envelope to a GEOS Envelope. More...
 
static geos::geom::LineSegment * write (const Line *teLine)
 
static geos::geom::GeometryCollection * write (const GeometryCollection *teGeomColl)
 It converts the TerraLib geometry collection to a GEOS geometry collection. More...
 

Static Protected Member Functions

static geos::geom::CoordinateSequence * getCoordinateSequence (const LineString *teLine)
 It creates a coordinate sequence from the input TerraLib line string (or TerraLib linear ring). More...
 
static std::vector< geos::geom::Geometry * > * getGeometries (const GeometryCollection *teGeomColl)
 It creates a vector of GEOS geometry from the input TerraLib geometry collection. More...
 

Detailed Description

A class that converts a TerraLib geometry to a GEOS geometry.

See also
GEOSReader

Definition at line 80 of file GEOSWriter.h.

Member Function Documentation

static geos::geom::CoordinateSequence* te::gm::GEOSWriter::getCoordinateSequence ( const LineString teLine)
staticprotected

It creates a coordinate sequence from the input TerraLib line string (or TerraLib linear ring).

Parameters
teLineThe TerraLib line string to be used to create the GEOS coordinate sequence.
Returns
A GEOS coordinate sequence. The caller will take its ownership.
static std::vector<geos::geom::Geometry*>* te::gm::GEOSWriter::getGeometries ( const GeometryCollection teGeomColl)
staticprotected

It creates a vector of GEOS geometry from the input TerraLib geometry collection.

Parameters
teGeomCollThe TerraLib line string to be used to create the GEOS coordinate sequence.
Returns
A vector of GEOS geometry. The caller will take its ownership.
static geos::geom::Geometry* te::gm::GEOSWriter::write ( const Geometry teGeom)
static

It reads a TerraLib geometry and make a GEOS geometry.

Parameters
teGeomThe TerraLib geometry to be used to create the GEOS geometry.
Returns
A GEOS geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::Point* te::gm::GEOSWriter::write ( const Point tePt)
static

It converts the TerraLib point to a GEOS point.

Parameters
tePtThe TerraLib point to be used to create the GEOS point.
Returns
A GEOS point geometry. The client will take it ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::LineString* te::gm::GEOSWriter::write ( const LineString teLine)
static

It converts the TerraLib line string to a GEOS line string.

Parameters
teLineThe TerraLib line string to be used to create the GEOS line string.
Returns
A GEOS line string geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::LinearRing* te::gm::GEOSWriter::write ( const LinearRing teRing)
static

It converts the TerraLib linear ring to a GEOS linear ring.

Parameters
teRingThe TerraLib linear ring to be used to create the GEOS linear ring.
Returns
A GEOS linear ring geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::Polygon* te::gm::GEOSWriter::write ( const Polygon tePoly)
static

It converts the TerraLib polygon to a GEOS polygon.

Parameters
tePolyThe TerraLib polygon to be used to create the GEOS polygon.
Returns
A GEOS polygon geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::MultiPolygon* te::gm::GEOSWriter::write ( const MultiPolygon teMPoly)
static

It converts the TerraLib multi polygon to a GEOS multi polygon.

Parameters
teMPolyThe TerraLib multi polygon to be used to create the GEOS multi polygon.
Returns
A GEOS multi polygon geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::MultiLineString* te::gm::GEOSWriter::write ( const MultiLineString teMLine)
static

It converts the TerraLib multi line string to a GEOS multi line string.

Parameters
teMLineThe TerraLib multi line string to be used to create the GEOS multi line string.
Returns
A GEOS multi line string geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::MultiPoint* te::gm::GEOSWriter::write ( const MultiPoint teMPt)
static

It converts the TerraLib multi point to a GEOS multi point.

Parameters
teMPtThe TerraLib multi point to be used to create the GEOS multi point.
Returns
A GEOS multi point geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::Envelope* te::gm::GEOSWriter::write ( const Envelope teEnv)
static

It converts the TerraLib Geometry Envelope to a GEOS Envelope.

Parameters
teEnvThe TerraLib Envelope to be used to create the GEOS Envelope.
Returns
A GEOS Envelope geometry. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.
static geos::geom::LineSegment* te::gm::GEOSWriter::write ( const Line teLine)
static
static geos::geom::GeometryCollection* te::gm::GEOSWriter::write ( const GeometryCollection teGeomColl)
static

It converts the TerraLib geometry collection to a GEOS geometry collection.

Parameters
teGeomCollThe TerraLib geometry collection to be used to create the GEOS geometry collection.
Returns
A GEOS geometry collection. The client will take its ownership.
Exceptions
Itthrows an exception if a conversion is not possible.

The documentation for this class was generated from the following file: