Skip to content
Permalink
Browse files
Fix offset in event layer function
  • Loading branch information
mhugent committed May 28, 2014
1 parent 232a8d7 commit 302480d8a632d37152fd79b2d748ca59550dfa8b
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/analysis/vector/qgsgeometryanalyzer.cpp
@@ -954,7 +954,6 @@ bool QgsGeometryAnalyzer::eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer*
//iterate over eventLayer and write new features to output file or layer
fit = eventLayer->getFeatures( QgsFeatureRequest().setFlags( QgsFeatureRequest::NoGeometry ) );
QgsGeometry* lrsGeom = 0;
QgsFeature lineFeature;
double measure1, measure2 = 0.0;

int nEventFeatures = eventLayer->pendingFeatureCount();
@@ -1005,7 +1004,7 @@ bool QgsGeometryAnalyzer::eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer*
if ( lrsGeom )
{
++nOutputFeatures;
addEventLayerFeature( fet, lrsGeom, lineFeature.geometry(), fileWriter, memoryProviderFeatures, offsetField, offsetScale, forceSingleGeometry );
addEventLayerFeature( fet, lrsGeom, featureIdIt->geometry(), fileWriter, memoryProviderFeatures, offsetField, offsetScale, forceSingleGeometry );
}
}
if ( nOutputFeatures < 1 )

0 comments on commit 302480d

Please sign in to comment.