Skip to content
Permalink
Browse files

missed python binding to additional GEOS operators

git-svn-id: http://svn.osgeo.org/qgis/trunk@13372 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 24, 2010
1 parent 62defb7 commit 7e2a10126fe60f4dd7bbf6be30bb3498f49cc463
Showing with 33 additions and 3 deletions.
  1. +31 −2 python/core/qgsgeometry.sip
  2. +1 −1 src/core/qgsgeometry.h
  3. +1 −0 src/plugins/spatialquery/CMakeLists.txt
@@ -100,6 +100,11 @@ class QgsGeometry
*/
bool isGeosValid();

/** check if geometry is empty using GEOS
@note added in 1.5
*/
bool isGeosEmpty();

/**
Set the geometry, feeding in a geometry in GEOS format.
*/
@@ -239,10 +244,34 @@ not disjoint with existing polygons of the feature*/
/** Test for containment of a point (uses GEOS) */
bool contains(QgsPoint* p);

/** Test for containment with a geometry (uses GEOS)
* @note added in 1.5 */
/** Test for if geometry is contained in an other (uses GEOS)
* @note added in 1.5 */
bool contains( QgsGeometry* geometry );

/** Test for if geometry is disjoint of an other (uses GEOS)
* @note added in 1.5 */
bool disjoint( QgsGeometry* geometry );

/** Test for if geometry equals an other (uses GEOS)
* @note added in 1.5 */
bool equals( QgsGeometry* geometry );

/** Test for if geometry touch an other (uses GEOS)
* @note added in 1.5 */
bool touches( QgsGeometry* geometry );

/** Test for if geometry overlaps an other (uses GEOS)
* @note added in 1.5 */
bool overlaps( QgsGeometry* geometry );

/** Test for if geometry is within an other (uses GEOS)
* @note added in 1.5 */
bool within( QgsGeometry* geometry );

/** Test for if geometry crosses an other (uses GEOS)
* @note added in 1.5 */
bool crosses( QgsGeometry* geometry );

/** Returns a buffer region around this geometry having the given width and with a specified number
of segments used to approximate curves */
QgsGeometry* buffer(double distance, int segments) /Factory/;
@@ -288,7 +288,7 @@ class CORE_EXPORT QgsGeometry
/** Test for containment of a point (uses GEOS) */
bool contains( QgsPoint* p );

/** Test for if geometry is contain in an other (uses GEOS)
/** Test for if geometry is contained in an other (uses GEOS)
* @note added in 1.5 */
bool contains( QgsGeometry* geometry );

@@ -41,6 +41,7 @@ INCLUDE_DIRECTORIES(
../../core/symbology
../../gui
..
${GEOS_INCLUDE_DIR}
)

TARGET_LINK_LIBRARIES(spatialqueryplugin

0 comments on commit 7e2a101

Please sign in to comment.
You can’t perform that action at this time.