23QString QgsSwapXYAlgorithm::name()
 const 
   25  return QStringLiteral( 
"swapxy" );
 
   28QString QgsSwapXYAlgorithm::displayName()
 const 
   30  return QObject::tr( 
"Swap X and Y coordinates" );
 
   33QStringList QgsSwapXYAlgorithm::tags()
 const 
   35  return QObject::tr( 
"invert,flip,swap,switch,latitude,longitude" ).split( 
',' );
 
   38QString QgsSwapXYAlgorithm::group()
 const 
   40  return QObject::tr( 
"Vector geometry" );
 
   43QString QgsSwapXYAlgorithm::groupId()
 const 
   45  return QStringLiteral( 
"vectorgeometry" );
 
   48QString QgsSwapXYAlgorithm::outputName()
 const 
   50  return QObject::tr( 
"Swapped" );
 
   53QString QgsSwapXYAlgorithm::shortHelpString()
 const 
   55  return QObject::tr( 
"This algorithm swaps the X and Y coordinate values in input geometries. It can be used to repair geometries " 
   56                      "which have accidentally had their latitude and longitude values reversed." );
 
   59QgsSwapXYAlgorithm *QgsSwapXYAlgorithm::createInstance()
 const 
   61  return new QgsSwapXYAlgorithm();
 
   64bool QgsSwapXYAlgorithm::supportInPlaceEdit( 
const QgsMapLayer *l )
 const 
   66  const QgsVectorLayer *layer = qobject_cast< const QgsVectorLayer * >( l );
 
   89    std::unique_ptr< QgsAbstractGeometry > swappedGeom( geom.
constGet()->
clone() );
 
   90    swappedGeom->swapXy();
 
virtual QgsAbstractGeometry * clone() const =0
Clones the geometry by performing a deep copy.
 
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
 
bool hasGeometry() const
Returns true if the feature has an associated geometry.
 
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry.
 
A geometry is the spatial representation of a feature.
 
const QgsAbstractGeometry * constGet() const SIP_HOLDGIL
Returns a non-modifiable (const) reference to the underlying abstract geometry primitive.
 
Base class for all map layer types.
 
Contains information about the context in which a processing algorithm is executed.
 
bool supportInPlaceEdit(const QgsMapLayer *layer) const override
Checks whether this algorithm supports in-place editing on the given layer Default implementation for...
 
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.
 
Represents a vector layer which manages a vector based data sets.
 
bool isSpatial() const FINAL
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeome...
 
QList< QgsFeature > QgsFeatureList