]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.maps.elevation.server/src/org/simantics/maps/elevation/server/SingletonTiffTileInterface.java
Add profile to show bounding boxes for elevation server
[simantics/district.git] / org.simantics.maps.elevation.server / src / org / simantics / maps / elevation / server / SingletonTiffTileInterface.java
index 3a3a0f6f9948396e9c9d73a7e87eedaed90c4556..3fc9616c7080e5210aea4b987bb298945276909a 100644 (file)
@@ -1,9 +1,11 @@
 package org.simantics.maps.elevation.server;
 
+import java.awt.geom.Rectangle2D;
 import java.io.IOException;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
+import java.util.Collection;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -40,4 +42,8 @@ public class SingletonTiffTileInterface {
     public static Number lookup(double x, double y) {
         return instance.tileInterface.lookup(x, y);
     }
+    
+    public static Collection<Rectangle2D> getBoundingBoxes() {
+        return instance.tileInterface.getBoundingBoxes();
+    }
 }