Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Apr 24, 2010
1 parent 62defb7 commit 7e2a101
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
33 changes: 31 additions & 2 deletions python/core/qgsgeometry.sip
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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/;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsgeometry.h
Expand Up @@ -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 );

Expand Down
1 change: 1 addition & 0 deletions src/plugins/spatialquery/CMakeLists.txt
Expand Up @@ -41,6 +41,7 @@ INCLUDE_DIRECTORIES(
../../core/symbology
../../gui
..
${GEOS_INCLUDE_DIR}
)

TARGET_LINK_LIBRARIES(spatialqueryplugin
Expand Down

0 comments on commit 7e2a101

Please sign in to comment.