comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java @ 1144:c07e9e9c7482

Set the river extent for WMSLayers in the FloodMapState. flys-artifacts/trunk@2667 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 07 Sep 2011 13:54:18 +0000
parents bcf70a452646
children 64b465699a24
comparison
equal deleted inserted replaced
1143:eed81499b0d2 1144:c07e9e9c7482
122 ComputeType.ADVANCE, 122 ComputeType.ADVANCE,
123 getID(), 123 getID(),
124 hash, 124 hash,
125 url); 125 url);
126 126
127 String srid = FLYSUtils.getRiverSrid(artifact); 127 String srid = FLYSUtils.getRiverSrid(artifact);
128 String river = artifact.getDataAsString("river");
128 129
129 wsplgen.addLayer( 130 wsplgen.addLayer(
130 artifact.identifier() + MapfileGenerator.MS_WSPLGEN_POSTFIX); 131 artifact.identifier() + MapfileGenerator.MS_WSPLGEN_POSTFIX);
131 wsplgen.setSrid(srid); 132 wsplgen.setSrid(srid);
133 wsplgen.setExtent(GeometryUtils.getRiverBounds(river));
132 134
133 WMSLayerFacet barriers = new WMSLayerFacet( 135 WMSLayerFacet barriers = new WMSLayerFacet(
134 1, 136 1,
135 FLOODMAP_WSPLGEN, 137 FLOODMAP_WSPLGEN,
136 "Rohre/Graeben/Daemme", 138 "Rohre/Graeben/Daemme",
140 url); 142 url);
141 143
142 barriers.addLayer( 144 barriers.addLayer(
143 artifact.identifier() + MapfileGenerator.MS_BARRIERS_POSTFIX); 145 artifact.identifier() + MapfileGenerator.MS_BARRIERS_POSTFIX);
144 barriers.setSrid(srid); 146 barriers.setSrid(srid);
147 barriers.setExtent(GeometryUtils.getRiverBounds(river));
145 148
146 facets.add(wsplgen); 149 facets.add(wsplgen);
147 facets.add(barriers); 150 facets.add(barriers);
148 151
149 context.afterCall(CallContext.BACKGROUND); 152 context.afterCall(CallContext.BACKGROUND);

http://dive4elements.wald.intevation.org