Skip to content

Commit

Permalink
[Server] WFS DescribeFeatureType XMLSCHEMA and version
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont authored and nyalldawson committed Apr 18, 2022
1 parent 3b6f965 commit 3ed8c54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/services/wfs/qgswfsparameters.cpp
Expand Up @@ -259,7 +259,12 @@ namespace QgsWfs
if ( f == Format::NONE &&
request().compare( QLatin1String( "describefeaturetype" ), Qt::CaseInsensitive ) == 0 &&
fStr.compare( QLatin1String( "xmlschema" ), Qt::CaseInsensitive ) == 0 )
f = Format::GML2;
{
if ( versionAsNumber() >= QgsProjectVersion( 1, 1, 0 ) )
return Format::GML3;
else
return Format::GML2;
}

return f;
}
Expand Down

0 comments on commit 3ed8c54

Please sign in to comment.