![]()  | 
  
    Isis Developer Reference
    
   | 
 
This class models GIS topology. More...
#include <GisTopology.h>

Public Types | |
| enum | Disposition { DestroyGeometry , PreserveGeometry } | 
| Enumeration to indicate whether the geometry should be preserved.  More... | |
Public Member Functions | |
| GEOSGeometry * | geomFromWKB (const QString &wkb) | 
| Reads in the geometry from the given well-known binary formatted string.   | |
| GEOSGeometry * | geomFromWKT (const QString &wkt) | 
| Reads in the geometry from the given well-known text formatted string.   | |
| GEOSGeometry * | clone (const GEOSGeometry *geom) const | 
| Clones the given GEOSGeometry pointer.   | |
| const GEOSPreparedGeometry * | preparedGeometry (const GEOSGeometry *geom) const | 
| Gets a GEOSPreparedGeometry from the given GEOSGeometry.   | |
| QString | wkb (const GEOSGeometry *geom, const Disposition &disp=PreserveGeometry) | 
| Writes a well-known binary string from the given geometry.   | |
| QString | wkt (const GEOSGeometry *geom, const Disposition &disp=PreserveGeometry) | 
| Writes a well-known text string from the given geometry.   | |
| void | destroy (GEOSGeometry *geom) const | 
| Destroys the given GEOS geometry.   | |
| void | destroy (const GEOSGeometry *geom) const | 
| Destroys the given GEOS geometry.   | |
| void | destroy (const GEOSPreparedGeometry *ppgeom) const | 
| Destroys the given prepared GEOS geometry.   | |
| void | destroy (GEOSCoordSequence *sequence) const | 
| Destroys the given GEOS coordinate sequence.   | |
| void | destroy (const unsigned char *geos_text) const | 
| Destroys the given unsigned GEOS text geometry representation.   | |
| void | destroy (const char *geos_text) const | 
| Destroys the given GEOS text geometry representation.   | |
Static Public Member Functions | |
| static GisTopology * | instance () | 
| Gets the singleton instance of this class.   | |
This class models GIS topology.
This class allows us to create GEOS geometries from well-known binary (WKB) strings or well-known text (WKT) strings. It also allows us to create WKB or WKT strings from a GEOS geometry.
| GEOSGeometry * Isis::GisTopology::clone | ( | const GEOSGeometry * | geom | ) | const | 
Clones the given GEOSGeometry pointer.
| geom | A pointer to the GEOSGeometry object to be cloned. | 
| void Isis::GisTopology::destroy | ( | const char * | geos_text | ) | const | 
Destroys the given GEOS text geometry representation.
| geos_text | A pointer to the GEOS text char to be destroyed. | 
| void Isis::GisTopology::destroy | ( | const GEOSGeometry * | geom | ) | const | 
Destroys the given GEOS geometry.
| geom | A pointer to the GEOSGeometry to be destroyed. | 
| void Isis::GisTopology::destroy | ( | const GEOSPreparedGeometry * | geom | ) | const | 
Destroys the given prepared GEOS geometry.
| geom | A pointer to the GEOSPreparedGeometry to be destroyed. | 
| void Isis::GisTopology::destroy | ( | const unsigned char * | geos_text | ) | const | 
Destroys the given unsigned GEOS text geometry representation.
| geos_text | A pointer to the GEOS text char to be destroyed. | 
| void Isis::GisTopology::destroy | ( | GEOSCoordSequence * | sequence | ) | const | 
Destroys the given GEOS coordinate sequence.
| sequence | A pointer to the GEOSCoordSequence to be destroyed. | 
| void Isis::GisTopology::destroy | ( | GEOSGeometry * | geom | ) | const | 
Destroys the given GEOS geometry.
| geom | A pointer to the GEOSGeometry to be destroyed. | 
| GEOSGeometry * Isis::GisTopology::geomFromWKB | ( | const QString & | wkb | ) | 
Reads in the geometry from the given well-known binary formatted string.
| wkb | The well-known binary formatted string containing the geometry information to be parsed. | 
| IException::Programmer | "Unable convert the given well-known binary to a GEOSGeometry. | 
References _FILEINFO_.
| GEOSGeometry * Isis::GisTopology::geomFromWKT | ( | const QString & | wkt | ) | 
Reads in the geometry from the given well-known text formatted string.
| wkt | The well-known text formatted string containing the geometry information to be parsed. | 
| IException::Programmer | "Unable convert the given well-known text to a GEOSGeometry. | 
References _FILEINFO_.
      
  | 
  static | 
Gets the singleton instance of this class.
If it has not been instantiated yet, the default constructor is called.
Referenced by Isis::GisGeometry::centroid(), Isis::GisGeometry::clone(), Isis::GisGeometry::GisGeometry(), Isis::GisGeometry::GisGeometry(), Isis::GisGeometry::GisGeometry(), Isis::GisGeometry::GisGeometry(), Isis::GisGeometry::GisGeometry(), Isis::GisGeometry::GisGeometry(), Isis::GisGeometry::isValidReason(), and Isis::GisGeometry::operator=().
| const GEOSPreparedGeometry * Isis::GisTopology::preparedGeometry | ( | const GEOSGeometry * | geom | ) | const | 
Gets a GEOSPreparedGeometry from the given GEOSGeometry.
| geom | A pointer to a GEOSGeometry object to be converted. | 
| IException::Programmer | "Unable to convert the given GEOSGeometry to a GEOSPreparedGeometry." | 
References _FILEINFO_.
| QString Isis::GisTopology::wkb | ( | const GEOSGeometry * | geom, | 
| const Disposition & | disp = PreserveGeometry ) | 
Writes a well-known binary string from the given geometry.
This method will destroy the given GEOSGeometry pointer if so indicated by the given Disposition enumeration.
| geom | A pointer to the geometry to be represented as a WKT string | 
| disp | A reference to a topology disposition enumeration indicating whether to preserve or destroy the passed in geometry. | 
| QString Isis::GisTopology::wkt | ( | const GEOSGeometry * | geom, | 
| const Disposition & | disp = PreserveGeometry ) | 
Writes a well-known text string from the given geometry.
This method will destroy the given GEOSGeometry pointer if so indicated by the given Disposition enumeration.
| geom | A pointer to the geometry to be represented as a WKT string | 
| disp | A reference to a topology disposition enumeration indicating whether to preserve or destroy the passed in geometry. |