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.trace("Looking up x={} y={}", x, y);
DirectPosition p = new DirectPosition2D(c4326, x, y);
+ @SuppressWarnings("unchecked")
List<Path> tifFiles = (List<Path>) index.query(new Envelope(new Coordinate(x, y)));
for (Path tifFile : tifFiles) {
TiffInterface tifInterface = openTifInterface(tifFile);
tifInterface.close();
}
} else {
- System.out.println("not found");
+ //System.out.println("not found");
}
}
- return new Double(0); // use 0 by default for now
+ return Double.valueOf(0); // use 0 by default for now
}
@Override