]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.maps.elevation.server/src/org/simantics/maps/elevation/server/TiffTileInterface.java
Make background map preference changes apply immediately
[simantics/district.git] / org.simantics.maps.elevation.server / src / org / simantics / maps / elevation / server / TiffTileInterface.java
index 8f7ecc010d285e5ba41d55728fc2fc0e904668ed..0cbf3fa5e03f31f80a50d9f796c66780f37715af 100644 (file)
@@ -111,12 +111,12 @@ public class TiffTileInterface implements Closeable {
         try {
             c4326 = CRS.decode("EPSG:4326");
         } catch (Exception e) {
-            LOGGER.error("Could not initialize epsg:4326", e);
+            LOGGER.error("Could not initialize EPSG:4326", e);
         }
     }
 
     public Number lookup(double x, double y) {
-        LOGGER.info("Looking up x={} y={}", x, y);
+        LOGGER.trace("Looking up x={} y={}", x, y);
         DirectPosition p = new DirectPosition2D(c4326, x, y);
         List<Path> tifFiles = (List<Path>) index.query(new Envelope(new Coordinate(x, y)));
         for (Path tifFile : tifFiles) {
@@ -128,7 +128,7 @@ public class TiffTileInterface implements Closeable {
                     tifInterface.close();
                 }
             } else {
-                System.out.println("not found");
+                //System.out.println("not found");
             }
         }
         return new Double(0); // use 0 by default for now