[Qgis-user] [QGIS-Developer] Delete unnecessary PyQGIS attributes

Charles Dixon-Paver charles at kartoza.com
Tue Sep 22 08:42:49 PDT 2020


Hi Mathias, this question seems more appropriate for the QGIS User group,
so I'm migrating the conversation there.

The description you've given lacks enough detail for me to have a clear
understanding of your intentions, so perhaps in the future you could
provide a link to some sample data and more detail on your objectives so
that others might be able to assist.

>From what I can gather from the discussion on stack overflow, you intend
to remove the attributes of all features on one layer that intersect
another layer spatially. To do this you may start an edit session and use a
spatial select (Vector>>Research Tools>>Select by location) and then use
the field calculator on the features attribute table to modify the
attribute values of the selected features.

Regards

On Tue, 22 Sep 2020 at 14:59, Mathias MIRRA <mmirra at mcgr.fr> wrote:

> Here is my problem: I have 3 layers only I would like to remove all the
> attributes that are not on layer 1, no table of layers will provide a
> foreign key or link. So delete the layer 2 and 3 attributes that are not on
> layer 1.
>
>
>
>
>
> Screen : https://i.stack.imgur.com/nnOxd.png
>
>
>
>
> https://gis.stackexchange.com/questions/374754/delete-unnecessary-pyqgis-attributes?noredirect=1#comment612308_374754
>
>
>
> *Mathias Mirra*
>
> Développeur
>
>
>
> Tel. : 06 29 70 41 92 | Mail. : mmirra at mcgr.fr
>
>
>
> 281 Route d'Espagne,
>
> 31100 Toulouse
>
>
>
> 05 32 09 38 71 | www.mcgr.fr
>
>
>
>   <https://www.facebook.com/groupemcgr/>
> <https://fr.linkedin.com/company/groupemcgr>
> <https://www.youtube.com/channel/UCahBf8ogJuyGlzAczTTtC9w>
>
>
>
> [image: Une image contenant plane, lumière, blanc, grand Description
> générée automatiquement]
>
>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200922/497d051c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10961 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200922/497d051c/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1682 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200922/497d051c/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1832 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200922/497d051c/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1721 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200922/497d051c/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 18243 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200922/497d051c/attachment-0009.png>


More information about the Qgis-user mailing list