From b4e6c15998c9671d626bcdfb2293f5c67fff8eb4 Mon Sep 17 00:00:00 2001 From: Lyn Elisa Goltz Date: Tue, 11 Apr 2023 14:54:57 +0200 Subject: [PATCH 1/2] #1481 (1908) - remove prefix from featuretype title --- .../org/deegree/services/wfs/GetCapabilitiesHandler.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java b/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java index 64723ccc6f..ace36dbd25 100644 --- a/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java +++ b/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java @@ -270,11 +270,7 @@ void export100() if ( ftMd != null && ftMd.getTitle( null ) != null ) { writer.writeCharacters( ftMd.getTitle( null ).getString() ); } else { - if ( prefix != null ) { - writer.writeCharacters( prefix + ":" + ftName.getLocalPart() ); - } else { - writer.writeCharacters( ftName.getLocalPart() ); - } + writer.writeCharacters( ftName.getLocalPart() ); } writer.writeEndElement(); From d3d301929e4143b02173ba6e33b8d1c91f850694 Mon Sep 17 00:00:00 2001 From: Lyn Elisa Goltz Date: Thu, 13 Apr 2023 12:25:27 +0200 Subject: [PATCH 2/2] #1481 (1908) - remove prefix from featuretype title (WFS 1.1.0 and 2.0.0) --- .../java/org/deegree/services/wfs/GetCapabilitiesHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java b/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java index ace36dbd25..7af970d621 100644 --- a/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java +++ b/deegree-services/deegree-services-wfs/src/main/java/org/deegree/services/wfs/GetCapabilitiesHandler.java @@ -654,7 +654,7 @@ void export110() if ( ftMd != null && ftMd.getTitle( null ) != null ) { writer.writeCharacters( ftMd.getTitle( null ).getString() ); } else { - writer.writeCharacters( prefix + ":" + ftName.getLocalPart() ); + writer.writeCharacters( ftName.getLocalPart() ); } writer.writeEndElement(); @@ -995,7 +995,7 @@ void export200() if ( ftMd != null && ftMd.getTitle( null ) != null ) { writer.writeCharacters( ftMd.getTitle( null ).getString() ); } else { - writer.writeCharacters( prefix + ":" + ftName.getLocalPart() ); + writer.writeCharacters( ftName.getLocalPart() ); } writer.writeEndElement();