22QString QgsAssignProjectionAlgorithm::name()
 const 
   24  return QStringLiteral( 
"assignprojection" );
 
   27QString QgsAssignProjectionAlgorithm::displayName()
 const 
   29  return QObject::tr( 
"Assign projection" );
 
   32QStringList QgsAssignProjectionAlgorithm::tags()
 const 
   34  return QObject::tr( 
"assign,set,transform,reproject,crs,srs,warp" ).split( 
',' );
 
   37QString QgsAssignProjectionAlgorithm::group()
 const 
   39  return QObject::tr( 
"Vector general" );
 
   42QString QgsAssignProjectionAlgorithm::groupId()
 const 
   44  return QStringLiteral( 
"vectorgeneral" );
 
   47QString QgsAssignProjectionAlgorithm::outputName()
 const 
   49  return QObject::tr( 
"Assigned CRS" );
 
   52QString 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." );
 
   60QgsAssignProjectionAlgorithm *QgsAssignProjectionAlgorithm::createInstance()
 const 
   62  return new QgsAssignProjectionAlgorithm();
 
   65bool QgsAssignProjectionAlgorithm::supportInPlaceEdit( 
const QgsMapLayer *layer )
 const 
   71void QgsAssignProjectionAlgorithm::initParameters( 
const QVariantMap & )
 
   73  addParameter( 
new QgsProcessingParameterCrs( QStringLiteral( 
"CRS" ), QObject::tr( 
"Assigned CRS" ), QStringLiteral( 
"EPSG:4326" ) ) );
 
   83  mDestCrs = parameterAsCrs( parameters, QStringLiteral( 
"CRS" ), context );
 
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
 
Base class for all map layer types.
 
Contains information about the context in which a processing algorithm is executed.
 
Flag
Flags controlling how QgsProcessingFeatureSource fetches features.
 
@ FlagSkipGeometryValidityChecks
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
 
Base class for providing feedback from a processing algorithm.
 
A coordinate reference system parameter for processing algorithms.
 
QList< QgsFeature > QgsFeatureList