GRASS back end WPS errors in GRASS-LOGS (Windows 64bit)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

GRASS back end WPS errors in GRASS-LOGS (Windows 64bit)

julianrosser
This post was updated on .
Hi all,

I am trying to setup the GRASS back end for the 52N WPS but get errors (see below for detail on error and config files and technology stack) listed in the GRASS-LOGS when executing certain processes using the 52N WPS test client page. I followed the instructions here:
http://52north.org/communities/geoprocessing/wps/tutorials/WPSGRASSWin.html

Can anyone help on why this might be please? My intention is to eventually get r.viewshed as a process however I want to get the basic tests passed first.



My technology:
Windows 7 64 Bit
Tomcat 7
52n-wps-webapp-3.3.0 With GeoTools
GRASS GIS 7.0.0svn (r64530)
Python25 ( I have also tried Python27 based on a previous posting on this board but I get the same error)
wps-grass-bridge-patched (I also tried wps-grass-bridge but this cannot execute the r.watershed example)


Details on error
For example r.watershed_request.xml executes successfully returning the correct tiff output. However, when I execute v.buffer_request_out_gml.xml I get the following WPS error:
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" version="1.0.0">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
Error while executing the embedded process for: v.buffer
</ows:ExceptionText>
</ows:Exception>
<ows:Exception exceptionCode="JAVA_StackTrace">
<ows:ExceptionText>
org.n52.wps.server.ExceptionReport: Error while executing the embedded process for: v.buffer at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:716) at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:92) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: An error occured while executing the GRASS GIS process. See the log under http://localhost:8010/wps/GRASS_LOGS/c0aa6fb.log for more details. at org.n52.wps.server.grass.io.GrassIOHandler.executeGrassModuleStarter(GrassIOHandler.java:617) at org.n52.wps.server.grass.io.GrassIOHandler.executeGrassProcess(GrassIOHandler.java:151) at org.n52.wps.server.grass.GrassProcessDelegator.run(GrassProcessDelegator.java:224) at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:685) ... 5 more
</ows:ExceptionText>
</ows:Exception>
<ows:Exception exceptionCode="JAVA_RootCause">
<ows:ExceptionText>
An error occured while executing the GRASS GIS process. See the log under http://localhost:8010/wps/GRASS_LOGS/c0aa6fb.log for more details.
</ows:ExceptionText>
<ows:ExceptionText>
java.lang.RuntimeException: An error occured while executing the GRASS GIS process. See the log under http://localhost:8010/wps/GRASS_LOGS/c0aa6fb.log for more details. at org.n52.wps.server.grass.io.GrassIOHandler.executeGrassModuleStarter(GrassIOHandler.java:617) at org.n52.wps.server.grass.io.GrassIOHandler.executeGrassProcess(GrassIOHandler.java:151) at org.n52.wps.server.grass.GrassProcessDelegator.run(GrassProcessDelegator.java:224) at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:685) at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:92) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>



and the following error in the GRASS LOG
<INFO timestamp="14:4:37">
Vector map is of type {'MIMETYPE': 'TEXT/XML', 'GDALID': 'GML', 'SCHEMA': 'GML'}
</INFO>

<INFO timestamp="14:4:37">
Check if a band number is present
</INFO>

<INFO timestamp="14:4:37">
No band number found
</INFO>

<INFO timestamp="14:4:37">
Check for multiple import
</INFO>

<INFO timestamp="14:4:37">
No inputs found
</INFO>

<INFO timestamp="14:4:37">
GRASS_ADDON_PATH=
</INFO>

<INFO timestamp="14:4:37">
PYTHONPATH=;C:\programme\GRASS7.0.svn\etc\python
</INFO>

<INFO timestamp="14:4:37">
GISRC=C:\tmp\grass_tmp\tmpsbvhxj\gisrc
</INFO>

<INFO timestamp="14:4:37">
GRASS_VERSION=7.0.svn:7.0.svn
</INFO>

<INFO timestamp="14:4:37">
PATH=C:\programme\GRASS7.0.svn\bin;C:\programme\GRASS7.0.svn\scripts;C:\programme\GRASS7.0.svn\lib;C:\programme\GRASS7.0.svn\extrabin
</INFO>

<INFO timestamp="14:4:37">
GIS_LOCK=560
</INFO>

<INFO timestamp="14:4:37">
LD_LIBRARY_PATH=C:\programme\GRASS7.0.svn\lib
</INFO>

<INFO timestamp="14:4:37">
GISBASE=C:\programme\GRASS7.0.svn
</INFO>

