File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1136,7 +1136,7 @@ int QgsWFSProvider::getWkbFromGML2MultiPolygon(const QDomElement& geometryElemen
1136
1136
{
1137
1137
continue ;
1138
1138
}
1139
- currentLinearRingElement = linearRingNodeList.at (i ).toElement ();
1139
+ currentLinearRingElement = linearRingNodeList.at (0 ).toElement ();
1140
1140
currentCoordinateList = currentLinearRingElement.elementsByTagNameNS (GML_NAMESPACE, " coordinates" );
1141
1141
if (currentCoordinateList.size () < 1 )
1142
1142
{
@@ -1150,16 +1150,16 @@ int QgsWFSProvider::getWkbFromGML2MultiPolygon(const QDomElement& geometryElemen
1150
1150
1151
1151
// find interior rings
1152
1152
QDomNodeList innerBoundaryList = currentPolygonElement.elementsByTagNameNS (GML_NAMESPACE, " innerBoundaryIs" );
1153
- for (int i = 0 ; i < innerBoundaryList.size (); ++i )
1153
+ for (int j = 0 ; j < innerBoundaryList.size (); ++j )
1154
1154
{
1155
1155
std::list<QgsPoint> ringCoordinates;
1156
- currentInnerBoundaryElement = innerBoundaryList.at (i ).toElement ();
1156
+ currentInnerBoundaryElement = innerBoundaryList.at (j ).toElement ();
1157
1157
linearRingNodeList = currentOuterBoundaryElement.elementsByTagNameNS (GML_NAMESPACE, " LinearRing" );
1158
1158
if (linearRingNodeList.size () < 1 )
1159
1159
{
1160
1160
continue ;
1161
1161
}
1162
- currentLinearRingElement = linearRingNodeList.at (i ).toElement ();
1162
+ currentLinearRingElement = linearRingNodeList.at (j ).toElement ();
1163
1163
currentCoordinateList = currentLinearRingElement.elementsByTagNameNS (GML_NAMESPACE, " coordinates" );
1164
1164
if (currentCoordinateList.size () < 1 )
1165
1165
{
You can’t perform that action at this time.
0 commit comments