comparison flys-artifacts/src/main/java/de/intevation/flys/wsplgen/FacetCreator.java @ 5312:2c1045a1e3fe

Added new states and transitions to UESK calculation and adjusted states and UI. TODO: Some refactoring and code cleanup.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 14 Mar 2013 17:25:00 +0100
parents ba4d7f153890
children ac2746f3e75f
comparison
equal deleted inserted replaced
5311:ff9dfc58d0cb 5312:2c1045a1e3fe
157 ComputeType.ADVANCE, 157 ComputeType.ADVANCE,
158 stateId, 158 stateId,
159 hash, 159 hash,
160 getUrl()); 160 getUrl());
161 161
162 barriers.addLayer( 162 barriers.addLayer(MapfileGenerator.MS_LAYER_PREFIX +
163 MapfileGenerator.MS_BARRIERS_PREFIX + artifact.identifier()); 163 MapfileGenerator.MS_BARRIERS_PREFIX + "lines" + artifact.identifier());
164 barriers.addLayer( MapfileGenerator.MS_LAYER_PREFIX +
165 MapfileGenerator.MS_BARRIERS_PREFIX + "poly" + artifact.identifier());
166
164 barriers.setSrid(getSrid()); 167 barriers.setSrid(getSrid());
165 barriers.setExtent(getBounds()); 168 barriers.setExtent(getBounds());
166 169
167 tmpFacets.add(barriers); 170 tmpFacets.add(barriers);
168 } 171 }
169 172
170 173
171 public void createUserShapeFacet() { 174 public void createShapeFacet(
175 String desc,
176 String layer,
177 String type,
178 int ndx) {
172 WMSLayerFacet shape = new WMSLayerFacet( 179 WMSLayerFacet shape = new WMSLayerFacet(
173 1, 180 1,
174 FLOODMAP_USERSHAPE, 181 type,
175 Resources.getMsg( 182 Resources.getMsg(
176 cc.getMeta(), 183 cc.getMeta(),
177 I18N_USERSHAPE, 184 desc,
178 I18N_USERSHAPE_DEFAULT), 185 I18N_USERSHAPE_DEFAULT),
179 ComputeType.ADVANCE, 186 ComputeType.ADVANCE,
180 stateId, 187 stateId,
181 hash, 188 hash,
182 getUrl()); 189 getUrl());
183 190
184 shape.addLayer( 191 shape.addLayer(
185 MapfileGenerator.MS_USERSHAPE_PREFIX + artifact.identifier()); 192 layer + artifact.identifier());
186 shape.setSrid(getSrid()); 193 shape.setSrid(getSrid());
187 shape.setExtent(getBounds()); 194 shape.setExtent(getBounds());
188 195
189 tmpFacets.add(shape); 196 tmpFacets.add(shape);
190 } 197 }

http://dive4elements.wald.intevation.org