Discussion:
Square Edges Using labelpoly
Zach Chehayeb
2014-10-21 21:37:45 UTC
Permalink
Hi All,

Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges?

Regards,

Zach
Håvard Tveite
2014-10-22 07:17:22 UTC
Permalink
LINEJOIN miter
in the STYLE element should work also for labelpoly
see http://mapserver.org/mapfile/style.html

LABEL
STYLE
GEOMTRANSFORM labelpoly
OUTLINECOLOR 255 0 0
WIDTH 4
LINEJOIN miter
END # Style
...
END # Label

Håvard
Post by Zach Chehayeb
Hi All,
Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges?
Regards,
Zach
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/
Zach Chehayeb
2014-10-22 18:38:25 UTC
Permalink
Håvard,

Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas?
STYLE
ANGLE 0
COLOR 149 149 149
GEOMTRANSFORM "labelpoly"
OFFSET 0 0
OUTLINECOLOR 149 149 149
WIDTH 22
LINEJOIN miter
END # STYLE

Regards,

Zach



-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Håvard Tveite
Sent: Wednesday, October 22, 2014 12:17 AM
To: mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

LINEJOIN miter
in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html

LABEL
STYLE
GEOMTRANSFORM labelpoly
OUTLINECOLOR 255 0 0
WIDTH 4
LINEJOIN miter
END # Style
...
END # Label

Håvard
Post by Zach Chehayeb
Hi All,
Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges?
Regards,
Zach
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________
mapserver-users mailing list
mapserver-***@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Lime, Steve D (MNIT)
2014-10-22 21:23:03 UTC
Permalink
Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test:

1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map
2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map

Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm...

Sure seems like a bug...

However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below)

3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map

Steve

------------ snip ------------
MAP
NAME 'test'
EXTENT 0 0 500 500
SIZE 500 500

FONTSET 'fonts.list'

SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END

LAYER
NAME 'label'
TYPE POINT
STATUS DEFAULT

FEATURE
POINTS 50 250 END
TEXT 'my label text'
END

LABELITEM 'text'
CLASS
LABEL
POSITION UR
TYPE TRUETYPE
FONT 'arial'
SIZE 40
COLOR 0 0 0
STYLE
GEOMTRANSFORM labelpoly
# COLOR 255 0 0
OUTLINECOLOR 255 0 0
WIDTH 10
LINEJOIN miter
LINECAP square
END # Style
STYLE
GEOMTRANSFORM labelpoly
COLOR 255 0 0
END # Style
END # Label
END
END
END

-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Zach Chehayeb
Sent: Wednesday, October 22, 2014 1:38 PM
To: Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

Håvard,

Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas?
STYLE
ANGLE 0
COLOR 149 149 149
GEOMTRANSFORM "labelpoly"
OFFSET 0 0
OUTLINECOLOR 149 149 149
WIDTH 22
LINEJOIN miter
END # STYLE

Regards,

Zach



-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Håvard Tveite
Sent: Wednesday, October 22, 2014 12:17 AM
To: mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

LINEJOIN miter
in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html

LABEL
STYLE
GEOMTRANSFORM labelpoly
OUTLINECOLOR 255 0 0
WIDTH 4
LINEJOIN miter
END # Style
...
END # Label

Håvard
Post by Zach Chehayeb
Hi All,
Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges?
Regards,
Zach
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________
mapserver-users mailing list
mapserver-***@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Zach Chehayeb
2014-10-22 21:46:04 UTC
Permalink
The two styles suggestion worked. Thank you both for your help!

Steve,

Do you know if this is still an issue with the current release of mapserver? I am running 6.0.3 so I am curious to know if this issue still exists. If so, would you like me to raise a ticket for this?

Regards,

Zach


-----Original Message-----
From: Lime, Steve D (MNIT) [mailto:***@state.mn.us]
Sent: Wednesday, October 22, 2014 2:23 PM
To: Zach Chehayeb; Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: RE: [mapserver-users] Square Edges Using labelpoly

Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test:

1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map
2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map

Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm...

Sure seems like a bug...

However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below)

3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map

Steve

