<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello,</span></div><div><br></div><div>The output quality of my mapserver wms service is poor.&nbsp; This mapfile will eventually be used to project another wms server from one projection to another.</div><div><br></div><div>If anyone has an example mapfile that reprojects an air photo into another projection and then in turn serves the air photo into another projection I would appreciate it.&nbsp; Also I included part of my map file</div><div><br></div><div>MAP<br>...</div><div> &nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "init=epsg:26915"&nbsp;&nbsp; ##required<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; OUTPUTFORMAT<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME 'agg/jpeg'<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DRIVER AGG/JPEG<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEMODE
 RGB<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FORMATOPTION "QUALITY=85"<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; MAXSIZE 10000&nbsp; #limit size of wms<br>&nbsp;&nbsp;&nbsp; IMAGETYPE agg/jpeg<br>&nbsp;&nbsp;&nbsp; IMAGECOLOR 255 255 255<br>&nbsp;&nbsp;&nbsp; WEB<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEURL "/ms_tmp/"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; METADATA&nbsp; #should this be in our out of web?<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'ows_title' 'My WMS Server'&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'ows_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/myapplication/maps/myMap.map'&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'ows_srs' 'EPSG:26915 EPSG:26914 EPSG:103748'&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #metadata<br>&nbsp;&nbsp;&nbsp; END
 #web&nbsp; <br>&nbsp;&nbsp;&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DEBUG ON<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME 'MyWMSLayer'<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE RASTER<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONNECTIONTYPE WMS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONNECTION "http://geoint.lmic.state.mn.us/cgi-bin/wms"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_srs" "EPSG:26915"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_name" "south11"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_server_version" "1.1.1"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_format" "image/jpeg"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END # LAYER<br>END # Map
 File<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><span></span></div><div><span></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Mark Korver &lt;mwkorver@gmail.com&gt;<br><b><span style="font-weight: bold;"></span></b></font>You need to upload your map file for anybody to be able to help on this.<br></div><br>&gt; Hello,<br>&gt;<br>&gt; I am using mapserver to consume a wms air photo service, and reproject the<br>&gt; image so that it can be used with a program that requires a wms service in a<br>&gt; different projection. Currently mapserver is working as both a wms client<br>&gt; and wms server, except that the image quality is terrible.&nbsp; To
 me it looks<br>&gt; like it might be a 256 color image instead of 24 bit.&nbsp; For the output<br>&gt; format, I am using aag/jpeg, and RGB image mode.<br>&gt;<br>&gt; If anyone could help me figure out how to get a better quality image for my<br>&gt; air photo wms client / server I would appreciate it.<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; Mark Volz<br>&gt;<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt;<br><br><br> </div> </div>  </div></body></html>