TsGeometry Class Reference

Test suite for the Vector Geometry Model. More...

#include <TsGeometry.h>

Inheritance diagram for TsGeometry:

Classes

struct  WKBEntry
 

Public Member Functions

void setUp ()
 
void tearDown ()
 

Protected Member Functions

void tcAsText ()
 Test Case: Reading (binary) geometries and getting the WKT. More...
 
void tcBasicGeometryMethods ()
 Test Case: testing the basic geometry methods. More...
 
void tcCreateLineString ()
 Test Case: Creating a linestring object. More...
 
void tcCreateLineStringM ()
 Test Case: Creating a linestring with m value. More...
 
void tcCreateLineStringZ ()
 Test Case: Creating a linestring with z value. More...
 
void tcCreateLineStringZM ()
 Test Case: Creating a linestring with z and m value. More...
 
void tcCreatePoint ()
 Test Case: Creating a point object. More...
 
void tcCreatePointM ()
 Test Case: Creating a point with m value. More...
 
void tcCreatePointZ ()
 Test Case: Creating a point with z value. More...
 
void tcCreatePointZM ()
 Test Case: Creating a point with z and m value. More...
 
void tcCreatePolygon ()
 Test Case: Creating a polygon. More...
 
void tcCreatePolygonM ()
 Test Case: Creating a polygon with M values. More...
 
void tcCreatePolygonZ ()
 Test Case: Creating a polygon with Z values. More...
 
void tcCreatePolygonZM ()
 Test Case: Creating a polygon with ZM values. More...
 
void tcMisc ()
 Test Case: Creating several type of objects and testing some basic methods. More...
 
void tcSpatialRelationsMethods ()
 Test Case: testing the basic geometry methods. More...
 
void tcTransform ()
 Test Case: Reading WKT geometries and conveting to another proj SRID. More...
 

Private Member Functions

 CPPUNIT_TEST (tcMisc)
 
 CPPUNIT_TEST (tcCreatePoint)
 
 CPPUNIT_TEST (tcCreatePointZ)
 
 CPPUNIT_TEST (tcCreatePointM)
 
 CPPUNIT_TEST (tcCreatePointZM)
 
 CPPUNIT_TEST (tcCreateLineString)
 
 CPPUNIT_TEST (tcCreateLineStringZ)
 
 CPPUNIT_TEST (tcCreateLineStringM)
 
 CPPUNIT_TEST (tcCreateLineStringZM)
 
 CPPUNIT_TEST (tcCreatePolygon)
 
 CPPUNIT_TEST (tcAsText)
 
 CPPUNIT_TEST (tcTransform)
 
 CPPUNIT_TEST (tcBasicGeometryMethods)
 
 CPPUNIT_TEST (tcSpatialRelationsMethods)
 
 CPPUNIT_TEST_SUITE (TsGeometry)
 
 CPPUNIT_TEST_SUITE_END ()
 
void loadGeometry (std::vector< WKBEntry > &hwkbVec) const
 Auxiliary method for reading geometry information from an ASCII file. More...
 

Detailed Description

Test suite for the Vector Geometry Model.

This test suite will check the following:

  • PostGIS Extended-WKB reading and writing;
  • Official OGC WKB reading/writing;
  • Spatial Operators;
  • Re-projection (transformation of SRS);

Definition at line 49 of file TsGeometry.h.

Member Function Documentation

