Skip to content

Commit 7b76f09

Browse files
author
jef
committedApr 24, 2010
missed python binding to additional GEOS operators
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13372 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed
 

‎python/core/qgsgeometry.sip

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ class QgsGeometry
100100
*/
101101
bool isGeosValid();
102102

103+
/** check if geometry is empty using GEOS
104+
@note added in 1.5
105+
*/
106+
bool isGeosEmpty();
107+
103108
/**
104109
Set the geometry, feeding in a geometry in GEOS format.
105110
*/
@@ -239,10 +244,34 @@ not disjoint with existing polygons of the feature*/
239244
/** Test for containment of a point (uses GEOS) */
240245
bool contains(QgsPoint* p);
241246

242-
/** Test for containment with a geometry (uses GEOS)
243-
* @note added in 1.5 */
247+
/** Test for if geometry is contained in an other (uses GEOS)
248+
* @note added in 1.5 */
244249
bool contains( QgsGeometry* geometry );
245250

251+
/** Test for if geometry is disjoint of an other (uses GEOS)
252+
* @note added in 1.5 */
253+
bool disjoint( QgsGeometry* geometry );
254+
255+
/** Test for if geometry equals an other (uses GEOS)
256+
* @note added in 1.5 */
257+
bool equals( QgsGeometry* geometry );
258+
259+
/** Test for if geometry touch an other (uses GEOS)
260+
* @note added in 1.5 */
261+
bool touches( QgsGeometry* geometry );
262+
263+
/** Test for if geometry overlaps an other (uses GEOS)
264+
* @note added in 1.5 */
265+
bool overlaps( QgsGeometry* geometry );
266+
267+
/** Test for if geometry is within an other (uses GEOS)
268+
* @note added in 1.5 */
269+
bool within( QgsGeometry* geometry );
270+
271+
/** Test for if geometry crosses an other (uses GEOS)
272+
* @note added in 1.5 */
273+
bool crosses( QgsGeometry* geometry );
274+
246275
/** Returns a buffer region around this geometry having the given width and with a specified number
247276
of segments used to approximate curves */
248277
QgsGeometry* buffer(double distance, int segments) /Factory/;

‎src/core/qgsgeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class CORE_EXPORT QgsGeometry
288288
/** Test for containment of a point (uses GEOS) */
289289
bool contains( QgsPoint* p );
290290

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

‎src/plugins/spatialquery/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ INCLUDE_DIRECTORIES(
4141
../../core/symbology
4242
../../gui
4343
..
44+
${GEOS_INCLUDE_DIR}
4445
)
4546

4647
TARGET_LINK_LIBRARIES(spatialqueryplugin

0 commit comments

Comments
 (0)
Please sign in to comment.