[Geoserver-users] style capabilities

Hi,

is it possible to list all the available styles stored in geoserver from a
client?

I've looked at W*S getCapabilities but none list all the available styles,
the best I've found is the WMS getCapabilities which lists the default style
for each coverage.

Can I list all the styles somehow?

Cheers
Dave

--
View this message in context: http://www.nabble.com/style-capabilities-tp21200687p21200687.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao David,
the easiest thing I can think of is by using the REST API like this

http://xxxxxx/geoserver/rest/styles

Ciao,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Mon, Dec 29, 2008 at 10:26 AM, djud <djud@anonymised.com> wrote:

Hi,

is it possible to list all the available styles stored in geoserver from a
client?

I've looked at W*S getCapabilities but none list all the available styles,
the best I've found is the WMS getCapabilities which lists the default style
for each coverage.

Can I list all the styles somehow?

Cheers
Dave

--
View this message in context: http://www.nabble.com/style-capabilities-tp21200687p21200687.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

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

Hi Simone,

I'm running geoserver locally, so if I direct my browser to:

http://localhost/geoserver/rest/styles

I receive a 404 (resource not available)

Do I need to load the API first?

Thanks
Dave

--
View this message in context: http://www.nabble.com/style-capabilities-tp21200687p21201000.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

djud ha scritto:

Hi Simone,

I'm running geoserver locally, so if I direct my browser to:

http://localhost/geoserver/rest/styles

I receive a 404 (resource not available)

Do I need to load the API first?

Yes, it's in community extension at the moment.
Luckily we've built it as binary in order to
provide support for the visual SLD editor, and
you can find it here:
http://downloads.sourceforge.net/geoserver/geoserver-1.7.1-rest-plugin.zip

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thanks Andrea,

I'll download and test.

Dave

--
View this message in context: http://www.nabble.com/style-capabilities-tp21200687p21201143.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Thanks all,

the REST plugin worked perfectly. For the benefit of others, you just have
to download the plugin, extract the jar files and copy them to
geoserver/WEB-INF/lib and restart geoserver.

You will then be able to access data folder and style information via the
url:

http://host/geoserver/rest/

Cheers,
Dave
--
View this message in context: http://www.nabble.com/style-capabilities-tp21200687p21353238.html
Sent from the GeoServer - User mailing list archive at Nabble.com.