I have 2 tables in postgis - one of type polygons and one of type points.
I want the color of the polygons to be related to the number of points within each polygon, say white when no points are inside a polygon, pink when 'some' points are inside and red when 'a lot' of points are inside (a full range of colors based on percentage of points/polygon is what I'm really after).
I am using mapserver, and in the expression section of CLASS it doesn't mention any way of taking information from another table. Only attributes from within the same table used for the DATA tag.