An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
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. |
References clone().
Referenced by Isis::GisGeometry::clone(), clone(), Isis::GisGeometry::GisGeometry(), and Isis::GisGeometry::operator=().
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. |
References destroy().
void Isis::GisTopology::destroy | ( | const GEOSGeometry * | geom | ) | const |
Destroys the given GEOS geometry.
geom | A pointer to the GEOSGeometry to be destroyed. |
References destroy().
void Isis::GisTopology::destroy | ( | const GEOSPreparedGeometry * | geom | ) | const |
Destroys the given prepared GEOS geometry.
geom | A pointer to the GEOSPreparedGeometry to be destroyed. |
References destroy().
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. |
References destroy().
void Isis::GisTopology::destroy | ( | GEOSCoordSequence * | sequence | ) | const |
Destroys the given GEOS coordinate sequence.
sequence | A pointer to the GEOSCoordSequence to be destroyed. |
References destroy().
void Isis::GisTopology::destroy | ( | GEOSGeometry * | geom | ) | const |
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_, geomFromWKB(), Isis::IException::Programmer, and wkb().
Referenced by geomFromWKB(), and Isis::GisGeometry::GisGeometry().
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_, geomFromWKT(), Isis::IException::Programmer, and wkt().
Referenced by geomFromWKT(), and Isis::GisGeometry::GisGeometry().
|
static |
Gets the singleton instance of this class.
If it has not been instantiated yet, the default constructor is called.
References instance().
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(), instance(), 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_, preparedGeometry(), and Isis::IException::Programmer.
Referenced by preparedGeometry().
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. |
References destroy(), DestroyGeometry, and wkb().
Referenced by geomFromWKB(), and wkb().
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. |
References destroy(), DestroyGeometry, and wkt().
Referenced by geomFromWKT(), and wkt().