[ka-Map-users] way to version 1.1

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Aug 30 11:12:15 EDT 2007


I like it. I wish one didn't have to know hex notation but this seems really flexible otherwise.

Steve

>>> On 8/30/2007 at 9:18 AM, in message <46D6D1C9.8050607 at mapgears.com>, Daniel
Morissette <dmorissette at mapgears.com> wrote:
> Paul Spencer wrote:
>> 
>> /* Tell MapServer to not render labels inside the metaBuffer area
>>  * (new in 4.6)
>>  * TODO: Until MapServer bugs 1353/1355 are resolved, we need to
>>  * pass a negative value for "labelcache_map_edge_buffer"
>>  */
>> $oMap->setMetadata("labelcache_map_edge_buffer", -$metaBuffer);
>> 
>> Do you know if this will change in 5.0?
>> 
> 
> No. I'm not aware of any change on that front.
> 
> 
>> Also, it would be convenient if there was a way in mapscript (all 
>> languages) to do something like:
>> 
>> if (ms_VersionLessThan(5,0,0)) {
>> } else {
>> }
>> 
> 
> Good idea. Did I just say "no more changes in 5.0"?
> 
> I think this one is non-disruptive and would be worthwhile. Instead of a 
> ms_VersionLessThan() I'd propose a new ms_GetVersionInt() that returns 
> the version x.y.z as an integer (x*0x10000 + y*0x100 + z). For instance, 
> v5.0.0 would be 0x50000 and v4.10.3 would be 0x40a03. Then you can do 
> integer comparisons yourself:
> 
>   if (msGetVersionInt() < 0x50000) {
>   } else {
>   }
> 
> Whadyathink?
> 
> Daniel




More information about the ka-Map-users mailing list