[Mapserver-dev] Re: [Mapserver-users] recalculate scale with mapscript
Sean Gillies
sgillies at frii.com
Tue Dec 2 16:38:10 EST 2003
On Tuesday, December 2, 2003, at 01:30 PM, Daniel Morissette wrote:
> Sean Gillies wrote:
>> There's a setExtent extension to mapObj in the 4.1 (CVS) MapServer.
>> Since
>> we had frozen the features of 4.0, I did not commit it to that source
>> branch.
>> You are welcome to paste it into your mapscript.i and re-build, it
>> doesn't
>> depend on any other code in 4.1.
>
> (I sent this reply to mapserver-dev...)
>
> Sean,
>
> There is already a setExtent() method in PHP MapScript that was there
> for several versions. It also recalculates the scale like yours does,
> but there is one difference: it takes 4 values as argument instead of
> a rectObj:
>
> void setextent(double minx, double miny, double maxx, double maxy)
> Set the map extents using the georef extents passed in argument.
>
> Would it be possible to change your new function to use the same
> prototype to bring both versions of MapScript in sync? Since it hasn't
> been released yet that shouldn't cause too much trouble.
>
> We need to take some time at some point to sync the PHP and SWIG
> MapScript... I'm not sure when we would have time though.
>
> Daniel
> --
> ------------------------------------------------------------
> Daniel Morissette morissette at dmsolutions.ca
> DM Solutions Group http://www.dmsolutions.ca/
> ------------------------------------------------------------
>
Yes, I think it makes more sense to follow the precedence set in the
PHP MapScript.
Sean
--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies
More information about the mapserver-dev
mailing list