TsGeometry::CPPUNIT_TEST ( tcMisc  )
private
TsGeometry::CPPUNIT_TEST ( tcCreatePoint  )
private
TsGeometry::CPPUNIT_TEST ( tcCreatePointZ  )
private
TsGeometry::CPPUNIT_TEST ( tcCreatePointM  )
private
TsGeometry::CPPUNIT_TEST ( tcCreatePointZM  )
private
TsGeometry::CPPUNIT_TEST ( tcCreateLineString  )
private
TsGeometry::CPPUNIT_TEST ( tcCreateLineStringZ  )
private
TsGeometry::CPPUNIT_TEST ( tcCreateLineStringM  )
private
TsGeometry::CPPUNIT_TEST ( tcCreateLineStringZM  )
private
TsGeometry::CPPUNIT_TEST ( tcCreatePolygon  )
private
TsGeometry::CPPUNIT_TEST ( tcAsText  )
private
TsGeometry::CPPUNIT_TEST ( tcTransform  )
private
TsGeometry::CPPUNIT_TEST ( tcBasicGeometryMethods  )
private
TsGeometry::CPPUNIT_TEST ( tcSpatialRelationsMethods  )
private
TsGeometry::CPPUNIT_TEST_SUITE ( TsGeometry  )
private
TsGeometry::CPPUNIT_TEST_SUITE_END ( )
private
void TsGeometry::loadGeometry ( std::vector< WKBEntry > &  hwkbVec) const
private
void TsGeometry::setUp ( )

Definition at line 39 of file TsGeometry.cpp.

void TsGeometry::tcAsText ( )
protected

Test Case: Reading (binary) geometries and getting the WKT.

Definition at line 1280 of file TsGeometry.cpp.

References te::common::Convert2LCase(), loadGeometry(), TsGeometry::WKBEntry::m_srid, TsGeometry::WKBEntry::m_wkt, and te::gm::WKTReader::read().

void TsGeometry::tcCreatePolygonM ( )
protected

Test Case: Creating a polygon with M values.

Definition at line 1231 of file TsGeometry.cpp.

void TsGeometry::tcCreatePolygonZ ( )
protected

Test Case: Creating a polygon with Z values.

Definition at line 1225 of file TsGeometry.cpp.

void TsGeometry::tcCreatePolygonZM ( )
protected

Test Case: Creating a polygon with ZM values.

Definition at line 1237 of file TsGeometry.cpp.

void TsGeometry::tcMisc ( )
protected

Test Case: Creating several type of objects and testing some basic methods.

Definition at line 47 of file TsGeometry.cpp.

References te::gm::A, te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::GeometryCollectionZMType, te::gm::GeometryCollectionZType, te::gm::Geometry::getCoordinateDimension(), te::gm::Surface::getDimension(), te::gm::MultiPoint::getDimension(), te::gm::GeometryCollection::getDimension(), te::gm::MultiCurve::getDimension(), te::gm::Curve::getDimension(), te::gm::MultiSurface::getDimension(), te::gm::Point::getDimension(), te::gm::TIN::getGeometryType(), te::gm::MultiLineString::getGeometryType(), te::gm::Polygon::getGeometryType(), te::gm::MultiPoint::getGeometryType(), te::gm::MultiPolygon::getGeometryType(), te::gm::GeometryCollection::getGeometryType(), te::gm::LineString::getGeometryType(), te::gm::Point::getGeometryType(), te::gm::PolyhedralSurface::getGeometryType(), te::gm::Geometry::getGeomTypeId(), te::gm::Geometry::getSRID(), te::gm::L, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::P, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, te::gm::PolyhedralSurfaceMType, te::gm::PolyhedralSurfaceType, te::gm::PolyhedralSurfaceZMType, te::gm::PolyhedralSurfaceZType, te::mnt::TIN, te::gm::TINMType, te::gm::TINType, te::gm::TINZMType, te::gm::TINZType, te::gm::TriangleMType, te::gm::TriangleType, te::gm::TriangleZMType, and te::gm::TriangleZType.

void TsGeometry::tcSpatialRelationsMethods ( )
protected

Test Case: testing the basic geometry methods.

Definition at line 1361 of file TsGeometry.cpp.

void TsGeometry::tcTransform ( )
protected

Test Case: Reading WKT geometries and conveting to another proj SRID.

Definition at line 1243 of file TsGeometry.cpp.

References te::common::Convert2LCase(), loadGeometry(), TsGeometry::WKBEntry::m_srid, TsGeometry::WKBEntry::m_wkt, and te::gm::WKTReader::read().

void TsGeometry::tearDown ( )

Definition at line 43 of file TsGeometry.cpp.


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