comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/Raster.java @ 495:6e8364e766fa

Generate JTS geometries of "Horizontalschnitte" correctly. gnv-artifacts/trunk@572 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Jan 2010 14:06:10 +0000
parents 21fbd254db71
children c4156275c1e1
comparison
equal deleted inserted replaced
494:292f0c8d356c 495:6e8364e766fa
190 190
191 public int getHeight() { 191 public int getHeight() {
192 return raster.length / width; 192 return raster.length / width;
193 } 193 }
194 194
195 public double [] getValues() {
196 return raster;
197 }
198
195 public int [] toIndexed(ValueToIndex valueToIndex) { 199 public int [] toIndexed(ValueToIndex valueToIndex) {
196 int [] dst = new int[raster.length]; 200 int [] dst = new int[raster.length];
197 for (int i = 0; i < raster.length; ++i) { 201 for (int i = 0; i < raster.length; ++i) {
198 dst[i] = valueToIndex.toIndex(raster[i]); 202 dst[i] = valueToIndex.toIndex(raster[i]);
199 } 203 }

http://dive4elements.wald.intevation.org