Skip to content

Commit

Permalink
Fix for a wfs client multipolygon bug
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5907 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Oct 2, 2006
1 parent 535d232 commit e184886
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/wfs/qgswfsprovider.cpp
Expand Up @@ -1136,7 +1136,7 @@ int QgsWFSProvider::getWkbFromGML2MultiPolygon(const QDomElement& geometryElemen
{
continue;
}
currentLinearRingElement = linearRingNodeList.at(i).toElement();
currentLinearRingElement = linearRingNodeList.at(0).toElement();
currentCoordinateList = currentLinearRingElement.elementsByTagNameNS(GML_NAMESPACE, "coordinates");
if(currentCoordinateList.size() < 1)
{
Expand All @@ -1150,16 +1150,16 @@ int QgsWFSProvider::getWkbFromGML2MultiPolygon(const QDomElement& geometryElemen

//find interior rings
QDomNodeList innerBoundaryList = currentPolygonElement.elementsByTagNameNS(GML_NAMESPACE, "innerBoundaryIs");
for(int i = 0; i < innerBoundaryList.size(); ++i)
for(int j = 0; j < innerBoundaryList.size(); ++j)
{
std::list<QgsPoint> ringCoordinates;
currentInnerBoundaryElement = innerBoundaryList.at(i).toElement();
currentInnerBoundaryElement = innerBoundaryList.at(j).toElement();
linearRingNodeList = currentOuterBoundaryElement.elementsByTagNameNS(GML_NAMESPACE, "LinearRing");
if(linearRingNodeList.size() < 1)
{
continue;
}
currentLinearRingElement = linearRingNodeList.at(i).toElement();
currentLinearRingElement = linearRingNodeList.at(j).toElement();
currentCoordinateList = currentLinearRingElement.elementsByTagNameNS(GML_NAMESPACE, "coordinates");
if(currentCoordinateList.size() < 1)
{
Expand Down

0 comments on commit e184886

Please sign in to comment.