[mapserver-users] RE null value renders in pie chart

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Jan 3 10:10:20 PST 2013


Thanks Steve,
I can't use CLASSITEM since each class uses a different attribute

I tried with these 2 regex and I still have 4 slices.
EXPRESSION ([cri] ~ '/[0-9]/')
EXPRESSION ([cri] ~ '/./')




"Lime, Steve D (DNR)" <Steve.Lime at state.mn.us> 
2013-01-03 12:22

A
"Steve.Toutant at inspq.qc.ca" <Steve.Toutant at inspq.qc.ca>
cc
"mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>, 
"mapserver-users-bounces at lists.osgeo.org" 
<mapserver-users-bounces at lists.osgeo.org>
Objet
RE: [mapserver-users] RE  null value renders in pie chart








How about using a regex instead:
 
CLASSITEM ?cri?
CLASS
  EXPRESSION /./
  ?
END
 
Steve
 
From: mapserver-users-bounces at lists.osgeo.org 
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of 
Steve.Toutant at inspq.qc.ca
Sent: Thursday, January 03, 2013 10:57 AM
To: Steve.Toutant at inspq.qc.ca
Cc: mapserver-users at lists.osgeo.org; 
mapserver-users-bounces at lists.osgeo.org
Subject: [mapserver-users] RE null value renders in pie chart
 

I also tried with 
EXPRESSION ([cri] != "")

I still have 4 slices... 



Steve.Toutant at inspq.qc.ca@lists.osgeo.org 
Envoyé par : mapserver-users-bounces at lists.osgeo.org 
2013-01-03 11:43 


A
mapserver-users at lists.osgeo.org 
cc

Objet
[mapserver-users] null value renders in pie chart
 











Hi, 
I created a layer that renders pie chart with 4 classes. 

The problem is some classes are render in the pie even if there is no data 
(null). That means I always have 4 slices in the pie. 
How can I remove the slices with null value? 

I tried using EXPRESSION without success. I specified > 0 since I think 
"is not null" is not supported 
CLASS 
       NAME "Cri" 
       EXPRESSION ([cri] > 0) 
       STYLE 
               SIZE [cri] 
               COLOR 215 48 39 
       END 
END

thanks for your help, 
Steve _______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130103/c834fabd/attachment.html>


More information about the mapserver-users mailing list