[Mapserver-users] MINSCALE in webobj

Daniel Morissette morissette at dmsolutions.ca
Thu Mar 13 11:22:23 EST 2003


MINSCALE/MAXSCALE in the WEB object apply to the mapserv CGI only.  In
MapScript you have to handle this check yourself.  

It would probably be a worthwhile enhancement to add an optional flag to
the PHP MapScript zoomPoint() and zoomRectangle() functions to request
enforcing the MINSCALE/MAXSCALE values.  Please add this to bugzilla if
you feel it's worth it.

Daniel


Vincent Schut wrote:
> 
> Hi,
> 
> Did any of you succesfully use the MINSCALE item in the webobject of the
> mapfile? The mapfile reference sais:
> 
> MINSCALE [double]
> 
> Minimum scale at which this interface is valid. When a user reuqests a map at
> a smaller scale, MapServer automatically returns the map at this scale. This
> effectively prevents the user from zooming in too far.
> 
> I tried this but could not get it working.
> If anyone can give me a hint, please do so.
> And before getting the too obvious hint: yes, my units are right. Everything
> works, just the minscale item does nothing. I'm using mapserver through
> php_mapscript, version 3.7 (cvs of not too long ago).
> 
> Note btw that this is a different MINSCALE than the one used in a LAYER
> object.
> 
> Regards,
> --
> ______________________________________
> Vincent Schut (schut at sarvision.com)
> Sarvision B.V.
> Wageningen, The Netherlands
> www.sarvision.com
> _______________________________________________



More information about the mapserver-users mailing list