Skip to content
Permalink
Browse files

[server] Always export GeoJSON in WGS84 (fix #14609)

  • Loading branch information
nyalldawson committed May 7, 2016
1 parent ca2c629 commit 9ea56acde03ace5c078c3d95f98be267eb1c22fd
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/server/qgswfsserver.cpp
@@ -1864,11 +1864,12 @@ QgsFeatureIds QgsWFSServer::getFeatureIdsFromFilter( const QDomElement& filterEl
return fids;
}

QString QgsWFSServer::createFeatureGeoJSON( QgsFeature* feat, int prec, QgsCoordinateReferenceSystem &, const QgsAttributeList& attrIndexes, const QSet<QString>& excludedAttributes ) /*const*/
QString QgsWFSServer::createFeatureGeoJSON( QgsFeature* feat, int prec, QgsCoordinateReferenceSystem& crs, const QgsAttributeList& attrIndexes, const QSet<QString>& excludedAttributes ) /*const*/
{
QString id = QString( "%1.%2" ).arg( mTypeName, FID_TO_STRING( feat->id() ) );

QgsJSONExporter exporter;
exporter.setSourceCrs( crs );
exporter.setPrecision( prec );

//copy feature so we can modify its geometry as required

0 comments on commit 9ea56ac

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