You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/analysis/vector/qgsgeometryanalyzer.cpp
+49-11Lines changed: 49 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -910,7 +910,7 @@ void QgsGeometryAnalyzer::bufferFeature( QgsFeature& f, int nProcessedFeatures,
910
910
}
911
911
912
912
boolQgsGeometryAnalyzer::eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QList<int>& unlocatedFeatureIds, const QString& outputLayer,
913
-
const QString& outputFormat, int locationField1, int locationField2, QgsVectorDataProvider* memoryProvider, QProgressDialog* p )
913
+
const QString& outputFormat, int locationField1, int locationField2, bool forceSingleGeometry, QgsVectorDataProvider* memoryProvider, QProgressDialog* p )
914
914
{
915
915
if ( !lineLayer || !eventLayer || !lineLayer->isValid() || !eventLayer->isValid() )
Copy file name to clipboardExpand all lines: src/analysis/vector/qgsgeometryanalyzer.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -111,11 +111,12 @@ class ANALYSIS_EXPORT QgsGeometryAnalyzer
111
111
@param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
112
112
@param locationField1 attribute index of location field in event layer
113
113
@param locationField2 attribute index of location end field (or -1 for point layer)
114
+
@param forceSingleGeometry force layer to single point/line type. Feature attributes are copied in case of multiple matches
114
115
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
115
116
@param p progress dialog or 0 if no progress dialog should be shown
116
117
*/
117
118
booleventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QList<int>& unlocatedFeatureIds, const QString& outputLayer,
118
-
const QString& outputFormat, int locationField1, int locationField2 = -1, QgsVectorDataProvider* memoryProvider = 0, QProgressDialog* p = 0 );
119
+
const QString& outputFormat, int locationField1, int locationField2 = -1, bool forceSingleGeometry = false, QgsVectorDataProvider* memoryProvider = 0, QProgressDialog* p = 0 );
119
120
120
121
/**Returns linear reference geometry as a multiline (or 0 if no match). Currently, the z-coordinates are considered to be the measures (no support for m-values in QGIS)*/
0 commit comments