[ka-Map-users] way to version 1.1

Paul Spencer pspencer at dmsolutions.ca
Thu Aug 30 10:35:43 EDT 2007


Right, but as daniel pointed out, the use of scale is now deprecated  
and we should put in place something to detect the mapserver version  
and use scaledenom (or whatever it is) so that we won't get bitten in  
the future when scale disappears.  This will also be an issue for  
Chameleon, TileCache and probably some other projects too (maybe  
mapstorer?)

I really like having a reliable way to determine and compare versions  
so that the code can be made future-safe :)

Cheers

Paul

On 30-Aug-07, at 10:27 AM, Zak James wrote:

> We've been using ka-map with mapserver 5 betas quite extensively and I
> can't recall any cases where we had to modify the php mapscript code.
>
> zak
>
> On 8/30/07, 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
>> --
>> Daniel Morissette
>> http://www.mapgears.com/
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>
>
>
> -- 
> Zak James
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                          pspencer at dmsolutions.ca    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+







More information about the ka-Map-users mailing list