mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] allow diferent CRS for point layers and network layer
This commit is contained in:
parent
95de3a414a
commit
bee5683643
@ -221,6 +221,7 @@ class ServiceAreaFromLayer(QgisAlgorithm):
|
||||
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 @@ class ShortestPathLayerToPoint(QgisAlgorithm):
|
||||
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 @@ class ShortestPathPointToLayer(QgisAlgorithm):
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user