[ka-Map-users] Accessing attribute tables as labels for features

നെടുമ്പാല ജയ്സെന്‍ jaisuvyas at gmail.com
Fri May 30 04:50:16 EDT 2008


Hai..., Thanks.. I got it... Thanks for the hint... :)

2008/5/29 Pēteris Brūns <peteris.bruns at gmail.com>:

> Your layer description is without label definitions.
> It should be writen so:
> LAYER
>  GROUP "GenFac"
>  NAME genfac
>  TYPE POINT
>  STATUS OFF
>  DATA "mydata/genfac.shp"
>  LABELCACHE ON
>  LABELITEM discr
>  CLASS
>    NAME "GenFac"
>    STYLE
>      SYMBOL "star"
>      SIZE 10
>      COLOR 000 165 255
>    END
> #you need label block in class for labeling
>     LABEL
>     #...here mus be your label description
>   END
>
>  END
> END
>
> see map file documentation as previously Luca wrote
> Here is described label block parameters
> http://mapserver.gis.umn.edu/docs/reference/mapfile/label
>
> pb
>
> നെടുമ്പാല ജയ്സെന്‍ wrote:
>
>> Hai,
>>
>>   Thanks for ur response, but, I tried this earlier. The layer description
>> from my mapfile is given below:
>> ------------------------------------------
>> LAYER
>>  GROUP "GenFac"
>>   NAME genfac
>>   TYPE POINT
>>   STATUS OFF
>>   DATA "mydata/genfac.shp"
>>   LABELCACHE ON
>>   LABELITEM discr
>>   CLASS
>>     NAME "GenFac"
>>     STYLE
>>       SYMBOL "star"
>>       SIZE 10
>>       COLOR 000 165 255
>>     END
>>   END
>>  END -------------------------
>> The corresponding attribute table field for the genfac.shp is discr. The
>> contents  in the attribute table field "discr" is not seems visible. Where I
>> really missed?  Anything else should I setup in mapfile, or in any other
>> files?
>>
>>
>> 2008/5/28 Luca Casagrande <luca.casagrande at gmail.com <mailto:
>> luca.casagrande at gmail.com>>:
>>
>>    On Wednesday 28 May 2008 14:21:35 നെടുമ്പാല ജയ്സെന്‍ wrote:
>>    > Hai,
>>    >   I have set up a visualization for my area with ka-map using
>>    shapefile
>>    > layers. The only remaining thing is, I need to put labels for
>>    the vector
>>    > features, for which, I want to use the data from attribute tables
>>    > associated with vector layers. I tried for it, but as a new
>>    person to this
>>    > field, no idea how to make it out. Any possible way to do that?
>>
>>    For each layer, set the LABELITEM tag for the column that holds
>>    the names.
>>    More info here:
>>    http://mapserver.gis.umn.edu/docs/reference/mapfile
>>    Bye
>>    Luca
>>
>>
>>
>>
>> --
>> (`'·.¸(`'·.¸ ¸.·'´)¸.·'´)
>> «´¨`·*Jaisen.*..´¨`»
>> (¸.·'´(¸.·'´ `'·.¸)`'·.¸)
>> ¸.·´
>> ( `·.¸
>> `·.¸ )
>> ¸.·)´
>> (.·´
>> ( `v´ )
>> `v´
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>
>>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>



-- 
(`'·.¸(`'·.¸ ¸.·'´)¸.·'´)
«´¨`·*Jaisen.*..´¨`»
(¸.·'´(¸.·'´ `'·.¸)`'·.¸)
¸.·´
( `·.¸
`·.¸ )
¸.·)´
(.·´
( `v´ )
`v´
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20080530/e6e18516/attachment.html


More information about the ka-Map-users mailing list