Skip to content

Commit

Permalink
fix #8083 (MultiSurfaces not supported)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 16, 2013
1 parent 883785c commit 65b0cd9
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions src/core/qgsgml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,16 @@ void QgsGml::endElement( const XML_Char* el )
{
//error
}
mCurrentWKBFragments.begin()->push_back( wkb );
mCurrentWKBFragmentSizes.begin()->push_back( wkbSize );
if ( !mCurrentWKBFragments.isEmpty() )
{
mCurrentWKBFragments.begin()->push_back( wkb );
mCurrentWKBFragmentSizes.begin()->push_back( wkbSize );
}
else
{
QgsDebugMsg( "No wkb fragments" );
}

//wkbList.push_back(wkb);
//wkbSizeList.push_back(wkbSize);
//mCurrentWKBFragments.push_back(wkbList);
Expand Down Expand Up @@ -418,8 +426,15 @@ void QgsGml::endElement( const XML_Char* el )
{
//error
}
mCurrentWKBFragments.begin()->push_back( wkb );
mCurrentWKBFragmentSizes.begin()->push_back( wkbSize );
if ( !mCurrentWKBFragments.isEmpty() )
{
mCurrentWKBFragments.begin()->push_back( wkb );
mCurrentWKBFragmentSizes.begin()->push_back( wkbSize );
}
else
{
QgsDebugMsg( "no wkb fragments" );
}
//wkbList.push_back(wkb);
//wkbSizeList.push_back(wkbSize);
//mCurrentWKBFragments.push_back(wkbList);
Expand All @@ -439,8 +454,15 @@ void QgsGml::endElement( const XML_Char* el )
{
//error
}
mCurrentWKBFragments.begin()->push_back( wkb );
mCurrentWKBFragmentSizes.begin()->push_back( wkbSize );
if ( !mCurrentWKBFragments.isEmpty() )
{
mCurrentWKBFragments.begin()->push_back( wkb );
mCurrentWKBFragmentSizes.begin()->push_back( wkbSize );
}
else
{
QgsDebugMsg( "no wkb fragments" );
}
}
else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "Polygon" )
{
Expand Down

0 comments on commit 65b0cd9

Please sign in to comment.