Im writing an importer for OSM files. Now i'm importing the relations with multipolygoins.
The documentation says
The order of the relation members does not matter (but properly sorted member lists can help human editors to verify completeness).
Is there a pre defined algorithm to find the ways which form one closed polygon? Preferably in java