Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/InundationDurationState.java @ 9481:787fc085459b
TSV introduced; uinfo.inundationWMS-Config
author | gernotbelger |
---|---|
date | Wed, 12 Sep 2018 10:55:09 +0200 |
parents | 0633f963c5be |
children | 992c188b7330 |
comparison
equal
deleted
inserted
replaced
9480:7228bd10a8cc | 9481:787fc085459b |
---|---|
33 /// ** The log that is used in this state. */ | 33 /// ** The log that is used in this state. */ |
34 // private static Logger log = Logger.getLogger(FlowDepthState.class); | 34 // private static Logger log = Logger.getLogger(FlowDepthState.class); |
35 | 35 |
36 private static final long serialVersionUID = 1L; | 36 private static final long serialVersionUID = 1L; |
37 | 37 |
38 private static final String LABEL_URL_SEPARATOR = ";";// always sync with client (ExportPanel) | 38 private static final String LABEL_URL_SEPARATOR = ";LABEL_URL_SEPARATOR;";// always sync with client (ExportPanel) |
39 | 39 |
40 /** | 40 /** |
41 * From this state can only be continued trivially. | 41 * From this state can only be continued trivially. |
42 */ | 42 */ |
43 @Override | 43 @Override |
92 | 92 |
93 final String label = layer.getLabel(); | 93 final String label = layer.getLabel(); |
94 final String url = layer.getUrl(); | 94 final String url = layer.getUrl(); |
95 | 95 |
96 final WMSLayerFacet wmsFacet = new WMSLayerFacet(index, FLOODMAP_EXTERNAL_WMS_INUNDATIONDUR + index, label, type, getID(), hash, url); | 96 final WMSLayerFacet wmsFacet = new WMSLayerFacet(index, FLOODMAP_EXTERNAL_WMS_INUNDATIONDUR + index, label, type, getID(), hash, url); |
97 wmsFacet.addLayer(layer.getLayer()); | |
98 | |
97 facets.add(wmsFacet); | 99 facets.add(wmsFacet); |
98 | |
99 wmsFacet.addLayer("OSM-WMS-Dienst"); | |
100 | 100 |
101 // wmsFacet.setExtent(getExtent(false)); | 101 // wmsFacet.setExtent(getExtent(false)); |
102 // wmsFacet.setOriginalExtent(getExtent(true)); | 102 // wmsFacet.setOriginalExtent(getExtent(true)); |
103 wmsFacet.setSrid(getSrid()); | 103 wmsFacet.setSrid(getSrid()); |
104 | 104 |
108 index++; // because super.computeAdvance adds the river theme with index 0 | 108 index++; // because super.computeAdvance adds the river theme with index 0 |
109 } | 109 } |
110 | 110 |
111 // tODO: create layer links: filter by "showLayerLink" | 111 // tODO: create layer links: filter by "showLayerLink" |
112 | 112 |
113 // tODO: create layer links: filter by "showLayerLink" | |
114 | |
115 final Calculation report = res.getReport(); | 113 final Calculation report = res.getReport(); |
116 if (report.hasProblems()) | 114 if (report.hasProblems()) |
117 facets.add(new ReportFacet(ComputeType.ADVANCE, hash, this.id)); | 115 facets.add(new ReportFacet(ComputeType.ADVANCE, hash, this.id)); |
118 | 116 |
119 return res; | 117 return res; |
120 } | 118 } |
121 | 119 |
122 private CalculationResult doCompute(final UINFOArtifact sinfo, final CallContext context, final Object old) { | 120 private CalculationResult doCompute(final UINFOArtifact artifact, final CallContext context, final Object old) { |
123 if (old instanceof CalculationResult) | 121 if (old instanceof CalculationResult) |
124 return (CalculationResult) old; | 122 return (CalculationResult) old; |
125 | 123 |
126 return new InundationDurationCalculation(context).calculate(sinfo); | 124 return new InundationDurationCalculation(context).calculate(artifact); |
127 } | 125 } |
128 } | 126 } |