Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

What I would like to do is shown in the figure below. How can I add this color ramp legend in a mapfile which will also be linked to a raster. I don't know how to get it working while drawing a figure based on that mapfile.

Thanks !


share|improve this question
Nice map! Why would you want to use a mapfile generated legend here? What you have looks fine. –  Decio Jun 25 '13 at 19:37
What I am doing is to build an online web system which is for my Master Thesis. So I can't use ArcGIS. –  Yu Guo Jun 26 '13 at 8:18
Got it! No, I am not saying to use ArcGIS, use mapserver. I am only saying do not use mapserver to generate the legend, just do it in html and css and you will have nicer results. –  Decio Jun 26 '13 at 10:37
It sounds interesting. Could you give me some clue or useful example? Thanks –  Yu Guo Jun 26 '13 at 12:36
Tell me something more! What is this for? A poster? A Web application? If it is for a Web application, what do you know and not know about Web development? –  Decio Jun 26 '13 at 12:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.