<INFO timestamp="14:4:37">
LOCATION_NAME: startLocation
MAPSET: PERMANENT
DIGITIZER: none
GISDBASE: C:\tmp\grass_tmp\tmpsbvhxj
OVERWRITE: 1
DEBUG: 0
GRASS_GUI: text
</INFO>

<INFO timestamp="14:4:37">
Created gisrc file C:\tmp\grass_tmp\tmpsbvhxj\gisrc
</INFO>

<INFO timestamp="14:4:37">
Created WIND file C:\tmp\grass_tmp\tmpsbvhxj\startLocation\PERMANENT\WIND
</INFO>

<INFO timestamp="14:4:37">
Created VAR file C:\tmp\grass_tmp\tmpsbvhxj\startLocation\PERMANENT\VAR
</INFO>

<INFO timestamp="14:4:37">
inputs
</INFO>

<INFO timestamp="14:4:37">
Input file: C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp\Shape_58d54d54-8e5e-474a-8779-638cfce180a04287707217142456728.shp
Mime type: APPLICATION/SHP
</INFO>

<INFO timestamp="14:4:37">
LOCATION_NAME: startLocation
MAPSET: PERMANENT
DIGITIZER: none
GISDBASE: C:\tmp\grass_tmp\tmpsbvhxj
OVERWRITE: 1
DEBUG: 0
GRASS_GUI: text
</INFO>

<INFO timestamp="14:4:37">
Vector map is of type {'MIMETYPE': 'APPLICATION/SHP', 'GDALID': 'ESRI_Shapefile', 'SCHEMA': ''}
</INFO>

<INFO timestamp="14:4:37">
Creating input location
</INFO>

<INFO timestamp="14:4:37">
Vector map is of type {'MIMETYPE': 'APPLICATION/SHP', 'GDALID': 'ESRI_Shapefile', 'SCHEMA': ''}
</INFO>

<INFO timestamp="14:4:37">
Looking for ##C:\programme\GRASS7.0.svn\bin\v.in.ogr.exe##
</INFO>

<INFO timestamp="14:4:37">
GRASS module path is C:\programme\GRASS7.0.svn\bin\v.in.ogr.exe
</INFO>

<INFO timestamp="14:4:37">
Run process: ['C:\\programme\\GRASS7.0.svn\\bin\\v.in.ogr.exe', 'dsn=C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0\\temp\\Shape_58d54d54-8e5e-474a-8779-638cfce180a04287707217142456728.shp', 'location=workLocation', '-ie']
</INFO>

<INFO timestamp="14:4:37">
Process pid: 8260
</INFO>

<INFO timestamp="14:4:37">
Return code: 1
</INFO>

<INFO timestamp="14:4:37">
WARNING: Please update the usage of <v.in.ogr>: option <dsn> has been

         renamed to <input>

WARNING: All available OGR layers will be imported into vector map

         <Shape_58d54d54-8e5e-474a-8779-638cfce180a04287707217142456728>

WARNING: Datum <WGS84> not recognised by GRASS and no parameters found

Location <workLocation> created

ERROR: Syntax error in cell header


</INFO>

<ERROR timestamp="14:4:37">
GDLA error while import. Unable to create input location from input C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp\Shape_58d54d54-8e5e-474a-8779-638cfce180a04287707217142456728.shp OGR log: WARNING: Please update the usage of <v.in.ogr>: option <dsn> has been

         renamed to <input>

WARNING: All available OGR layers will be imported into vector map

         <Shape_58d54d54-8e5e-474a-8779-638cfce180a04287707217142456728>

WARNING: Datum <WGS84> not recognised by GRASS and no parameters found

Location <workLocation> created

ERROR: Syntax error in cell header


</ERROR>

<INFO timestamp="14:4:37">
Remove C:\tmp\grass_tmp\tmpsbvhxj
</INFO>