------------ snip ------------
MAP
NAME 'test'
EXTENT 0 0 500 500
SIZE 500 500

FONTSET 'fonts.list'

SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END

LAYER
NAME 'label'
TYPE POINT
STATUS DEFAULT

FEATURE
POINTS 50 250 END
TEXT 'my label text'
END

LABELITEM 'text'
CLASS
LABEL
POSITION UR
TYPE TRUETYPE
FONT 'arial'
SIZE 40
COLOR 0 0 0
STYLE
GEOMTRANSFORM labelpoly
# COLOR 255 0 0
OUTLINECOLOR 255 0 0
WIDTH 10
LINEJOIN miter
LINECAP square
END # Style
STYLE
GEOMTRANSFORM labelpoly
COLOR 255 0 0
END # Style
END # Label
END
END
END

-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Zach Chehayeb
Sent: Wednesday, October 22, 2014 1:38 PM
To: Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

Håvard,

Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas?
STYLE
ANGLE 0
COLOR 149 149 149
GEOMTRANSFORM "labelpoly"
OFFSET 0 0
OUTLINECOLOR 149 149 149
WIDTH 22
LINEJOIN miter
END # STYLE

Regards,

Zach



-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Håvard Tveite
Sent: Wednesday, October 22, 2014 12:17 AM
To: mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

LINEJOIN miter
in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html

LABEL
STYLE
GEOMTRANSFORM labelpoly
OUTLINECOLOR 255 0 0
WIDTH 4
LINEJOIN miter
END # Style
...
END # Label

Håvard
Post by Zach Chehayeb
Hi All,
Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges?
Regards,
Zach
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________
mapserver-users mailing list
mapserver-***@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Lime, Steve D (MNIT)
2014-10-22 21:48:44 UTC
Permalink
It's an issue with 6.4, I don't have a 7.0 build handy. I'll try it and see. Thomas refactored a bunch of the labeling code in 7.0 so maybe it's not an issue.

-----Original Message-----
From: Zach Chehayeb [mailto:***@airborne.aero]
Sent: Wednesday, October 22, 2014 4:46 PM
To: Lime, Steve D (MNIT); Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: RE: [mapserver-users] Square Edges Using labelpoly

The two styles suggestion worked. Thank you both for your help!

Steve,

Do you know if this is still an issue with the current release of mapserver? I am running 6.0.3 so I am curious to know if this issue still exists. If so, would you like me to raise a ticket for this?

Regards,

Zach


-----Original Message-----
From: Lime, Steve D (MNIT) [mailto:***@state.mn.us]
Sent: Wednesday, October 22, 2014 2:23 PM
To: Zach Chehayeb; Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: RE: [mapserver-users] Square Edges Using labelpoly

Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test:

1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map
2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map

Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm...

Sure seems like a bug...

However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below)

3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map

Steve

------------ snip ------------
MAP
NAME 'test'
EXTENT 0 0 500 500
SIZE 500 500

FONTSET 'fonts.list'

SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END

LAYER
NAME 'label'
TYPE POINT
STATUS DEFAULT

FEATURE
POINTS 50 250 END
TEXT 'my label text'
END

LABELITEM 'text'
CLASS
LABEL
POSITION UR
TYPE TRUETYPE
FONT 'arial'
SIZE 40
COLOR 0 0 0
STYLE
GEOMTRANSFORM labelpoly
# COLOR 255 0 0
OUTLINECOLOR 255 0 0
WIDTH 10
LINEJOIN miter
LINECAP square
END # Style
STYLE
GEOMTRANSFORM labelpoly
COLOR 255 0 0
END # Style
END # Label
END
END
END

-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Zach Chehayeb
Sent: Wednesday, October 22, 2014 1:38 PM
To: Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

Håvard,

Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas?
STYLE
ANGLE 0
COLOR 149 149 149
GEOMTRANSFORM "labelpoly"
OFFSET 0 0
OUTLINECOLOR 149 149 149
WIDTH 22
LINEJOIN miter
END # STYLE

Regards,

Zach



-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Håvard Tveite
Sent: Wednesday, October 22, 2014 12:17 AM
To: mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

LINEJOIN miter
in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html

