SLD resquest issue with EXPRESSION parameter

Jacolin Yves yjacolin at FREE.FR
Sat Nov 3 05:50:57 EDT 2007


Hi again,

I find away to get the GetStyles XML file correctly for the last problem: I 
have to used CLASSITEM parameter in the LAYER object then use 
EXPRESSION 'UPZ.' for exemple.

I get :
<ogc:Filter>
	<ogc:PropertyIsEqualTo>
		<ogc:PropertyName>ZONE_</ogc:PropertyName>
		<ogc:Literal>UPZ.</ogc:Literal>
	</ogc:PropertyIsEqualTo>
</ogc:Filter>

Unhopefully, the "6 CLASS" issue is still present :(

Y.
Le Saturday 03 November 2007 10:41:54 Jacolin Yves, vous avez écrit :
> Thanks Yewondwossen Assefa,
>
> One more question, do you know some issue with the EXPRESSION parameter
> (for instance a simple EXPRESSION ('[ZONE_]' eq 'UCa')) AND the number of
> CLASS in a LAYER?
>
> My problem is that the GetStyles request send back an empty xml file with
> EXPRESSION and if more than 6 CLASSE objects are used.
>
> If I coment all the EXPRESSION, I get an XML file. Actualy, if I uncoment
> EXPRESSION in more than 6 CLASSes, the xml file will be empty.
>
> Furthermore, even if I get an xml file, it seems there is a problem in my
> XML data :
> <ogc:Filter>
> 	<ogc:PropertyIsEqualTo>
> 		<ogc:PropertyName>ZONE_</ogc:PropertyName>
> 		<ogc:Literal></ogc:Literal>
> 	</ogc:PropertyIsEqualTo>
> </ogc:Filter>
>
> Or for one of them :
>
> <ogc:Filter>
> 	<ogc:PropertyIsEqualTo>
> 		<ogc:PropertyName>ZONE_</ogc:PropertyName>
> 		<ogc:Literal>��p �$~����� </ogc:Literal>
> 	</ogc:PropertyIsEqualTo>
> </ogc:Filter>
>
> As you can see, the Literal properties is empty or unusable :(
>
> Tthe FILTER parameter doesn't seem to be usable for the GetStyles request.
> Am I right?
>
> Best regards,
>
> Y.
>
> Le Friday 02 November 2007 20:45:46 Yewondwossen Assefa, vous avez écrit :
> > Hi There,
> >
> >   I have entered a bug regarding this at
> > http://trac.osgeo.org/mapserver/ticket/2380. Only one level of logical
> > expression ( A AND B) was initially supported. It should be possible to
> > extend it to support several levels using para theses (something like (A
> > AND B) AND (C).
> >
> > Best Regards
> >
> > Jacolin Yves wrote:
> > > Hi list,
> > >
> > > I am using Mapserver as a OGC webserver. I am trying the GetStyles
> > > request and find some issues. Someone asked about this issue in the
> > > mailing list in the short last few monthes.
> > >
> > > I got some LAYER which contains about 12 CLASS objets, this CLASS
> > > contains EXPRESSION parameter. Here an exemple :
> > >   CLASS
> > >    NAME "M1 : La Défense - Château de Vincennes"
> > >    EXPRESSION ('[TYPE]' eq 'M' AND '[NUMERO]' eq '1' AND '[DATE_LIV]'
> > > < '200712')
> > >    COLOR 255 255 0
> > >    SIZE 3
> > >    SYMBOL 1
> > >   END
> > >
> > > There are 24 class like this one.
> > >
> > > If I try a GetStyles request on this kind of layer, nothing occurs (ie
> > > blank page), if I remove most CLASS the XML response is displayed, If I
> > > remove only the EXPRESSION parameter, again the XML response is
> > > displayed. So I think the issue is not link to the number of CLASS
> > > object, but rather with EXPRESSION parameter.
> > >
> > > BUT, in an other LAYER, I got only three CLASS object with EXPRESSION
> > > parameter, and the xml response is displayed.
> > >
> > > Finally, it seems that if a LAYER got a lot of CLASS object with
> > > EXPRESSION parameter inside, the XML response failed. And if a LAYER
> > > object got a lot of CLASS object, the XML response failed as well.
> > >
> > > I am using Mapserver 4.10. Are someone aware of this issue and know a
> > > workaround.
> > >
> > > Thanks,
> > >
> > > Y.



-- 
Yves Jacolin
---
http://softlibre.gloobe.org



More information about the mapserver-users mailing list