Hi, I have a huge shapefile in wich I need to split all the roads in all intersection with other roads. I see tyhe button "split line at intersection" but i can't select all the intersection one by one, so i wuold know if there's a way to apply that to all the shapefile.
split is a function for manual editing.
but you can use the function: Tools>Edit Geometry>Node Lines…
hope that helps
It works but I also need that the line in wich I split the road to mantain they're attributes. In the way you say Openjump created a new level where every road was split in intersection but now they are completely new road with no memory of the original ones. There's a way, maybe with sql interrogation, to split at intersection and mantain the attributes?
thanks for answers
mhm.. without looking, but there is also the planar graph function in geometry… not sure if it maintains the attributes
And we have function to transfer attributes from one layer to another. But I am not sure either if that works well for lines… as it is intersection based.
Hi, this one worth a feature request as this is a function which should be available in OpenJUMP.
Now the workaround :
- Node lines with Tools>Edit Geometry>Node Lines
Now, the difficulty is that splitted line are not strictly included in source lines (due to floating point computation issues)
- Create a thin buffer around features of your original layer (one buffer per feature, keeping attributes). Buffer must be very thin (let's say 0.001 meter or 0.000001 degree)
- Now, make a simple spatial join (Tools>Analysis>Simple Spatial Join) between noded features and buffers where splitted features are included in buffer.
Thanks a lot! It worked!
Log in to post a comment.