The configuration files
The GRASS section of the 52N WPS config xml:

 <Repository name="GrassRepository" className="org.n52.wps.server.grass.GrassProcessRepository" active="true">
      <Property name="GISRC_Dir" active="true">C:\programme\GRASS7.0.svn\demolocation\.grassrc70</Property>
      <Property name="Grass_Home" active="true">C:\programme\GRASS7.0.svn</Property>
      <Property name="ModuleStarter_Home" active="true">C:\grass\wps-grass-bridge-patched\gms\</Property>
      <Property name="Python_Home" active="true">C:\Python25</Property>
      <Property name="Python_Path" active="true">C:\Python25</Property>
           
      <Property name="TMP_Dir" active="true">C:\tmp\grass_tmp</Property>
      <Property name="Algorithm" active="true">i.atcorr</Property>
      <Property name="Algorithm" active="true">i.biomass</Property>
      <Property name="Algorithm" active="true">i.cca</Property>
      <Property name="Algorithm" active="true">i.cluster</Property>
      <Property name="Algorithm" active="true">i.eb.eta</Property>
      <Property name="Algorithm" active="true">i.eb.evapfr</Property>
      <Property name="Algorithm" active="true">i.eb.h_SEBAL01</Property>
      <Property name="Algorithm" active="true">i.eb.soilheatflux</Property>
      <Property name="Algorithm" active="true">i.emissivity</Property>
      <Property name="Algorithm" active="true">i.evapo.time_integration</Property>
      <Property name="Algorithm" active="true">i.fft</Property>
      <Property name="Algorithm" active="true">i.gensig</Property>
      <Property name="Algorithm" active="true">i.gensigset</Property>
      <Property name="Algorithm" active="true">i.his.rgb</Property>
      <Property name="Algorithm" active="true">i.ifft</Property>
      <Property name="Algorithm" active="true">i.landsat.acca</Property>
      <Property name="Algorithm" active="true">i.landsat.toar</Property>
      <Property name="Algorithm" active="true">i.latlong</Property>
      <Property name="Algorithm" active="true">i.maxlik</Property>
      <Property name="Algorithm" active="true">i.modis.qc</Property>
      <Property name="Algorithm" active="true">i.pca</Property>
      <Property name="Algorithm" active="true">i.rectify</Property>
      <Property name="Algorithm" active="true">i.rgb.his</Property>
      <Property name="Algorithm" active="true">i.smap</Property>
      <Property name="Algorithm" active="true">i.sunhours</Property>
      <Property name="Algorithm" active="true">i.target</Property>
      <Property name="Algorithm" active="true">i.vi</Property>
      <Property name="Algorithm" active="true">i.zc</Property>
      <Property name="Algorithm" active="true">m.cogo</Property>
      <Property name="Algorithm" active="true">m.measure</Property>
      <Property name="Algorithm" active="true">r.basins.fill</Property>
      <Property name="Algorithm" active="true">r.bitpattern</Property>
      <Property name="Algorithm" active="true">r.buffer2</Property>
      <Property name="Algorithm" active="true">r.carve</Property>
      <Property name="Algorithm" active="true">r.category</Property>
      <Property name="Algorithm" active="true">r.circle</Property>
      <Property name="Algorithm" active="true">r.clump</Property>
      <Property name="Algorithm" active="true">r.coin</Property>
      <Property name="Algorithm" active="true">r.compress</Property>
      <Property name="Algorithm" active="true">r.contour</Property>
      <Property name="Algorithm" active="true">r.cost</Property>
      <Property name="Algorithm" active="true">r.covar</Property>
      <Property name="Algorithm" active="true">r.cross</Property>
      <Property name="Algorithm" active="true">r.describe</Property>
      <Property name="Algorithm" active="true">r.distance</Property>
      <Property name="Algorithm" active="true">r.drain</Property>
      <Property name="Algorithm" active="true">r.fill.dir</Property>
      <Property name="Algorithm" active="true">r.flow</Property>
      <Property name="Algorithm" active="true">r.grow.distance</Property>
      <Property name="Algorithm" active="true">r.gwflow</Property>
      <Property name="Algorithm" active="true">r.his</Property>
      <Property name="Algorithm" active="true">r.horizon</Property>
      <Property name="Algorithm" active="true">r.kappa</Property>
      <Property name="Algorithm" active="true">r.lake</Property>
      <Property name="Algorithm" active="true">r.li.cwed</Property>
      <Property name="Algorithm" active="true">r.li.dominance</Property>
      <Property name="Algorithm" active="true">r.li.edgedensity</Property>
      <Property name="Algorithm" active="true">r.li.mpa</Property>
      <Property name="Algorithm" active="true">r.li.mps</Property>
      <Property name="Algorithm" active="true">r.li.padcv</Property>
      <Property name="Algorithm" active="true">r.li.padrange</Property>
      <Property name="Algorithm" active="true">r.li.padsd</Property>
      <Property name="Algorithm" active="true">r.li.patchdensity</Property>
      <Property name="Algorithm" active="true">r.li.patchnum</Property>
      <Property name="Algorithm" active="true">r.li.richness</Property>
      <Property name="Algorithm" active="true">r.li.shannon</Property>
      <Property name="Algorithm" active="true">r.li.shape</Property>
      <Property name="Algorithm" active="true">r.li.simpson</Property>
      <Property name="Algorithm" active="true">r.los</Property>
      <Property name="Algorithm" active="true">r.mapcalc</Property>
      <Property name="Algorithm" active="true">r.mfilter</Property>
      <Property name="Algorithm" active="true">r.mode</Property>
      <Property name="Algorithm" active="true">r.neighbors</Property>
      <Property name="Algorithm" active="true">r.null</Property>
      <Property name="Algorithm" active="true">r.param.scale</Property>
      <Property name="Algorithm" active="true">r.patch</Property>
      <Property name="Algorithm" active="true">r.profile</Property>
      <Property name="Algorithm" active="true">r.proj</Property>
      <Property name="Algorithm" active="true">r.quant</Property>
      <Property name="Algorithm" active="true">r.quantile</Property>
      <Property name="Algorithm" active="true">r.random</Property>
      <Property name="Algorithm" active="true">r.random.cells</Property>
      <Property name="Algorithm" active="true">r.random.surface</Property>
      <Property name="Algorithm" active="true">r.reclass</Property>
      <Property name="Algorithm" active="true">r.recode</Property>
      <Property name="Algorithm" active="true">r.region</Property>
      <Property name="Algorithm" active="true">r.regression.line</Property>
      <Property name="Algorithm" active="true">r.report</Property>
      <Property name="Algorithm" active="true">r.resamp.bspline</Property>
      <Property name="Algorithm" active="true">r.resamp.filter</Property>
      <Property name="Algorithm" active="true">r.resamp.interp</Property>
      <Property name="Algorithm" active="true">r.resamp.rst</Property>
      <Property name="Algorithm" active="true">r.resamp.stats</Property>
      <Property name="Algorithm" active="true">r.resample</Property>
      <Property name="Algorithm" active="true">r.rescale</Property>
      <Property name="Algorithm" active="true">r.rescale.eq</Property>
      <Property name="Algorithm" active="true">r.ros</Property>
      <Property name="Algorithm" active="true">r.series</Property>
      <Property name="Algorithm" active="true">r.sim.sediment</Property>
      <Property name="Algorithm" active="true">r.sim.water</Property>
      <Property name="Algorithm" active="true">r.slope.aspect</Property>
      <Property name="Algorithm" active="true">r.solute.transport</Property>
      <Property name="Algorithm" active="true">r.spread</Property>
      <Property name="Algorithm" active="true">r.spreadpath</Property>
      <Property name="Algorithm" active="true">r.statistics</Property>
      <Property name="Algorithm" active="true">r.statistics2</Property>
      <Property name="Algorithm" active="true">r.statistics3</Property>
      <Property name="Algorithm" active="true">r.stats</Property>
      <Property name="Algorithm" active="true">r.sun</Property>
      <Property name="Algorithm" active="true">r.sunmask</Property>
      <Property name="Algorithm" active="true">r.support</Property>
      <Property name="Algorithm" active="true">r.support.stats</Property>
      <Property name="Algorithm" active="true">r.surf.area</Property>
      <Property name="Algorithm" active="true">r.surf.contour</Property>
      <Property name="Algorithm" active="true">r.surf.fractal</Property>
      <Property name="Algorithm" active="true">r.surf.gauss</Property>
      <Property name="Algorithm" active="true">r.surf.idw</Property>
      <Property name="Algorithm" active="true">r.surf.idw2</Property>
      <Property name="Algorithm" active="true">r.surf.random</Property>
      <Property name="Algorithm" active="true">r.terraflow</Property>
      <Property name="Algorithm" active="true">r.texture</Property>
      <Property name="Algorithm" active="true">r.thin</Property>
      <Property name="Algorithm" active="true">r.timestamp</Property>
      <Property name="Algorithm" active="true">r.to.rast3</Property>
      <Property name="Algorithm" active="true">r.to.rast3elev</Property>
      <Property name="Algorithm" active="true">r.to.vect</Property>
      <Property name="Algorithm" active="true">r.topidx</Property>
      <Property name="Algorithm" active="true">r.topmodel</Property>
      <Property name="Algorithm" active="true">r.transect</Property>
      <Property name="Algorithm" active="true">r.univar</Property>
      <Property name="Algorithm" active="true">r.uslek</Property>
      <Property name="Algorithm" active="true">r.usler</Property>
      <Property name="Algorithm" active="true">r.volume</Property>
      <Property name="Algorithm" active="true">r.walk</Property>
      <Property name="Algorithm" active="true">r.water.outlet</Property>
      <Property name="Algorithm" active="true">r.watershed</Property>
      <Property name="Algorithm" active="true">r3.gwflow</Property>
      <Property name="Algorithm" active="true">r3.info</Property>
      <Property name="Algorithm" active="true">r3.mapcalc</Property>
      <Property name="Algorithm" active="true">r3.mask</Property>
      <Property name="Algorithm" active="true">r3.null</Property>
      <Property name="Algorithm" active="true">r3.stats</Property>
      <Property name="Algorithm" active="true">r3.timestamp</Property>
      <Property name="Algorithm" active="true">r3.to.rast</Property>
      <Property name="Algorithm" active="true">r3.univar</Property>
      <Property name="Algorithm" active="true">v.buffer</Property>
      <Property name="Algorithm" active="true">v.build</Property>
      <Property name="Algorithm" active="true">v.build.polylines</Property>
      <Property name="Algorithm" active="true">v.category</Property>
      <Property name="Algorithm" active="true">v.class</Property>
      <Property name="Algorithm" active="true">v.convert</Property>
      <Property name="Algorithm" active="true">v.db.connect</Property>
      <Property name="Algorithm" active="true">v.db.select</Property>
      <Property name="Algorithm" active="true">v.delaunay</Property>
      <Property name="Algorithm" active="true">v.distance</Property>
      <Property name="Algorithm" active="true">v.drape</Property>
      <Property name="Algorithm" active="true">v.edit</Property>
      <Property name="Algorithm" active="true">v.extract</Property>
      <Property name="Algorithm" active="true">v.extrude</Property>
      <Property name="Algorithm" active="true">v.generalize</Property>
      <Property name="Algorithm" active="true">v.hull</Property>
      <Property name="Algorithm" active="true">v.kcv</Property>
      <Property name="Algorithm" active="true">v.kernel</Property>
      <Property name="Algorithm" active="true">v.label</Property>
      <Property name="Algorithm" active="true">v.lidar.correction</Property>
      <Property name="Algorithm" active="true">v.lidar.edgedetection</Property>
      <Property name="Algorithm" active="true">v.lidar.growing</Property>
      <Property name="Algorithm" active="true">v.lrs.create</Property>
      <Property name="Algorithm" active="true">v.lrs.label</Property>
      <Property name="Algorithm" active="true">v.lrs.segment</Property>
      <Property name="Algorithm" active="true">v.lrs.where</Property>
      <Property name="Algorithm" active="true">v.mkgrid</Property>
      <Property name="Algorithm" active="true">v.neighbors</Property>
      <Property name="Algorithm" active="true">v.net</Property>
      <Property name="Algorithm" active="true">v.net.alloc</Property>
      <Property name="Algorithm" active="true">v.net.allpairs</Property>
      <Property name="Algorithm" active="true">v.net.bridge</Property>
      <Property name="Algorithm" active="true">v.net.centrality</Property>
      <Property name="Algorithm" active="true">v.net.components</Property>
      <Property name="Algorithm" active="true">v.net.connectivity</Property>
      <Property name="Algorithm" active="true">v.net.distance</Property>
      <Property name="Algorithm" active="true">v.net.flow</Property>
      <Property name="Algorithm" active="true">v.net.iso</Property>
      <Property name="Algorithm" active="true">v.net.path</Property>
      <Property name="Algorithm" active="true">v.net.salesman</Property>
      <Property name="Algorithm" active="true">v.net.spanningtree</Property>
      <Property name="Algorithm" active="true">v.net.steiner</Property>
      <Property name="Algorithm" active="true">v.net.timetable</Property>
      <Property name="Algorithm" active="true">v.net.visibility</Property>
      <Property name="Algorithm" active="true">v.normal</Property>
      <Property name="Algorithm" active="true">v.outlier</Property>
      <Property name="Algorithm" active="true">v.overlay</Property>
      <Property name="Algorithm" active="true">v.parallel</Property>
      <Property name="Algorithm" active="true">v.patch</Property>
      <Property name="Algorithm" active="true">v.perturb</Property>
      <Property name="Algorithm" active="true">v.proj</Property>
      <Property name="Algorithm" active="true">v.qcount</Property>
      <Property name="Algorithm" active="true">v.random</Property>
      <Property name="Algorithm" active="true">v.reclass</Property>
      <Property name="Algorithm" active="true">v.sample</Property>
      <Property name="Algorithm" active="true">v.segment</Property>
      <Property name="Algorithm" active="true">v.select</Property>
      <Property name="Algorithm" active="true">v.split</Property>
      <Property name="Algorithm" active="true">v.support</Property>
      <Property name="Algorithm" active="true">v.surf.bspline</Property>
      <Property name="Algorithm" active="true">v.surf.idw</Property>
      <Property name="Algorithm" active="true">v.surf.rst</Property>
      <Property name="Algorithm" active="true">v.to.3d</Property>
      <Property name="Algorithm" active="true">v.to.db</Property>
      <Property name="Algorithm" active="true">v.to.points</Property>
      <Property name="Algorithm" active="true">v.to.rast</Property>
      <Property name="Algorithm" active="true">v.to.rast3</Property>
      <Property name="Algorithm" active="true">v.transform</Property>
      <Property name="Algorithm" active="true">v.type</Property>
      <Property name="Algorithm" active="true">v.univar</Property>
      <Property name="Algorithm" active="true">v.vol.rst</Property>
      <Property name="Algorithm" active="true">v.voronoi</Property>
    </Repository>




