Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/utils/ArtifactMapfileGenerator.java @ 5867:59ff03ff48f1
River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:23:01 +0200 |
parents | 73da40528cf2 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.utils; | 9 package org.dive4elements.river.utils; |
10 | 10 |
11 import org.dive4elements.artifacts.CallContext; | 11 import org.dive4elements.artifacts.CallContext; |
12 import org.dive4elements.river.artifacts.FLYSArtifact; | 12 import org.dive4elements.river.artifacts.D4EArtifact; |
13 import org.dive4elements.river.artifacts.access.RiverAccess; | 13 import org.dive4elements.river.artifacts.access.RiverAccess; |
14 import org.dive4elements.river.artifacts.model.LayerInfo; | 14 import org.dive4elements.river.artifacts.model.LayerInfo; |
15 import org.dive4elements.river.artifacts.model.map.WMSDBLayerFacet; | 15 import org.dive4elements.river.artifacts.model.map.WMSDBLayerFacet; |
16 import org.dive4elements.river.artifacts.model.map.WMSLayerFacet; | 16 import org.dive4elements.river.artifacts.model.map.WMSLayerFacet; |
17 import org.dive4elements.river.artifacts.model.map.WSPLGENLayerFacet; | 17 import org.dive4elements.river.artifacts.model.map.WSPLGENLayerFacet; |
63 | 63 |
64 /** | 64 /** |
65 * Creates a layer file used for Mapserver's mapfile which represents the | 65 * Creates a layer file used for Mapserver's mapfile which represents the |
66 * floodmap. | 66 * floodmap. |
67 * | 67 * |
68 * @param flys The FLYSArtifact that owns <i>wms</i>. | 68 * @param flys The D4EArtifact that owns <i>wms</i>. |
69 * @param wms The WMSLayerFacet that contains information for the layer. | 69 * @param wms The WMSLayerFacet that contains information for the layer. |
70 */ | 70 */ |
71 public void createUeskLayer( | 71 public void createUeskLayer( |
72 FLYSArtifact flys, | 72 D4EArtifact flys, |
73 WSPLGENLayerFacet wms, | 73 WSPLGENLayerFacet wms, |
74 String style, | 74 String style, |
75 CallContext context | 75 CallContext context |
76 ) throws FileNotFoundException, IOException | 76 ) throws FileNotFoundException, IOException |
77 { | 77 { |
111 | 111 |
112 /** | 112 /** |
113 * Creates a layer file used for Mapserver's mapfile which represents the | 113 * Creates a layer file used for Mapserver's mapfile which represents the |
114 * user defined barriers. | 114 * user defined barriers. |
115 * | 115 * |
116 * @param flys The FLYSArtifact that owns <i>wms</i>. | 116 * @param flys The D4EArtifact that owns <i>wms</i>. |
117 * @param wms The WMSLayerFacet that contains information for the layer. | 117 * @param wms The WMSLayerFacet that contains information for the layer. |
118 */ | 118 */ |
119 public void createBarriersLayer(FLYSArtifact flys, WMSLayerFacet wms) | 119 public void createBarriersLayer(D4EArtifact flys, WMSLayerFacet wms) |
120 throws FileNotFoundException, IOException | 120 throws FileNotFoundException, IOException |
121 { | 121 { |
122 logger.debug("createBarriersLayer"); | 122 logger.debug("createBarriersLayer"); |
123 | 123 |
124 //String uuid = flys.identifier(); | 124 //String uuid = flys.identifier(); |
128 createBarriersPolygonLayer(flys, wms); | 128 createBarriersPolygonLayer(flys, wms); |
129 } | 129 } |
130 | 130 |
131 | 131 |
132 protected void createBarriersLineLayer( | 132 protected void createBarriersLineLayer( |
133 FLYSArtifact flys, | 133 D4EArtifact flys, |
134 WMSLayerFacet wms | 134 WMSLayerFacet wms |
135 ) | 135 ) |
136 throws FileNotFoundException, IOException | 136 throws FileNotFoundException, IOException |
137 { | 137 { |
138 String uuid = flys.identifier(); | 138 String uuid = flys.identifier(); |
173 logger.warn("Unable to write layer: " + nameLines); | 173 logger.warn("Unable to write layer: " + nameLines); |
174 } | 174 } |
175 } | 175 } |
176 | 176 |
177 protected void createBarriersPolygonLayer( | 177 protected void createBarriersPolygonLayer( |
178 FLYSArtifact flys, | 178 D4EArtifact flys, |
179 WMSLayerFacet wms | 179 WMSLayerFacet wms |
180 ) | 180 ) |
181 throws FileNotFoundException, IOException | 181 throws FileNotFoundException, IOException |
182 { | 182 { |
183 String uuid = flys.identifier(); | 183 String uuid = flys.identifier(); |
222 | 222 |
223 /** | 223 /** |
224 * Creates a layer file used for Mapserver's mapfile which represents the | 224 * Creates a layer file used for Mapserver's mapfile which represents the |
225 * shape files uploaded by the user. | 225 * shape files uploaded by the user. |
226 * | 226 * |
227 * @param flys The FLYSArtifact that owns <i>wms</i>. | 227 * @param flys The D4EArtifact that owns <i>wms</i>. |
228 * @param wms The WMSLayerFacet that contains information for the layer. | 228 * @param wms The WMSLayerFacet that contains information for the layer. |
229 */ | 229 */ |
230 public void createUserShapeLayer(FLYSArtifact flys, WMSLayerFacet wms) | 230 public void createUserShapeLayer(D4EArtifact flys, WMSLayerFacet wms) |
231 throws FileNotFoundException, IOException | 231 throws FileNotFoundException, IOException |
232 { | 232 { |
233 logger.debug("createUserShapeLayer"); | 233 logger.debug("createUserShapeLayer"); |
234 | 234 |
235 String uuid = flys.identifier(); | 235 String uuid = flys.identifier(); |
288 | 288 |
289 /** | 289 /** |
290 * Creates a layer file used for Mapserver's mapfile which represents | 290 * Creates a layer file used for Mapserver's mapfile which represents |
291 * geometries from database. | 291 * geometries from database. |
292 * | 292 * |
293 * @param flys The FLYSArtifact that owns <i>wms</i>. | 293 * @param flys The D4EArtifact that owns <i>wms</i>. |
294 * @param wms The WMSLayerFacet that contains information for the layer. | 294 * @param wms The WMSLayerFacet that contains information for the layer. |
295 */ | 295 */ |
296 public void createDatabaseLayer( | 296 public void createDatabaseLayer( |
297 FLYSArtifact flys, | 297 D4EArtifact flys, |
298 WMSDBLayerFacet wms, | 298 WMSDBLayerFacet wms, |
299 String style | 299 String style |
300 ) | 300 ) |
301 throws FileNotFoundException, IOException | 301 throws FileNotFoundException, IOException |
302 { | 302 { |