[Mapserver-users] Query Help
Lowell Filak
lfilak at medinaco.org
Tue Jun 8 05:30:31 PDT 2004
I believe "TEXT" is for labelling with a static text string.
Possibly "LABELITEM" is what you need.
Lowell
The following message was sent by Eric Katherman <vaiod at berloy.com> on
Mon, 7 Jun 2004 15:12:45 -0700.
> Okay I am missing something and have looked at the examples but am not
getting
> the data to show up in a query. Here is what I have.
>
> My Layer
>
> ...
> LAYER
> GROUP streets
> NAME street
> DATA street
> STATUS DEFAULT
> TYPE LINE
> FILTERITEM NONSTCO
> FILTER "B"
> LABELMAXSCALE 120000
> LABELMINSCALE 100
>
> PROJECTION
> "init=/usr/local/share/proj/epsg:2223"
> END
>
> TOLERANCE 3
> CLASSITEM 'STREET_NAM'
> CLASS
> TEMPLATE 'mapserver/streets_header.html'
> NAME 'Major Street Labels'
> COLOR 184 184 184
> OUTLINECOLOR 32 32 32
> TEXT ([PRE_DIR] [STREET_NAM] [STREET_TYP])
> LABEL
> COLOR 0 0 0
> SHADOWCOLOR 218 218 218
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> FONT trebuchet_ms
> SIZE 12
> ANTIALIAS TRUE
> ANGLE AUTO
> POSITION CL
> PARTIALS FALSE
> MINDISTANCE 300
> BUFFER 4
>
> END # end of label
>
> END
> ...
>
> I have a template called streets_header.html with nothing in it but
the two
> fields in my .dbf file I want returned... STREET_NAM and STREET_TYP
but when
> I query my map all I get is that page with STREET_NAM and STREET_TYP
listed
> rather then say "49TH AVE" What am I missing?
>
> Thanks
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list