Open tbonfort opened 12 years ago
Author: dmorissette Date: 2004/09/30 - 16:31
Since spatial filters don't map well into MapServer classes, it is quite likely
that spatial filters are just not supported for SLD. I'll let Assefa comment
further on that.
Author: dmorissette Date: 2004/09/30 - 16:44
Quick clarification, in my previous comment, of course I meant: "spatial filters
not supported for SLD *in MapServer*".
Author: assefa Date: 2004/09/30 - 17:05
I had actually added the support for the spatial filters for WMS couple of
months ago. The main addtion was for BBOX filters but I also added Intersect and
Dwithin. I did some tests a couple of weeks ago and did some corrections related
to these filters (sep 17) and my test case was passing.
I can check what is wrong with filter if you provide me with sample data that
goes with the filter. It takes me a considerable amount of time to reproduce
any problems without sample data. You can e-mail me your data personnaly if
possible.
Author: dmorissette Date: 2004/09/30 - 17:14
Assefa, did you really do filters *in SLD*?
Author: assefa Date: 2004/09/30 - 17:54
Yes in was added in SLD. I have created a bug 919 to update the SLD docs and add
sld with spatial filters examples using the world_test data.
Author: b.veldkamp@zonnet.nl Date: 2004/10/01 - 10:40
Never mind, after two weeks of pulling my hairs out, it now all of a sudden
works :-| I have no idea what I changed to make it work, but if I find out, I'll
let you know.
BTW does Mapserver as WMS *client* also support sld filters? I believe that what
Mapserver does now, is try to convert a filter to classes *) and then, when
making a WMS request, it converts these classes back to an sld filter. Or is it?
Obviously this can't work for spatial filter, due to the nature of Mapserver
classes, but I think that if a valid filter is already known, there's no need to
create classes in the first place, right?
Berend
*) I'm talking about php/mapscript and applysld() here.
Author: assefa Date: 2004/10/29 - 01:57
Marking this as Invalid. Please reopen if there are still issues.
Regarding the question in comment #6, If I understant well, You can specifify
on a wms client layer (in the map file) the following metadata :
wms_sld_url : value would be an url to a valid sld document. The WMS request
will be send using SLD=
wms_sld_body : 2 possible values
- full sld document (eg ("wms_sld_body" "StyledLayerDescriptor version='1 0
0'>...</StyledLayerDescriptor>"
- or the value can be AUTO ("wms_sld_body" "AUTO") : this will genarate an
SLD from your classes
When using the wms_sld_body, the WMS request will be send using SLD_BODY
Author: b.veldkamp@zonnet.nl Date: 2004/10/29 - 08:29
Ah, OK. I had only tried wms_filter in the metadata. Is wms_sld_url documented
somewhere?
Author: assefa Date: 2004/10/29 - 15:40
The docs are in mapserver wiki right now :
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SLDMapServer
It should make it to the official docs location before the 4.4. release.
Reporter: b.veldkamp@zonnet.nl Date: 2004/09/30 - 10:58