Skip to content

Commit

Permalink
qgswfsgetfeature: Use createFromUserInput everywhere for crs
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjano authored and troopa81 committed Oct 3, 2024
1 parent ba85632 commit b3aad56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/services/wfs/qgswfsgetfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ namespace QgsWfs
outputSrsName = ( aRequest.outputFormat == QgsWfsParameters::Format::GeoJSON ) ? QStringLiteral( "EPSG:4326" ) : vlayer->crs().authid();
}

const QgsCoordinateReferenceSystem outputCrs = QgsCoordinateReferenceSystem::fromOgcWmsCrs( outputSrsName );
QgsCoordinateReferenceSystem outputCrs;
outputCrs.createFromUserInput( outputSrsName );

bool forceGeomToMulti = QgsWkbTypes::isMultiType( vlayer->wkbType() );

Expand Down

0 comments on commit b3aad56

Please sign in to comment.