Here is my definition $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED);
Daniel Morissette <dmorisse...@mapgears.com>@lists.osgeo.org Envoyé par : mapserver-users-boun...@lists.osgeo.org 2011-06-17 12:58 A mapserver-users@lists.osgeo.org cc Objet [Polluriel potentiel] Re: [mapserver-users] Scalebar Object in PHP Mapscript On 11-06-17 12:18 PM, steve.tout...@inspq.qc.ca wrote: > > $oMap->setProjection is set to 900913 in php mapscript, > The WMS called is in Projection EPSG:32198, but 900913 is in the list of > available projections > Did you set the units at the map level? Setting the projection is not enough. i.e. $oMap->set("units", MS_METERS); -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users