.grassrc70:

GISDBASE: C:/programme/GRASS7.0.svn
LOCATION_NAME: demolocation
MAPSET: PERMANENT
GRASS_DB_ENCODING: utf-8
DEBUG: 1
GUI: text



GlobalGrassSettings.py from wps-grass-bridge-patched:

WORKDIR="C:/tmp/grass_tmp/"
OUTPUTDIR="C:/tmp/grass_tmp/"
LOGFILE="C:/tmp/logfile.txt"
LOGFILE_MODULE_STDOUT="C:/tmp/logfile_module_stdout.txt"
LOGFILE_MODULE_STDERR="C:/tmp/logfile_module_sterr.txt"
GRASS_GIS_BASE="C:/programme/GRASS7.0.svn"
GRASS_ADDON_PATH="C:/grass/wps-grass-bridge-patched/gms/Testing/Python/GrassAddons"
GRASS_VERSION="7.0.svn"

Reply | Threaded
Open this post in threaded view
|

Re: GRASS back end WPS errors in GRASS-LOGS (Windows 64bit)

BenjaminPross
Hello Julian,

I finally found out that the current GRASS 7 versions don't like the .prj files that are created by the GeoTools shapefile export (anymore). We convert different formats to shapefiles as an intermediate step. If you directly use a zipped shapefile as input (without the .prj file), the process works. You can try it out yourself with the execute request below. I also successfully tested the original example process with the docker image described in this post: http://geoprocessing.forum.52north.org/Announcing-52-North-WPS-Docker-td4025986.html

However, this runs on Ubuntu and I am not sure, which exact GRASS 7 version was used.
The main issue with the WPS GRASS 7 backend is that GRASS 7 is still under development. Things are changing and we cannot keep up. So there is always a chance that some processes are not working. We will adjust the backend to a stable GRASS 7 release in the near future.

Cheers,

Benjamin







<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
  http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
  <ows:Identifier>v.buffer</ows:Identifier>
  <wps:DataInputs>
  <wps:Input>
      <ows:Identifier xmlns:ns1="http://www.opengis.net/ows/1.1">input</ows:Identifier>
    <wps:Reference mimeType="application/x-zipped-shp" xlink:href="http://geoprocessing.demo.52north.org:8080/data/grass_tasmania_roads.zip" />
    </wps:Input>
    <wps:Input>
      <ows:Identifier>distance</ows:Identifier>
      <wps:Data>
        <wps:LiteralData>0.1</wps:LiteralData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput mimeType="application/x-zipped-shp">
      <ows:Identifier>output</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>
Reply | Threaded
Open this post in threaded view
|

Re: GRASS back end WPS errors in GRASS-LOGS (Windows 64bit)

julianrosser
Hi Benjamin,

Thank you for the response. That's useful to know about the GRASS7 bindings being in flux. Do you think it would it be better / possible to use GRASS6 installation instead? Or will that mean downgrading the 52NWPS version?