LABEL
STYLE
GEOMTRANSFORM labelpoly
OUTLINECOLOR 255 0 0
WIDTH 4
LINEJOIN miter
END # Style
...
END # Label

Håvard
Post by Zach Chehayeb
Hi All,
Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges?
Regards,
Zach
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________
mapserver-users mailing list
mapserver-***@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Lime, Steve D (MNIT)
2014-10-22 21:58:24 UTC
Permalink
7.0 still suffers from the issue in the second image URL I posted - please file a ticket if you would. On the bright side the label poly now properly includes the lowercase y!

http://maps1.dnr.state.mn.us/cgi-bin/mapserv70?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map

Steve

-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT)
Sent: Wednesday, October 22, 2014 4:49 PM
To: Zach Chehayeb; Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

It's an issue with 6.4, I don't have a 7.0 build handy. I'll try it and see. Thomas refactored a bunch of the labeling code in 7.0 so maybe it's not an issue.

-----Original Message-----
From: Zach Chehayeb [mailto:***@airborne.aero]
Sent: Wednesday, October 22, 2014 4:46 PM
To: Lime, Steve D (MNIT); Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: RE: [mapserver-users] Square Edges Using labelpoly

The two styles suggestion worked. Thank you both for your help!

Steve,

Do you know if this is still an issue with the current release of mapserver? I am running 6.0.3 so I am curious to know if this issue still exists. If so, would you like me to raise a ticket for this?

Regards,

Zach


-----Original Message-----
From: Lime, Steve D (MNIT) [mailto:***@state.mn.us]
Sent: Wednesday, October 22, 2014 2:23 PM
To: Zach Chehayeb; Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: RE: [mapserver-users] Square Edges Using labelpoly

Seems to be the combination of the fill and the outline that forces the rounded outline. Here's a test:

1) Outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mode=map
2) Fill and outline, LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mode=map

Besides seemingly not respecting the LINEJOIN/LINECAP values, the label polygon doesn't include the baseline decent of the lower case y. Hmmm...

Sure seems like a bug...

However, you can work around it. Just use two styles. One to draw the outline and one to fill... (see mapfile below)

3) Two styles, outline uses LINEJOIN MITER, LINECAP SQUARE: http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mode=map

Steve

------------ snip ------------
MAP
NAME 'test'
EXTENT 0 0 500 500
SIZE 500 500

FONTSET 'fonts.list'

SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END

LAYER
NAME 'label'
TYPE POINT
STATUS DEFAULT

FEATURE
POINTS 50 250 END
TEXT 'my label text'
END

LABELITEM 'text'
CLASS
LABEL
POSITION UR
TYPE TRUETYPE
FONT 'arial'
SIZE 40
COLOR 0 0 0
STYLE
GEOMTRANSFORM labelpoly
# COLOR 255 0 0
OUTLINECOLOR 255 0 0
WIDTH 10
LINEJOIN miter
LINECAP square
END # Style
STYLE
GEOMTRANSFORM labelpoly
COLOR 255 0 0
END # Style
END # Label
END
END
END

-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Zach Chehayeb
Sent: Wednesday, October 22, 2014 1:38 PM
To: Håvard Tveite; mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

Håvard,

Thanks for your help. Unfortunately, the polygon did not change when specifying "LINEJOIN miter" (see below) and still has curved edges. Any other ideas?
STYLE
ANGLE 0
COLOR 149 149 149
GEOMTRANSFORM "labelpoly"
OFFSET 0 0
OUTLINECOLOR 149 149 149
WIDTH 22
LINEJOIN miter
END # STYLE

Regards,

Zach



-----Original Message-----
From: mapserver-users-***@lists.osgeo.org [mailto:mapserver-users-***@lists.osgeo.org] On Behalf Of Håvard Tveite
Sent: Wednesday, October 22, 2014 12:17 AM
To: mapserver-***@lists.osgeo.org
Subject: Re: [mapserver-users] Square Edges Using labelpoly

LINEJOIN miter
in the STYLE element should work also for labelpoly see http://mapserver.org/mapfile/style.html

LABEL
STYLE
GEOMTRANSFORM labelpoly
OUTLINECOLOR 255 0 0
WIDTH 4
LINEJOIN miter
END # Style
...
END # Label

