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

Doyon, Jean-Francois Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Fri Sep 7 13:29:20 PDT 2001


Vinko, Dan,

Hmmm I WAS getting that error.  If I recall correctly, this was because the
map extents weren't getting filled in when I output the HTML (For passing
through the form for the next operation).

Oh I remember now, you (dan) had me uncomment a line in the
php_mapscript_utli.c file ... Here's the suggestion you made that fixed it:

> This shouldn't have changed.  It may be a side-effect of my changes. 
> Can you try removing the comments around the call to ZVAL_ADDREF() at
> line 573 in the php_mapscript_util.c that I sent you and tell me if that
> makes a difference... I don't think it should, but I would like to rule
> that one out now.
> 
Turns out it did make a difference :) This is what fixed my problem with the
msCalculateScale error ... Hope this helps!

Cheers,
J.F.

> ----------
> From: 	Daniel Morissette[SMTP:morissette at dmsolutions.ca]
> Sent: 	Friday, September 07, 2001 4:18 PM
> To: 	v at w.cl
> Cc: 	mapserver-users at lists.gis.umn.edu; Doyon, Jean-Francois
> Subject: 	Re: msCalculateScale() error.
> 
> "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