Hi Javier,
You should try to use the namespace in the layer names all the time. You
only leave it out if it's using the default namespace, and even then it
doesn't hurt to leave it in in case the default changes or summin.
Aside from that, you are calling a layer called
tdwg:richness_by_c_square_05 but in the SLD it doesn't have the _05 bit.
I changed and tested it and got the full map that you would have
expected.
In brief, change:
<NamedLayer>
<Name>richness_by_c_square</Name>
...
To:
<NamedLayer>
<Name>tdwg:richness_by_c_square_05</Name>
...
Hope this helps,
Miles
Miles Jordan
Applications Developer
The Australian Antarctic Data Centre
-----Original Message-----
From: geoserver-users-admin@lists.sourceforge.net
[mailto:geoserver-users-admin@lists.sourceforge.net] On
Behalf Of Javier de la Torre
Sent: Friday, 19 May 2006 1:13 AM
To: geoserver-users@lists.sourceforge.net
Subject: Fwd: [Geoserver-users] Editing SLDRight this is what I have tried:
This request uses the default SLD for this FeatureType:
http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQU
EST=GetMap&SERVICE=WMS&SRS=EPSG:4326&BBOX=-180,->
90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_squa
re_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE
Now If to the same one I provide an SLD parameter like this:
http://synthesys.csic.es:8080/geoserver/wms?VERSION=1.1.1&REQU
EST=GetMap&SERVICE=WMS&SRS=EPSG:4326&BBOX=-180,->
90,180,90&WIDTH=1000&HEIGHT=570&LAYERS=tdwg:richness_by_c_squa
re_05&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&SLD=http://syn
thesys.csic.es/SLD/richness_by_c_square.sldI get the same result... and for you to check that the style
provided in the second example is different here is the
GetLegend request, you will see it has different colours:http://synthesys.csic.es:8080/geoserver/wms/GetLegendGraphic?V
ERSION=1.0.0&WIDTH=50&HEIGHT=50&LAYER=tdwg:richness_by_c_square_05&FORMA
T=image/png&SLD=http://synthesys.csic.es/SLD/richness_by_c_square.sld
Could it be that the default style has prevalence over the provided one?
Thanks.
Javier.
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________