RE: [mapserver-users] Scalebar Object in PHP Mapscript
I have this set as well $oMap->set("units", MS_METERS); But I still have the problem Steve "Lime, Steve D (DNR)" 2011-06-16 18:31 A "steve.tout...@inspq.qc.ca" , "mapserver-users@lists.osgeo.org" cc Objet RE: [mapserver-users] Scalebar Object in PHP Mapscript What do you mean by ?the map is well scaled but the scalebar is not ?? Other common params would be SIZE, STYLE and INTERVALS. Does the map have units set? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of steve.tout...@inspq.qc.ca Sent: Thursday, June 16, 2011 12:29 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Scalebar Object in PHP Mapscript Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE [Polluriel potentiel] Re: [mapserver-users] Scalebar Object in PHP Mapscript
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 @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
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
RE: [mapserver-users] Scalebar Object in PHP Mapscript
Yes the units are set. What do you mean by ?the map is well scaled but the scalebar is not ?? I mean the image printed is the same size as the map in my application. But it seems that the scalebar is not appropriate $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 Is it possible that php mapscript returns the map image in 900913, but a scalebar in 32198? Any other ideas Thank you for your help, Steve "Lime, Steve D (DNR)" 2011-06-16 18:31 A "steve.tout...@inspq.qc.ca" , "mapserver-users@lists.osgeo.org" cc Objet RE: [mapserver-users] Scalebar Object in PHP Mapscript What do you mean by ?the map is well scaled but the scalebar is not ?? Other common params would be SIZE, STYLE and INTERVALS. Does the map have units set? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of steve.tout...@inspq.qc.ca Sent: Thursday, June 16, 2011 12:29 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Scalebar Object in PHP Mapscript Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Scalebar Object in PHP Mapscript
What do you mean by "the map is well scaled but the scalebar is not "? Other common params would be SIZE, STYLE and INTERVALS. Does the map have units set? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of steve.tout...@inspq.qc.ca Sent: Thursday, June 16, 2011 12:29 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Scalebar Object in PHP Mapscript Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Scalebar Object in PHP Mapscript
Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users