I've tried the execute request on Windows but unfortunately this generates a slightly different error (see below). Thanks for the link to the docker image. I will try that when I have access to a linux box or investigate using the Windows version docker.

As a workaround to accessing some of the GRASS7 functionality as a WPS I have been using the WPSR extension. This allows me to write R scripts to call the GRASS routines using spgrass and then return the outputs as WPS. This has been fairly successful, however I have come across a problem with reading some data types which I will put in a separate post as it relates to reading rasters using WPSR.


Thanks,
Julian



Using:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
  http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
  <ows:Identifier>v.buffer</ows:Identifier>
  <wps:DataInputs>
  <wps:Input>
      <ows:Identifier xmlns:ns1="http://www.opengis.net/ows/1.1">input</ows:Identifier>
    <wps:Reference mimeType="application/x-zipped-shp" xlink:href="http://geoprocessing.demo.52north.org:8080/data/grass_tasmania_roads.zip" />
    </wps:Input>
    <wps:Input>
      <ows:Identifier>distance</ows:Identifier>
      <wps:Data>
        <wps:LiteralData>0.1</wps:LiteralData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput mimeType="application/x-zipped-shp">
      <ows:Identifier>output</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>


Generates this error:
<INFO timestamp="10:1:7">
Vector map is of type {'MIMETYPE': 'APPLICATION/SHP', 'GDALID': 'ESRI_Shapefile', 'SCHEMA': ''}
</INFO>

<INFO timestamp="10:1:7">
Check if a band number is present
</INFO>

