Geographic Information Systems Asked by Jesús Pinilla on March 14, 2021
I’m working with QGIS 3.16 Hannover under MacOS 10.13 environment. I’ve got a point and a polygon shapefile layers. I want to add a new field to my point layer with the id of the polygon that contains it. Is it possible to do so with the field calculator, instead of creating a new layer?
You can use refFunctions
plugin. It adds custom user functions to QGIS Field Calculator. Then, you can add a new field to the point layer with the id of the polygon that contains it using the following expression in Field Calculator for the point layer:
geomwithin( 'polygon_layer_name', 'id_field_of_polygon_layer' )
Correct answer by Kadir Şahbaz on March 14, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP