Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.2 KiB
Python
Raw Normal View History

2020-05-24 17:22:25 +03:00
"""
***************************************************************************
r_proj.py
---------
Date : October 2017
Copyright : (C) 2017 by Médéric Ribreux
Email : medspx at medspx dot fr
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
2024-11-29 14:26:30 +01:00
__author__ = "Médéric Ribreux"
__date__ = "October 2017"
__copyright__ = "(C) 2017, Médéric Ribreux"
2020-05-24 17:22:25 +03:00
from grassprovider.grass_utils import GrassUtils
2020-05-24 17:22:25 +03:00
def processOutputs(alg, parameters, context, feedback):
2024-11-29 14:26:30 +01:00
crs = alg.parameterAsCrs(parameters, "sourceproj", context)
2020-05-24 17:22:25 +03:00
wkt_file_name = GrassUtils.exportCrsWktToFile(crs, context)
2024-11-29 14:26:30 +01:00
alg.commands.insert(0, f'g.proj -c wkt="{wkt_file_name}"')