<INFO timestamp="10:1:7">
No band number found
</INFO>

<INFO timestamp="10:1:7">
Check for multiple import
</INFO>

<INFO timestamp="10:1:7">
No inputs found
</INFO>

<INFO timestamp="10:1:7">
GRASS_ADDON_PATH=
</INFO>

<INFO timestamp="10:1:7">
PYTHONPATH=;c:\programme\GRASS7.0.svn\etc\python
</INFO>

<INFO timestamp="10:1:7">
GISRC=C:\tmp\grass_tmp\tmpzebmuy\gisrc
</INFO>

<INFO timestamp="10:1:7">
GRASS_VERSION=7.0.svn:7.0.svn
</INFO>

<INFO timestamp="10:1:7">
PATH=c:\programme\GRASS7.0.svn\bin;c:\programme\GRASS7.0.svn\scripts;c:\programme\GRASS7.0.svn\lib;c:\programme\GRASS7.0.svn\extrabin
</INFO>

<INFO timestamp="10:1:7">
GIS_LOCK=7072
</INFO>

<INFO timestamp="10:1:7">
LD_LIBRARY_PATH=c:\programme\GRASS7.0.svn\lib
</INFO>

<INFO timestamp="10:1:7">
GISBASE=c:\programme\GRASS7.0.svn
</INFO>

<INFO timestamp="10:1:7">
LOCATION_NAME: startLocation
MAPSET: PERMANENT
DIGITIZER: none
GISDBASE: C:\tmp\grass_tmp\tmpzebmuy
OVERWRITE: 1
DEBUG: 0
GRASS_GUI: text
</INFO>

<INFO timestamp="10:1:7">
Created gisrc file C:\tmp\grass_tmp\tmpzebmuy\gisrc
</INFO>

<INFO timestamp="10:1:7">
Created WIND file C:\tmp\grass_tmp\tmpzebmuy\startLocation\PERMANENT\WIND
</INFO>

<INFO timestamp="10:1:7">
Created VAR file C:\tmp\grass_tmp\tmpzebmuy\startLocation\PERMANENT\VAR
</INFO>

<INFO timestamp="10:1:7">
inputs
</INFO>

<INFO timestamp="10:1:7">
Input file: C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp\ab2f7319-29ff-4783-920a-a0d09ae77aa6\grass_tasmania_roads.shp
Mime type: APPLICATION/SHP
</INFO>

<INFO timestamp="10:1:7">
LOCATION_NAME: startLocation
MAPSET: PERMANENT
DIGITIZER: none
GISDBASE: C:\tmp\grass_tmp\tmpzebmuy
OVERWRITE: 1
DEBUG: 0
GRASS_GUI: text
</INFO>

<INFO timestamp="10:1:7">
Vector map is of type {'MIMETYPE': 'APPLICATION/SHP', 'GDALID': 'ESRI_Shapefile', 'SCHEMA': ''}
</INFO>

<INFO timestamp="10:1:7">
Creating input location
</INFO>

<INFO timestamp="10:1:7">
Vector map is of type {'MIMETYPE': 'APPLICATION/SHP', 'GDALID': 'ESRI_Shapefile', 'SCHEMA': ''}
</INFO>

<INFO timestamp="10:1:7">
Looking for ##c:\programme\GRASS7.0.svn\bin\v.in.ogr.exe##
</INFO>

<INFO timestamp="10:1:7">
GRASS module path is c:\programme\GRASS7.0.svn\bin\v.in.ogr.exe
</INFO>

<INFO timestamp="10:1:7">
Run process: ['c:\\programme\\GRASS7.0.svn\\bin\\v.in.ogr.exe', 'dsn=C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0\\temp\\ab2f7319-29ff-4783-920a-a0d09ae77aa6\\grass_tasmania_roads.shp', 'location=workLocation', '-ie']
</INFO>

<INFO timestamp="10:1:7">
Process pid: 11164
</INFO>

<INFO timestamp="10:1:7">
Return code: 0
</INFO>

<INFO timestamp="10:1:7">
WARNING: Please update the usage of <v.in.ogr>: option <dsn> has been

         renamed to <input>

WARNING: All available OGR layers will be imported into vector map

         <grass_tasmania_roads>

Location <workLocation> created


</INFO>

<INFO timestamp="10:1:7">
LOCATION_NAME: workLocation
MAPSET: PERMANENT
DIGITIZER: none
GISDBASE: C:\tmp\grass_tmp\tmpzebmuy
OVERWRITE: 1
DEBUG: 0
GRASS_GUI: text
</INFO>

<INFO timestamp="10:1:7">
Looking for ##c:\programme\GRASS7.0.svn\bin\db.connect.exe##
</INFO>

