NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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.

enter image description here

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:

  1. Somehow trace an interior boundary that matches the city of Waynesboro, and identify that county as Waynesboro City.
  2. Somehow make the existing Waynesboro think it's a county.

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's gravatar image

kd7uiy
46226
accept rate: 0%

edited 14 Nov '13, 18:52

I already tried to help him here but I'm not sure about the correct solution.

(14 Nov '13, 19:38) scai ♦

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!

permanent link

answered 01 Dec '13, 09:10

blahedo's gravatar image

blahedo
736111928
accept rate: 50%

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.

permanent link

answered 14 Nov '13, 18:50

n76's gravatar image

n76
10.8k1082172
accept rate: 17%

edited 14 Nov '13, 18:51

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×63
×25
×1

question asked: 14 Nov '13, 17:50

question was seen: 3,749 times

last updated: 05 Dec '14, 11:20

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum