[Mapserver-users] MINSCALE in webobj

Ed McNierney ed at topozone.com
Thu Mar 13 11:42:43 EST 2003


Thanks, Daniel!  The "mapscript" reference there slipped right by me....

	- Ed

-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
Sent: Thursday, March 13, 2003 11:22 AM
To: Vincent Schut
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] MINSCALE in webobj


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
> _______________________________________________
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list