[mapserver-users] Road shields on Mapserver 7
Brent Fraser
bfraser at GeoAnalytic.com
Thu Feb 23 12:00:55 PST 2017
Stephen,
Good catch. FYI from my notes:
LABEL
# -- red background rectangle (billboard), with a "shadow"
in grey:
STYLE
GEOMTRANSFORM 'labelpoly' # labelpnt|labelpoly
COLOR 153 153 153
OFFSET 3 2
END # of STYLE
STYLE
GEOMTRANSFORM 'labelpoly'
COLOR 255 0 0
END # of STYLE
# -------
(more LABEL def)
Brent
----------------------------------------
From: "Stephen Woodbridge" <woodbri at swoodbridge.com>
Sent: Thursday, February 23, 2017 12:56 PM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Road shields on Mapserver 7
You can have LABEL STYLE but you also need a GEOMTRANSFORM 'labelpoly' or
'labelpnt' http://mapserver.org/mapfile/label.html
http://mapserver.org/mapfile/geomtransform.html -Steve W On 2/23/2017 2:47
PM, Mark Volz wrote: > Brent, > > > > I think your right. I was under the
impression that STYLE could be > within a LABEL object because since
Mapserver 6.2 we could have multiple > labels per class. > > > > Anyways,
how can I add road shields in Mapserver 7? Apparently > annotation layers
have been removed. > > > > Thanks! > > > > Sincerely, > > *Mark Volz,
GISP*** > > > > *From:* Brent Fraser [mailto:bfraser at GeoAnalytic.com] >
*Sent:* Thursday, February 23, 2017 1:39 PM > *To:*
mapserver-users at lists.osgeo.org; Mark Volz <MarkVolz at co.lyon.mn.us> >
*Subject:* RE: [mapserver-users] Road shields on Mapserver 7 > > > > I
don't think you can put a STYLE inside a LABEL. You could put it > after
the LABEL... > > > > > > > >
------------------------------------------------------------------------ >
> *From*: "Mark Volz" <MarkVolz at co.lyon.mn.us
<mailto:MarkVolz at co.lyon.mn.us>> > *Sent*: Thursday, February 23, 2017
12:32 PM > *To*: "bfraser at GeoAnalytic.com <mailto:bfraser at GeoAnalytic.com>"
> <bfraser at GeoAnalytic.com <mailto:bfraser at GeoAnalytic.com>>, >
"mapserver-users at lists.osgeo.org >
<mailto:mapserver-users at lists.osgeo.org>" >
<mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>>
> *Subject*: RE: [mapserver-users] Road shields on Mapserver 7 > > > >
Brent, > > > > I am using Mapserver 7.0.4. > > > > Sincerely, > > *Mark
Volz, GISP* > > > > *From:* Brent Fraser [mailto:bfraser at GeoAnalytic.com] >
*Sent:* Thursday, February 23, 2017 12:17 PM > *To:*
mapserver-users at lists.osgeo.org > <mailto:mapserver-users at lists.osgeo.org>;
Mark Volz > <MarkVolz at co.lyon.mn.us <mailto:MarkVolz at co.lyon.mn.us>> >
*Subject:* re: [mapserver-users] Road shields on Mapserver 7 > > > >
version of Mapserver? > > > > > > > >
------------------------------------------------------------------------ >
> *From*: "Mark Volz" <MarkVolz at co.lyon.mn.us
<mailto:MarkVolz at co.lyon.mn.us>> > *Sent*: Thursday, February 23, 2017
10:50 AM > *To*: "mapserver-users at lists.osgeo.org >
<mailto:mapserver-users at lists.osgeo.org>" >
<mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>>
> *Subject*: [mapserver-users] Road shields on Mapserver 7 > > > > Hello, >
> > > I am having trouble adding road shields to my map. The label (and for
> that matter the entire class) quits drawing as soon as I uncomment the >
STYLE block under label. Please let me know What I can do to add road >
shields to my roads layer. > > > > CLASS > > NAME "U.S. Highway" > >
EXPRESSION "A10" > > STYLE > > WIDTH 5 > > COLOR 0 0 0 > > END #STYLE > >
STYLE > > WIDTH 3 > > COLOR 227 159 2 > > END #STYLE > > LABEL > > TEXT
'[ROADNUM]' > > SIZE 10 #for AGG > > FONT vera_sans #for AGG > >
MINFEATURESIZE 25 > > MINDISTANCE 200 > > #STYLE ### Mapserver quits
drawing this layer as soon as I uncomment > this block > > #SYMBOL >
'./symbols/USHWY.png' > > #END STYLE > > END #label > > END #class > > > >
P.S. Eventually I will want to display both the road number shield and >
the road name as well. > > > > Thank You > > Sincerely, > > *Mark Volz,
GISP* > > > > > > _______________________________________________ >
mapserver-users mailing list > mapserver-users at lists.osgeo.org >
https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email
has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________ mapserver-users mailing
list mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170223/47c250ae/attachment.htm>
More information about the MapServer-users
mailing list