Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java @ 1793:1636686070f7
Initial commit to support styles in maps.
flys-artifacts/trunk@3116 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 28 Oct 2011 14:42:24 +0000 |
parents | 49ad801076e4 |
children | 5364b86a0880 |
comparison
equal
deleted
inserted
replaced
1792:49ad801076e4 | 1793:1636686070f7 |
---|---|
464 * geometries from database. | 464 * geometries from database. |
465 * | 465 * |
466 * @param flys The FLYSArtifact that owns <i>wms</i>. | 466 * @param flys The FLYSArtifact that owns <i>wms</i>. |
467 * @param wms The WMSLayerFacet that contains information for the layer. | 467 * @param wms The WMSLayerFacet that contains information for the layer. |
468 */ | 468 */ |
469 public void createDatabaseLayer(FLYSArtifact flys, WMSDBLayerFacet wms) | 469 public void createDatabaseLayer( |
470 FLYSArtifact flys, | |
471 WMSDBLayerFacet wms, | |
472 String style | |
473 ) | |
470 throws FileNotFoundException, IOException | 474 throws FileNotFoundException, IOException |
471 { | 475 { |
472 logger.debug("createDatabaseLayer"); | 476 logger.debug("createDatabaseLayer"); |
473 | 477 |
474 LayerInfo layerinfo = new DBLayerInfo( | 478 LayerInfo layerinfo = new DBLayerInfo( |
475 flys.identifier() + "-" + wms.getName(), | 479 flys.identifier() + "-" + wms.getName(), |
476 "LINE", | 480 "LINE", |
477 wms.getFilter(), | 481 wms.getFilter(), |
478 wms.getData(), | 482 wms.getData(), |
479 wms.getDescription()); | 483 wms.getDescription()); |
484 layerinfo.setStyle(style); | |
480 | 485 |
481 String name = MS_LAYER_PREFIX + wms.getName(); | 486 String name = MS_LAYER_PREFIX + wms.getName(); |
482 | 487 |
483 Template template = getTemplateByName(DB_LAYER_TEMPLATE); | 488 Template template = getTemplateByName(DB_LAYER_TEMPLATE); |
484 if (template == null) { | 489 if (template == null) { |