comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSLineArtifact.java @ 5379:61bf64b102bc mapgenfix

Merge with default branch
author Christian Lins <christian.lins@intevation.de>
date Fri, 22 Mar 2013 11:25:54 +0100
parents 6da542572ab1
children
comparison
equal deleted inserted replaced
5175:cfc5540a4eec 5379:61bf64b102bc
14 import de.intevation.artifactdatabase.state.DefaultOutput; 14 import de.intevation.artifactdatabase.state.DefaultOutput;
15 import de.intevation.artifactdatabase.state.Facet; 15 import de.intevation.artifactdatabase.state.Facet;
16 import de.intevation.artifactdatabase.state.State; 16 import de.intevation.artifactdatabase.state.State;
17 17
18 import de.intevation.flys.model.River; 18 import de.intevation.flys.model.River;
19 import de.intevation.flys.model.Line; 19 import de.intevation.flys.model.HWSLine;
20 20
21 import de.intevation.flys.artifacts.model.FacetTypes; 21 import de.intevation.flys.artifacts.model.FacetTypes;
22 import de.intevation.flys.artifacts.model.RiverFactory; 22 import de.intevation.flys.artifacts.model.RiverFactory;
23 import de.intevation.flys.utils.FLYSUtils; 23 import de.intevation.flys.utils.FLYSUtils;
24 import de.intevation.flys.utils.GeometryUtils; 24 import de.intevation.flys.utils.GeometryUtils;
116 return FLYSUtils.getRiverSrid(river.getName()); 116 return FLYSUtils.getRiverSrid(river.getName());
117 } 117 }
118 118
119 @Override 119 @Override
120 protected Envelope getExtent(boolean reproject) { 120 protected Envelope getExtent(boolean reproject) {
121 List<Line> lines = Line.getLines(getRiverId(), getName()); 121 List<HWSLine> lines = HWSLine.getLines(getRiverId(), getName());
122 122
123 Envelope max = null; 123 Envelope max = null;
124 124
125 for (Line l: lines) { 125 for (HWSLine l: lines) {
126 Envelope env = l.getGeom().getEnvelopeInternal(); 126 Envelope env = l.getGeom().getEnvelopeInternal();
127 127
128 if (max == null) { 128 if (max == null) {
129 max = env; 129 max = env;
130 continue; 130 continue;

http://dive4elements.wald.intevation.org