Skip to content

Commit

Permalink
always keep type tag for relations
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed May 23, 2013
1 parent d32bad6 commit b80cb3e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tagtransform.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,14 @@ static unsigned int tagtransform_c_filter_basic_tags(enum OsmType type,
initList(&temp);

/* We used to only go far enough to determine if it's a polygon or not, but now we go through and filter stuff we don't need */
if (type == OSMTYPE_RELATION) {
filter = 0;
}
while ((item = popItem(tags)) != NULL ) {
if (type == OSMTYPE_RELATION) {
filter = 0;
if (type == OSMTYPE_RELATION && !strcmp("type", item->key)) {
pushItem(&temp, item);
item = NULL;
break;
}
/* Allow named islands to appear as polygons */
if (!strcmp("natural", item->key)
Expand Down

0 comments on commit b80cb3e

Please sign in to comment.