Mercurial > dive4elements > gnv-client
diff 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 |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/raster/Vectorizer.java Wed Dec 30 10:35:19 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/raster/Vectorizer.java Wed Dec 30 23:02:10 2009 +0000 @@ -7,11 +7,15 @@ import gnu.trove.TIntStack; import gnu.trove.TIntObjectHashMap; +import org.apache.log4j.Logger; + /** * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) */ public class Vectorizer { + private static Logger log = Logger.getLogger(Vectorizer.class); + public interface RingsHandler { void handleRings( @@ -150,7 +154,11 @@ } public Vectorizer(int [] raster, int width) { - this(); + this(true, raster, width); + } + + public Vectorizer(boolean simplify, int [] raster, int width) { + this(simplify); this.raster = raster; this.width = width; }