23QString QgsBoundaryAlgorithm::name()
 const 
   25  return QStringLiteral( 
"boundary" );
 
   28QString QgsBoundaryAlgorithm::displayName()
 const 
   30  return QObject::tr( 
"Boundary" );
 
   33QStringList QgsBoundaryAlgorithm::tags()
 const 
   35  return QObject::tr( 
"boundary,ring,border,exterior" ).split( 
',' );
 
   38QString QgsBoundaryAlgorithm::group()
 const 
   40  return QObject::tr( 
"Vector geometry" );
 
   43QString QgsBoundaryAlgorithm::groupId()
 const 
   45  return  QStringLiteral( 
"vectorgeometry" );
 
   48QString QgsBoundaryAlgorithm::outputName()
 const 
   50  return QObject::tr( 
"Boundary" );
 
   53QString 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." );
 
   61QList<int> QgsBoundaryAlgorithm::inputLayerTypes()
 const 
   66bool QgsBoundaryAlgorithm::supportInPlaceEdit( 
const QgsMapLayer * )
 const 
   71QgsBoundaryAlgorithm *QgsBoundaryAlgorithm::createInstance()
 const 
   73  return new QgsBoundaryAlgorithm();
 
   86    case Qgis::GeometryType::Line:
 
   90    case Qgis::GeometryType::Polygon:
 
   94    case Qgis::GeometryType::Point:
 
   95    case Qgis::GeometryType::Unknown:
 
   96    case Qgis::GeometryType::Null:
 
  117    if ( outputGeometry.
isNull() )
 
  119      feedback->
reportError( QObject::tr( 
"No boundary for feature %1 (possibly a closed linestring?)" ).arg( feature.
id() ) );
 
WkbType
The WKB type describes the number of dimensions a geometry has.
 
@ MultiLineString
MultiLineString.
 
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 unique ID, geometry and a list of field...
 
void clearGeometry()
Removes any geometry associated with the feature.
 
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.
 
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.
 
virtual void reportError(const QString &error, bool fatalError=false)
Reports that the algorithm encountered an error while executing.
 
@ TypeVectorLine
Vector line layers.
 
@ TypeVectorPolygon
Vector polygon layers.
 
static Qgis::WkbType addZ(Qgis::WkbType type) SIP_HOLDGIL
Adds the z dimension to a WKB type and returns the new type.
 
static Qgis::GeometryType geometryType(Qgis::WkbType type) SIP_HOLDGIL
Returns the geometry type for a WKB type, e.g., both MultiPolygon and CurvePolygon would have a Polyg...
 
static Qgis::WkbType addM(Qgis::WkbType type) SIP_HOLDGIL
Adds the m dimension to a WKB type and returns the new type.
 
static bool hasZ(Qgis::WkbType type) SIP_HOLDGIL
Tests whether a WKB type contains the z-dimension.
 
static bool hasM(Qgis::WkbType type) SIP_HOLDGIL
Tests whether a WKB type contains m values.
 
QList< QgsFeature > QgsFeatureList