Issue #1777 fix subgridding range problems
Former-commit-id:5bd20414eb
[formerly bb518596c4b9ce06279e4b1e7fb841c63514ce62] Former-commit-id:0daa5817d0
This commit is contained in:
parent
a933532ad9
commit
a6140145a4
1 changed files with 8 additions and 0 deletions
|
@ -127,6 +127,14 @@ public class TrimUtil {
|
||||||
- (int) (Math.ceil((lonLatsInMeters[5] - lonLatsInMeters[1])
|
- (int) (Math.ceil((lonLatsInMeters[5] - lonLatsInMeters[1])
|
||||||
/ dyMeter));
|
/ 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
|
// determine exact LL in meter
|
||||||
lonLatsInMeters[4] = lonLatsInMeters[0] + leftX * dxMeter;
|
lonLatsInMeters[4] = lonLatsInMeters[0] + leftX * dxMeter;
|
||||||
lonLatsInMeters[5] = lonLatsInMeters[1] + (ny - lowerY) * dyMeter;
|
lonLatsInMeters[5] = lonLatsInMeters[1] + (ny - lowerY) * dyMeter;
|
||||||
|
|
Loading…
Add table
Reference in a new issue