DescribeFeatureType support namespace

This commit is contained in:
D'Hont René-Luc 2012-11-15 17:59:34 +01:00
parent b1e02ee521
commit 565d2eb8b7

View File

@ -253,7 +253,14 @@ void QgsProjectParser::describeFeatureType( const QString& aTypeName, QDomElemen
QStringList typeNameList;
if ( aTypeName != "" )
{
typeNameList = aTypeName.split( "," );
QStringList typeNameSplit = aTypeName.split( "," );
foreach (const QString &str, typeNameSplit)
{
if ( str.contains( ":" ) )
typeNameList << str.section(":", 1, 1 );
else
typeNameList << str;
}
}
foreach ( const QDomElement &elem, mProjectLayerElements )