<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I believe one of the &#8220;END&#8221; was missing at the end of
the file, I have added that. This resolves the earlier error and generated a
new one - </span>msDrawMap(): Image handling error. Unable to initialize image.
msPrepareImage(): General error message. Image dimensions not specified.
msCalculateScale(): General error message. Invalid image extent,
minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. mapserv(): Web
application error. No way to generate map extent.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Any help is much appreciated? <span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sincerely,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Asif Memon<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Asif Memon <br>
<b>Sent:</b> Tuesday, October 28, 2008 1:48 PM<br>
<b>To:</b> 'Roger André'<br>
<b>Cc:</b> 'mapserver-users@lists.osgeo.org'<br>
<b>Subject:</b> RE: [mapserver-users] RE: Documentation for serving large
raster images using tile cache.<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>No, TileCache didn&#8217;t come with that. I am trying to view
any image right now to see an example of serving an image into Mapserver. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I changed the path of the WMS URL(<a
href="http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&amp;mode=map">http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&amp;mode=map</a>)
and the error I am getting now is - </span>msLoadMap(): Premature End-of-File.<span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I ran the GDAL tile cache command on a .tif image to create the
shape files using (gdaltindex doq_index.shp doq/*.tif). Also, I made some
changes in the map file. Attached is the most updated map file along with the
shape files. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Could you please take a look at it. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sincerely,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Asif Memon<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Roger André
[mailto:randre@gmail.com] <br>
<b>Sent:</b> Tuesday, October 28, 2008 1:22 PM<br>
<b>To:</b> Asif Memon<br>
<b>Subject:</b> Re: [mapserver-users] RE: Documentation for serving large
raster images using tile cache.<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Sorry I assumed that the
index.html file was the one that came with TileCache.&nbsp; Is that not
correct?<br>
--<o:p></o:p></p>

<div>

<p class=MsoNormal>On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon &lt;<a
href="mailto:mmemon@sdsc.edu">mmemon@sdsc.edu</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>Thanks for your reply.</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Attached is the map file. I do
not have the any tilecache.cfg file. From the error(</span>msLoadMap(): Unable
to access file. (/path/to/demo.map)<span style='font-size:11.0pt;color:#1F497D'>),
it appears the map file is not accessible. </span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

</div>

<p><span style='font-size:11.0pt;color:#1F497D'>Sincerely,</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Asif Memon</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]
<o:p></o:p></span></p>

<div>

<p class=MsoNormal><b><span style='font-size:10.0pt'>Sent:</span></b><span
style='font-size:10.0pt'> Tuesday, October 28, 2008 12:53 PM<br>
<b>To:</b> Asif Memon<o:p></o:p></span></p>

</div>

<p class=MsoNormal><b><span style='font-size:10.0pt'>Cc:</span></b><span
style='font-size:10.0pt'> <a href="mailto:mapserver-users@lists.osgeo.org"
target="_blank">mapserver-users@lists.osgeo.org</a><o:p></o:p></span></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'><br>
<b>Subject:</b> Re: [mapserver-users] RE: Documentation for serving large
raster images using tile cache.<o:p></o:p></span></p>

</div>

</div>

</div>

<div>

<div>

<p>&nbsp;<o:p></o:p></p>

<p style='margin-bottom:12.0pt'>Hi Asif,<br>
<br>
Are you able to view a map when you go to &quot;<a
href="http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&amp;mode=map"
target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&amp;mode=map</a>&quot;
?&nbsp; Also, can you send a copy of your mapfile, and of your tilecache.cfg
files?<br>
<br>
Roger<br>
--<o:p></o:p></p>

<div>

<p>On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon &lt;<a
href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>Hi Roger,</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>I followed the instructions on
the documentation and setup the map server and demo, when I try to execute the
index.html, I get this error - </span>msLoadMap(): Unable to access file. (<a
href="http://localhost:9090/mapdemo/itasca.map" target="_blank">http://localhost:9090/mapdemo/itasca.map</a>)<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>Do you know what could be it? <o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Sincerely,</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Asif Memon</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color'>

<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]
<br>
<b>Sent:</b> Monday, October 20, 2008 1:38 PM<br>
<b>To:</b> Gregor Mosheh<br>
<b>Cc:</b> Asif Memon; <a href="mailto:mapserver-users@lists.osgeo.org"
target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [mapserver-users] RE: Documentation for serving large
raster images using tile cache.</span><o:p></o:p></p>

</div>

<p>&nbsp;<o:p></o:p></p>

<div>

<p style='margin-bottom:12.0pt'>Hi Asif,<br>
<br>
Best thing to do is take a look at these 2 docs first:<br>
- <a href="http://mapserver.gis.umn.edu/docs/howto/raster_data" target="_blank">http://mapserver.gis.umn.edu/docs/howto/raster_data</a><br>
- <a href="http://tilecache.org/readme.html" target="_blank">http://tilecache.org/readme.html</a><br>
<br>
Once you have the ability to see your raster in MapServer via a
&quot;mode=map&quot; request, then you will have to decide how you wish to view
your data afterwards.&nbsp; There are different things to do in TileCache depending
on whether you wish to view the data in OpenLayers, or over Google Maps/MS VE.<br>
--<o:p></o:p></p>

<div>

<p>On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh &lt;<a
href="mailto:gregor@hostgis.com" target="_blank">gregor@hostgis.com</a>&gt;
wrote:<o:p></o:p></p>

<div>

<p>Asif Memon wrote:<o:p></o:p></p>

<p>Could someone please point me to the documentation for serving large (2GB to
3GB) raster images using tile cache. I want to use Minnesota Map Server and
GDAL to achieve this.<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

</div>

<p>You'll want to ask the TileCache list about that, likely. Once you have
MapServer actually serving up the imagery, get your client using MapServer or
WMS (I like OpenLayers, myself). Then install TileCache and change the OL app
to use TC's URL instead of MapServer's. Easy.<br>
<br>
But you may want to install OpenLayers and get it working with MapServer first,
then hit up the OL and TC mailing lists.<br>
<br>
-- <br>
Gregor Mosheh / Greg Allensworth &nbsp; &nbsp;BS, A+, Network+, Security+,
Server+<br>
System Administrator, Lead Programmer<br>
HostGIS development &amp; hosting services, <a href="http://www.HostGIS.com/"
target="_blank">http://www.HostGIS.com/</a><br>
<br>
&quot;Remember that no one cares if you can back up,<br>
&nbsp;only if you can restore.&quot; - AMANDA<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"
target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>

</div>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>