[mapserver-users] RE: Documentation for serving large raster images using tile cache.
Asif Memon
mmemon at sdsc.edu
Tue Oct 28 21:00:19 PDT 2008
Hi Roger,
It works, thanks a lot.
I want to create the image tiles for this image. I was looking at GDAL utilities for this. Do you know how to do that?
Sincerely,
Asif Memon
From: Roger André [mailto:randre at gmail.com]
Sent: Tuesday, October 28, 2008 8:11 PM
To: Asif Memon
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache.
Hi Asif,
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,
DATA "/var/www/mapfiles/itasca/demo.tif"
and also changed the EXTENT to this:
EXTENT -0.9194182 -4.2013292 -0.9002422 -4.1870152
This matches the extent of the file when you run gdalinfo against it (min_x min_y max_x Max_y).
With these changes, I'm able to view the file with the following URL:
http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&mode=map
(Note, I'm running this in Linux, so paths and URLs are going to be slightly different than yours)
Try changing your EXTENT entry to match mine, that might do the trick.
--
On Tue, Oct 28, 2008 at 3:45 PM, Asif Memon <mmemon at sdsc.edu> wrote:
Thanks Roger.
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).
The URL that I am using in the browser is http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map <http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Citasca_demo.map&mode=map>
Please correct me if anything is wrong in the URL or in the map file.
Sincerely,
Asif Memon
From: Roger André [mailto:randre at gmail.com]
Sent: Tuesday, October 28, 2008 3:17 PM
To: Asif Memon
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache.
Hi Asif,
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.
Roger
--
On Tue, Oct 28, 2008 at 2:06 PM, Asif Memon <mmemon at sdsc.edu> wrote:
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 - 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.
Any help is much appreciated?
Sincerely,
Asif Memon
From: Asif Memon
Sent: Tuesday, October 28, 2008 1:48 PM
To: 'Roger André'
Cc: 'mapserver-users at lists.osgeo.org'
Subject: RE: [mapserver-users] RE: Documentation for serving large raster images using tile cache.
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.
I changed the path of the WMS URL(http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&mode=map <http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Cdemo.map&mode=map> ) and the error I am getting now is - msLoadMap(): Premature End-of-File.
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.
Could you please take a look at it.
Sincerely,
Asif Memon
From: Roger André [mailto:randre at gmail.com]
Sent: Tuesday, October 28, 2008 1:22 PM
To: Asif Memon
Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache.
Sorry I assumed that the index.html file was the one that came with TileCache. Is that not correct?
--
On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon <mmemon at sdsc.edu> wrote:
Thanks for your reply.
Attached is the map file. I do not have the any tilecache.cfg file. From the error(msLoadMap(): Unable to access file. (/path/to/demo.map)), it appears the map file is not accessible.
Sincerely,
Asif Memon
From: Roger André [mailto:randre at gmail.com]
Sent: Tuesday, October 28, 2008 12:53 PM
To: Asif Memon
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache.
Hi Asif,
Are you able to view a map when you go to "http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" ? Also, can you send a copy of your mapfile, and of your tilecache.cfg files?
Roger
--
On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon <mmemon at sdsc.edu> wrote:
Hi Roger,
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 - msLoadMap(): Unable to access file. (http://localhost:9090/mapdemo/itasca.map)
Do you know what could be it?
Sincerely,
Asif Memon
From: Roger André [mailto:randre at gmail.com]
Sent: Monday, October 20, 2008 1:38 PM
To: Gregor Mosheh
Cc: Asif Memon; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache.
Hi Asif,
Best thing to do is take a look at these 2 docs first:
- http://mapserver.gis.umn.edu/docs/howto/raster_data
- http://tilecache.org/readme.html
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.
--
On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh <gregor at hostgis.com> wrote:
Asif Memon wrote:
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.
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.
But you may want to install OpenLayers and get it working with MapServer first, then hit up the OL and TC mailing lists.
--
Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/
"Remember that no one cares if you can back up,
only if you can restore." - AMANDA
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081028/04aa776a/attachment.htm>
More information about the MapServer-users
mailing list