Issue #1356 add javadoc to subgrid changes.

Former-commit-id: 24e1b8fed9 [formerly c44dad8a5c] [formerly 6da5ac2873] [formerly 24e1b8fed9 [formerly c44dad8a5c] [formerly 6da5ac2873] [formerly 7e6d6fa794 [formerly 6da5ac2873 [formerly 618c8a0accbfde0e95d47b76659f3804b32a7652]]]]
Former-commit-id: 7e6d6fa794
Former-commit-id: 0e733903aa [formerly 5d87636fb2] [formerly ddd3f1b8e6c6839c8b7da5dd2c5162c696cc8a43 [formerly 47cb87096a]]
Former-commit-id: 2525c99e68b9d452c7e65c184726e952bbf62a6a [formerly 77e3f5ea79]
Former-commit-id: 9c9170d0e4
This commit is contained in:
Ben Steffensmeier 2012-12-11 17:40:28 -06:00
parent 7a0909d8f8
commit 16db40f89a

View file

@ -390,6 +390,17 @@ public class GribSpatialCache {
}
}
/**
* Final step of subgrid generation, based off the two Coordinates generate
* a subgrid coverage, insert it into the db and add it to caches.
*
* @param modelName
* @param coverage
* @param lowerLeft
* @param upperRight
* @return true on success, false if something went wrong, so no subgrid is
* available. This method will log errors and return false
*/
private boolean trim(String modelName, GridCoverage coverage,
Coordinate lowerLeft, Coordinate upperRight) {
SubGrid subGrid = new SubGrid();