[mapserver-users] color coding
I have a layer that I want to color code the features for a specific field. Is there a way in mapserver to have it automatically color all unique values, or do I specifically have to identify the unique value/color combinations myself in class items? Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile [EMAIL PROTECTED] NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] color coding
Kevin Edmundson wrote: I have a layer that I want to color code the features for a specific field. Is there a way in mapserver to have it automatically color all unique values, or do I specifically have to identify the unique value/color combinations myself in class items? No automatic way to do that. In part is is a performance issue, because you would have to scan all the data to get the set of unique values and then render only the few items in the window for every request. The way this gets cached in mapserver is you have to extract the unique values and then create a CLASS EXPRESSION and assign a color it each item or group of items based on that. -Stephen Woodbridge http://imaptools.com/ Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis , IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile [EMAIL PROTECTED] NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] color coding
If your layer was raster, then you could use the COLORRANGE attribute to automatically assign a ramp of colors between a low value and a high value. See http://mapserver.gis.umn.edu/development/rfc/ms-rfc-6 On Wed, May 14, 2008 at 1:49 PM, Kevin Edmundson <[EMAIL PROTECTED]> wrote: > I have a layer that I want to color code the features for a specific field. > > Is there a way in mapserver to have it automatically color all unique > values, or do I specifically have to identify the unique value/color > combinations myself in class items? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] color coding
Dear Kevin, Shortcuts are never good. You should write everything by yourself in the mapfile. Still, if you want to give a try, follow this shortcut. Install http://www.qgis.org/ QGIS (Freely available). Also, install http://www.python.org python (Freely available) Now, you can use QGIS as a desktop software where you can add multiple shapefiles, and play with them by giving required color combo's. Once you are satisfied with the color codes etc, you can EXPORT the rendered map into .map file format. Use this map file for rendering maps. That's all ! [I don't advice to use this way to generate map files] Regards, Ritesh Kevin Edmundson wrote: > > I have a layer that I want to color code the features for a specific > field. > > > > Is there a way in mapserver to have it automatically color all unique > values, or do I specifically have to identify the unique value/color > combinations myself in class items? > > > > Kevin Edmundson > > CIO > > WTH Technology, Inc > > 567 W Westfield Blvd > > Indianapolis, IN 46208 > > 317.259.0105 office > > 317.259.1423 fax > > 317.501.8560 mobile > > [EMAIL PROTECTED] > > > > NOTICE: This message is from the technology firm WTH Technology, Inc. > This message is intended only for the individual or entity to which it > is directed. If you are not the addressee, or if this message has been > addressed to you in error, you are not authorized to use, read, copy or > distribute this message and any attachments, and we ask that you please > immediately delete this message and attachments (including all copies), > and notify the sender by return e-mail so that our records can be > corrected. All personal messages express views only of the sender, which > are not to be attributed to WTH Technology, Inc, and may not be > distributed or copied without this statement. > > > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/color-coding-tp17239428p17260414.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users