Hi Asif,<br><br>I downloaded the demo.tif file that you sent earlier, and the itasca_demo.map from you rprevious email. I changed the path in the DATA portion of the LAYER section to point to my filesystem, <br> DATA "/var/www/mapfiles/itasca/demo.tif"<br>
<br>and also changed the EXTENT to this:<br> EXTENT -0.9194182 -4.2013292 -0.9002422 -4.1870152<br><br>This matches the extent of the file when you run gdalinfo against it (min_x min_y max_x Max_y).<br><br>With these changes, I'm able to view the file with the following URL:<br>
<a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&mode=map">http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&mode=map</a><br><br>(Note, I'm running this in Linux, so paths and URLs are going to be slightly different than yours)<br>
<br>Try changing your EXTENT entry to match mine, that might do the trick.<br>--<br><br><br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 3:45 PM, Asif Memon <span dir="ltr"><<a href="mailto:mmemon@sdsc.edu">mmemon@sdsc.edu</a>></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 link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks Roger. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I don't see any errors now, but no image appears in the
browser(the browser is blank). I made minor changes to the map file that you
sent me (about the paths, attached is the file). </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">The URL that I am using in the browser is <a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Citasca_demo.map&mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map</a></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Please correct me if anything is wrong in the URL or in the map
file. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Sincerely,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Asif Memon</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Roger André
[mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, October 28, 2008 3:17 PM<div><div></div><div class="Wj3C7c"><br>
<b>To:</b> Asif Memon<br>
<b>Cc:</b> <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.</div></div></span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p style="margin-bottom: 12pt;">Hi Asif,<br>
<br>
Ok, here's a new mapfile that you can try. Change your request to point
to this one, and see if you get an image back in your browser.<br>
<br>
Roger<br>
--</p>
<div>
<p>On Tue, Oct 28, 2008 at 2:06 PM, Asif Memon <<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>> wrote:</p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I believe one of the
"END" 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.</p>
<p> </p>
<p>Any help is much appreciated? </p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Sincerely,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Asif Memon</span></p>
</div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Asif Memon <br>
<b>Sent:</b> Tuesday, October 28, 2008 1:48 PM<br>
<b>To:</b> 'Roger André'</span></p>
<div>
<p><span style="font-size: 10pt;"><br>
<b>Cc:</b> '<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>'</span></p>
</div>
<p><b><span style="font-size: 10pt;">Subject:</span></b><span style="font-size: 10pt;"> RE: [mapserver-users] RE: Documentation for serving
large raster images using tile cache.</span></p>
</div>
</div>
<div>
<p> </p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">No, TileCache didn't come with
that. I am trying to view any image right now to see an example of serving an
image into Mapserver. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I changed the path of the WMS
URL(<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Cdemo.map&mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&mode=map</a>)
and the error I am getting now is - </span>msLoadMap(): Premature End-of-File.</p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">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. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Could you please take a look at
it. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Sincerely,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Asif Memon</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]
</span></p>
<div>
<p><b><span style="font-size: 10pt;">Sent:</span></b><span style="font-size: 10pt;"> Tuesday, October 28, 2008 1:22 PM<br>
<b>To:</b> Asif Memon</span></p>
</div>
<div>
<div>
<p><b><span style="font-size: 10pt;">Subject:</span></b><span style="font-size: 10pt;"> Re: [mapserver-users] RE: Documentation for serving
large raster images using tile cache.</span></p>
</div>
</div>
</div>
<div>
<div>
<p> </p>
<p style="margin-bottom: 12pt;">Sorry I assumed that the index.html file was
the one that came with TileCache. Is that not correct?<br>
--</p>
<div>
<p>On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon <<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>> wrote:</p>
<div>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks for your reply.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">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: 11pt; color: rgb(31, 73, 125);">),
it appears the map file is not accessible. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
</div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Sincerely,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Asif Memon</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]
</span></p>
<div>
<p><b><span style="font-size: 10pt;">Sent:</span></b><span style="font-size: 10pt;"> Tuesday, October 28, 2008 12:53 PM<br>
<b>To:</b> Asif Memon</span></p>
</div>
<p><b><span style="font-size: 10pt;">Cc:</span></b><span style="font-size: 10pt;">
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></span></p>
<div>
<div>
<p><span style="font-size: 10pt;"><br>
<b>Subject:</b> Re: [mapserver-users] RE: Documentation for serving large
raster images using tile cache.</span></p>
</div>
</div>
</div>
<div>
<div>
<p> </p>
<p style="margin-bottom: 12pt;">Hi Asif,<br>
<br>
Are you able to view a map when you go to "<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map</a>"
? Also, can you send a copy of your mapfile, and of your tilecache.cfg
files?<br>
<br>
Roger<br>
--</p>
<div>
<p>On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon <<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>> wrote:</p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi Roger,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">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>)</p>
<p> </p>
<p>Do you know what could be it? </p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Sincerely,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Asif Memon</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> 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></p>
</div>
<p> </p>
<div>
<p style="margin-bottom: 12pt;">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
"mode=map" request, then you will have to decide how you wish to view
your data afterwards. 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>
--</p>
<div>
<p>On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh <<a href="mailto:gregor@hostgis.com" target="_blank">gregor@hostgis.com</a>>
wrote:</p>
<div>
<p>Asif Memon wrote:</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.</p>
<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 BS, A+, Network+, Security+,
Server+<br>
System Administrator, Lead Programmer<br>
HostGIS development & hosting services, <a href="http://www.HostGIS.com/" target="_blank">http://www.HostGIS.com/</a><br>
<br>
"Remember that no one cares if you can back up,<br>
only if you can restore." - 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></p>
</div>
<p> </p>
</div>
</div>
</div>
</div>
<p> </p>
</div>
</div>
</div>
</div>
</div>
<p> </p>
</div>
</div>
</div>
</div>
</div>
<p> </p>
</div></div></div>
</div>
</blockquote></div><br>