[ZOO-Discuss] GIS GRASS ZOO integration
Soeren Gebbert
soerengebbert at googlemail.com
Thu Oct 21 08:04:46 PDT 2010
Hello Eugenio,
2010/10/15 Eugenio Realini <eugenio.realini at gmail.com>:
> Hi Soeren,
>
> we tried to import the file in GRASS7, and it does not complain. The
> file is imported correctly.
> We tried also a second file (tif + tfw) and it behaves in the same
> way: GRASS imports it, but ZOO reports the same error as the previous
> file.
>
> We also launched directly this:
>
> python ZOO_Project/GrassModuleStarter.py -f r.univar_input.txt -l
> 5.log -o 5_stdout.log -e 5_stderr.log
>
> by setting properly the r.univar_input.txt parameters, and it works!
> Also on our file (DTM_108.tif).
> Logfile: http://pastebin.org/202233
> So I guess the problem is upper in the process chain.
>
> We are wondering if we are keeping files where they should be. The
> input files are in the cgi-bin directory, and we try to call them with
> the following URLs:
>
> http://131.175.143.108/cgi-bin/zoo_loader.cgi?Service=WPS&Request=Execute&Version=1.0.0&Identifier=r_univar&DataInputs=map=DTM_108.tif;grass_band_number=1
>
> http://131.175.143.108/cgi-bin/zoo_loader.cgi?Service=WPS&Request=Execute&Version=1.0.0&Identifier=r_univar&DataInputs=map=b4d4.tif;grass_band_number=1
>
> These are the two logfiles:
>
> for DTM_108.tif: http://pastebin.org/190194
> for b4d4.tif: http://pastebin.org/190478
>
> Should we use paths relative to zoo_loader.cgi or to
> ZOOGrassModuleStarter or ... ?
Gerald please correct me if i'm wrong, :)
but IMHO the situation is this:
The problem is related to the execute request. The ZOO WPS server
expects an URL in the KVP pointing to an input location (ftp, WCS,
WFS, WPS, ....) or a base64 encoded byte stream in the XML request.
In case of an URL the zoo_loader will download this file and passes
the binary/XML content as map (a Python dictionary) to the Python
service modules.
Hence the ZOOGrassModuleStarter expects a binary or XML content within
the provided map. This content is written as file to the file system
an passed to r.in.gdal/v.in.ogr for import in the GrassModuleStarter.
So providing a relative or absolute path to a tif file on the local
file system will not work.
You can set up a WCS service using the geoserver WCS server and pass a
WCS service request as input URL.
Best regards
Soeren
>
> The .zcfg file is the same that you provide for r_univar process.
>
> Best regards and thanks again for your help!
> Ege
>
More information about the Zoo-discuss
mailing list