Re: WPS4R image output

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: WPS4R image output

Daniel
Hi Gregory!

Am 05/12/2014 um 09:13 schrieb Gregory Giuliani:

> My script is supposed to extract some statistics from Globcover 2009 and
> I wish to have it as a graph image in PNG format.
> However, when I execute my process:
> http://wps.grid.unep.ch:8080/wps/WebProcessingService?service=wps&version=1.0.0&request=execute&identifier=org.n52.wps.server.r.globcov&datainputs=cnty=LIE;boundaries=y;locations=y;mask=y
> I don’t have an image but a chain of strand characters (see the
> screenshot attached).
>
> In my script, I write the png file:
> fname <- “gc.png"
> png(file=fname, width=450, height=280, res=94, units="mm") #94
>
> and here is the annotation for the output
> # wps.out: fname, image/png;
>
> I’m using R 3.1.2 on a Debian wheezy server with 52north WPS3.3
> implementation

Your output looks a lot like a binary encoding of the image. Have you
tested to request the image as a reference? I am not sure this is
possible in a GET request, but see this POST example:

https://github.com/52North/WPS/blob/master/52n-wps-webapp/src/main/webapp/requests/R_SosPlot.xml


/Daniel

>
> ---
> Dr. Gregory Giuliani
> Senior research associate - Spatial Data Infrastructure
> http://www.unige.ch/envirospace/People/giuliani.html
> **************************************************************
> University of Geneva
> Institute for Environmental Sciences/enviroSPACE
> 7 route de Drize, CH - 1227 CAROUGE
> Phone: (+41 22) 379 07 09 Fax: (+41 22) 379 07 44
> Web: http://www.unige.ch/envirospace
> Email: [hidden email]
> **************************************************************
> UNEP/DEWA/GRID-Geneva
> International Environment House
> 11, chemin des Anémones, CH - 1219 CHATELAINE
> Phone: (+41 22) 917 84 17 Fax: (+41 22) 917 80 29
> Web: http://www.grid.unep.ch
> Email: [hidden email]
> **************************************************************
>


--
Daniel Nüst
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11

http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines