[Qgis-user] Python code to select polygon at location

oisin.kelly.wild at gmail.com oisin.kelly.wild at gmail.com
Sun Aug 25 08:47:36 PDT 2024


For the point layer create a calculated field using overlay_within() function.

⁣Oisin
07570 977449

Get BlueMail for Android ​

On 25 Aug 2024, 16:07, at 16:07, Greg Troxel via QGIS-User <qgis-user at lists.osgeo.org> wrote:
>Zoltan Szecsei via QGIS-User <qgis-user at lists.osgeo.org> writes:
>
>> Hi,
>> I'm doing my "once a year need to do something in python with QGIS"
>:-/
>> Using QGIS 3.38 and PyCharm.
>>
>> I have a SHP file with 28000 polygons.
>> Another SHP file with 22000 Points
>> Both in EPSG:4326
>>
>> Without using QGIS processing, what is the quickest way to, for each
>> point 1 by 1, find the underlying polygon and read the attribute
>field
>> values of that polygon?
>
>Load it into postgis and write a select statement?
>_______________________________________________
>QGIS-User mailing list
>QGIS-User at lists.osgeo.org
>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240825/cebf58af/attachment.htm>


More information about the QGIS-User mailing list