Dear Rahkonen,<br><br>Thank you for your mail, it was very helpful.<br><br>I have done the following:<br><br>1) Converted my .jpeg files to .tif and run the gdaltindex program to georeference them. It returned a .shp, .shx and .dbf files. But I don&#39;t have any .tfw file yet. Please see output of GDALTINDEX below.<br>
<br>2) I tested my .map file with the shp2img utility and it generated a blank (white) .png file for me. Expectedly, the same blank file displays as blank in the browser (i.e. Ka-Map UI).<br><br>My new questions:<br><br>1) My maps were scanned from a paper map, does this affect my ability to Georeference them? <br>
2) How do I determine the Projection of the scanned map images?<br><br>Thanks.<br><br>GDALTINDEX OUTPUT (condensed):<br>==========================<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\ms4w\Apache\cgi-bin&gt;gdalinfo c:\ms4w\apps\test\tmp\pg19.tif</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Driver: GTiff/GeoTIFF</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Files: c:\ms4w\apps\test\tmp\pg19.tif</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Size is 1098, 1696</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Coordinate System is `&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Metadata:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; TIFFTAG_XRESOLUTION=200</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; TIFFTAG_YRESOLUTION=200</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Image Structure Metadata:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; COMPRESSION=LZW</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; INTERLEAVE=BAND</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Corner Coordinates:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Upper Left&nbsp; (&nbsp;&nbsp;&nbsp; 0.0,&nbsp;&nbsp;&nbsp; 0.0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Lower Left&nbsp; (&nbsp;&nbsp;&nbsp; 0.0, 1696.0)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Upper Right ( 1098.0,&nbsp;&nbsp;&nbsp; 0.0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Lower Right ( 1098.0, 1696.0)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (&nbsp; 549.0,&nbsp; 848.0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; Color Table (RGB with 256 entries)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 0: 0,0,0,255</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 1: 165,171,167,255</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 2: 255,197,98,255</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 3: 239,168,102,255</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 4: 206,150,75,255</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp; .</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp; . #removed to conserve space</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp; .</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; 255: 177,169,148,255</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\ms4w\Apache\cgi-bin&gt;</span><br><br>The test.map file I used:<br>=================<br><span style="font-family: courier new,monospace;">MAP</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;NAME test</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;STATUS ON</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;SIZE 1280 1280</span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;EXTENT -2200000 -712631 3072800 3840000</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;UNITS DD</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;#IMAGECOLOR 255 255 255</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;IMAGETYPE JPEG</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;WEB</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp; IMAGEPATH &quot;c:\ms4w\apps\test\tmp\&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; IMAGEURL &quot;c:\ms4w\apps\test\&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;END</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;LEGEND</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp; TRANSPARENT TRUE</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;END</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;SCALEBAR</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; TRANSPARENT TRUE</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;END</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;LAYER</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp; NAME &quot;My Sample Location&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; TYPE RASTER</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp; STATUS ON</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; TILEINDEX &quot;tmp\pg19.shp&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp; TILEITEM &quot;Location&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;END</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">END #MAP END</span><br style="font-family: courier new,monospace;"><br><br>@Venkat<br><br>I hope my mail gives a clearer picture of my status for your further advice.<br><br>
Thanks.<br><br><div class="gmail_quote">On Tue, Jan 20, 2009 at 1:04 AM, Rahkonen Jukka <span dir="ltr">&lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>First of all your jpeg files need to be 
georeferenced.&nbsp; Jpeg files are most often georeferenced with world files 
which are named as .jgw.&nbsp; Sometimes they are named as .tfw, even that name 
is actually reserved for tiff files.&nbsp; And Mapserver understands also world 
files named as .wld.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>If your images are georeferenced you can continue to 
building one single layer from all of your images.&nbsp; It is done with 
gdaltindex utility program.&nbsp; Gdaltindex is building a shapefile that 
records the extents of all the images to be indexed.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Third step is to make a new raster layer that is using 
the shapefile index as a catalogue for finding the actual image files that needs 
to be opened when user is requesting a map from a certain 
area.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>This should be enough to show you images as a single 
layer.&nbsp; It would be a benefit to know the projection where the images are 
because otherwise they cannot be reprojected.&nbsp; And for optimising 
performance it may be good to convert jpeg images to tiffs, but you can just 
start from jpegs and see if you are happy with the speed.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>In conclusion:</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>1. Check georeferencing and projection, gdalinfo 
program is a good help in this.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>2. Make tileindex with gdaltindex</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>3. Make a new raster layer in mapfile referring to just 
created tileindex file.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>-Jukka Rahkonen-</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="fi">
  <hr>
  <font face="Tahoma" size="2"><b>Lähettäjä:</b> 
  <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a> 
  [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] <b>Puolesta </b>Muizudeen 
  Kusimo<br><b>Lähetetty:</b> 20. tammikuuta 2009 10:45<br><b>Vastaanottaja:</b> 
  <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><b>Aihe:</b> [mapserver-users] Need Help 
  with Custom (Raster) Data as Input<br></font><br></div><div><div></div><div class="Wj3C7c">
  <div></div>Hello Everyone,<br><br>I am new to MapServer, however I am working 
  on an application that is similar to Google Maps albeit with my own custom 
  maps.<br><br>The problem is:<br><br>1) I have several maps mostly in .jpeg 
  format and would like to use them as Data Inputs for this Web Application. I 
  can&#39;t seem to get it done correctly. Must I convert these maps to a SHAPEFILE 
  i.e. .shp or what? If so, how do I convert them?<br><br>My development 
  platform is:<br><br>- Microsoft Windows XP<br>- Ka-Map<br>- MapServer 
  (MS4W)<br><br>Thanks.<br><br>NB: I am re-reading the documentation for a 
  solution.<br></div></div></blockquote></div>
</blockquote></div><br>