[Mapserver-users] Positioning of labels

Gerry Creager N5JXS gerry.creager@tamu.edu
Sun, 16 Nov 2003 10:46:02 -0600


Sounds like you need to query the database, look up the pertinent 
pieces, and rewrite the mapfile on the fly.  Not too bad with perl or 
php.  THEN you'd call the cgi or mapscript.

gerry

Johan Antonsson wrote:
> Thanks Gerry,
> 
> The thing is that MapServer doesn't seem to do any table lookup for the
> POSITION parameter (which also is in the CLASS object). I use the
> precompiled Windows version of MapServer. My map set is huge with an
> individual position for virtually every label, independent of class. It
> seems to me that such a lookup (but in the LAYER object) would be very
> useful feature. A problem might be different positioning standards.
> 
> Regards
> 
> /Johan
> 
> ------------------------------------------------------------
> Johan Antonsson
> johan@antonsson.com
> ------------------------------------------------------------
> 
> 
> -----Original Message-----
> From: mapserver-users-admin@lists.gis.umn.edu
> [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Gerry
> Creager N5JXS
> Sent: den 16 november 2003 16:05
> To: Johan Antonsson
> Cc: MapServer Users
> Subject: Re: [Mapserver-users] Positioning of labels
> 
> 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@antonsson.com
>>------------------------------------------------------------
>>
>>
>>
>>_______________________________________________
>>Mapserver-users mailing list
>>Mapserver-users@lists.gis.umn.edu
>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 

-- 
Gerry Creager -- gerry.creager@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

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users