comparison flys-artifacts/src/main/java/de/intevation/flys/exports/MapGenerator.java @ 2616:27cc95e65f18

Defined a style for WSPLGEN layers which are now modifiable. flys-artifacts/trunk@4200 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 05 Apr 2012 07:21:58 +0000
parents 5d158f8ad080
children baaf7d125c43
comparison
equal deleted inserted replaced
2615:b0597a63fe70 2616:27cc95e65f18
102 setMaxExtent(extent); 102 setMaxExtent(extent);
103 setSrid(wms.getSrid()); 103 setSrid(wms.getSrid());
104 104
105 if (FLOODMAP_WSPLGEN.equals(name)) { 105 if (FLOODMAP_WSPLGEN.equals(name)) {
106 setInitialExtent(extent); 106 setInitialExtent(extent);
107 createWSPLGENLayer(flys, wms); 107 createWSPLGENLayer(flys, wms, attr);
108 } 108 }
109 else if (FLOODMAP_BARRIERS.equals(name)) { 109 else if (FLOODMAP_BARRIERS.equals(name)) {
110 createBarriersLayer(flys, wms); 110 createBarriersLayer(flys, wms);
111 } 111 }
112 else { 112 else {
117 logger.warn("Facet not supported: " + nativeFacet.getClass()); 117 logger.warn("Facet not supported: " + nativeFacet.getClass());
118 } 118 }
119 } 119 }
120 120
121 121
122 protected void createWSPLGENLayer(FLYSArtifact flys, WMSLayerFacet wms) { 122 protected void createWSPLGENLayer(
123 FLYSArtifact flys,
124 WMSLayerFacet wms,
125 Document attr
126 ) {
123 try { 127 try {
124 MapfileGenerator mfg = MapfileGenerator.getInstance(); 128 MapfileGenerator mfg = MapfileGenerator.getInstance();
125 mfg.createUeskLayer(flys, wms); 129 mfg.createUeskLayer(
130 flys,
131 wms,
132 ThemeUtil.createWSPLGENStyle(attr));
126 } 133 }
127 catch (IOException ioe) { 134 catch (IOException ioe) {
128 logger.error(ioe, ioe); 135 logger.error(ioe, ioe);
129 } 136 }
130 } 137 }

http://dive4elements.wald.intevation.org