Skip to content

Commit

Permalink
[server] Always export GeoJSON in WGS84 (fix #14609)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 9, 2016
1 parent ca2c629 commit 9ea56ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/qgswfsserver.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 9ea56ac

Please sign in to comment.