[Qgis-developer] Difference between two layers doesn't remove any features

Anita Graser anitagraser at gmx.at
Thu Jul 2 11:48:17 PDT 2015


On Thu, Jul 2, 2015 at 8:02 PM, Etienne Trimaille <
etienne.trimaille at gmail.com> wrote:

> Nobody confirms this bug in 2.10 ?
>

​I just tried in master with QGIS sample data and difference worked fine.

Have to install 2.10 to try.

Best wishes,
Anita​





>
> The layer produced by the 'difference' tool in QGIS can't be used in a
> further analysis because of invalid geometries.
> "Difference" is used in many GIS analysis. This is a regression for me.
>
>
> 2015-06-29 16:27 GMT+02:00 Etienne Trimaille <etienne.trimaille at gmail.com>
> :
>
>> Hi dev,
>>
>> I'm using qgis master and I'm trying to use the difference tool between
>> two layers (from the vector menu and processing).
>>
>> On the map canvas, the result looks fine, I get less features displayed.
>> However my result layer contains exactly the same number of features than
>> my original layer.
>>
>> Running the "check validity" from processing, I get a lot of "Unknown
>> geometry type 0".
>> I can't use this layer in any processing algorithm :
>>
>> "QgsFeature.setGeometry(QgsGeometry): argument 1 has unexpected type
>> 'NoneType'"
>>
>> I don't know which algorithms may be affected by this kind of bug.
>>
>> It's working fine on qgis 2.8.
>>
>> Regards,
>> Etienne
>>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150702/d0f106a7/attachment.html>


More information about the Qgis-developer mailing list