Skip to content
Permalink
Browse files

[processing] allow diferent CRS for point layers and network layer

  • Loading branch information
alexbruy committed Jul 17, 2017
1 parent 95de3a4 commit bee568364361f93e4e35d3b1f54517845f2a77d3
@@ -221,6 +221,7 @@ def processAlgorithm(self, parameters, context, feedback):
feedback.pushInfo(self.tr('Loading start points...'))
request = QgsFeatureRequest()
request.setFlags(request.flags() ^ QgsFeatureRequest.SubsetOfAttributes)
request.setDestinationCrs(layer.crs())
features = source.getFeatures(request)
total = 100.0 / source.featureCount() if source.featureCount() else 0

@@ -215,6 +215,7 @@ def processAlgorithm(self, parameters, context, feedback):
feedback.pushInfo(self.tr('Loading start points...'))
request = QgsFeatureRequest()
request.setFlags(request.flags() ^ QgsFeatureRequest.SubsetOfAttributes)
request.setDestinationCrs(layer.crs())
features = source.getFeatures(request)
total = 100.0 / source.featureCount() if source.featureCount() else 0

@@ -215,6 +215,7 @@ def processAlgorithm(self, parameters, context, feedback):
feedback.pushInfo(self.tr('Loading end points...'))
request = QgsFeatureRequest()
request.setFlags(request.flags() ^ QgsFeatureRequest.SubsetOfAttributes)
request.setDestinationCrs(layer.crs())
features = source.getFeatures(request)
total = 100.0 / source.featureCount() if source.featureCount() else 0

0 comments on commit bee5683

Please sign in to comment.
You can’t perform that action at this time.