Index: /trunk/scripts/SyncEditorLayerIndex.java
===================================================================
--- /trunk/scripts/SyncEditorLayerIndex.java	(revision 17736)
+++ /trunk/scripts/SyncEditorLayerIndex.java	(revision 17737)
@@ -1037,5 +1037,5 @@
                                 Coordinate ept = ep.get(nump);
                                 Coordinate jpt = jp.get(nump);
-                                if (Math.abs(ept.getLat()-jpt.getLat()) > 0.00001 || Math.abs(ept.getLon()-jpt.getLon()) > 0.00001)
+                                if (differentCoordinate(ept.getLat(), jpt.getLat()) || differentCoordinate(ept.getLon(), jpt.getLon()))
                                     err = true;
                             }
@@ -1057,5 +1057,5 @@
                                 Coordinate ept = ep.get(nump);
                                 Coordinate jpt = jp.get(nump);
-                                if (Math.abs(ept.getLat()-jpt.getLat()) > 0.00001 || Math.abs(ept.getLon()-jpt.getLon()) > 0.00001) {
+                                if (differentCoordinate(ept.getLat(), jpt.getLat()) || differentCoordinate(ept.getLon(), jpt.getLon())) {
                                     String numtxt = Integer.toString(enums+1);
                                     if (enums != jnums) {
@@ -1091,4 +1091,9 @@
             }
         }
+    }
+
+    private boolean differentCoordinate(double v1, double v2) {
+        double epsilon = 0.00001;
+        return Math.abs(v1 - v2) > epsilon;
     }
 
@@ -1290,5 +1295,8 @@
                 }
                 ImageryBounds b = j.getBounds();
-                if (b.getMinLat() != minlat || b.getMinLon() != minlon || b.getMaxLat() != maxlat || b.getMaxLon() != maxlon) {
+                if (differentCoordinate(b.getMinLat(), minlat)
+                        || differentCoordinate(b.getMinLon(), minlon)
+                        || differentCoordinate(b.getMaxLat(), maxlat)
+                        || differentCoordinate(b.getMaxLon(), maxlon)) {
                     myprintln("* Bounds do not match shape (is "+b.getMinLat()+","+b.getMinLon()+","+b.getMaxLat()+","+b.getMaxLon()
                         + ", calculated <bounds min-lat='"+minlat+"' min-lon='"+minlon+"' max-lat='"+maxlat+"' max-lon='"+maxlon+"'>): "
