Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/RiverAxis.java @ 5140:18ef819a7c92
Changed river axis from LineString to MultiLineString.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 28 Feb 2013 14:04:41 +0100 |
parents | b195fede1c3b |
children | d4fdd98a04f7 |
comparison
equal
deleted
inserted
replaced
5139:76db0e48dbc0 | 5140:18ef819a7c92 |
---|---|
12 | 12 |
13 import org.hibernate.Session; | 13 import org.hibernate.Session; |
14 import org.hibernate.Query; | 14 import org.hibernate.Query; |
15 import org.hibernate.annotations.Type; | 15 import org.hibernate.annotations.Type; |
16 | 16 |
17 import com.vividsolutions.jts.geom.LineString; | 17 import com.vividsolutions.jts.geom.MultiLineString; |
18 | 18 |
19 import de.intevation.flys.backend.SessionHolder; | 19 import de.intevation.flys.backend.SessionHolder; |
20 | 20 |
21 | 21 |
22 /** | 22 /** |
32 implements Serializable | 32 implements Serializable |
33 { | 33 { |
34 private Integer id; | 34 private Integer id; |
35 private Integer kind; | 35 private Integer kind; |
36 private River river; | 36 private River river; |
37 private LineString geom; | 37 private MultiLineString geom; |
38 | 38 |
39 public static final int DEFAULT_KIND = 0; | 39 public static final int DEFAULT_KIND = 0; |
40 | 40 |
41 public static final int KIND_OFFICIAL = 1; | 41 public static final int KIND_OFFICIAL = 1; |
42 public static final int KIND_OUTSOURCED = 2; | 42 public static final int KIND_OUTSOURCED = 2; |
80 } | 80 } |
81 | 81 |
82 | 82 |
83 @Column(name = "geom") | 83 @Column(name = "geom") |
84 @Type(type = "org.hibernatespatial.GeometryUserType") | 84 @Type(type = "org.hibernatespatial.GeometryUserType") |
85 public LineString getGeom() { | 85 public MultiLineString getGeom() { |
86 return geom; | 86 return geom; |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 public void setGeom(LineString geom) { | 90 public void setGeom(MultiLineString geom) { |
91 this.geom = geom; | 91 this.geom = geom; |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 public static List<RiverAxis> getRiverAxis(String river) { | 95 public static List<RiverAxis> getRiverAxis(String river) { |