Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
2 deletions.
-
+2
−2
python/plugins/processing/algs/grass7/Grass7Algorithm.py
|
@@ -1030,15 +1030,15 @@ def exportAttributeTable(self, grassName, fileName, outFormat='CSV', layer=1): |
|
|
def setSessionProjectionFromProject(self): |
|
|
""" |
|
|
Set the projection from the project. |
|
|
We creates a PROJ4 definition which is transmitted to Grass |
|
|
We create a WKT definition which is transmitted to Grass |
|
|
""" |
|
|
if not Grass7Utils.projectionSet and iface: |
|
|
self.setSessionProjection(iface.mapCanvas().mapSettings().destinationCrs()) |
|
|
|
|
|
def setSessionProjectionFromLayer(self, layer): |
|
|
""" |
|
|
Set the projection from a QgsVectorLayer. |
|
|
We creates a PROJ4 definition which is transmitted to Grass |
|
|
We create a WKT definition which is transmitted to Grass |
|
|
""" |
|
|
if not Grass7Utils.projectionSet: |
|
|
self.setSessionProjection(layer.crs()) |
|
|
You can’t perform that action at this time.
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.