The client actually tries to grab the style by name:
http://giswebservices.massgis.state.ma.us/geoserver/rest/styles/GISDATA.
LANDUSE_POLY::21_Classes_1999_Solid
Then it looks for any scale info such as:
<sld:MinScaleDenominator>0</sld:MinScaleDenominator>
<sld:MaxScaleDenominator>200000</sld:MaxScaleDenominator>
If the layer is outside the scale range, it's title is "greyed out" in
the legend area.
The greyed out is a hint to the user as to why the data isn't drawing on
the map.
So, this is minor, but nice to have.
That's for the clue about the coming format change - I'll add that to my
"check when 1.7.3 is out" list!
-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: Friday, March 06, 2009 6:14 PM
To: Freeman, Aleda (EEA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Location of styles list
Ha, Saul putting his finishing touches on again
Now that I think
about I do seem to remember saul being interested in the rest config
extensions at one point, so it is possible he backported to 1.6.x.
One thing to note is is that the format that the styles are returned in
the official version which will be part of 1.7.3 is different than the
format used by the extension you are currently running, so i am guessing
this will be an issue for your client app.
Do you know what format the client is requesting the data in? Is it HTML
or XML? In other words is it calling:
http://…/geoserver/rest/styles
or
http://…/geoserver/rest/style.xml
-Justin
Freeman, Aleda (EEA) wrote:
Ah, interesting. Well, come to think of it, I have a
1.6.5-saul-special-version probably
Because I have
http://giswebservices.massgis.state.ma.us/geoserver/rest/styles
So perfect, in 1.7.3 the styles will be exactly where I'm expecting
them to be.
-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: Friday, March 06, 2009 4:36 PM
To: Freeman, Aleda (EEA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Location of styles list
Hi Aleda,
As far as I know 1.6.x made styles available only from
http://…/geoserver/styles (no "rest"). And only allows you to access
styles directly. In other words:
http://…/geoserver/styles/default_point.sld should return the SLD
document. But:
http://…/geoserver/styles
should give you back a 404.
The rest configuration extensions for 1.7.x (officially released in
the up and coming 1.7.3 release) will provide listing functionality,
and will make styles available from:
http://…/geoserver/rest/styles
As far as I know the rest configuration extensions never lived on
1.6.x...
-Justin
Freeman, Aleda (EEA) wrote:
In 1.6.5 the styles are reachable through a URL in the form of
servername/rest/styles for example:
_http://giswebservices.massgis.state.ma.us/geoserver/rest/styles_
One of our client apps uses this... the 1.7.2 GeoServer doesn't seem
to have the same URL and I've having trouble figuring out a URL that
gives me that list... anyone know?
---------------------------------------------------------------------
-
--
---------------------------------------------------------------------
-
-------- Open Source Business Conference (OSBC), March 24-25, 2009,
San Francisco, CA -OSBC tackles the biggest issue in open source:
Open
Sourcing the Enterprise -Strategies to boost innovation and cut costs
with open source participation -Receive a $600 discount off the
registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
---------------------------------------------------------------------
-
--
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.