r_tileset.py 1.3 KB

1234567891011121314151617181920212223242526272829
  1. """
  2. ***************************************************************************
  3. r_proj.py
  4. ---------
  5. Date : October 2017
  6. Copyright : (C) 2017 by Médéric Ribreux
  7. Email : medspx at medspx dot fr
  8. ***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************
  16. """
  17. __author__ = 'Médéric Ribreux'
  18. __date__ = 'October 2017'
  19. __copyright__ = '(C) 2017, Médéric Ribreux'
  20. from grassprovider.Grass7Utils import Grass7Utils
  21. def processOutputs(alg, parameters, context, feedback):
  22. crs = alg.parameterAsCrs(parameters, 'sourceproj', context)
  23. wkt_file_name = Grass7Utils.exportCrsWktToFile(crs, context)
  24. alg.commands.insert(0, 'g.proj -c wkt="{}"'.format(wkt_file_name))