Issue #1777 fix subgridding range problems

Former-commit-id: bb518596c4b9ce06279e4b1e7fb841c63514ce62
This commit is contained in:
Ben Steffensmeier 2013-03-12 12:54:20 -05:00 committed by Steve Harris
parent 490ffe2772
commit 0daa5817d0

View file

@ -127,6 +127,14 @@ public class TrimUtil {
- (int) (Math.ceil((lonLatsInMeters[5] - lonLatsInMeters[1])
/ dyMeter));
if (leftX < 0) {
/**
* All the other checks should have caught this. This is a dirty
* hack that is only here until this method can be rewritten.
*/
leftX = 0;
}
// determine exact LL in meter
lonLatsInMeters[4] = lonLatsInMeters[0] + leftX * dxMeter;
lonLatsInMeters[5] = lonLatsInMeters[1] + (ny - lowerY) * dyMeter;