Skip to content

Commit

Permalink
Merge pull request #1485 from lat-lon/removePrefix-1908-1481
Browse files Browse the repository at this point in the history
Remove WFS namespace prefix in the title of a FeatureType
  • Loading branch information
copierrj authored May 12, 2023
2 parents ae0a323 + d3d3019 commit 08b4618
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -658,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();

Expand Down Expand Up @@ -999,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();

Expand Down

0 comments on commit 08b4618

Please sign in to comment.