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 |
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. answered 18 Feb '14, 16:45 JamesChevalier |
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. answered 30 Mar '14, 02:22 Richard Weait |
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.
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.
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