28QString QgsSplitGeometryAtAntimeridianAlgorithm::name()
const
30 return QStringLiteral(
"antimeridiansplit" );
33QString QgsSplitGeometryAtAntimeridianAlgorithm::displayName()
const
35 return QObject::tr(
"Geodesic line split at antimeridian" );
38QStringList QgsSplitGeometryAtAntimeridianAlgorithm::tags()
const
40 return QObject::tr(
"break,cut,dateline,180,-180,longitude,geographic,ellipsoid" ).split(
',' );
43QString QgsSplitGeometryAtAntimeridianAlgorithm::group()
const
45 return QObject::tr(
"Vector geometry" );
48QString QgsSplitGeometryAtAntimeridianAlgorithm::groupId()
const
50 return QStringLiteral(
"vectorgeometry" );
53QString QgsSplitGeometryAtAntimeridianAlgorithm::shortDescription()
const
55 return QObject::tr(
"Splits lines into multiple geodesic segments when the line crosses the antimeridian (±180 degrees longitude)." );
58QString QgsSplitGeometryAtAntimeridianAlgorithm::shortHelpString()
const
60 return QObject::tr(
"This algorithm splits a line into multiple geodesic segments, whenever the line crosses the antimeridian (±180 degrees longitude).\n\n"
61 "Splitting at the antimeridian helps the visual display of the lines in some projections. The returned "
62 "geometry will always be a multi-part geometry.\n\n"
63 "Whenever line segments in the input geometry cross the antimeridian, they will be "
64 "split into two segments, with the latitude of the breakpoint being determined using a geodesic "
65 "line connecting the points either side of this segment. The current project ellipsoid setting will "
66 "be used when calculating this breakpoint.\n\n"
67 "If the input geometry contains M or Z values, these will be linearly interpolated for the new vertices "
68 "created at the antimeridian." );
76QList<int> QgsSplitGeometryAtAntimeridianAlgorithm::inputLayerTypes()
const
86QgsSplitGeometryAtAntimeridianAlgorithm *QgsSplitGeometryAtAntimeridianAlgorithm::createInstance()
const
88 return new QgsSplitGeometryAtAntimeridianAlgorithm();
91QString QgsSplitGeometryAtAntimeridianAlgorithm::outputName()
const
93 return QObject::tr(
"Split" );
103 mDa.setSourceCrs( inputCrs, mTransformContext );
ProcessingSourceType
Processing data source types.
@ VectorLine
Vector line layers.
@ RespectsEllipsoid
Algorithm respects the context's ellipsoid settings, and uses ellipsoidal based measurements.
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
WkbType
The WKB type describes the number of dimensions a geometry has.
Represents a coordinate reference system (CRS).
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.
Contains information about the context in which a processing algorithm is executed.
QgsCoordinateTransformContext transformContext() const
Returns the coordinate transform context.
QString ellipsoid() const
Returns the ellipsoid to use for distance and area calculations.
Base class for providing feedback from a processing algorithm.
static Qgis::WkbType multiType(Qgis::WkbType type)
Returns the multi type for a WKB type.
QList< QgsFeature > QgsFeatureList