labelcache_map_edge_buffer Information?

Christopher R. Thorne christhorne at SYMPATICO.CA
Thu Nov 3 13:23:14 EST 2005


Thanks Assefa,

Is the reason why an application might set the negative buffer value 
dynamically because of changes in map scale? Like in KaMap where you 
have set zoom levels. Am I correct in assuming that in order for this 
feature to be effective the buffer value needs to be changed dynamically 
for each zoom level?

If No, What would be a reasonable static buffer value? -2 -10 -100?

Regards,
Chris






Yewondwossen Assefa wrote:
> Chris,
> 
>  The  labelcache_map_edge_buffer metadata applies on all text rendered 
> by maserver (nothing to do with WMS AFAIK). Check Bug 1353 and 1355 on 
> this issue.  Setting it in your map file is like you said a metadata at 
> map level labelcache_map_edge_buffer with the buffer in pixel that ou 
> want (note that the buffer value should be negatif). Or mapscript
> 
>  $oMap->setMetadata("labelcache_map_edge_buffer", -$my_buffer);
> 
> Later,
> 
> 
> Christopher R. Thorne wrote:
>> Hello list,
>>
>> In 4.6 version I have read on the KaMap mailing list that there is a 
>> feature to add a edge label buffer to your maps.
>>
>> But what I read seems to deal with this issue within the context of 
>> WMS. By adding a METADATA tag with labelcache_map_edge_buffer to the 
>> WEB Object.
>>
>> I would like to implement this, but not in a WMS environment.
>>
>> I would like some more explanation on how I can add this to my 
>> mapfiles and if there is more steps that require modification of an 
>> application I would be very happy if you could point me in the right 
>> direction on this issue.
>>
>> Chris
>>
> 


-- 
Christopher R. Thorne, GIS Specialist
-
christhorne at sympatico.ca
Tel:(613)523-6593, Ottawa ON Canada
-----------------------------



More information about the mapserver-users mailing list