Dear Greg,

pá 26. 12. 2025 v 16:48 odesílatel Greg Troxel via QGIS-User <
[email protected]> napsal:

> I would suggest reading the gdal code to try to understand this.
>

First of all, thanks for the quick answer! I wonder which gdal code do you
mean?


> Looking at your code above, I wonder if the layer returned by clip_layer
> holds a reference to the first argument.  (This should be easy to
> understand from code reading).
>

If I replace the clip_layer() function with calling `extractbyextent` from
processing, the result is the same. Number of open files is increasing. It
seems to me that files open by QgsVectorMapLayer constructors are not
closed properly even when releasing memory via `del`...

Best regards, Martin

-- 
Martin Landa
https://geomatics.fsv.cvut.cz/en/employees/martin-landa/
https://gismentors.cz/mentors/landa
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to