Skip to content

Commit 28ade75

Browse files
committed
shapefiles served with qgis wfs server are completely wrong #7536
The bug is due to an inversion between tuple and coordinates separator in Polygon coordinates element.
1 parent 5533d57 commit 28ade75

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/qgsgml.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ void QgsGml::endElement( const XML_Char* el )
424424
{
425425
//error
426426
}
427-
unsigned char* wkb;
428-
int wkbSize;
427+
unsigned char* wkb = 0;
428+
int wkbSize = 0;
429429
if ( getRingWKB( &wkb, &wkbSize, pointList ) != 0 )
430430
{
431431
//error

src/core/qgsogcutils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1267,11 +1267,11 @@ QDomElement QgsOgcUtils::geometryToGML( QgsGeometry* geometry, QDomDocument& doc
12671267
{
12681268
if ( jdx != 0 )
12691269
{
1270-
coordString += cs;
1270+
coordString += ts;
12711271
}
12721272
x = ( double * ) ptr;
12731273
coordString += QString::number( *x, 'f', 8 ).remove( QRegExp( "[0]{1,7}$" ) );
1274-
coordString += ts;
1274+
coordString += cs;
12751275
ptr += sizeof( double );
12761276
y = ( double * ) ptr;
12771277
coordString += QString::number( *y, 'f', 8 ).remove( QRegExp( "[0]{1,7}$" ) );

0 commit comments

Comments
 (0)