Label polygons outside [SEC=UNCLASSIFIED]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Label polygons outside [SEC=UNCLASSIFIED]

Inna Nogeste-2
I need to position the polygon label outside the polygon.
Do I have to use OFFSET for this or is there another parameter I can use?

Is there a way to label polygons so that they don’t collide with an overlaying/underlaying point symbol which is positioned in the centre of the polygon?

Regards,
Inna Nogeste | Spatial Information Specialist

Geospatial Data and Services
Information Systems and Services Division
Bureau of Meteorology
www.bom.gov.au

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Label polygons outside [SEC=UNCLASSIFIED]

Stephen Woodbridge
On 11/11/2016 1:46 AM, Inna Nogeste wrote:
> I need to position the polygon label outside the polygon.
> Do I have to use OFFSET for this or is there another parameter I can use?
>
> Is there a way to label polygons so that they don’t collide with an overlaying/underlaying point symbol which is positioned in the centre of the polygon?

Use POSITION AUTO on you LABEL definition might help, but you might have
better luck if you only have two layers colliding by setting

POSITION UC
OFFSET 0 -10

on one layer an then:

POSITION LC
OFFSET 0 10

on the second layer. This will raise the first label and lower the
second label.


label1
   +      <-- label point
label2


For labels outside the polygon or to avoid collision with other labels
by using a leader line look at:
http://mapserver.org/mapfile/leader.html

-Steve W

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Label polygons outside [SEC=UNCLASSIFIED]

SerGP
In reply to this post by Inna Nogeste-2
Same problem. I can not add a label outside the polygon. Offset is not
suitable, because polygons have different sizes.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users