Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedPoint2ds.java @ 484:823e4f808418
Generate JTS geometries (multi polygons and multi linestrings) from
interpolation with external palette indices.
gnv-artifacts/trunk@559 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 18 Jan 2010 11:25:52 +0000 |
parents | 211cad2fb5ba |
children | c4156275c1e1 |
comparison
equal
deleted
inserted
replaced
483:c8089cd7d777 | 484:823e4f808418 |
---|---|
1 package de.intevation.gnv.math; | 1 package de.intevation.gnv.math; |
2 | 2 |
3 import java.util.Map; | 3 import com.vividsolutions.jts.geom.MultiLineString; |
4 import com.vividsolutions.jts.geom.MultiPolygon; | |
5 | |
6 import de.intevation.gnv.utils.Pair; | |
7 | |
8 import java.io.Serializable; | |
9 | |
4 import java.util.HashMap; | 10 import java.util.HashMap; |
5 import java.util.List; | 11 import java.util.List; |
6 | 12 import java.util.Map; |
7 import java.io.Serializable; | |
8 | 13 |
9 /** | 14 /** |
10 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | 15 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) |
11 */ | 16 */ |
12 public class AttributedPoint2ds | 17 public class AttributedPoint2ds |
13 implements Serializable | 18 implements Serializable |
14 { | 19 { |
15 protected List<? extends Point2d> points; | 20 protected List<? extends Point2d> points; |
16 protected Map attributes; | 21 protected Map attributes; |
22 protected AreaInterpolation interpolation; | |
23 protected List<Pair<Object, MultiLineString>> lineStrings; | |
24 protected Map<Integer, MultiPolygon> polygons; | |
17 | 25 |
18 public AttributedPoint2ds() { | 26 public AttributedPoint2ds() { |
19 } | 27 } |
20 | 28 |
21 public AttributedPoint2ds(List<? extends Point2d> points) { | 29 public AttributedPoint2ds(List<? extends Point2d> points) { |
40 } | 48 } |
41 | 49 |
42 public void setPoints(List<? extends Point2d> points) { | 50 public void setPoints(List<? extends Point2d> points) { |
43 this.points = points; | 51 this.points = points; |
44 } | 52 } |
53 | |
54 public void setInterpolation(AreaInterpolation interpolation) { | |
55 this.interpolation = interpolation; | |
56 } | |
57 | |
58 public AreaInterpolation getInterpolation() { | |
59 return interpolation; | |
60 } | |
61 | |
62 public void setPolygons(Map<Integer, MultiPolygon> polygons) { | |
63 this.polygons = polygons; | |
64 } | |
65 | |
66 public Map<Integer, MultiPolygon> getPolygons() { | |
67 return polygons; | |
68 } | |
69 | |
70 public void setLineStrings( | |
71 List<Pair<Object, MultiLineString>> lineStrings | |
72 ) { | |
73 this.lineStrings = lineStrings; | |
74 } | |
75 | |
76 public List<Pair<Object, MultiLineString>> getLineStrings() { | |
77 return lineStrings; | |
78 } | |
45 } | 79 } |
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 80 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |