Hi,

I use QgsGeometry.intersection() and QgsGeometry.difference() in the DigitizingTools plugin (cutter/clipper) and I did never experience any errors in these functions no matter if the geometries share a vertex or not (neither during my tests nor during courses I gave nor in the bug tracker). So I wouldn't say this is generally true. I wonder, however, why it seems to be a problem in processing.

Bernhard

Am 17.03.2016 um 23:19 schrieb Maximilian Krambach:
Hi,

I've frequently stumbled upon the problem that several functions (like
geomentry().intersection(geometry2), geometry().touches(geometry2) only
return something useful if BOTH geometries have a vertex at the meeting
point (which is inherited from GEOS)

My expection: they do intersect or touch if they share space.
I am Getting: Only a result if they share at least a vertex.

This results in tools like geoprocessing:intersection or clip giving
strange/unintuitive outputs.

Is it a design decision or just never discussed? It could be solved
quite easily, (see https://hub.qgis.org/issues/14504#note-2)
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer




__________ Information from ESET Mail Security, version of virus signature 
database 13197 (20160318) __________

The message was checked by ESET Mail Security.
http://www.eset.com


_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to