[mapserver-users] Re: msCalculateScale() error.

Daniel Morissette morissette at dmsolutions.ca
Fri Sep 7 13:18:06 PDT 2001


"Vinko Vrsalovic B." wrote:
> 
>         Testing the last version of PHP Mapscript (the one that solved
> the invalid map handle issue), I now cannot change the extent, zoom
> and the like of the image. The error is:
> 
> Fatal error: MapServer Error in msCalculateScale(): Invalid image extent. in
> /path/file on line XX
> 
> This happens whenever I call the setextent or zoompoint methods (I assume
> it happens with the other methods that mess with the extent also, but I'm not
> using them, so I couldn't tell).
> 

Vinko,

Are you sure that you compiled with php_mapscript_util.c revision 1.8? 
JF Doyon had the same extents problem as you with the test version of
php_mapscript_uitl.c that I Emailed both of you, but using revision 1.8
of php_mapscript_util.c (the latest in CVS) fixed it for him.

JF: Do you still get that extents problem?


> That takes me to the second question:
> 
> How do I retrieve from the CVS an old version? (the previous 3.5, for
> instance) I can find my way through with the invalid map handle, but not
> without changing the extent or zoom or pan. (Stupid me, I should have
> made a backup)
> 

For instance, to retrieve php_mapscript_util.c revision 1.7, you would
call:

  cd mapscript/php3
  cvs update -r 1.7 php_mapscript_util.c

Note that this is "sticky"... i.e. you'll be "stuck" with revision 1.7
forever, even next time you do a cvs update... to remove the sticky
flags and come back to the latest revision you'll have to use
  cvs update -A php_mapscript_util.c

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.




More information about the MapServer-users mailing list