<INFO timestamp="10:1:7">
GRASS module path is c:\programme\GRASS7.0.svn\bin\db.connect.exe
</INFO>

<INFO timestamp="10:1:7">
Run process: ['c:\\programme\\GRASS7.0.svn\\bin\\db.connect.exe', '-d']
</INFO>

<INFO timestamp="10:1:7">
Process pid: 12176
</INFO>

<INFO timestamp="10:1:7">
Return code: 0
</INFO>

<INFO timestamp="10:1:7">
Default driver / database set to:

driver: sqlite

database:

C:\tmp\grass_tmp\tmpzebmuy\workLocation\PERMANENT\sqlite\sqlite.db


</INFO>

<INFO timestamp="10:1:7">
Vector map is of type {'MIMETYPE': 'APPLICATION/SHP', 'GDALID': 'ESRI_Shapefile', 'SCHEMA': ''}
</INFO>

<INFO timestamp="10:1:7">
Import vector map input
</INFO>

<INFO timestamp="10:1:7">
Looking for ##c:\programme\GRASS7.0.svn\bin\v.in.ogr.exe##
</INFO>

<INFO timestamp="10:1:7">
GRASS module path is c:\programme\GRASS7.0.svn\bin\v.in.ogr.exe
</INFO>

<INFO timestamp="10:1:7">
Run process: ['c:\\programme\\GRASS7.0.svn\\bin\\v.in.ogr.exe', 'dsn=C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0\\temp\\ab2f7319-29ff-4783-920a-a0d09ae77aa6\\grass_tasmania_roads.shp', 'output=input']
</INFO>

<INFO timestamp="10:1:7">
Process pid: 1744
</INFO>

<INFO timestamp="10:1:7">
Return code: 0
</INFO>

<INFO timestamp="10:1:7">
WARNING: Please update the usage of <v.in.ogr>: option <dsn> has been

         renamed to <input>

Check if OGR layer <grass_tasmania_roads> contains polygons...

   0%   7%  14%  21%  28%  35%  42%  50%  57%  64%  71%  78%  85%  92% 100%

Column name <cat> renamed to <cat_>

Importing 14 features (OGR layer <grass_tasmania_roads>)...

   0%   7%  14%  21%  28%  35%  42%  50%  57%  64%  71%  78%  85%  92% 100%

-----------------------------------------------------

Building topology for vector map <input@PERMANENT>...

Registering primitives...


14 primitives registered

223 vertices registered

Building areas...

   0%   7%  14%  21%  28%  35%  42%  50%  57%  64%  71%  78%  85%  92% 100%

0 areas built

0 isles built

Attaching islands...

Attaching centroids...

   7%  14%  21%  28%  35%  42%  50%  57%  64%  71%  78%  85%  92% 100%

Number of nodes: 14

Number of primitives: 14

Number of points: 0

Number of lines: 14

Number of boundaries: 0

Number of centroids: 0

Number of areas: 0

Number of isles: 0


</INFO>

<INFO timestamp="10:1:7">
Looking for ##c:\programme\GRASS7.0.svn\bin\v.buffer.exe##
</INFO>

<INFO timestamp="10:1:7">
GRASS module path is c:\programme\GRASS7.0.svn\bin\v.buffer.exe
</INFO>

<INFO timestamp="10:1:7">
Run process: ['c:\\programme\\GRASS7.0.svn\\bin\\v.buffer.exe', 'distance=0.1', 'input=input', 'output=output']
</INFO>

<INFO timestamp="10:1:7">
Process pid: 11496
</INFO>

<INFO timestamp="10:1:9">
Return code: 255
</INFO>

<ERROR timestamp="10:1:9">
Error while executing the grass module. The following error message was logged:

</ERROR>

<INFO timestamp="10:1:9">
Remove C:\tmp\grass_tmp\tmpzebmuy
</INFO>
Reply | Threaded
Open this post in threaded view
|

Re: GRASS back end WPS errors in GRASS-LOGS (Windows 64bit)

BenjaminPross
Hello Julian,

As a stable GRASS 7 version was released just four days ago [1], we will now concentrate to make the WPS work properly with this version. I will also look into the new issue you reported.

Cheers,

Benjamin

[1] http://grass.osgeo.org/news/42/15/GRASS-GIS-7-0-0/

P.S.: GRASS 6 is not an option, as it lacks the functionality to create WPS process descriptions out of the modules that was introduced with GRASS 7.
Reply | Threaded
Open this post in threaded view
|

Re: GRASS back end WPS errors in GRASS-LOGS (Windows 64bit)

julianrosser
Hi Benjamin,

Thanks for the update. Sounds good! Keep up the good work.

Regards,
Julian