[mapserver-users] Zoomscale doesn't work properly

Carlo Pelliconi c.pelliconi at sis-ter.it
Wed Apr 9 06:27:24 EDT 2008


Hi, my name's Carlo.
I use MapServer4.10 with PHPMapscript on a Debian Etch system with PHP5.2.
I have a problem with zoomscale(): when I use it, the system ignores 
minscale limitation. I've defined minscale directly in the mapfile (see 
below)
...
WEB
   MINSCALE 1000
...
and also in the php script (see below)
...
$map->web->set('minscale',1000); // I've tried also 
$map->web->set("minscale","1000");
...

and it works fine with simple zoomin/out (if I ask a zoom in when I'm 
near to 1:1000 - for example 1:1020 - the map reaches 1:1000, and no 
more). But when I use zoomscale(), I can reach also 1:919 for example. 
I've discovered this problem zooming (with zoomscale) to a single 
feature found as response of a queryByAttribute.

Is this a known bug or I am wrong with something?
Thank  you very much for the attention.

Best Regards, Carlo

-- 
Carlo Pelliconi
c.pelliconi at sis-ter.it
SIS.TER S.p.A.
www.sis-ter.it
via Mentana, 10
40026 Imola (BO) Italy
--

ATTENZIONE!
Questo documento è indirizzato esclusivamente al destinatario. Tutte le
informazioni ivi contenute, compresi eventuali allegati, sono soggette
a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
"privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e di cancellare il messaggio subito dopo. Grazie.

ATTENTION!
This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks.

ACHTUNG!
Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und dürfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.




More information about the mapserver-users mailing list