[Geoserver-devel] [Geoserver 2.2] WPS first steps : DescribeProcess customization

Hi,

I'm playing around with Geoserver WPS features. I've implemented a small WPS process but I'm stuck trying to customize the WPS DescribeProcess response. Here is what I'm trying to do : I wanna do something almost like gs:Reproject but I want to be able to support only a few input and output CRS. Therefore I'd like the DescribeProcess to list the supported CRS for my WPS process.
I've tried some dirty tricks (like implementing an enum for the CRS type => It works (nice surprise) but of course ":" (colon) is not accepted by Java in an enum key).

Do you have any ideas/clues on how to achieve this ?

10x in advance

Manu

On Wed, Oct 3, 2012 at 5:40 PM, Emmanuel Séguin <emmanuel.seguin@anonymised.com> wrote:

Hi,

I’m playing around with Geoserver WPS features. I’ve implemented a small
WPS process but I’m stuck trying to customize the WPS DescribeProcess
response. Here is what I’m trying to do : I wanna do something almost
like gs:Reproject but I want to be able to support only a few input and
output CRS. Therefore I’d like the DescribeProcess to list the supported
CRS for my WPS process.
I’ve tried some dirty tricks (like implementing an enum for the CRS type
=> It works (nice surprise) but of course “:” (colon) is not accepted by
Java in an enum key).

Do you have any ideas/clues on how to achieve this ?

Eh, are you trying to do the INSPIRE compliant reproject? :slight_smile:

Right now there is no way to do what you want, we’d need to expand
Parameter back in GeoTools to provide a domain of possible values,
then change the annotation system to provide that list, and finally
alter the DescribeProcess to use it

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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


He he spot on :wink:

Ok ... Just as I thought :wink: I'll have a closer look at Geotools and Geoserver WPS core to see what I can do.

Cheers
Manu

On 10/03/2012 06:18 PM, Andrea Aime wrote:

On Wed, Oct 3, 2012 at 5:40 PM, Emmanuel Séguin <emmanuel.seguin@anonymised.com <mailto:emmanuel.seguin@anonymised.com>> wrote:

    Hi,

    I'm playing around with Geoserver WPS features. I've implemented a
    small
    WPS process but I'm stuck trying to customize the WPS DescribeProcess
    response. Here is what I'm trying to do : I wanna do something almost
    like gs:Reproject but I want to be able to support only a few
    input and
    output CRS. Therefore I'd like the DescribeProcess to list the
    supported
    CRS for my WPS process.
    I've tried some dirty tricks (like implementing an enum for the
    CRS type
    => It works (nice surprise) but of course ":" (colon) is not
    accepted by
    Java in an enum key).

    Do you have any ideas/clues on how to achieve this ?

Eh, are you trying to do the INSPIRE compliant reproject? :slight_smile:

Right now there is no way to do what you want, we'd need to expand
Parameter back in GeoTools to provide a domain of possible values,
then change the annotation system to provide that list, and finally
alter the DescribeProcess to use it

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

-------------------------------------------------------

--
Emmanuel Séguin
SIEL - Pôle technique du Géoportail
Institut Géographique National
2/4, avenue Pasteur - 94165 Saint Mandé Cedex
Phone : +33 1.43.98.83.54
http://fr.linkedin.com/in/emmmanuelseguin