Skip to content
Permalink
Browse files

fix #8083 (MultiSurfaces not supported)

  • Loading branch information
jef-n committed Jun 16, 2013
1 parent 883785c commit 65b0cd924302fe0eb82e0ebf6d948f3cc74a0603
Showing with 28 additions and 6 deletions.
  1. +28 −6 src/core/qgsgml.cpp
@@ -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);
@@ -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);
@@ -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" )
{

0 comments on commit 65b0cd9

Please sign in to comment.
You can’t perform that action at this time.