[ka-Map-users] way to version 1.1

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


On 30-Aug-07, at 10:18 AM, Daniel Morissette 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/

that would be sweet, it would really help those of us that build  
toolkits that can potentially be used across versions.

Cheers

Paul

> _______________________________________________
> 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