22 QString QgsAssignProjectionAlgorithm::name()
const 24 return QStringLiteral(
"assignprojection" );
27 QString QgsAssignProjectionAlgorithm::displayName()
const 29 return QObject::tr(
"Assign projection" );
32 QStringList QgsAssignProjectionAlgorithm::tags()
const 34 return QObject::tr(
"assign,set,transform,reproject,crs,srs,warp" ).split(
',' );
37 QString QgsAssignProjectionAlgorithm::group()
const 39 return QObject::tr(
"Vector general" );
42 QString QgsAssignProjectionAlgorithm::groupId()
const 44 return QStringLiteral(
"vectorgeneral" );
47 QString QgsAssignProjectionAlgorithm::outputName()
const 49 return QObject::tr(
"Assigned CRS" );
52 QString QgsAssignProjectionAlgorithm::shortHelpString()
const 54 return QObject::tr(
"This algorithm assigns a new projection to a vector layer. It creates a new layer with the exact same features " 55 "and geometries as the input one, but assigned to a new CRS. E.g. the geometries are not reprojected, they are just assigned " 56 "to a different CRS. This algorithm can be used to repair layers which have been assigned an incorrect projection.\n\n" 57 "Attributes are not modified by this algorithm." );
60 QgsAssignProjectionAlgorithm *QgsAssignProjectionAlgorithm::createInstance()
const 62 return new QgsAssignProjectionAlgorithm();
65 bool QgsAssignProjectionAlgorithm::supportInPlaceEdit(
const QgsMapLayer *layer )
const 71 void QgsAssignProjectionAlgorithm::initParameters(
const QVariantMap & )
73 addParameter(
new QgsProcessingParameterCrs( QStringLiteral(
"CRS" ), QObject::tr(
"Assigned CRS" ), QStringLiteral(
"EPSG:4326" ) ) );
83 mDestCrs = parameterAsCrs( parameters, QStringLiteral(
"CRS" ), context );
Base class for all map layer types.
Base class for providing feedback from a processing algorithm.
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
QList< QgsFeature > QgsFeatureList
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
A coordinate reference system parameter for processing algorithms.
Flag
Flags controlling how QgsProcessingFeatureSource fetches features.
Contains information about the context in which a processing algorithm is executed.