Skip to content

Commit

Permalink
shapefiles served with qgis wfs server are completely wrong #7536
Browse files Browse the repository at this point in the history
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 28ade75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsgml.cpp
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsogcutils.cpp
Expand Up @@ -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}$" ) );
Expand Down

0 comments on commit 28ade75

Please sign in to comment.