All,
I'm trying to write a wms 'SLD_BODY' request where I get a base layer
('world')
and a filtered layer ('all_species') on top.
This works for just the base layer:
http://localhost:8080/geoserver/wms?bbox=-6600000,-6300000,6600000,8100000&r
equest=GetMap&
width=660&height=720&format=image/png&srs=EPSG:105000&SLD_BODY=
<StyledLayerDescriptor>
<NamedLayer>
<Name>cei:world</Name>
<NamedStyle>
<Name>other_polygons</Name>
</NamedStyle>
</NamedLayer>
</StyledLayerDescriptor>
And this works for the filtered layer:
http://localhost:8080/geoserver/wms?bbox=-6600000,-6300000,6600000,8100000&r
equest=GetMap&
layers=cei:all_species&width=660&height=720&styles=ns_ranges&format=image/pn
g&srs=EPSG:105000&filter=
<Filter>
<PropertyIsEqualTo>
<PropertyName>sci_name</PropertyName>
<Literal>Sterna paradisaea</Literal>
</PropertyIsEqualTo>
</Filter>
So I thought something like this would work to get both layers on the same
map,
but it doesn't, it just hangs:
http://localhost:8080/geoserver/wms?bbox=-6600000,-6300000,6600000,8100000&r
equest=GetMap&
width=660&height=720&format=image/png&srs=EPSG:105000&SLD_BODY=
<StyledLayerDescriptor>
<NamedLayer>
<Name>cei:world</Name>
<NamedStyle>
<Name>other_polygons</Name>
</NamedStyle>
</NamedLayer>
<NamedLayer>
<Name>cei:all_species</Name>
<Rule>
<Filter>
<PropertyIsEqualTo>
<PropertyName>sci_name</PropertyName>
<Literal>Sterna paradisaea</Literal>
</PropertyIsEqualTo>
</Filter>
</Rule>
<NamedStyle>
<Name>ns_ranges</Name>
</NamedStyle>
</NamedLayer>
</StyledLayerDescriptor>
Any thoughts?
Thanks,
Steve
Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University
814.865.9905
src176@anonymised.com