[Mapserver-users] Positioning of labels

Gerry Creager N5JXS gerry.creager at tamu.edu
Sun Nov 16 07:05:14 PST 2003


I'll have to go back and play with it, but at least with a perlscript, 
you can do a quick table lookup.

Or it'd be trivial to add a database column that corresponds to what 
Mapserver uses, and is updated once from the existing dbf.

I've got labels that have to go in specific positions.  It's not that 
hard to do it once in the mapfile and go on.

gerry

Johan Antonsson wrote:
> Hi all,
> 
> In my map sets there is information about label positions in the
> annotation layer attribute table. The positioning system is about the
> same as in the POSITION CLASS object parameter except that it uses
> numbers instead of named positions:
> 
> POSITION parameter
> ul uc ur
> cl cc cr
> ll lc lr
> 
> Position information in my .dbf file
> 7 8 9
> 4 5 6
> 1 2 3
> 
> I don't like to use the POSITION parameter since every label has its own
> position relative to its point. What I'm looking for is a parameter in
> the LAYER object e.g. called LABELPOSITIONITEM that would refer to the
> position attribute table column. Is there such a feature in MapServer or
> do I have to be content with POSITION=auto in the CLASS object? 
> 
> TIA
> 
> /Johan
> 
> ------------------------------------------------------------
> Johan Antonsson
> johan at antonsson.com
> ------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

-- 
Gerry Creager -- gerry.creager at tamu.edu
Network Engineering -- AATLT, Texas A&M University	
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578
Page: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843




More information about the MapServer-users mailing list