A class that converts a TerraLib geometry to a GEOS geometry.
More...
#include <GEOSWriter.h>
A class that converts a TerraLib geometry to a GEOS geometry.
- See also
- GEOSReader
Definition at line 80 of file GEOSWriter.h.
◆ getCoordinateSequence()
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
-
teLine | The TerraLib line string to be used to create the GEOS coordinate sequence. |
- Returns
- A GEOS coordinate sequence. The caller will take its ownership.
◆ getGeometries()
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
-
teGeomColl | The TerraLib line string to be used to create the GEOS coordinate sequence. |
- Returns
- A vector of GEOS geometry. The caller will take its ownership.
◆ write() [1/11]
static geos::geom::Envelope * te::gm::GEOSWriter::write |
( |
const Envelope * |
teEnv | ) |
|
|
static |
It converts the TerraLib Geometry Envelope to a GEOS Envelope.
- Parameters
-
- Returns
- A GEOS Envelope geometry. The client will take its ownership.
- Exceptions
-
It | throws an exception if a conversion is not possible. |
◆ write() [2/11]
static geos::geom::Geometry * te::gm::GEOSWriter::write |
( |
const Geometry * |
teGeom | ) |
|
|
static |
It reads a TerraLib geometry and make a GEOS geometry.
- Parameters
-
teGeom | The TerraLib geometry to be used to create the GEOS geometry. |
- Returns
- A GEOS geometry. The client will take its ownership.
- Exceptions
-
It | throws an exception if a conversion is not possible. |
◆ write() [3/11]
static geos::geom::GeometryCollection * te::gm::GEOSWriter::write |
( |
const GeometryCollection * |
teGeomColl | ) |
|
|
static |
It converts the TerraLib geometry collection to a GEOS geometry collection.
- Parameters
-
teGeomColl | The TerraLib geometry collection to be used to create the GEOS geometry collection. |
- Returns
- A GEOS geometry collection. The client will take its ownership.
- Exceptions
-
It | throws an exception if a conversion is not possible. |
◆ write() [4/11]
static geos::geom::LineSegment * te::gm::GEOSWriter::write |
( |
const Line * |
teLine | ) |
|
|
static |
◆ write() [5/11]
static geos::geom::LinearRing * te::gm::GEOSWriter::write |
( |
const LinearRing * |
teRing | ) |
|
|
static |
It converts the TerraLib linear ring to a GEOS linear ring.
- Parameters
-
teRing | The 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
-
It | throws an exception if a conversion is not possible. |
◆ write() [6/11]
static geos::geom::LineString * te::gm::GEOSWriter::write |
( |
const LineString * |
teLine | ) |
|
|
static |
It converts the TerraLib line string to a GEOS line string.
- Parameters
-
teLine | The 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
-
It | throws an exception if a conversion is not possible. |
◆ write() [7/11]
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
-
teMLine | The 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
-
It | throws an exception if a conversion is not possible. |
◆ write() [8/11]
static geos::geom::MultiPoint * te::gm::GEOSWriter::write |
( |
const MultiPoint * |
teMPt | ) |
|
|
static |
It converts the TerraLib multi point to a GEOS multi point.
- Parameters
-
teMPt | The 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
-
It | throws an exception if a conversion is not possible. |
◆ write() [9/11]
static geos::geom::MultiPolygon * te::gm::GEOSWriter::write |
( |
const MultiPolygon * |
teMPoly | ) |
|
|
static |
It converts the TerraLib multi polygon to a GEOS multi polygon.
- Parameters
-
teMPoly | The 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
-
It | throws an exception if a conversion is not possible. |
◆ write() [10/11]
static geos::geom::Point * te::gm::GEOSWriter::write |
( |
const Point * |
tePt | ) |
|
|
static |
It converts the TerraLib point to a GEOS point.
- Parameters
-
tePt | The TerraLib point to be used to create the GEOS point. |
- Returns
- A GEOS point geometry. The client will take it ownership.
- Exceptions
-
It | throws an exception if a conversion is not possible. |
◆ write() [11/11]
static geos::geom::Polygon * te::gm::GEOSWriter::write |
( |
const Polygon * |
tePoly | ) |
|
|
static |
It converts the TerraLib polygon to a GEOS polygon.
- Parameters
-
tePoly | The TerraLib polygon to be used to create the GEOS polygon. |
- Returns
- A GEOS polygon geometry. The client will take its ownership.
- Exceptions
-
It | throws an exception if a conversion is not possible. |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/geometry/GEOSWriter.h