Hi,
I have just solved the clipping by using v.overlay which gave reasonable
processing time. My experience is that qgis:clip and qgis:difference is
quite slow when it comes to clipping lines by polygon.
Best regards,
Jonas
2014-10-16 11:29 GMT+02:00 Filipe Dias filipesd...@gmail.com:
Yes,
Yes, convert format is based on ogr2ogr but I dont think it can be modified
to do clip. Why don't you try running ogr2ogr from the command line?
You need to navigate to the directory where both your shapefiles are stored
and run the code just like in the blog post. I tried on Linux but it should
Hi,
to check that my data was ok I tried a clip tool in ArcMap where the same
calcuation took exactly 10 seconds. After some modifications in my script
and using the 'qgis:difference' algorithm, processing time was reduced to
about 5 minutes, quite acceptable. Thank you for helping me sort this
Il 12/10/2014 23:31, Jonas Sjögren ha scritto:
I am trying to clip a road network by a polygon in a script using the
algorithm
'qgis:clip'. The result seems to be quite ok but it takes an incredible long
time to
produce, about 14 hours (!).
Have you tried one of the several Processing
Il 13/10/2014 15:40, Jonas Sjögren ha scritto:
thank you for answering. Actually, I have not found any other processing
tools for
clipping a shapefile by another shapefile than the 'qgis:clip', except for the
'gdalogr:ogr2ogr'. Do you have any suggestions?
Try in Processing: v.overlay or
I am also using QGIS 2.4 64b Chugiak on Windows 7.
The same thing happens to me. Even when I create
a line layer with only 11 lines and try to clip 3
of them with a polygon layer, the progress bar just
goes back and forth for ever.
I didn't run it for hours to see what would eventually
happen.