]> git.openstreetmap.org Git - rails.git/commitdiff
rails_port_0.5/006_remove_segments_helper: Ignore more tags when deciding which segme...
authorGabriel Ebner <gabriel@svn.openstreetmap.org>
Wed, 12 Sep 2007 14:08:42 +0000 (14:08 +0000)
committerGabriel Ebner <gabriel@svn.openstreetmap.org>
Wed, 12 Sep 2007 14:08:42 +0000 (14:08 +0000)
db/migrate/006_remove_segments_helper.cc

index b62f7cbc0d692ca2a9d4105e28db86e56319aa0b..dd2176a04acf1d392c9272a462bce93fd7081e6d 100644 (file)
@@ -411,7 +411,12 @@ static void mark_tagged_segs(struct data *d) {
     if (d->rem_segs[id]) continue;
     char *tags_it = row[1], *k, *v;
     while (read_seg_tags(&tags_it, &k, &v)) {
-      if (!strcmp(k, "created_by")) {
+      if (strcmp(k, "created_by") &&
+         strcmp(k, "tiger:county") &&
+         strcmp(k, "tiger:upload_uuid") &&
+         strcmp(k, "converted_by") &&
+         (strcmp(k, "natural") || strcmp(v, "coastline")) &&
+         (strcmp(k, "source") || strcmp(v, "PGS"))) {
        d->rem_segs[id] = 1;
        break;
       }