Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java @ 5865:73da40528cf2
River artifacts: Renamed FLYSUtils to RiverUtils.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:09:31 +0200 |
parents | 4897a58c8746 |
children | 59ff03ff48f1 |
comparison
equal
deleted
inserted
replaced
5864:f2e46a668fe6 | 5865:73da40528cf2 |
---|---|
23 import org.dive4elements.river.artifacts.model.map.WMSLayerFacet; | 23 import org.dive4elements.river.artifacts.model.map.WMSLayerFacet; |
24 import org.dive4elements.river.artifacts.model.map.WSPLGENLayerFacet; | 24 import org.dive4elements.river.artifacts.model.map.WSPLGENLayerFacet; |
25 import org.dive4elements.river.artifacts.resources.Resources; | 25 import org.dive4elements.river.artifacts.resources.Resources; |
26 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | 26 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; |
27 import org.dive4elements.river.model.CrossSectionTrack; | 27 import org.dive4elements.river.model.CrossSectionTrack; |
28 import org.dive4elements.river.utils.FLYSUtils; | 28 import org.dive4elements.river.utils.RiverUtils; |
29 import org.dive4elements.river.utils.GeometryUtils; | 29 import org.dive4elements.river.utils.GeometryUtils; |
30 import org.dive4elements.river.utils.MapfileGenerator; | 30 import org.dive4elements.river.utils.MapfileGenerator; |
31 | 31 |
32 | 32 |
33 public class FacetCreator implements FacetTypes { | 33 public class FacetCreator implements FacetTypes { |
67 this.cc = cc; | 67 this.cc = cc; |
68 this.hash = hash; | 68 this.hash = hash; |
69 this.stateId = sId; | 69 this.stateId = sId; |
70 } | 70 } |
71 | 71 |
72 // TODO We have FLYSUtils and will have RiverAccess to do this | 72 // TODO We have RiverUtils and will have RiverAccess to do this |
73 protected String getRiver() { | 73 protected String getRiver() { |
74 return artifact.getDataAsString("river"); | 74 return artifact.getDataAsString("river"); |
75 } | 75 } |
76 | 76 |
77 protected String getUrl() { | 77 protected String getUrl() { |
78 return FLYSUtils.getUserWMSUrl(artifact.identifier()); | 78 return RiverUtils.getUserWMSUrl(artifact.identifier()); |
79 } | 79 } |
80 | 80 |
81 protected String getSrid() { | 81 protected String getSrid() { |
82 return FLYSUtils.getRiverSrid(artifact); | 82 return RiverUtils.getRiverSrid(artifact); |
83 } | 83 } |
84 | 84 |
85 protected Envelope getWSPLGENBounds() { | 85 protected Envelope getWSPLGENBounds() { |
86 String river = getRiver(); | 86 String river = getRiver(); |
87 RangeAccess rangeAccess = new RangeAccess(artifact, null); | 87 RangeAccess rangeAccess = new RangeAccess(artifact, null); |