Skip to content

Commit 9ea56ac

Browse files
committedMay 9, 2016
[server] Always export GeoJSON in WGS84 (fix #14609)
1 parent ca2c629 commit 9ea56ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/server/qgswfsserver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,11 +1864,12 @@ QgsFeatureIds QgsWFSServer::getFeatureIdsFromFilter( const QDomElement& filterEl
18641864
return fids;
18651865
}
18661866

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

18711871
QgsJSONExporter exporter;
1872+
exporter.setSourceCrs( crs );
18721873
exporter.setPrecision( prec );
18731874

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

0 commit comments

Comments
 (0)
Please sign in to comment.