comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java @ 1131:effe8f945c93

Create WMSLayerFacets for the WSPLGEN results after we have started a WSPLGEN job. flys-artifacts/trunk@2646 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 05 Sep 2011 16:08:19 +0000
parents da3c3e286c88
children bcf70a452646
comparison
equal deleted inserted replaced
1130:e6dd52342eb7 1131:effe8f945c93
39 39
40 import de.intevation.flys.artifacts.FLYSArtifact; 40 import de.intevation.flys.artifacts.FLYSArtifact;
41 import de.intevation.flys.artifacts.model.CalculationResult; 41 import de.intevation.flys.artifacts.model.CalculationResult;
42 import de.intevation.flys.artifacts.model.FacetTypes; 42 import de.intevation.flys.artifacts.model.FacetTypes;
43 import de.intevation.flys.artifacts.model.WQKms; 43 import de.intevation.flys.artifacts.model.WQKms;
44 import de.intevation.flys.artifacts.model.WSPLGENFacet; 44 import de.intevation.flys.artifacts.model.WMSLayerFacet;
45 import de.intevation.flys.artifacts.model.WSPLGENJob; 45 import de.intevation.flys.artifacts.model.WSPLGENJob;
46 import de.intevation.flys.artifacts.states.DefaultState.ComputeType; 46 import de.intevation.flys.artifacts.states.DefaultState.ComputeType;
47 import de.intevation.flys.exports.WstWriter; 47 import de.intevation.flys.exports.WstWriter;
48 import de.intevation.flys.utils.FLYSUtils; 48 import de.intevation.flys.utils.FLYSUtils;
49 import de.intevation.flys.utils.GeometryUtils; 49 import de.intevation.flys.utils.GeometryUtils;
109 } 109 }
110 110
111 Scheduler scheduler = Scheduler.getInstance(); 111 Scheduler scheduler = Scheduler.getInstance();
112 scheduler.addJob(job); 112 scheduler.addJob(job);
113 113
114 facets.add(new WSPLGENFacet(0, FLOODMAP_WSPLGEN, "WSPLGEN")); 114 String url = FLYSUtils.getXPathString(FLYSUtils.XPATH_MAPSERVER_URL);
115 url = url + "user-wms";
116
117 WMSLayerFacet facet = new WMSLayerFacet(
118 0,
119 FLOODMAP_WSPLGEN,
120 "Ergebnis der WSPLGEN Berechnung",
121 ComputeType.ADVANCE,
122 getID(),
123 hash,
124 url);
125
126 facet.addLayer(artifact.identifier());
127 facet.setSrid(FLYSUtils.getRiverSrid(artifact));
128
129 facets.add(facet);
115 130
116 context.afterCall(CallContext.BACKGROUND); 131 context.afterCall(CallContext.BACKGROUND);
117 132
118 return null; 133 return null;
119 } 134 }

http://dive4elements.wald.intevation.org