23 QString QgsBoundaryAlgorithm::name()
const 25 return QStringLiteral(
"boundary" );
28 QString QgsBoundaryAlgorithm::displayName()
const 30 return QObject::tr(
"Boundary" );
33 QStringList QgsBoundaryAlgorithm::tags()
const 35 return QObject::tr(
"boundary,ring,border,exterior" ).split(
',' );
38 QString QgsBoundaryAlgorithm::group()
const 40 return QObject::tr(
"Vector geometry" );
43 QString QgsBoundaryAlgorithm::groupId()
const 45 return QStringLiteral(
"vectorgeometry" );
48 QString QgsBoundaryAlgorithm::outputName()
const 50 return QObject::tr(
"Boundary" );
53 QString QgsBoundaryAlgorithm::shortHelpString()
const 55 return QObject::tr(
"Returns the closure of the combinatorial boundary of the input geometries (ie the " 56 "topological boundary of the geometry). For instance, a polygon geometry will have a " 57 "boundary consisting of the linestrings for each ring in the polygon. Only valid for " 58 "polygon or line layers." );
61 QList<int> QgsBoundaryAlgorithm::inputLayerTypes()
const 66 bool QgsBoundaryAlgorithm::supportInPlaceEdit(
const QgsMapLayer * )
const 71 QgsBoundaryAlgorithm *QgsBoundaryAlgorithm::createInstance()
const 73 return new QgsBoundaryAlgorithm();
112 if ( outputGeometry.
isNull() )
114 feedback->
reportError( QObject::tr(
"No boundary for feature %1 (possibly a closed linestring?)'" ).arg( feature.
id() ) );
Base class for all map layer types.
Base class for providing feedback from a processing algorithm.
QList< QgsFeature > QgsFeatureList
A geometry is the spatial representation of a feature.
virtual QgsAbstractGeometry * boundary() const =0
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the...
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool hasGeometry() const
Returns true if the feature has an associated geometry.
static bool hasZ(Type type)
Tests whether a WKB type contains the z-dimension.
Type
The WKB type describes the number of dimensions a geometry has.
static Type addM(Type type)
Adds the m dimension to a WKB type and returns the new type.
static GeometryType geometryType(Type type)
Returns the geometry type for a WKB type, e.g., both MultiPolygon and CurvePolygon would have a Polyg...
static Type addZ(Type type)
Adds the z dimension to a WKB type and returns the new type.
const QgsAbstractGeometry * constGet() const
Returns a non-modifiable (const) reference to the underlying abstract geometry primitive.
void clearGeometry()
Removes any geometry associated with the feature.
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry.
static bool hasM(Type type)
Tests whether a WKB type contains m values.
Contains information about the context in which a processing algorithm is executed.
virtual void reportError(const QString &error, bool fatalError=false)
Reports that the algorithm encountered an error while executing.