15#include <QSharedPointer>
65 GisGeometry(
const double xlongitude,
const double ylatitude);
67 GisGeometry(
const QString &gisSource,
const Type t);
80 static Type
type(
const QString >ype);
83 const GEOSGeometry *
geometry()
const;
110 bool centroid(
double &xlongitude,
double &ylatitude)
const;
113 GEOSGeometry *makePoint(
const double x,
const double y)
const;
114 GEOSGeometry *fromCube(
Cube &cube)
const;
115 GEOSPreparedGeometry
const *makePrepared(
const GEOSGeometry *geom)
const;
119 GEOSGeometry *m_geom;
120 GEOSPreparedGeometry
const *m_preparedGeom;
Q_DECLARE_METATYPE(Isis::SharedGisGeometry)
IO Handler for Isis Cubes.
Definition Cube.h:168
Encapsulation class provides support for GEOS-C API.
Definition GisGeometry.h:50
static QString typeToString(const Type &type)
Returns the type of the Geometry as a QString.
Definition GisGeometry.cpp:277
virtual ~GisGeometry()
Destructor.
Definition GisGeometry.cpp:151
double intersectRatio(const GisGeometry &geom) const
Computes intersect ratio between two geometries.
Definition GisGeometry.cpp:582
bool overlaps(const GisGeometry &target) const
Test for overlapping geometries.
Definition GisGeometry.cpp:531
GisGeometry * centroid() const
Computes the centroid of the geometry and returns it as a new geometry.
Definition GisGeometry.cpp:746
bool contains(const GisGeometry &target) const
Test if the target geometry is contained within this geometry.
Definition GisGeometry.cpp:478
double area() const
Computes the area of a geometry.
Definition GisGeometry.cpp:359
Type type() const
Returns the type (origin) of the geometry.
Definition GisGeometry.cpp:244
bool equals(const GisGeometry &target) const
Test if target and this geometry are equal.
Definition GisGeometry.cpp:557
bool disjoint(const GisGeometry &target) const
Tests for disjoint geometries.
Definition GisGeometry.cpp:504
bool intersects(const GisGeometry &target) const
Computes a new geometry from the intersection of the two geomtries.
Definition GisGeometry.cpp:451
GisGeometry * convexHull() const
Computes the convex hull of the geometry.
Definition GisGeometry.cpp:636
GisGeometry * g_union(const GisGeometry &geom) const
Computes the union of two geometries.
Definition GisGeometry.cpp:701
Type
Source type of the geometry.
Definition GisGeometry.h:56
@ IsisCube
An ISIS Cube is used to create the geometry.
Definition GisGeometry.h:60
@ GeosGis
GEOS GIS. A geometry object cannot be created with this geometry type.
Definition GisGeometry.h:61
@ None
No geometry. A geometry object cannot be created with this geometry type.
Definition GisGeometry.h:57
@ WKB
The GEOS library WKB reader is used to create the geometry.
Definition GisGeometry.h:59
@ WKT
The GEOS library WKT reader is used to create the geometry.
Definition GisGeometry.h:58
GisGeometry * clone() const
Clones the contents of this geometry to a new instance.
Definition GisGeometry.cpp:318
const GEOSGeometry * geometry() const
Returns the GEOSGeometry object to extend functionality.
Definition GisGeometry.cpp:291
GisGeometry & operator=(GisGeometry const &geom)
Assignment operator for GISGeomtries.
Definition GisGeometry.cpp:164
double distance(const GisGeometry &target) const
Computes the distance between two geometries.
Definition GisGeometry.cpp:406
double length() const
Computes the length of a geometry.
Definition GisGeometry.cpp:382
bool isValid() const
Determines validity of the geometry contained in this object.
Definition GisGeometry.cpp:213
const GEOSPreparedGeometry * preparedGeometry() const
Returns special GEOS prepared geometry if it exists.
Definition GisGeometry.cpp:305
void setGeometry(GEOSGeometry *geom)
Set the geometry directly taking ownership.
Definition GisGeometry.cpp:187
GisGeometry * envelope() const
Computes the envelope or bounding box of this geometry.
Definition GisGeometry.cpp:619
int points() const
Get number of points in geometry.
Definition GisGeometry.cpp:429
GisGeometry * simplify(const double &tolerance) const
Simplify complex or overdetermined geoemtry.
Definition GisGeometry.cpp:659
bool isDefined() const
Determines if the current geometry is valid.
Definition GisGeometry.cpp:200
bool isEmpty() const
Tests for a defined but empty geometry.
Definition GisGeometry.cpp:338
GisGeometry * intersection(const GisGeometry &geom) const
Computes the intersection of two geometries.
Definition GisGeometry.cpp:681
QString isValidReason() const
Returns a string describing reason for invalid geometry.
Definition GisGeometry.cpp:227
GisGeometry()
Fundamental constructor of an empty object.
Definition GisGeometry.cpp:33
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
QSharedPointer< GisGeometry > SharedGisGeometry
Definition for a SharedGisGeometry, a shared pointer to a GisGeometry.
Definition GisGeometry.h:125