File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,8 @@ void QgsGml::startElement( const XML_Char* el, const XML_Char** attr )
189
189
{
190
190
mParseModeStack .push ( QgsGml::geometry );
191
191
}
192
- else if ( mParseModeStack .size () == 0 && elementName == GML_NAMESPACE + NS_SEPARATOR + " boundedBy" )
192
+ // else if ( mParseModeStack.size() == 0 && elementName == GML_NAMESPACE + NS_SEPARATOR + "boundedBy" )
193
+ else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + " boundedBy" )
193
194
{
194
195
mParseModeStack .push ( QgsGml::boundingBox );
195
196
}
@@ -240,7 +241,7 @@ void QgsGml::startElement( const XML_Char* el, const XML_Char** attr )
240
241
{
241
242
mParseModeStack .push ( QgsGml::multiPolygon );
242
243
}
243
- else if ( mParseModeStack .size () == 1 && mParseModeStack .top () == QgsGml::feature && mThematicAttributes .find ( localName ) != mThematicAttributes .end () )
244
+ else if (( mParseModeStack .size () > 0 ) && ( mParseModeStack .top () == QgsGml::feature ) && ( mThematicAttributes .find ( localName ) != mThematicAttributes .end () ) )
244
245
{
245
246
mParseModeStack .push ( QgsGml::attribute );
246
247
mAttributeName = localName;
@@ -298,7 +299,7 @@ void QgsGml::endElement( const XML_Char* el )
298
299
mParseModeStack .pop ();
299
300
}
300
301
}
301
- else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + " boundedBy" )
302
+ else if ( ! mParseModeStack . empty () && mParseModeStack . top () == QgsGml::boundingBox && elementName == GML_NAMESPACE + NS_SEPARATOR + " boundedBy" )
302
303
{
303
304
// create bounding box from mStringCash
304
305
if ( createBBoxFromCoordinateString ( mCurrentExtent , mStringCash ) != 0 )
You can’t perform that action at this time.
0 commit comments