Help using Java and Mapscript

thomas bonfort thomas.bonfort at GMAIL.COM
Tue Mar 13 10:40:53 PDT 2007


i use something like


            pointObj oCenter = new pointObj(oMap.getWidth()/2,oMap.getHeight
()/2,0);
            oMap.zoomScale(scale, oCenter, oMap.getWidth(), oMap.getHeight
(),
                        oMap.getExtent(), oMap.getExtent())

where "scale" s is in fact the 1/s scale you are targetting. eg for 1/20000,
scale = 20000

cheers,
tb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070313/bf04bf88/attachment.htm>


More information about the MapServer-users mailing list