I have two different polygons layer : the first one represent buildings and the second one represent cities.
My goal is to extract the buildings which are in the cities.
I tried to use the Clip function but it returns :
Uncaught error while executing algorithm Traceback (most recent call last): File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute self.processAlgorithm(progress) File "/usr/share/qgis/python/plugins/processing/algs/qgis/Clip.py", line 71, in processAlgorithm source_layer.crs()) File "/usr/share/qgis/python/plugins/processing/core/outputs.py", line 326, in getVectorWriter crs, options) File "/usr/share/qgis/python/plugins/processing/tools/vector.py", line 618, in __init__ uri = GEOM_TYPE_MAP[geometryType] + "?uuid=" + unicode(uuid.uuid4()) KeyError: 1006
I have been able to use this function to extract points (after having created a point layer with the centroïds of the buildings) and then keep only buildings which have the same IDs as the centroids extracted but I had to do it with PostGIS and it is quite long to do.
Is there any way to do it with a simplier method ?