[Geoserver-devel] [jira] (GEOS-6346) FilePIPO implementation - enable WPS to return any kind of file

Krunoslav Hrnjak created an issue

GeoServer / ImprovementGEOS-6346

FilePIPO implementation - enable WPS to return any kind of file

Issue Type:

ImprovementImprovement

Assignee:

Andrea Aime

Attachments:

FilePPIO.java

Components:

WPS

Created:

14/Feb/14 8:34 AM

Priority:

MajorMajor

Reporter:

Krunoslav Hrnjak

According to the general concept of WPS and I believe WPS specification, WPS should be able to return raw data.
The most generic raw data should be octet array (binary object in memory) or a file (binary object on file system) containing custom or proprietary data structures. Such file would have “application/octet-stream” MIME Type by default, and extension should be set at the time of object creation according to the real file structure and data contained (like .doc, .xls or .pdf). At the moment only particular file formats can be returned (like png, jpeg, tiff, arcgrid).
There already exists abstract class BinaryPPIO.java (package org.geoserver.wps.ppio), only missing a implementation for the “generic” file. I suggest implementation of FilePPIO class that would enable any file to be served as a result of WPS output.

I have attached one possible solution for FilePIPO class implementation. Please review and test it.

Srdačno, Krunoslav

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo