Skip to content

v0.2.50..v0.2.51 changeset gifd_d4_core.js

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/translations/gifd_d4_core.js b/translations/gifd_d4_core.js
index e9ac509..ea8f830 100644
--- a/translations/gifd_d4_core.js
+++ b/translations/gifd_d4_core.js
@@ -305,21 +305,21 @@ gifd = {
 
         } // End Condition tags
 
-        // Add 'building = yes' to amenities if we don't already have one
-        if (tags.amenity && !tags.building)
-        {
-            // Debug:
-            // print('Added building');
-            // Don't add building=yes to built up areas!
-            if (!tags.place) tags.building = 'yes';
-        }
+        // // Add 'building = yes' to amenities if we don't already have one
+        // if (tags.amenity && !tags.building)
+        // {
+        //     // Debug:
+        //     // print('Added building');
+        //     // Don't add building=yes to built up areas!
+        //     if (!tags.place) tags.building = 'yes';
+        // }
 
         // Add 'building = yes' to military if it isn't a range
         if (tags.military && !tags.building)
         {
             // Debug:
             // print('Added building to military');
-            if (tags.military !== 'range') tags.building = 'yes';
+            if (tags.military !== 'range' && tags.military !== 'installation' ) tags.building = 'yes';
         }
 
         // if (tags.building == 'train_station' && !tags.railway) tags.railway = 'station';
@@ -393,6 +393,11 @@ gifd = {
 
                 break;
 
+            case 'AL045': // Complex Outline. Going with landuse for this
+                if (tags.building = 'residential') delete tags.building; // Goes with landuse == residential
+
+                break;
+
             case 'BH070': // Ford
                 // Fords are also supposed to be roads.
                 if (geometryType == 'Line' && !tags.highway) tags.highway = 'road';
Clone this wiki locally