Change Output Image Resolution

Stephen Lime steve.lime at dnr.state.mn.us
Tue Apr 3 11:43:01 PDT 2001


Nope, the 72 DPI is a constant (although you could change it and recompile). Since all that the DPI value affects is scale you could fake a higher resolution by doing the following in MapScript:

  - do a $map->prepare() (this calculates scale)
  - change $map->{scale} to reflect your desired output resolution
  - now loop through the layers and do a $layer->draw()

Steve

>>> Düster Horst <Horst.Duester at bd.so.ch> 04/03/01 08:34 AM >>>
Hi all
 
Is it possible to change the resolution of an MapServer output image from 72
dpi to higher resolution via MapScript??
 
Best regards

Dr. Horst Düster 
Leiter 
GIS Koordinationsstelle SOGIS 
Rötihof 
4500 Solothurn 

Tel.: 032 627 25 32 
Fax: 032 627 22 14
mailto:horst.duester at bd.so.ch <mailto:horst.duester at bd.so.ch>  
http://www.so.ch <http://www.so.ch/>  

 




More information about the MapServer-users mailing list