i have osm data structured as shown in fig1 below. what i want to do is, to extract 3 files out of the main file shown in the fig1, so that each file is organised as shown in figures 2,3,4
to do that, i implemented a segregator algorithm to fragment the main file "fig1" into small chuncks.
my question is, is there any software or better approach to that instead of writing segregation algorith?
fig1:
fig2:
fig3:
fig4: