<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=222022407-31072008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=222022407-31072008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222022407-31072008><FONT face=Arial 
color=#0000ff size=2>What are the&nbsp;dimensions of the image you have captured 
in real world utits?&nbsp; Your original aerial images have&nbsp;half a metre 
pixel size.&nbsp; It&nbsp;mean&nbsp;that at 300 dpi one original&nbsp;image 
pixel corresponds with one&nbsp;pixel at paper if square inch&nbsp;on your 
printout is presenting exactly 150 by 150 meters in nature.&nbsp;&nbsp;That is 
the maximum quality you can achieve.&nbsp;&nbsp;If square inch&nbsp;on 
paper&nbsp;equals to 75 by 75 meters&nbsp;the maximum quolity is achieved 
already at 150 dpi.&nbsp;Multiplicating&nbsp;original image pixels for printing 
cannot&nbsp;improve the quality. &nbsp;But if you have zoomed out so far that 
creating output image means downsampling the original imagery you should see the 
differense.&nbsp; So, if your 2150x1111 low resolution image is covering a 
considerably larger area than 1075x555 meters in real world it should look 
better when downloaded at 300 dpi with 4300x2222 
pixels.&nbsp;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222022407-31072008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222022407-31072008><FONT face=Arial 
color=#0000ff size=2>-Jukka Rahkonen-</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222022407-31072008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222022407-31072008></SPAN><SPAN 
class=222022407-31072008>&nbsp;</SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>Lähettäjä:</B> 
mapserver-users-bounces@lists.osgeo.org 
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta 
</B>Dejan.Gambin@pula.hr<BR><B>Lähetetty:</B> 31. heinäkuuta 2008 
9:32<BR><B>Vastaanottaja:</B> mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> 
Re: [mapserver-users] Output image resolution - explanation 
needed<BR></FONT><BR></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV><BR><FONT face=sans-serif size=2>Thanks Steve</FONT> <BR><BR><FONT 
  face=sans-serif size=2>I still (unfortunatelly) don't understand why I am 
  getting the "same quality" image on the paper with the first and second print 
  (the second image has twice more pixels). Is it because of the input image 
  itself? To be specific - the raster input is aerial image that gdalinfor 
  reports as:</FONT> <BR><BR><FONT face=sans-serif size=2>Driver: 
  GTiff/GeoTIFF</FONT> <BR><FONT face=sans-serif size=2>Files: 
  5C14-05-DOF.tif</FONT> <BR><FONT face=sans-serif size=2>Size is 4500, 
  6000</FONT> <BR><FONT face=sans-serif size=2>Coordinate System is `'</FONT> 
  <BR><FONT face=sans-serif size=2>Origin = 
  (5419000.154658853100000,4964998.794652804700000)</FONT> <BR><FONT 
  face=sans-serif size=2>Pixel Size = 
  (0.499829146050620,-0.499829146050620)</FONT> <BR><FONT face=sans-serif 
  size=2>Corner Coordinates:</FONT> <BR><FONT face=sans-serif size=2>Upper Left 
  &nbsp;( 5419000.155, 4964998.795)</FONT> <BR><FONT face=sans-serif 
  size=2>Lower Left &nbsp;( 5419000.155, 4961999.820)</FONT> <BR><FONT 
  face=sans-serif size=2>Upper Right ( 5421249.386, 4964998.795)</FONT> 
  <BR><FONT face=sans-serif size=2>Lower Right ( 5421249.386, 
  4961999.820)</FONT> <BR><FONT face=sans-serif size=2>Center &nbsp; &nbsp; 
  &nbsp;( 5420124.770, 4963499.307)</FONT> <BR><FONT face=sans-serif size=2>Band 
  1 Block=256x256 Type=Byte, ColorInterp=Red</FONT> <BR><FONT face=sans-serif 
  size=2>&nbsp; Overviews: 2250x3000, 1125x1500, 563x750, 282x375</FONT> 
  <BR><FONT face=sans-serif size=2>Band 2 Block=256x256 Type=Byte, 
  ColorInterp=Green</FONT> <BR><FONT face=sans-serif size=2>&nbsp; Overviews: 
  2250x3000, 1125x1500, 563x750, 282x375</FONT> <BR><FONT face=sans-serif 
  size=2>Band 3 Block=256x256 Type=Byte, ColorInterp=Blue</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; Overviews: 2250x3000, 1125x1500, 563x750, 
  282x375</FONT> <BR><BR><FONT face=sans-serif size=2>regards, dejan</FONT> 
  <BR><BR><TT><FONT size=2>"Steve Lime" &lt;Steve.Lime@dnr.state.mn.us&gt; wrote 
  on 30.07.2008 21:13:55:<BR><BR>&gt; Resolution in MapServer-speak is referring 
  to the resolution of the <BR>&gt; output device a map<BR>&gt; will be 
  displayed on. The value is used for scale computations and <BR>&gt; nothing 
  else. It does not<BR>&gt; affect the size (in pixels) of MapServer. Scale 
  values do impact the<BR>&gt; size at which features<BR>&gt; and text are 
  rendered IF scaling (via SYMBOLSCALE) is turned on. <BR>&gt; Higher quality 
  output is<BR>&gt; usually a matter of having more pixels to print, however you 
  usually<BR>&gt; want larger features<BR>&gt; too which is where the resolution 
  parameter combined with scaling can help.<BR>&gt; <BR>&gt; Steve<BR>&gt; 
  <BR>&gt; &gt;&gt;&gt; On 7/30/2008 at 2:21 AM, in message<BR>&gt; 
  &lt;OF8A10F31F.0E3F1C94-ONC1257496.0026AB23-C1257496.00286464@pula.hr&gt;,<BR>&gt; 
  &lt;Dejan.Gambin@pula.hr&gt; wrote:<BR>&gt; &gt; Hi,<BR>&gt; &gt; <BR>&gt; 
  &gt; I am trying to download a high resolution image and print it on a paper. 
  I <BR>&gt; &gt; am using p.mapper and its download function that enables 
  downloading the <BR>&gt; &gt; map image on different resolutions. <BR>&gt; 
  &gt; <BR>&gt; &gt; I have turned on my raster layer (ortophoto image). I have 
  zoomed in to an <BR>&gt; &gt; area of interest. I have downloaded the map 
  twice - with a resolution of <BR>&gt; &gt; 150 and 300. The image is shown i a 
  new page/tab (firefox). I right click <BR>&gt; &gt; on the image and save it 
  as a png (also tried with a jpeg) file. Now, the <BR>&gt; &gt; first file is 
  2150x1111 pixels, 120 dpi vertical and horizontal resolution <BR>&gt; &gt; 
  (right click on a file, properties, summary, what does it mean?), the <BR>&gt; 
  &gt; second file is 4300x2222 pixels, 120 dpi vertical and horizontal <BR>&gt; 
  &gt; resolution. Seems ok. The second image is "doubled" in pixel 
  size.<BR>&gt; &gt; <BR>&gt; &gt; Now, when I try to print this image on A4 
  paper, using 300dpi, the images <BR>&gt; &gt; are the same, there is no 
  "better quality" in second image.<BR>&gt; &gt; <BR>&gt; &gt; I have just 
  finshed reading the Mapserver thread on "Change image <BR>&gt; &gt; resolution 
  in mapfile". Several limitations are mentioned there - max. <BR>&gt; &gt; 
  image size supported by Mapserver, "resolution" value/tag embedded in <BR>&gt; 
  &gt; output format, etc. Can it be related to my problem? Or is it maybe that 
  <BR>&gt; &gt; software I am using to print this image doesn't "use" this extra 
  pixels? <BR>&gt; &gt; Or I am just missing some basic stuff I need to know 
  :-(<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; thanks very much on any 
  explanation<BR>&gt; &gt; <BR>&gt; &gt; regards, dejan<BR>&gt; 
<BR></BLOCKQUOTE></FONT></TT></BODY></HTML>