comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/Vectorizer.java @ 445:f42ed4f10b79

Fixed some bugs and create "Profilschnitt" polygons via configuration. gnv-artifacts/trunk@493 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 30 Dec 2009 23:02:10 +0000
parents b624879d2902
children 92b7ccbf6163
comparison
equal deleted inserted replaced
444:85f48e287fb3 445:f42ed4f10b79
4 import java.util.List; 4 import java.util.List;
5 import java.util.ArrayList; 5 import java.util.ArrayList;
6 6
7 import gnu.trove.TIntStack; 7 import gnu.trove.TIntStack;
8 import gnu.trove.TIntObjectHashMap; 8 import gnu.trove.TIntObjectHashMap;
9
10 import org.apache.log4j.Logger;
9 11
10 /** 12 /**
11 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) 13 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
12 */ 14 */
13 public class Vectorizer 15 public class Vectorizer
14 { 16 {
17 private static Logger log = Logger.getLogger(Vectorizer.class);
18
15 public interface RingsHandler { 19 public interface RingsHandler {
16 20
17 void handleRings( 21 void handleRings(
18 List<Edge> rings, 22 List<Edge> rings,
19 int value, 23 int value,
148 rings = new ArrayList<Edge>(); 152 rings = new ArrayList<Edge>();
149 this.simplify = simplify; 153 this.simplify = simplify;
150 } 154 }
151 155
152 public Vectorizer(int [] raster, int width) { 156 public Vectorizer(int [] raster, int width) {
153 this(); 157 this(true, raster, width);
158 }
159
160 public Vectorizer(boolean simplify, int [] raster, int width) {
161 this(simplify);
154 this.raster = raster; 162 this.raster = raster;
155 this.width = width; 163 this.width = width;
156 } 164 }
157 165
158 public static final int tl(int i, int w) { 166 public static final int tl(int i, int w) {

http://dive4elements.wald.intevation.org