mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
use sorted values for attributes
This commit is contained in:
parent
252ad49ddc
commit
396a181ea2
@ -277,7 +277,7 @@ QVariantMap QgsPointsToPathsAlgorithm::processAlgorithm( const QVariantMap ¶
|
||||
{
|
||||
break;
|
||||
}
|
||||
auto pairs = hit.value();
|
||||
QVector< QPair< QVariant, QgsPoint > > pairs = hit.value();
|
||||
|
||||
if ( naturalSort )
|
||||
{
|
||||
@ -324,8 +324,8 @@ QVariantMap QgsPointsToPathsAlgorithm::processAlgorithm( const QVariantMap ¶
|
||||
QgsAttributes attrs;
|
||||
if ( ! groupExpressionString.isEmpty() )
|
||||
attrs.append( hit.key() );
|
||||
attrs.append( hit.value().first().first );
|
||||
attrs.append( hit.value().last().first );
|
||||
attrs.append( pairs.first().first );
|
||||
attrs.append( pairs.last().first );
|
||||
outputFeature.setGeometry( QgsGeometry::fromPolyline( pathPoints ) );
|
||||
outputFeature.setAttributes( attrs );
|
||||
if ( !sink->addFeature( outputFeature, QgsFeatureSink::FastInsert ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user