[mapserver-users] Clustering and style with [attribute]
    Jörg Thomsen (WhereGroup) 
    joerg.thomsen at wheregroup.com
       
    Thu Jul 23 07:34:59 PDT 2020
    
    
  
Hello,
there's a clustered feature / class in my mapfile.
the color of the features are stored in the database.
LAYER
    NAME "lightrail"
    GROUP "default"
    ...
    CLUSTER
      MAXDISTANCE 50
      REGION "ellipse"
    END
    CLASS
      NAME "Clustered Lightrail Stations"
      EXPRESSION ("[Cluster_FeatureCount]" != "1")
      STYLE
        SIZE 30
        SYMBOL "citycircle"
        COLOR ['color']
      END
    END
...
END
If there are 4 features clustered into one symbol and each feature has a
different attribut-value 'color':
f1 | 100 100 100
f2 | 100 100 100
f3 | 0 0 255
f4 | 100 100 100
which color is used an why is it used?
My goal:
If all features of a cluster have the color-value 100 100 100, it is ok,
that the cluster-symbol ist grey. If only one of the clustered features
has the color-value 0 255 0 (and the other values are '100 100 100') the
cluster-symbol should be blue.
How can I achive this?
Viele Grüße,
Jörg
-- 
----------------------------------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Web-Seminare und Online-Schulungen
bei der www.foss-academy.com
----------------------------------------------------------------------
Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany
Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11	
joerg.thomsen at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
    
    
More information about the MapServer-users
mailing list