missed python binding to additional GEOS operators

git-svn-id: http://svn.osgeo.org/qgis/trunk@13372 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2010-04-24 19:08:49 +00:00
parent 62defb7be6
commit 7e2a10126f
3 changed files with 33 additions and 3 deletions

View File

@ -100,6 +100,11 @@ class QgsGeometry
*/ */
bool isGeosValid(); 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. 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) */ /** Test for containment of a point (uses GEOS) */
bool contains(QgsPoint* p); bool contains(QgsPoint* p);
/** Test for containment with a geometry (uses GEOS) /** Test for if geometry is contained in an other (uses GEOS)
* @note added in 1.5 */ * @note added in 1.5 */
bool contains( QgsGeometry* geometry ); 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 /** Returns a buffer region around this geometry having the given width and with a specified number
of segments used to approximate curves */ of segments used to approximate curves */
QgsGeometry* buffer(double distance, int segments) /Factory/; QgsGeometry* buffer(double distance, int segments) /Factory/;

View File

@ -288,7 +288,7 @@ class CORE_EXPORT QgsGeometry
/** Test for containment of a point (uses GEOS) */ /** Test for containment of a point (uses GEOS) */
bool contains( QgsPoint* p ); 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 */ * @note added in 1.5 */
bool contains( QgsGeometry* geometry ); bool contains( QgsGeometry* geometry );

View File

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