I would like to use the data from Open Street Map to identify which county I am in, but I noticed something unusual with the Independent Cities of Virginia. Essentially, there are a few cities that are independent of counties, even if they are completely contained within a county. When I do a query (Via the Map Quest Geocoding API), it returns that I am in the surrounding county, and not the city. For instance, here is Augusta County, which contains two independent cities, Staunton and Waynesboro. I've seen this for a half dozen other independent cities, BTW. It's a bit tricky to see, but Staunton has a county boundary approximating the city boundaries. When I call Staunton, it correctly shows Staunton City as the county. When I look at Waynesboro, it stays it is in Augusta, not Waynesboro City. What I'm trying to do is to figure out how to make the appropriate correction. I can see a couple of possibilities, including:
I'm not quite sure how either of those could be done, or which is the best, or even if there's a better solution all together. How can I make this correction? asked 14 Nov '13, 17:50 kd7uiy |
A couple parts to make this happen: one, adjust the administrative level of Waynesboro to be county-equivalent. That is, for the boundary=administrative that is around Waynesboro, set it to admin_level=6. Then, select all of the ways that make up the relation that is the boundary of Waynesboro (they will all be in role "outer" for this one) and add them to the relation that is the boundary of Augusta County (and they will be in the role "inner" for this one). I'll assume you know enough about OSM editors to do the first thing. Editing relations is a little trickier; here's a quick runthrough for Potlatch2: first, find the relation number for Augusta County. Do this by (in Potlatch2) clicking on some part of the boundary, click "Advanced", and then double-click the relations it's in until you find the one for Augusta County. Write down the ID of this relation. Then, click on some part of the Waynesboro boundary, click the downward arrow and "select all members" of the Waynesboro boundary relation. Click "Add to", and in the ensuing popup, select the relation for Augusta County. After it's added, make sure to designed the Role as "inner" for the ways that you've just added. Hope this helps! answered 01 Dec '13, 09:10 blahedo 1
This did the trick! Truth be told, Stauton isn't set up either. I'm going to have to check all of the Independent Cities in Virginia carefully, but I think this will do the trick!
(03 Dec '13, 16:29)
kd7uiy
For independent cities, should they have both an admin_level 8 and admin_level 6 boundary, or just the admin_level 6? St. Louis currently has both.
(05 Dec '14, 11:20)
brianegge
|
So the city is a hole in the county? This is the same type of thing as a building with an atrium or empty space in the middle and can be described using a multi-polygon. And, in general administrative boundaries should be multi-polygons already. If the county in question isn't then make it one with the boundary ways having a role of outer. Then add the city boundary to the county as a "inner". That will punch a hole out of the county so things in the city are not also in the county. answered 14 Nov '13, 18:50 n76 1
While I understand the general concept of the answer to this question, I would appreciate more details as to how to make such things happen.
(29 Nov '13, 14:17)
kd7uiy
|
I already tried to help him here but I'm not sure about the correct solution.