On Sat, May 31, 2014 at 3:27 PM, Jody Garnett <[email protected]>
wrote:
> On Sat, May 31, 2014 at 11:05 PM, Andrea Aime <
> [email protected]> wrote:
>
>> Hi,
>> in this mail I'm proposing that we extend the parameter and result process
>> annotation with a meta key that would allow the specification of extra
>> metadata meant to be added in the Param metadata map.
>>
>
> Good idea, goal was to have things open ended for experimentation until
> "best of breed" metadata (that is appropriate to several contexts) is
> figured out.
>
Right. In this case, I believe the mimeTypes and selection keys are going
to stay there, as they would
be GeoServer WPS specific.
And it's good to have a place where apps can add their own extra
information.
> ...
>
>> Now that I think about it, I guess the following would also be possible,
>> and
>> even more compact:
>>
>> @DescribeResult(name = "result", description = "Output raster",
>> meta = {"mimeTypes=application/json,text/xml",
>> "selection=outputMimeType"}
>> RawData execute( ...
>> @DescribeParameter(name = "data", description = "Input features") ,
>> meta =
>> {"mimeTypes=application/json,text/xml") RawData myInput
>> ...
>> String outputMimeType);
>>
>> Feedback?
>>
>> So is meta taking a list of strings, each string parsed as a key value
> pair? sounds okay.
>
Right, it would be split at the first = and added into the metadata map
Cheers
Andrea
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel