span8
span4
span8
span4
I have a dataset of around 85k road segments and 130k non-road segments where I want to cut off small parts of the roads around the non-road segments: There's a buffer around each of the non-road segments that I use as clipper on the roads.
I've applied all the tips given inthis thread ( https://knowledge.亚搏在线safe.com/questions/62461/why-the-clipper-transformer-is-too-slow.html ).I forced the clipper to wait until all clippers were available,I dissolved both datasets before clipping and it works fine on smaller datasets.Still,it takes around 2 seconds per feature in the dissolved dataset (total 12k).I've even discarded all attributes.
Algorithmically,clipping polygons should take nowhere near as long when everything fits in memory.[M.de Berg et al.Computational Geometry.Ch2 ]
Is there anything I've missed?Why is clipping so slow?
I'd also consider pumping the non-dissolved buffered non-road folks into the LineOnAreaOverlay as the areas,and the roads in as lines.That method will employ a good spatial index underneath.You shoudl be able to tell the lines that were in vs.out by checking their overlap count afterwards.
© 2019 亚搏在线Safe Software Inc |法律