Hello all,

I'm developing an aplicattion based on mapserver in which I have a text box
to set a numerical scale. This numerical scale ($_scale = 20000) is used to
render the image via the following mapscript:


$_scale = 20000;
$center_point=ms_newPointObj();
$center_point->setXY($map->width/2, $map->height/2);
$map->zoomscale($_scale,$center_point, $map->width, $map->height,
$map->extent);

However the image retrieved doesn't have the correct dimensions. The
graphical scale is correct, but 1 cm on the image doesn't corresponde to
20000 (in this case) on the ground.

I know that the RESOLUTION parameter is used to perform scale computations,
so what RESOLUTION should I use on the mapfile?
RESOLUTION depends on monitor size and monitor resolution, right?
How can the server/browser know the monitor size/resolution?


Best regards,
André Silva
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to