mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Remove namespace prefix from typename in QgsGml
This commit is contained in:
parent
a788b0d9f8
commit
ee4cb3d83d
@ -50,6 +50,12 @@ QgsGml::QgsGml(
|
||||
}
|
||||
|
||||
mEndian = QgsApplication::endian();
|
||||
|
||||
int index = mTypeName.indexOf( ":" );
|
||||
if ( index != -1 && index < mTypeName.length() )
|
||||
{
|
||||
mTypeName = mTypeName.mid( index + 1 );
|
||||
}
|
||||
}
|
||||
|
||||
QgsGml::~QgsGml()
|
||||
@ -187,8 +193,7 @@ void QgsGml::startElement( const XML_Char* el, const XML_Char** attr )
|
||||
{
|
||||
mParseModeStack.push( QgsGml::boundingBox );
|
||||
}
|
||||
else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
|
||||
//else if ( localName == mTypeName )
|
||||
else if ( localName == mTypeName )
|
||||
{
|
||||
mCurrentFeature = new QgsFeature( mFeatureCount );
|
||||
QgsAttributes attributes( mThematicAttributes.size() ); //add empty attributes
|
||||
@ -306,8 +311,7 @@ void QgsGml::endElement( const XML_Char* el )
|
||||
mParseModeStack.pop();
|
||||
}
|
||||
}
|
||||
//else if ( localName == mTypeName )
|
||||
else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
|
||||
else if ( localName == mTypeName )
|
||||
{
|
||||
if ( mCurrentWKBSize > 0 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user