[mapserver-dev] JOIN table attributes for use in class size

strk strk at keybit.net
Fri Sep 17 11:11:55 EDT 2010


I'd like to create a dynamic chart layer based on values
passed by user (web-based).

For a similar thing, this boiled down to saving
the user-provided values in a CSV and setting up a JOIN
object to use them from getFeatureInfo template.

But for this new use case (charts) I can't wait till
getFeatureInfo for using the csv JOIN values. I have
to use them right in the layer classification. Ie:

LAYER 
   TYPE CHART
   JOIN
        FROM "iso2"
        NAME "values"
        TABLE "tmp/userprovided.csv"
        TO "1"
        CONNECTIONTYPE csv
        TYPE ONE-TO-ONE
   END
   CLASS
      STYLE
        SIZE [values_2]
      END
   END
   CLASS
      STYLE
        SIZE [values_3]
      END
   END
   ...
END

Is there any plan to make the above possible ?

Currently, with the above code, mapserver tries
to query "values_2" and "values_3" from the feature
provider of the layer (postgis).

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html


More information about the mapserver-dev mailing list