Hi Steve,
maybe it's easier to explain with a mapfile example:

LAYER
    NAME "POI"
    TYPE POINT
    CONNECTIONTYPE postgis
CONNECTION "user=somebody password=something dbname=test host=localhost" DATA "the_geom FROM (SELECT gid, category, priority, the_geom FROM poi) AS foo USING UNIQUE gid"
    ...
    CLASS
        EXPRESSION ('[category]' eq 'poi')
        MAXSCALEDENOM [priority]
        ...
    END
    ...
END

In this case I've one single class for each category and the MAXSCALEDENOM get the value from the priority attribute of my datasource. As it is now, MapServer does not support this feature and I've to repeat every single category for each different priority value.

Best regards,
Daniel


Am 14/07/2010 23:53, schrieb Lime, Steve D (DNR):
MapServer doesn't support layer-level binding only feature-level binding. I'm 
having trouble seeing the value. Can you explain further?

Steve
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Daniel Degasperi 
[[email protected]]
Sent: Wednesday, July 14, 2010 7:54 AM
To: [email protected]
Subject: [mapserver-users] MAXSCALEDENOM [scale_field]

Hi,
I've tried to read the MAXSCALEDENOM value from a attribute in my
datasource, but mapserver throw's a parsing error.
Probably because such feature does not exist in mapserver.

Are there any intentions to implement this?
It could be interesting for layers, whose data has different priorities
but the same styling.
With this feature I can avoid repeating the classes for every priority.

Best regards,
Daniel
_______________________________________________
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