Change-Id: Iab0716c7e09739cbb4a525111eb34ecc0594a388

Former-commit-id: c2667bd719 [formerly 3f252c7aa8fc5598f3f74c376c713150793868e5]
Former-commit-id: 62dfc1f0b2
This commit is contained in:
Steve Naples 2014-01-14 16:38:11 +00:00
parent 2ca557053c
commit 687511035a

View file

@ -48,6 +48,7 @@ import com.raytheon.uf.viz.core.rsc.capabilities.OutlineCapability;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Jan 20, 2010 1783 mpduff Initial creation.
* Jan 7, 2013 16578 snaples Updated initInternal line array to handle area where it is wider than tall.
*
* </pre>
*
@ -89,9 +90,9 @@ public class HRAPOverlayResource extends
int minY = ge.getLow(1);
int height = ge.getSpan(1) + 1;
for (int x = 0; x < width; ++x) {
for (int x = 0; x < width; x++) {
double[][] line = new double[height][];
for (int y = 0; y < height; ++y) {
for (int y = 0; y < height; y++) {
double[] out = new double[2];
mt.transform(new double[] { minX + x, minY + y }, 0, out,
0, 1);
@ -100,9 +101,9 @@ public class HRAPOverlayResource extends
grid.addLineSegment(line);
}
for (int y = 0; y < height; ++y) {
double[][] line = new double[height][];
for (int x = 0; x < width; ++x) {
for (int y = 0; y < height; y++) {
double[][] line = new double[width][];
for (int x = 0; x < width; x++) {
double[] out = new double[2];
mt.transform(new double[] { minX + x, minY + y }, 0, out,
0, 1);