Issue #1777 fix subgridding range problems
Former-commit-id: bb518596c4b9ce06279e4b1e7fb841c63514ce62
This commit is contained in:
parent
29b4cd2fb5
commit
5bd20414eb
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue