Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[server] Always export GeoJSON in WGS84 (fix #14609)
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+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 |
|
|