Skip to content

Commit

Permalink
[processing] allow diferent CRS for point layers and network layer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jul 17, 2017
1 parent 95de3a4 commit bee5683
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down

0 comments on commit bee5683

Please sign in to comment.