how to display muliple lableitems in a circle(polygon layer)

Steve Lime steve.lime at DNR.STATE.MN.US
Mon Nov 14 19:29:14 EST 2005


Is the polygon halves of the circle or what? If not, then MapServer cannot cut the
circle in half for you. Your best bet would be to use a couple of point layers. One to
draw the whole circle and another to draw just half of it. Then you can label each
half. Here's an example image and mapfile:

  http://maps.dnr.state.mn.us/testing/charts/witteveen.png 
  http://maps.dnr.state.mn.us/testing/charts/witteveen.map 

Each layer can take it's own label item. Note that the FORCE parameter is necessary
for some reason. I think it's probably a problem in the label collision code that isn't
taking the offset into account correctly. Probably not a big deal in your case since I
imagine the circles are the main attraction in the map.

I got a bit carried away with the drop shadows and outlines. Kinda wanted to see
what was possible...

Steve 

>>> E Witteveen <eywitteveen at GMAIL.COM> 11/14/05 3:41 AM >>>
Hello,

Currently i'm trying to draw a circle on the map, with in the circle 2
fields and a horizontal-line, dividing the upperpart from the lower
part. An example is shown below:
   ________

  /        \

/  field1  \

|            |

|------------|

|            |

\  field2  /

  \________/

The layertype im using is a polygon.

Can anyone give me a pointer how i can accomplish this?
I've searched the mailinglist and google, but i guess i dont know the
proper keyword.



Ing. Eduard Yeb Witteveen           Software Engineer
Hawar Information Technology bv   lid Dijkoraad Groep
De Wymerts 7  8701 WT                        Bolsward
Tel: +31 (0)515 570333         Fax: +31 (0)515 570335
http://www.hawarit.com/             nl_NL fy_NL en_US



More information about the mapserver-users mailing list