comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/AreaInterpolation.java @ 498:4080b57dcb52

Upgraded to Geotools 2.5.8. Write polygons and line strings to shape files. gnv-artifacts/trunk@578 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Jan 2010 21:23:28 +0000
parents 75306d856004
children 70adafe2b9d5
comparison
equal deleted inserted replaced
497:75306d856004 498:4080b57dcb52
109 Arrays.fill(raster, Double.NaN); 109 Arrays.fill(raster, Double.NaN);
110 110
111 double minX = boundingBox.getMinX(); 111 double minX = boundingBox.getMinX();
112 double minY = boundingBox.getMinY(); 112 double minY = boundingBox.getMinY();
113 113
114 int row = (H-1)*W; 114 int row = 0;
115 for (int j = 0; j < H; ++j, row -= W) { 115 for (int j = 0; j < H; ++j, row += W) {
116 double y = j*cellHeight + 0.5d*cellHeight + minY; 116 double y = j*cellHeight + 0.5d*cellHeight + minY;
117 double x = 0.5d*cellWidth + minX; 117 double x = 0.5d*cellWidth + minX;
118 for (int i = 0; i < W; ++i, x += cellWidth) { 118 for (int i = 0; i < W; ++i, x += cellWidth) {
119 queryBuffer.init( 119 queryBuffer.init(
120 x - dxMax, x + dxMax, 120 x - dxMax, x + dxMax,

http://dive4elements.wald.intevation.org