[mapserver-users] RE [Polluriel potentiel] Re: proportional circle legend

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Wed Dec 19 08:36:31 PST 2012


I tried that also.
Using offset works when you know the size of the other classes. With the 
method described earlier I got a legned like this

Many thanks for your time and help
Steve







"Basques, Bob (CI-StPaul)" <bob.basques at ci.stpaul.mn.us>@lists.osgeo.org 
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2012-12-19 11:31

A
Daniel Morissette <dmorissette at mapgears.com>, 
"mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
cc

Objet
[Polluriel potentiel]  Re: [mapserver-users] proportional circle legend








Ok, I couldn't resist  . . .

http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/DEV/spec_sym_test_public.map?mapext=509450%20119950%20630550%20190050&mapsize=1211%20701&mode=legend&searchmap=true&


ran into a problem with placing text on these.  I tried all sorts of 
permutations of using LABEL to add to this for the three different sizes. 
I tried with a single label, separate labels, etc.  Anyone got 
suggestions?

...
                 CLASS
 
                                                 NAME "Some Title"
 
                                                 STYLE
                                                                 COLOR 0 
255 0
 OUTLINECOLOR 0 0 0
                                                                 SIZE 40
                                                                 SYMBOL 
"circle"
                                                 END
                                                 STYLE
                                                                 COLOR 255 
0 0 
 OUTLINECOLOR 0 0 0
                                                                 SIZE 30
                                                                 OFFSET 0 
5
                                                                 SYMBOL 
"circle"
                                                 END
                                                 STYLE
                                                                 COLOR 255 
255 0
 OUTLINECOLOR 0 0 0
                                                                 SIZE 20
                                                                 OFFSET 0 
10
                                                                 SYMBOL 
"circle"
                                                 END
                                 END
....

________________________________________
From: mapserver-users-bounces at lists.osgeo.org 
[mapserver-users-bounces at lists.osgeo.org] on behalf of Daniel Morissette 
[dmorissette at mapgears.com]
Sent: Wednesday, December 19, 2012 9:34 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] proportional circle legend

Hi Steve,

I think your best would be to set a KEYIMAGE in your CLASS:

http://mapserver.org/mapfile/class.html

Daniel



On 12-12-17 1:39 PM, Steve.Toutant at inspq.qc.ca wrote:
>
> Hi,
> I created a thematic map showing proportional circles. I did that by
> using a table attribute for the SIZE of my circles. It works great.
> CLASS
> NAME 'Pop'
> STYLE
>          SYMBOL 'CIRCLE'
>          SIZE [rayonquot]
>          COLOR 168 221 181
>          OUTLINECOLOR 0 0 0
> END
> END
>
> I would like to generate a nice legend for this layer. Currently I get a
> small dot. I would like to create a commonly used legend for
> proportional circles such as
> 
http://www.google.ca/imgres?imgurl=http://makingmaps.files.wordpress.com/2007/08/scaled-circles.png&imgrefurl=http://makingmaps.net/2007/08/28/perceptual-scaling-of-map-symbols/&h=437&w=684&sz=49&tbnid=9UOZ3j0H8Wah_M:&tbnh=77&tbnw=120&zoom=1&usg=__m0l8_OAAITIGopuQGi7_yE7Ge4I=&docid=1U4GvObRwxH3MM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CDgQ9QEwAQ&dur=656

>
>
> or
>
> 
http://www.google.ca/imgres?imgurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/images/LEG_INFO_CE1419_final_rest.gif&imgrefurl=http://www.historicalatlas.ca/website/hacolp/defining_episodes/military/unit_40/U40_leg_info_CE1419.htm&h=90&w=217&sz=4&tbnid=nxf1TkPjY35LxM:&tbnh=50&tbnw=120&zoom=1&usg=__FbmbgCcqIwMCjLtNgWix6tyWeXc=&docid=dtQd4I2ykpB1FM&hl=fr&sa=X&ei=YGbPUO3NLKmq0AG2t4FA&ved=0CD4Q9QEwAw&dur=413

>
>
> Any ideas on how to do that?
> thanks
> steve
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121219/b35c36b0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proportionalCircleLegend.png
Type: application/octet-stream
Size: 10569 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121219/b35c36b0/attachment.obj>


More information about the MapServer-users mailing list