Skip to content
Permalink
Browse files
Fix for a wfs client multipolygon bug
git-svn-id: http://svn.osgeo.org/qgis/trunk@5907 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Oct 2, 2006
1 parent c1907b3 commit 461667573c455b387999a93689e8176a2f1a9a7e
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/wfs/qgswfsprovider.cpp
@@ -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)
{
@@ -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)
{

0 comments on commit 4616675

Please sign in to comment.