[mapserver-users] [Cluster:FeatureCount] is string?

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Fri Sep 13 15:06:19 PDT 2013


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jörg Thomsen
Sent: Friday, September 13, 2013 6:25 AM
To: mapserver-users at lists.osgeo.org
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: jt at mapmedia.de
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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list