[Geoserver-users] Returning any kind of file with WPS python script

Hey,

I am trying to return a file (.zip) in a WPS python script but I have no clue which type to choose for the output in the python decorator.

I know that it is possible to define a raw data output in general but what are the specific type mappings used in the WPS python script.

Thanks!

Hey Stefan,

What sort of data are you returning from the process? If you can provide a bit more info that would be great.

-Justin

···

On Fri, Jul 5, 2013 at 6:38 AM, <Stefan.Herle@anonymised.com> wrote:

Hey,

I am trying to return a file (.zip) in a WPS python script but I have no clue which type to choose for the output in the python decorator.

I know that it is possible to define a raw data output in general but what are the specific type mappings used in the WPS python script.

Thanks!


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

We’re planning to return a zip-file. We were hoping that it’s possible to return a file via the scripting plugin, but of course this cannot be simply the path as string, so we were thinking it might be possible by providing a file object.

We really hope this is somehow possible but do not know in which way we’d have to provide results to make Geoserver (WPS) return a RawOutput instead of a ResultDocument and how to specify a Content-Type or Mime-Type.

Thanks,

Thomas

···

Von: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Gesendet: Freitag, 5. Juli 2013 17:07
An: Herle, Stefan
Cc: geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] Returning any kind of file with WPS python script

Hey Stefan,

What sort of data are you returning from the process? If you can provide a bit more info that would be great.

-Justin

On Fri, Jul 5, 2013 at 6:38 AM, <Stefan.Herle@anonymised.com> wrote:

Hey,

I am trying to return a file (.zip) in a WPS python script but I have no clue which type to choose for the output in the python decorator.

I know that it is possible to define a raw data output in general but what are the specific type mappings used in the WPS python script.

Thanks!


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Justin Deoliveira

OpenGeo - http://opengeo.org

Enterprise support for open source geospatial.

Hey Thomas,

···

On Fri, Jul 5, 2013 at 12:25 PM, <Thomas.Wanderer@anonymised.com> wrote:

We’re planning to return a zip-file. We were hoping that it’s possible to return a file via the scripting plugin, but of course this cannot be simply the path as string, so we were thinking it might be possible by providing a file object.

Right, i got that from the first post but what does the zip file contain is my questions. Regardless i am thinking your use case is probably not supported via a wps plugin. You could however use an “app” hook which basically gives you an http invokable endpoint where you are free to return any sort of content you choose.

We really hope this is somehow possible but do not know in which way we’d have to provide results to make Geoserver (WPS) return a RawOutput instead of a ResultDocument and how to specify a Content-Type or Mime-Type.

Can you open a jira issue for this. Thanks.

Thanks,

Thomas

Von: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Gesendet: Freitag, 5. Juli 2013 17:07
An: Herle, Stefan
Cc: geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] Returning any kind of file with WPS python script

Hey Stefan,

What sort of data are you returning from the process? If you can provide a bit more info that would be great.

-Justin

On Fri, Jul 5, 2013 at 6:38 AM, <Stefan.Herle@anonymised.com> wrote:

Hey,

I am trying to return a file (.zip) in a WPS python script but I have no clue which type to choose for the output in the python decorator.

I know that it is possible to define a raw data output in general but what are the specific type mappings used in the WPS python script.

Thanks!


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Justin Deoliveira

OpenGeo - http://opengeo.org

Enterprise support for open source geospatial.


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.