Skip to content
Permalink
Browse files

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.
  • Loading branch information
rldhont committed Apr 24, 2013
1 parent 5533d57 commit 28ade759b32bee140356081607d86814b25a755f
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/core/qgsgml.cpp
  2. +2 −2 src/core/qgsogcutils.cpp
@@ -424,8 +424,8 @@ void QgsGml::endElement( const XML_Char* el )
{
//error
}
unsigned char* wkb;
int wkbSize;
unsigned char* wkb = 0;
int wkbSize = 0;
if ( getRingWKB( &wkb, &wkbSize, pointList ) != 0 )
{
//error
@@ -1267,11 +1267,11 @@ QDomElement QgsOgcUtils::geometryToGML( QgsGeometry* geometry, QDomDocument& doc
{
if ( jdx != 0 )
{
coordString += cs;
coordString += ts;
}
x = ( double * ) ptr;
coordString += QString::number( *x, 'f', 8 ).remove( QRegExp( "[0]{1,7}$" ) );
coordString += ts;
coordString += cs;
ptr += sizeof( double );
y = ( double * ) ptr;
coordString += QString::number( *y, 'f', 8 ).remove( QRegExp( "[0]{1,7}$" ) );

0 comments on commit 28ade75

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