huhabla / wps-grass-bridge Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/wps-grass-bridge
Automatically exported from code.google.com/p/wps-grass-bridge
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
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:
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.