bool QgsAddXYFieldsAlgorithm::prepareAlgorithm( const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback * ) { mPrefix = parameterAsString( parameters, QStringLiteral( "PREFIX" ), context ); mCrs = parameterAsCrs( parameters, QStringLiteral( "CRS" ), context ); return true; }
bool QgsTransformAlgorithm::prepareAlgorithm( const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback * ) { mDestCrs = parameterAsCrs( parameters, QStringLiteral( "TARGET_CRS" ), context ); mTransformContext = context.project() ? context.project()->transformContext() : QgsCoordinateTransformContext(); return true; }