Håvard
Post by Zach Chehayeb
Hi All,
Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM labelpoly) with straight edges instead of curved edges?
Regards,
Zach
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/ _______________________________________________
mapserver-users mailing list
mapserver-***@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-***@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Rahkonen Jukka (Tike)
2014-10-22 21:56:44 UTC
Permalink
Round edges also with Mapserver 6.5-dev from last night.

-Jukka Rahkonen-
Post by Lime, Steve D (MNIT)
It's an issue with 6.4, I don't have a 7.0 build handy. I'll try it and see. Thomas
refactored a bunch of the labeling code in 7.0 so maybe it's not an issue.
-----Original Message-----
Sent: Wednesday, October 22, 2014 4:46 PM
Subject: RE: [mapserver-users] Square Edges Using labelpoly
The two styles suggestion worked. Thank you both for your help!
Steve,
Do you know if this is still an issue with the current release of mapserver? I am
running 6.0.3 so I am curious to know if this issue still exists. If so, would you like
me to raise a ticket for this?
Regards,
Zach
-----Original Message-----
Sent: Wednesday, October 22, 2014 2:23 PM
Subject: RE: [mapserver-users] Square Edges Using labelpoly
Seems to be the combination of the fill and the outline that forces the rounded
http://maps1.dnr.state.mn.us/cgi-
bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test1.map&mod
e=map
http://maps1.dnr.state.mn.us/cgi-
bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test2.map&mod
e=map
Besides seemingly not respecting the LINEJOIN/LINECAP values, the label
polygon doesn't include the baseline decent of the lower case y. Hmmm...
Sure seems like a bug...
However, you can work around it. Just use two styles. One to draw the outline
and one to fill... (see mapfile below)
http://maps1.dnr.state.mn.us/cgi-
bin/mapserv64?map=/usr/local/mapserver/apps/test/labelpoly/test3.map&mod
e=map
Steve
------------ snip ------------
MAP
NAME 'test'
EXTENT 0 0 500 500
SIZE 500 500
FONTSET 'fonts.list'
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
LAYER
NAME 'label'
TYPE POINT
STATUS DEFAULT
FEATURE
POINTS 50 250 END
TEXT 'my label text'
END
LABELITEM 'text'
CLASS
LABEL
POSITION UR
TYPE TRUETYPE
FONT 'arial'
SIZE 40
COLOR 0 0 0
STYLE
GEOMTRANSFORM labelpoly
# COLOR 255 0 0
OUTLINECOLOR 255 0 0
WIDTH 10
LINEJOIN miter
LINECAP square
END # Style
STYLE
GEOMTRANSFORM labelpoly
COLOR 255 0 0
END # Style
END # Label
END
END
END
-----Original Message-----
Sent: Wednesday, October 22, 2014 1:38 PM
Subject: Re: [mapserver-users] Square Edges Using labelpoly
Håvard,
Thanks for your help. Unfortunately, the polygon did not change when
specifying "LINEJOIN miter" (see below) and still has curved edges. Any other
ideas?
STYLE
ANGLE 0
COLOR 149 149 149
GEOMTRANSFORM "labelpoly"
OFFSET 0 0
OUTLINECOLOR 149 149 149
WIDTH 22
LINEJOIN miter
END # STYLE
Regards,
Zach
-----Original Message-----
Sent: Wednesday, October 22, 2014 12:17 AM
Subject: Re: [mapserver-users] Square Edges Using labelpoly
LINEJOIN miter
in the STYLE element should work also for labelpoly see
http://mapserver.org/mapfile/style.html
LABEL
STYLE
GEOMTRANSFORM labelpoly
OUTLINECOLOR 255 0 0
WIDTH 4
LINEJOIN miter
END # Style
...
END # Label
Håvard
Post by Zach Chehayeb
Hi All,
Does anyone know if it possible to create a labelpoly (as in GEOTRANSFORM
labelpoly) with straight edges instead of curved edges?
Post by Zach Chehayeb
Regards,
Zach
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU Drøbakveien 31,
POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Loading...