Git Product home page Git Product logo

wps-grass-bridge's People

wps-grass-bridge's Issues

UnicodeEncodeError with generation XML in GRASS

Steps:
1 -export LANG=es_ES.UTF-8
2 -Run grass70
3 -GRASS 7.0.svn (xp):~/wps-grass-bridge-read-only > python GrassXMLtoZCFG.py
 -x gms/Testing/Python/XML/v.buffer.xml -z zoo_service/v_buffer.zcfg -p zoo_service/v_buffer.py

What is the expected output? What do you see instead?

I expected output file v_buffer.py. 
instead I see the folowing error (and v_buffer.py empty): 

 <wpsXML.WPS_1_0_0.OGC_WPS_1_0_0.ProcessDescriptionType object at 0x15d7f50>
 Traceback (most recent call last):
   File "GrassXMLtoZCFG.py", line 189, in <module>
     main()
   File "GrassXMLtoZCFG.py", line 183, in main
     converter.convert()
   File "GrassXMLtoZCFG.py", line 79, in convert
     self.__writeDataInputs(i)
   File "GrassXMLtoZCFG.py", line 92, in __writeDataInputs
     self.__writeIdentTitleAbstract(i,  "  ")
   File "GrassXMLtoZCFG.py", line 117, in __writeIdentTitleAbstract
     self.__output.write(indent + "Title = " +
 str(element.Title.value()).replace("\n"," ").replace("\t",  "
 ").replace("=",  "::").replace('\'', '').replace('(', '').replace(')',
 '').replace('<', '').replace('>', '').replace('[', '').replace(']', '') +
 "\n")
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in position
 0: ordinal not in range(128)

Version of the product are you using? On what operating system?

~/wps-grass-bridge-read-only$ svn update
...
Update to revition 97

Operating System: Ubuntu 12.04 LTS


Additional information:

If run: 
1 -export LANG=en_US.UTF-8
2 -Run grass70
3 -GRASS 7.0.svn (xp):~/wps-grass-bridge-read-only > python GrassXMLtoZCFG.py
 -x gms/Testing/Python/XML/v.buffer.xml -z zoo_service/v_buffer.zcfg -p zoo_service/v_buffer.py

What is the expected output? What do you see instead?

I get the output:

Traceback (most recent call last):
  File "GrassXMLtoZCFG.py", line 211, in <module>
    main()
  File "GrassXMLtoZCFG.py", line 205, in main
    converter.convert(options.multi)
  File "GrassXMLtoZCFG.py", line 79, in convert
    self.__writeDataInputs(i, multi)
  File "GrassXMLtoZCFG.py", line 92, in __writeDataInputs
    self.__writeIdentTitleAbstract(i,  "  ")
  File "GrassXMLtoZCFG.py", line 133, in __writeIdentTitleAbstract
    self.__output.write(indent + "Title = " + str(element.Title.value()).replace("\n"," ").replace("\t",  " ").replace("=",  "::").replace('\'', '').replace('(', '').replace(')', '').replace('<', '').replace('>', '').replace('[', '').replace(']', '') + "\n")
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in position 0: 
ordinal not in range(128)

Thanks



Original issue reported on code.google.com by [email protected] on 17 Jul 2014 at 7:45

Generic module starter does not work for vector data under windows

There is one wrong path setting and the VAR file is missing from the 
location/mapset directory. This file contains database specific information.

What steps will reproduce the problem?
1. Execute any of the tests for the generic module starter using vector data as 
input.
2.
3.

What is the expected output? What do you see instead?
Instead of the output beeing generated, an error message appears.


What version of the product are you using? On what operating system?
Latest trunk, Windows 7


Please provide any additional information below.
Patch attached to show the problem and a possible solution.

Original issue reported on code.google.com by [email protected] on 13 Aug 2014 at 11:04

Attachments:

wps-grass-bridge test fails

What steps will reproduce the problem?
1. configure GlobalGrassSettings.py as below
2. python PyWPSGrassModuleStarter.py
3.

What is the expected output? What do you see instead?

Expected test run, got:

Traceback (most recent call last):
  File "PyWPSGrassModuleStarter.py", line 324, in <module>
    main()
  File "PyWPSGrassModuleStarter.py", line 299, in main
    input.storeData(data)
  File "/usr/lib/python2.6/site-packages/pywps/Process/InAndOutputs.py", line 439, in storeData
    self.checkMimeTypeIn(fout.name)
  File "/usr/lib/python2.6/site-packages/pywps/Process/InAndOutputs.py", line 552, in checkMimeTypeIn
    if (self.format["mimetype"] is None) or (self.format["mimetype"]==""): 
KeyError: 'mimetype'


What version of the product are you using? On what operating system?

Running CentOS x86 32bit

Using wps-grass-bridge trunk (revision 61)
Using GRASS trunk (revision 45606)
Using pyWPS trunk (revision 1134)

Please provide any additional information below.

GlobalGrassSettings.py

WORKDIR="/tmp/pywps/"
OUTPUTDIR="/tmp/pywps/"
LOGFILE="/tmp/pywps/logfile.txt"
LOGFILE_MODULE_STDOUT="/tmp/pywps/logfile_module_stdout.txt"
LOGFILE_MODULE_STDERR="/tmp/pywps/logfile_module_sterr.txt"
GRASS_GIS_BASE="/usr/local/grass_trunk/dist.i686-pc-linux-gnu"
GRASS_ADDON_PATH="gms/Testing/Python/GrassAddons"
GRASS_VERSION="7.0"



Original issue reported on code.google.com by [email protected] on 8 Mar 2011 at 5:39

startLocation missing some configuration?

I couldn't run processes using the GrassModuleStarter. After investigating it 
seems that the problem is caused by startLocation not correctly/completely 
configured. Running any GRASS command causes a segmentation fault, and it seems 
to be related with the startLocation projection (I'm not sure about this).

I've tried to manually set a different location in the gisrc file created by 
GrassModuleStarter and my commands run ok.

Original issue reported on code.google.com by [email protected] on 18 Feb 2015 at 11:55

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.