I am trying to download a relation and all of its members in JOSM. The relation 161648 (admin_level = 4) (Nebraska boundary). I am trying to make sure that the relation members are sorted and I understand I can do that in JOSM. When I go to download object, It looks like it tries to make a connection to OpenStreetMap API and it fails. It comes back with no data. I have enabled remote control in JOSM. Also when I push the edit in OpenStreetMap, JOSM start to make a connection and comes back with the message "Failed to open a connection to the remote server http://api.openstreet.org/api/" asked 22 Jan '14, 15:36 kcjailbirds Richlv
showing 5 of 8
show 3 more comments
|
A few suggestions :
answered 22 Jan '14, 16:35 Vincent de P... ♦ sorry, it actually says "faile to open connection to the remote server http://api.openstreetmap.org/api. I am trying to download it from JOSM so that I can attempt to sort the members.
(22 Jan '14, 16:50)
kcjailbirds
I am also using version 6502 of JOSM.
(22 Jan '14, 16:50)
kcjailbirds
Ok, what about the 2nd suggestion (downloading using a browser to test for non-josm problems) ?
(22 Jan '14, 17:04)
Vincent de P... ♦
I did download the relation using the browser. That only gave me the ways forming the relation and not the nodes. Is their a way to get a download of the ways and nodes that form the relation and ways?
(22 Jan '14, 17:27)
kcjailbirds
|
Side question: why would you want to sort admin boundary members?
I am trying to create a SQLGeography object from the admin boundary using C# and it cannot. I believe it results in illegal polygons due to sorting issues. At least that is my guess.
Couldn't you sort the relation in the client program? It'll only get unsorted again when someone updates the relation in OSM.
Not sure how to do that.
If your sorting fixes an actual problem in the relation (such as making sure that the ways form a continuous ring with no gap) then go ahead and fix the data. If it is some problem related to your software (for example requiring outer rings before inner ones), then fix your software instead.
...And checking the relation in question, it looks fine. No sorting required. Go fix your software :)
Thanks Vincent! The same software works well with other states in US that I have tried so far. Neighboring states to Nebraska like Missouri, Iowa, and Kansas all work well but not Nebraska. How did you check the relation in question and noticed no sorting was required?
Checked the relation by opening it in josm and seeing that it constitute a single well-ordered ring.