27QString QgsSplitGeometryAtAntimeridianAlgorithm::name()
const
29 return QStringLiteral(
"antimeridiansplit" );
32QString QgsSplitGeometryAtAntimeridianAlgorithm::displayName()
const
34 return QObject::tr(
"Geodesic line split at antimeridian" );
37QStringList QgsSplitGeometryAtAntimeridianAlgorithm::tags()
const
39 return QObject::tr(
"break,cut,dateline,180,-180,longitude,geographic,ellipsoid" ).split(
',' );
42QString QgsSplitGeometryAtAntimeridianAlgorithm::group()
const
44 return QObject::tr(
"Vector geometry" );
47QString QgsSplitGeometryAtAntimeridianAlgorithm::groupId()
const
49 return QStringLiteral(
"vectorgeometry" );
52QString QgsSplitGeometryAtAntimeridianAlgorithm::shortDescription()
const
54 return QObject::tr(
"Splits lines into multiple geodesic segments when the line crosses the antimeridian (±180 degrees longitude)." );
57QString QgsSplitGeometryAtAntimeridianAlgorithm::shortHelpString()
const
59 return QObject::tr(
"This algorithm splits a line into multiple geodesic segments, whenever the line crosses the antimeridian (±180 degrees longitude).\n\n"
60 "Splitting at the antimeridian helps the visual display of the lines in some projections. The returned "
61 "geometry will always be a multi-part geometry.\n\n"
62 "Whenever line segments in the input geometry cross the antimeridian, they will be "
63 "split into two segments, with the latitude of the breakpoint being determined using a geodesic "
64 "line connecting the points either side of this segment. The current project ellipsoid setting will "
65 "be used when calculating this breakpoint.\n\n"
66 "If the input geometry contains M or Z values, these will be linearly interpolated for the new vertices "
67 "created at the antimeridian." );
70QList<int> QgsSplitGeometryAtAntimeridianAlgorithm::inputLayerTypes()
const
80QgsSplitGeometryAtAntimeridianAlgorithm *QgsSplitGeometryAtAntimeridianAlgorithm::createInstance()
const
82 return new QgsSplitGeometryAtAntimeridianAlgorithm();
85QString QgsSplitGeometryAtAntimeridianAlgorithm::outputName()
const
87 return QObject::tr(
"Split" );
97 mDa.setSourceCrs( inputCrs, mTransformContext );
WkbType
The WKB type describes the number of dimensions a geometry has.
This class 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.
SourceType
Data source types enum.
@ TypeVectorLine
Vector line layers.
static Qgis::WkbType multiType(Qgis::WkbType type)
Returns the multi type for a WKB type.
QList< QgsFeature > QgsFeatureList