[Mapserver-users] Labeling question {Scanned}

Siki Zoltan siki at agt.bme.hu
Tue Jul 27 16:06:25 EDT 2004


Hi,

change status to ON or DEFAULT,
the type should be ANNOTATION not point

Bye
Zoltan

On Tue, 27 Jul 2004, Zamil Murji wrote:

> Hello,
> 
> I tried the TEXT option for a class, but it doesn't do anything. Here is the offending layer:
> LAYER
>    NAME "rasterlogs"
>    TYPE point
>    STATUS off
>    MAXSCALE 800000
>    CONNECTIONTYPE postgis
>    CONNECTION "user=idc dbname=idc host=idcmap port=5432"
>    DATA "the_geom from main_well1"
>    FILTER "raster_log = 'Y'"
>    CLASSITEM uwi
>    CLASS
> #     COLOR 255 0 0
> #     SYMBOL 6
> #     SIZE 11
>     TEXT "5"
>     LABEL
>      COLOR 0 0 0
>      TYPE TRUETYPE
>      FONT wells
>      FORCE on
>      SIZE 12
>      POSITION cc
>      MAXSIZE 12
>      MINSIZE 12
>     END
>    END
>    PROJECTION
>      "init=epsg:4269"
>    END
> END
> 
> If I comment the TEXT and LABEL and uncomment the symbol then everything works fine. Right now it is bringing back a blank image.
> Any thoughts?
> 
> Zamil
> 
> -----Original Message-----
> From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
> Sent: Monday, July 26, 2004 11:11 PM
> To: Zamil Murji; mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Labeling question
> 
> 
> There is a TEXT option for a class that sets a static label to be used
> for all features in that class. That way you don't need a labelitem.
> 
> Steve
> 
> >>> "Zamil Murji" <Zamil.Murji at divestco.com> 07/26/04 4:52 PM >>>
> Hello list,
> 
> I am currently using a symbol to display a postgis layer. I want to give
> the user the ability to display any character from a special font file
> that we have. Is there a way to force a layer to display a certain
> character. 
> 
> I know you can do LABELITEM and give it a column in the db to reference
> for the character (this works btw), but I want to write it into the map
> file so that it is easy to change. I also don't want to have 500000
> redundant rows because if I have to change that character then I have to
> write an update function instead of just changing the .map file.
> 
> Any ideas?
> Zamil
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 
> _______________________________________________
> 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