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

I'm working on a project where I need to collect the streets within cities (for various definitions of 'city'). I'm running into trouble when a city does not have an OSM Relation ID (I understand this as it does not have its Administrative Boundary mapped out, but I might be misunderstanding this as well).

For example, Holyoke has its area mapped out so it has an OSM Relation ID ... whereas Tolland does not have its area mapped out yet. For cities without the OSM Relation ID, I've been using http://extract.bbbike.org/ to trace the city's border by hand, and then export that traced region to OSM file.

That works well enough, but if I knew how to actually create the Relation IDs for city areas I could be helpful to OpenStreetMap while working through my project. I could generate the OSM Relation IDs by tracing the city's Administrative Boundary - I'm doing the tracing anyway ... it might as well be put to use.

Can someone either point me to articles/videos that explain this, or explain how to edit OpenStreetMap (with iD, presumably) to add this data?

It seems like I should 'Edit with iD', click the 'Area' button, map out the city's border to create a closed area (going with the assumption that it is a simple city border, not something like Austin), and then ... ??? ... Do I set the feature type to 'Area', name it whatever the city's name is, and do something else to associate it with the actual city? When I navigate around a city that has an OSM Relation ID, I see that it is surrounded by an 'Administrative Boundary' feature type. It doesn't seem like I can create those, though.

asked 15 Feb '14, 23:15

JamesChevalier's gravatar image

JamesChevalier
1517713
accept rate: 25%

1

A boundary is typically not mapped as an area, but as a relation. The relation contains a collection of (OSM) ways (not highways, roads) that form the boundary. Those ways can be shared with neighboring cities, counties, etc. I created quite a few boundaries, but used JOSM, so I cannot help you on describing how it should be done in iD. I read a few statements about iD not really supporting relations, but maybe that has changed recently.

(16 Feb '14, 06:45) escada
1

I'm not particularly tied to iD - if you have the time to share your process with JOSM, I'm sure you'd be helping out a lot of would-be mappers.

(16 Feb '14, 14:31) JamesChevalier

I manually create the boundary relation and set e.g. the attributes, name=xxx; type=boundary; boundary=administrative ; admin_level=9 The members of the relations are way with attributes boundary=administrative; admin_level=9 Note that is is also possible to have admin_level=8 here, it's typically the highest level that wins. All the ways get role outer. see e.g. http://www.openstreetmap.org/relation/3402541#map=13/51.0137/3.6307

We use add a node with role admin_centre, other communities use the role label

(19 Feb '14, 16:22) escada

The short answer is probably, "Don't edit or create a boundary relation as a beginner." That's not very encouraging though. That short answer is also at odds with the over-arching OpenStreetMap theme that "anybody can improve the map." True enough.

A boundary relation can be a rather complex object in OpenStreetMap terms. I can't recommend that you struggle with creating that complex object, while simultaneously struggling with a new editor. I don't know of a boundary relation tutorial. But let's try to point you in the right direction.

Here is a wiki page on multipolygon relations. A boundary relation is a type of multipolygon relation. I wouldn't dive into a complex multipolygon as a first step.

This is a tutorial on creating a simpler multipolygon relation, for a building with a courtyard. The courtyard tutorial creates a very simple multipolygon relation. That probably makes a good first step on relations.

Ideally, there would be another tutorial or two with increasing complexity. I'm not aware of such tutorials at this time. Perhaps I'll write one and add a link here later.

permanent link

answered 30 Mar '14, 02:22

Richard%20Weait's gravatar image

Richard Weait
3.0k133452
accept rate: 17%

I've been speaking to some people directly about this, as well, and the predominant suggestion is "don't".

Most suggest that only those with a lot of experience with OSM editing (including creating and editing relations) create Administrative Boundaries. Additionally, there is a possibility that someone will import the town boundaries from some other data source. Administrative boundaries are mostly not visible on the ground, so the best source of this data is typically the government GIS department.

permanent link

answered 18 Feb '14, 16:45

JamesChevalier's gravatar image

JamesChevalier
1517713
accept rate: 25%

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:

×710
×352
×236
×107
×63

question asked: 15 Feb '14, 23:15

question was seen: 9,598 times

last updated: 30 Mar '14, 02:22

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