[ka-Map-users] way to version 1.1

Daniel Morissette dmorissette at mapgears.com
Thu Aug 30 10:18:49 EDT 2007


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/


More information about the ka-Map-users mailing list