Really need Tamas to comment on the clustering specifics but to clarify, 
MapServer stores all attributes as strings. Then they are cast as necessary 
when referenced in an expression. 

Steve

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Jörg Thomsen
Sent: Friday, September 13, 2013 6:25 AM
To: [email protected]
Subject: [mapserver-users] [Cluster:FeatureCount] is string?

Hi,

I wonder if the [Cluster:FeatureCount] value is a string?
I have a mapfile with three classes like

> EXPRESSION "1"
> EXPRESSION (("[Cluster:FeatureCount]" > "1") and 
> ("[Cluster:FeatureCount]" < "51") EXPRESSION ("[Cluster:FeatureCount]" 
> > "50" )

As result I get mixed symbols, each feature that has a cluster:featurecount 
beginning with 2,3,4,or 5 is symbololized with the styel of the 2nd class (even 
101 or 455) and each feature that has a cluster:featurecount beginning with 
6,7,8,or 9 is symbololized with the styel of the 3. class (even 7 or 9).
An Expression like
> EXPRESSION ("[Cluster:FeatureCount]" > 50 )
(no quotes) does not work.

For a better understanding, here is the resulting image:
http://mapmedia.de/tmp/mapserv.png)

Furthermore it is not posible to calculate with it, sth. like
> SIZE [Cluster:FeatureCount] / 10
does not work.

Thats why I think mapserver treats featurecount as string.
Or am I doing it wrong?

Jörg


-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_________________________________________________

MapMedia
Kartographie und raumbezogene Informationssysteme

Gillweg 3, 14193 Berlin
fon: +49 30 89 06 82-70
fax: +49 30 89 09 53-21
mail: [email protected]
net:  www.mapmedia.de
_________________________________________________


Geschäftsführer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, 
Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 
813794062 _______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to