27 QString QgsSplitGeometryAtAntimeridianAlgorithm::name()
const
29 return QStringLiteral(
"antimeridiansplit" );
32 QString QgsSplitGeometryAtAntimeridianAlgorithm::displayName()
const
34 return QObject::tr(
"Geodesic line split at antimeridian" );
37 QStringList QgsSplitGeometryAtAntimeridianAlgorithm::tags()
const
39 return QObject::tr(
"break,cut,dateline,180,-180,longitude,geographic,ellipsoid" ).split(
',' );
42 QString QgsSplitGeometryAtAntimeridianAlgorithm::group()
const
44 return QObject::tr(
"Vector geometry" );
47 QString QgsSplitGeometryAtAntimeridianAlgorithm::groupId()
const
49 return QStringLiteral(
"vectorgeometry" );
52 QString QgsSplitGeometryAtAntimeridianAlgorithm::shortDescription()
const
54 return QObject::tr(
"Splits lines into multiple geodesic segments when the line crosses the antimeridian (±180 degrees longitude)." );
57 QString 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." );
70 QList<int> QgsSplitGeometryAtAntimeridianAlgorithm::inputLayerTypes()
const
80 QgsSplitGeometryAtAntimeridianAlgorithm *QgsSplitGeometryAtAntimeridianAlgorithm::createInstance()
const
82 return new QgsSplitGeometryAtAntimeridianAlgorithm();
85 QString QgsSplitGeometryAtAntimeridianAlgorithm::outputName()
const
87 return QObject::tr(
"Split" );
97 mDa.setSourceCrs( inputCrs, mTransformContext );