File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ QgsGml::QgsGml(
50
50
}
51
51
52
52
mEndian = QgsApplication::endian ();
53
+
54
+ int index = mTypeName .indexOf ( " :" );
55
+ if ( index != -1 && index < mTypeName .length () )
56
+ {
57
+ mTypeName = mTypeName .mid ( index + 1 );
58
+ }
53
59
}
54
60
55
61
QgsGml::~QgsGml ()
@@ -187,8 +193,7 @@ void QgsGml::startElement( const XML_Char* el, const XML_Char** attr )
187
193
{
188
194
mParseModeStack .push ( QgsGml::boundingBox );
189
195
}
190
- else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + " featureMember" )
191
- // else if ( localName == mTypeName )
196
+ else if ( localName == mTypeName )
192
197
{
193
198
mCurrentFeature = new QgsFeature ( mFeatureCount );
194
199
QgsAttributes attributes ( mThematicAttributes .size () ); // add empty attributes
@@ -306,8 +311,7 @@ void QgsGml::endElement( const XML_Char* el )
306
311
mParseModeStack .pop ();
307
312
}
308
313
}
309
- // else if ( localName == mTypeName )
310
- else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + " featureMember" )
314
+ else if ( localName == mTypeName )
311
315
{
312
316
if ( mCurrentWKBSize > 0 )
313
317
{
You can’t perform that action at this time.
0 commit comments