Skip to content

Commit 565d2eb

Browse files
committed
DescribeFeatureType support namespace
1 parent b1e02ee commit 565d2eb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/mapserver/qgsprojectparser.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,14 @@ void QgsProjectParser::describeFeatureType( const QString& aTypeName, QDomElemen
253253
QStringList typeNameList;
254254
if ( aTypeName != "" )
255255
{
256-
typeNameList = aTypeName.split( "," );
256+
QStringList typeNameSplit = aTypeName.split( "," );
257+
foreach (const QString &str, typeNameSplit)
258+
{
259+
if ( str.contains( ":" ) )
260+
typeNameList << str.section(":", 1, 1 );
261+
else
262+
typeNameList << str;
263+
}
257264
}
258265

259266
foreach ( const QDomElement &elem, mProjectLayerElements )

0 commit comments

Comments
 (0)