A collection of various GIS related links, information and other GIS blogs.

Monday, March 17, 2008

Creating a ArcGIS Server legend from Multiple Map Resources

I ran across this posting from Vish about some code he wrote and is sharing that will do some nice things. So if you are programming in .NET for ArcGIS Server and are pulling map resources from a number of places, you may want to check out this code.

 

From his posting:

 

The features of the code snippet are:

  • Generates images at the required DPI
  • Customizable legend title
  • Handles group layers
  • Handles symbol groups
  • Creates a legend image of the desired height and width. If the legend entries overflow the height specified, they will be omitted. If all legend entries are required in the images, it should only involve a small change in code to remove the check for overflow.

Here is an example of a legend generated by the snippet.

Sample Legend

 

READ FULL POST: http://viswaug.wordpress.com/2008/03/16/dynamic-legend-generation-through-the-adf/

No comments: