Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerOutputState.java @ 853:164d102b0af5
Fixed Bug in renaming a Layer in Product Layer.
gnv-artifacts/trunk@971 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 23 Apr 2010 10:12:43 +0000 |
parents | 05bf8534a35a |
children | 3fbabd4803d7 |
comparison
equal
deleted
inserted
replaced
852:b5f4b6073cde | 853:164d102b0af5 |
---|---|
588 if (log.isDebugEnabled()) { | 588 if (log.isDebugEnabled()) { |
589 log.debug("Layer title: " + title); | 589 log.debug("Layer title: " + title); |
590 log.debug("Layer type: " + paramType); | 590 log.debug("Layer type: " + paramType); |
591 } | 591 } |
592 | 592 |
593 Document meta = MetaWriter.writeHorizontalcrosssectionMeta( | 593 Document meta = MetaWriter.writeLayerMeta(callContext, uuid, |
594 callContext, uuid, path, paramType); | 594 path, paramType, |
595 this.determineGeometryType(geometryType), | |
596 SHAPEFILE_NAME, | |
597 title); | |
595 if (meta != null) { | 598 if (meta != null) { |
596 MapfileGenerator.getInstance().update(); | 599 MapfileGenerator.getInstance().update(); |
597 return meta; | 600 return meta; |
598 } | 601 } |
599 | 602 |
609 if (title == null) { | 612 if (title == null) { |
610 title = uuid; | 613 title = uuid; |
611 } | 614 } |
612 Document meta = MetaWriter.writeLayerMeta(callContext, uuid, | 615 Document meta = MetaWriter.writeLayerMeta(callContext, uuid, |
613 path, paramType, | 616 path, paramType, |
614 this.determineGeometryType(geometryType)); | 617 this.determineGeometryType(geometryType), |
618 SHAPEFILE_NAME, | |
619 title); | |
615 if (meta != null) { | 620 if (meta != null) { |
616 MapfileGenerator.getInstance().update(); | 621 MapfileGenerator.getInstance().update(); |
617 return meta; | 622 return meta; |
618 } | 623 } |
619 pathElement.setTextContent(path); | 624 pathElement.setTextContent(path); |