Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/MapGenerator.java @ 2639:a78dafdd8590
Issue 657.
Added file upload service to load a user defined shapefile.
User the shapefile for wsplgen calculation and display a new layer.
flys-artifacts/trunk@4292 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 25 Apr 2012 07:45:00 +0000 |
parents | ccad7a6ddaa4 |
children | 453d2d0c4258 |
comparison
equal
deleted
inserted
replaced
2638:ccad7a6ddaa4 | 2639:a78dafdd8590 |
---|---|
107 setInitialExtent(extent); | 107 setInitialExtent(extent); |
108 createWSPLGENLayer(flys, wms, attr); | 108 createWSPLGENLayer(flys, wms, attr); |
109 } | 109 } |
110 else if (FLOODMAP_BARRIERS.equals(name)) { | 110 else if (FLOODMAP_BARRIERS.equals(name)) { |
111 createBarriersLayer(flys, wms); | 111 createBarriersLayer(flys, wms); |
112 } | |
113 else if (FLOODMAP_USERSHAPE.equals(name)) { | |
114 createUserShapeLayer(flys, wms); | |
112 } | 115 } |
113 else { | 116 else { |
114 createDatabaseLayer(flys, wms, attr); | 117 createDatabaseLayer(flys, wms, attr); |
115 } | 118 } |
116 } | 119 } |
158 logger.error(ioe, ioe); | 161 logger.error(ioe, ioe); |
159 } | 162 } |
160 } | 163 } |
161 | 164 |
162 | 165 |
166 protected void createUserShapeLayer(FLYSArtifact flys, WMSLayerFacet wms) { | |
167 MapfileGenerator mfg = MapfileGenerator.getInstance(); | |
168 | |
169 try { | |
170 mfg.createUserShapeLayer(flys, wms); | |
171 } | |
172 catch (FileNotFoundException fnfe) { | |
173 logger.error(fnfe, fnfe); | |
174 } | |
175 catch (IOException ioe) { | |
176 logger.error(ioe, ioe); | |
177 } | |
178 } | |
179 | |
180 | |
163 protected void createDatabaseLayer( | 181 protected void createDatabaseLayer( |
164 FLYSArtifact flys, | 182 FLYSArtifact flys, |
165 WMSLayerFacet wms, | 183 WMSLayerFacet wms, |
166 Document attr | 184 Document attr |
167 ) { | 185 ) { |