Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java @ 1854:e372934f0c42
Replaced the dbconnection.include used by Mapserver - these information are provided by LayerInfo objects now, which reduces config overhead.
flys-artifacts/trunk@3199 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 09 Nov 2011 15:00:29 +0000 |
parents | 7bb5bfd3b51f |
children | dd467951335c |
comparison
equal
deleted
inserted
replaced
1853:5b2122a8bcbf | 1854:e372934f0c42 |
---|---|
527 layerinfo.setFilter(wms.getFilter()); | 527 layerinfo.setFilter(wms.getFilter()); |
528 layerinfo.setData(wms.getData()); | 528 layerinfo.setData(wms.getData()); |
529 layerinfo.setTitle(wms.getDescription()); | 529 layerinfo.setTitle(wms.getDescription()); |
530 layerinfo.setStyle(style); | 530 layerinfo.setStyle(style); |
531 layerinfo.setExtent(GeometryUtils.jtsBoundsToOLBounds(wms.getExtent())); | 531 layerinfo.setExtent(GeometryUtils.jtsBoundsToOLBounds(wms.getExtent())); |
532 layerinfo.setConnection(wms.getConnection()); | |
533 layerinfo.setConnectionType(wms.getConnectionType()); | |
532 | 534 |
533 String name = MS_LAYER_PREFIX + wms.getName(); | 535 String name = MS_LAYER_PREFIX + wms.getName(); |
534 | 536 |
535 Template template = getTemplateByName(DB_LAYER_TEMPLATE); | 537 Template template = getTemplateByName(DB_LAYER_TEMPLATE); |
536 if (template == null) { | 538 if (template == null) { |