0

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

0

Yes, there is. JOSM is written in Java and it is able to order members of various relations very well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.