Closed tbonfort closed 12 years ago
Author: sgillies@frii.com Date: 2003/07/16 - 02:32
Have made a new interface file for map zooming convenience functions,
mapzoom.i. In it are three methods that extend mapObj: zoomPoint,
zoomRectangle, and zoomScale. These follow the PHP MapScript
functions as closely as possible.
The only difference is that the last argument, the maximum bounding
extent is NOT optional. However, just pass a NULL pointer as this
argument if you don't want to be constrained.
Have written 13 new tests for these methods to make sure they do
what we want and raise the proper errors. Have attached the relevant
test code to this bug so that folks can see what I've tested so far.
Author: sdlime Date: 2003/07/16 - 16:20
Sweet, nice job! This will make porting apps between scripting languages easier.
Author: dmorissette Date: 2003/07/21 - 16:39
We should cleanup the PHP code to share the same code as the other SWIG methods.
Not sure if I can do that before the 4.0 release but I'll try.
Author: sgillies@frii.com Date: 2003/07/30 - 23:56
I think that Steve indicated to me that these work, so I'll resolve
this.
BTW, I could have put the code for the zoom* methods into a C source
file to be built alongside mapscript_wrap.c, but opted for a SWIG
interface file so that we could attach exception action to the
methods.
Reporter: sgillies@frii.com Date: 2003/07/15 - 17:55