Skip to content

Commit 0f2ca30

Browse files
committed
proj3
1 parent 2b48a6c commit 0f2ca30

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

proj3/src/main/java/Rasterer.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,9 @@ public Map<String, Object> getMapRaster(Map<String, Double> params) {
5858
double ullat = params.get("ullat");
5959
double lrlat = params.get("lrlat");
6060

61-
if (ullon > lrlon || ullat < lrlat || width <= 0 || height <= 0) {
62-
results.put("query_success", false);
63-
return results;
64-
}
6561

66-
if (lrlon > MapServer.ROOT_LRLON || ullon < MapServer.ROOT_ULLON
67-
|| ullat > MapServer.ROOT_ULLAT || lrlat < MapServer.ROOT_LRLAT) {
62+
if (lrlon > MapServer.ROOT_LRLON + 0.01 || ullon + 0.01 < MapServer.ROOT_ULLON
63+
|| ullat > MapServer.ROOT_ULLAT + 0.01 || lrlat + 0.01 < MapServer.ROOT_LRLAT) {
6864
results.put("query_success", false);
6965
return results;
7066
}

0 commit comments

Comments
 (0)