Round edges also with Mapserver 6.5-dev from last night. -Jukka Rahkonen-
Lime, Steve D wrote: > > 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:[email protected]] > Sent: Wednesday, October 22, 2014 4:46 PM > To: Lime, Steve D (MNIT); Håvard Tveite; [email protected] > 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:[email protected]] > Sent: Wednesday, October 22, 2014 2:23 PM > To: Zach Chehayeb; Håvard Tveite; [email protected] > 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&mod > e=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&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) > > 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&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----- > From: [email protected] [mailto:mapserver-users- > [email protected]] On Behalf Of Zach Chehayeb > Sent: Wednesday, October 22, 2014 1:38 PM > To: Håvard Tveite; [email protected] > 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: [email protected] [mailto:mapserver-users- > [email protected]] On Behalf Of Håvard Tveite > Sent: Wednesday, October 22, 2014 12:17 AM > To: [email protected] > 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 > > On 2014-10-21 23:37, Zach Chehayeb wrote: > > 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 > > [email protected] > > 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
