Skip to content

Commit

Permalink
Merge pull request #1127 from lat-lon/requestedMimeTypeGml322-7070
Browse files Browse the repository at this point in the history
SchemaLocation points to GML 3.2.2 when GML 3.2.1 is requested
  • Loading branch information
stephanr committed Dec 1, 2021
2 parents e96751d + da5cd67 commit 81f8dd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ protected String getSchemaLocation( Version version, GMLVersion gmlVersion, QNam
try {
if ( VERSION_100.equals( version ) && gmlVersion == GML_2 ) {
baseUrl.append( "XMLSCHEMA" );
} else if ( VERSION_200.equals( version ) && gmlVersion == GML_32 ) {
baseUrl.append( URLEncoder.encode( gmlVersion.getMimeType(), "UTF-8" ) );
} else if ( gmlVersion == GML_32 ) {
baseUrl.append( URLEncoder.encode( options.getMimeType(), "UTF-8" ) );
} else {
baseUrl.append( URLEncoder.encode( gmlVersion.getMimeTypeOldStyle(), "UTF-8" ) );
}
Expand Down

0 comments on commit 81f8dd5

Please sign in to comment.