Index: trunk/scripts/SyncEditorLayerIndex.groovy
===================================================================
--- trunk/scripts/SyncEditorLayerIndex.groovy	(revision 13780)
+++ trunk/scripts/SyncEditorLayerIndex.groovy	(revision 13792)
@@ -35,6 +35,6 @@
 class SyncEditorLayerIndex {
 
-    List<ImageryInfo> josmEntries;
-    JsonArray eliEntries;
+    List<ImageryInfo> josmEntries
+    JsonArray eliEntries
 
     def eliUrls = new HashMap<String, JsonObject>()
@@ -57,5 +57,5 @@
      */
     static main(def args) {
-        Locale.setDefault(Locale.ROOT);
+        Locale.setDefault(Locale.ROOT)
         parse_command_line_arguments(args)
         Main.determinePlatformHook()
@@ -72,6 +72,6 @@
             def stream = new OutputStreamWriter(file, "UTF-8")
             script.printentries(script.josmEntries, stream)
-            stream.close();
-            file.close();
+            stream.close()
+            file.close()
         }
         script.loadELIEntries()
@@ -80,6 +80,6 @@
             def stream = new OutputStreamWriter(file, "UTF-8")
             script.printentries(script.eliEntries, stream)
-            stream.close();
-            file.close();
+            stream.close()
+            file.close()
         }
         script.checkInOneButNotTheOther()
@@ -87,8 +87,8 @@
         script.end()
         if(outputStream != null) {
-            outputStream.close();
+            outputStream.close()
         }
         if(outputFile != null) {
-            outputFile.close();
+            outputFile.close()
         }
     }
@@ -425,5 +425,5 @@
                             eliUrls.remove(e)
                             eliUrls.put(urlj,e)
-                            break;
+                            break
                         }
                     }
@@ -901,4 +901,8 @@
                 }
             }
+            def cat = getCategory(j)
+            if(cat != null && cat != "photo" && cat != "map" && cat != "historicmap" && cat != "osmbasedmap" && cat != "historicphoto" && cat != "other") {
+                myprintln "* Strange category ${cat}: ${getDescription(j)}"
+            }
         }
     }
@@ -1011,5 +1015,5 @@
         if (e instanceof ImageryInfo) {
             if("wms".equals(getType(e)) && e.getName() =~ / mirror/)
-                return null;
+                return null
             int mz = e.getMinZoom()
             return mz == 0 ? null : mz
@@ -1023,5 +1027,5 @@
         if (e instanceof ImageryInfo) {
             if("wms".equals(getType(e)) && e.getName() =~ / mirror/)
-                return null;
+                return null
             int mz = e.getMaxZoom()
             return mz == 0 ? null : mz
@@ -1064,4 +1068,10 @@
     static String getTermsOfUseUrl(Object e) {
         if (e instanceof ImageryInfo) return e.getTermsOfUseURL()
+        return null
+    }
+    static String getCategory(Object e) {
+        if (e instanceof ImageryInfo) {
+            return e.getImageryCategoryOriginalString()
+        }
         return null
     }
