WMS SLD

6 messages Options
Embed this post
Permalink
Mody

WMS SLD

Reply Threaded More More options
Print post
Permalink
Hi,

I would like to send a sld file and save it into any wms. Is it possible to do that with Geotools labaries?

      I've tried with that "wms.createPutStyleRequest" but there is an error which means that the operation is not supported by the wms

After doing that I have to create a Layer ( in the same wms) and associate it to a style contained in the sld file.

Please, if you think that it is possible I need some ideas.

If it is not advice me an other way to do that

Best regars

Mody  
Ian Turton

Re: WMS SLD

Reply Threaded More More options
Print post
Permalink
On Mon, Jun 22, 2009 at 5:58 AM, Mody<[hidden email]> wrote:
>
> Hi,
>
> I would like to send a sld file and save it into any wms. Is it possible to
> do that with Geotools labaries?
>
>      I've tried with that "wms.createPutStyleRequest" but there is an error
> which means that the operation is not supported by the wms
>

It all depends on which WMS you are talking to - AFAIK most (all?)
don't support the put style method - check the capabilities file to
see if yours does.  But if you find one that does support it then you
are using the right call.

Ian

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Mody

Re: WMS SLD

Reply Threaded More More options
Print post
Permalink
Hi Ian,

thank you.
I've checked my capabilities file but there is not any putstyle operation.
Is it possible to make any wms supporting this operation?
Me, I decided to choose an specific wms (geoserver for example) and to develop a webservice based-SOAP which I can call in order to save my style and to create my layer. I would like to know if that way is a good idea? So, If I decide to do that, I have to get into the source code of geoserver and my webservice will do what the servlet do. According to you, is it really interesting to do like that?

best regards

Ian Turton wrote:
On Mon, Jun 22, 2009 at 5:58 AM, Mody<elmodyka@gmail.com> wrote:
>
> Hi,
>
> I would like to send a sld file and save it into any wms. Is it possible to
> do that with Geotools labaries?
>
>      I've tried with that "wms.createPutStyleRequest" but there is an error
> which means that the operation is not supported by the wms
>

It all depends on which WMS you are talking to - AFAIK most (all?)
don't support the put style method - check the capabilities file to
see if yours does.  But if you find one that does support it then you
are using the right call.

Ian

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
aaime

Re: WMS SLD

Reply Threaded More More options
Print post
Permalink
Mody ha scritto:

> Hi Ian,
>
> thank you.
> I've checked my capabilities file but there is not any putstyle operation.
> Is it possible to make any wms supporting this operation?
> Me, I decided to choose an specific wms (geoserver for example) and to
> develop a webservice based-SOAP which I can call in order to save my style
> and to create my layer. I would like to know if that way is a good idea? So,
> If I decide to do that, I have to get into the source code of geoserver and
> my webservice will do what the servlet do. According to you, is it really
> interesting to like that?

Check out the GeoServer REST configuration module, it already provides
remote calls you can make to add styles and configure new data:
http://docs.geoserver.org/1.7.x/user/extensions/rest/index.html

Cheers
Andrea

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Mody

Re: WMS SLD

Reply Threaded More More options
Print post
Permalink
Yeah I've checked out this one and I realise that the REST webservices can do that want to  do, but I'm asked to create webservices based-SOAP which will be integrated in an ORACLE WORKFLOW.

It seems that ORACLE WORKFLOW doesn't support REST webservices but I'm not sure
aaime wrote:
Mody ha scritto:
> Hi Ian,
>
> thank you.
> I've checked my capabilities file but there is not any putstyle operation.
> Is it possible to make any wms supporting this operation?
> Me, I decided to choose an specific wms (geoserver for example) and to
> develop a webservice based-SOAP which I can call in order to save my style
> and to create my layer. I would like to know if that way is a good idea? So,
> If I decide to do that, I have to get into the source code of geoserver and
> my webservice will do what the servlet do. According to you, is it really
> interesting to like that?

Check out the GeoServer REST configuration module, it already provides
remote calls you can make to add styles and configure new data:
http://docs.geoserver.org/1.7.x/user/extensions/rest/index.html

Cheers
Andrea

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Ian Turton

Re: WMS SLD

Reply Threaded More More options
Print post
Permalink
On Tue, Jun 23, 2009 at 6:14 AM, Mody<[hidden email]> wrote:
>
> Yeah I've checked out this one and I realise that the REST webservices can do
> that want to  do, but I'm asked to create webservices based-SOAP which will
> be integrated in an ORACLE WORKFLOW.
>
> It seems that ORACLE WORKFLOW doesn't support REST webservices but I'm not
> sure

You could use SOAP to send the SLD file to a servlet which writes it
to a specific location and then you could use that URL to refer to the
style in your WMS request.

Ian
--

Ian Turton
http://www.geotools.org
http://pennspace.blogspot.com/

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users