Problem with map file serving WMS - tiff

Steven De Vriendt gisaalter at GMAIL.COM
Mon Apr 16 04:16:48 EDT 2007


Bart,

I've added the shapepath line to my map-file, still no luck...
When I do a GetCapabilities-request, I get the the following error:

msLoadMap(): Premature End-of-File.

Thanks for helping out !

Steven

On 4/16/07, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl> wrote:
> I've had the most luck with using absolute paths in tileindexes.
>
> How did you generate your tileindex? If you generate it from the root of
> your drive you should get absolute paths.
>
> So:
>
> cd \
> for /r %i in (*.tif) do gdaltindex mytileindex.shp %i
>
> Alternatively, you can try and set SHAPEPATH to
> /ms4w/apps/chameleon/samples/data/topo/
>
> Best regards,
> Bart
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
>
>
> --------- Oorspronkelijk bericht --------
> Van: Steven De Vriendt <gisaalter at gmail.com>
> Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl>
> Cc: MAPSERVER-USERS at lists.umn.edu
> Onderwerp: Re: [UMN_MAPSERVER-USERS] Problem with map file serving WMS -
> tiff
> Datum: 16/04/07 06:01
>
> > This is what's in the shpindex.dbf file
> >
> > location
> > t136z.tif
> > t136n.tif
> > t137z.tif
> > t137n.tif
> > ....
> >
> > It doesn't mention any relative or absolute paths, just the names of
> > my tif files...
> >
> > On 4/16/07, Bart van den Eijnden (OSGIS) &lt;bartvde at osgis.nl&gt; wrote:
> > &gt; What kind of values are in the location column of your tileindex dbf?
> Are
> > &gt; these relative or absolute paths?
> > &gt;
> > &gt; Best regards,
> > &gt; Bart
> > &gt;
> > &gt; --
> > &gt; Bart van den Eijnden
> > &gt; OSGIS, Open Source GIS
> > &gt; http://www.osgis.nl
> > &gt;
> > &gt;
> > &gt; --------- Oorspronkelijk bericht --------
> > &gt; Van: Steven De Vriendt &lt;gisaalter at GMAIL.COM&gt;
> > &gt; Naar: MAPSERVER-USERS at LISTS.UMN.EDU
> &lt;MAPSERVER-USERS at LISTS.UMN.EDU&gt;
> > &gt; Onderwerp: [UMN_MAPSERVER-USERS] Problem with map file serving WMS -
> tiff
> > &gt; Datum: 16/04/07 05:45
> > &gt;
> > &gt; &gt; Below is my map-file for serving a tiff file using mapserver
> > &gt; WMS-capabilities.
> > &gt; &gt; Yet, I'm unsuccesfull finding out why it doesn't work.
> > &gt; &gt; Can someone have a look at it and correct it where I've gone
> wrong ?
> > &gt; &gt; Thanks !
> > &gt; &gt;
> > &gt; &gt; MAP
> > &gt; &gt;   NAME TIFF_TEST
> > &gt; &gt;   STATUS ON
> > &gt; &gt;   SIZE 500 500
> > &gt; &gt;   SYMBOLSET ../etc/symbols.sym
> > &gt; &gt;   EXTENT 77336.359625 189988.500250 90937.297125 201812.968625
> > &gt; &gt;   UNITS METERS
> > &gt; &gt;   IMAGECOLOR 255 255 255
> > &gt; &gt;   FONTSET ../etc/fonts.txt
> > &gt; &gt;   TRANSPARENT FALSE
> > &gt; &gt;
> > &gt; &gt;   WEB
> > &gt; &gt;     IMAGEPATH
> &amp;quot;/ms4w/apps/chameleon/samples/data/topo&amp;quot;
> > &gt; &gt;     IMAGEURL &amp;quot;/ms_tmp/&amp;quot;
> > &gt; &gt;     METADATA
> > &gt; &gt;       &amp;quot;wms_abstract&amp;quot; &amp;quot;Demo for
> Geotiff&amp;quot;
> > &gt; &gt;       &amp;quot;wms_title&amp;quot; &amp;quot;WMS Demo
> Server&amp;quot;
> > &gt; &gt;       &amp;quot;wms_onlineresource&amp;quot;
> > &gt; &gt;
> > &gt;
> &amp;quot;http://0.0.0.0:8888/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver_tiff.map&amp;amp;&amp;quot;
> > &gt; &gt;       &amp;quot;wms_srs&amp;quot; &amp;quot;EPSG:31300&amp;quot;
> > &gt; &gt;
> > &gt; &gt;     END
> > &gt; &gt;   END
> > &gt; &gt;
> > &gt; &gt; OUTPUTFORMAT
> > &gt; &gt;     NAME GEOTIFF
> > &gt; &gt;     DRIVER &amp;quot;GDAL/GTiff&amp;quot;
> > &gt; &gt;     MIMETYPE &amp;quot;image/tiff&amp;quot;
> > &gt; &gt;     IMAGEMODE &amp;quot;PC256&amp;quot;
> > &gt; &gt;     EXTENSION &amp;quot;tif&amp;quot;
> > &gt; &gt; END
> > &gt; &gt;
> > &gt; &gt;
> > &gt; &gt; PROJECTION
> > &gt; &gt;     &amp;quot;init=epsg:31300&amp;quot;
> > &gt; &gt; END
> > &gt; &gt;
> > &gt; &gt;  LAYER
> > &gt; &gt;     NAME &amp;quot;hillshade_rough&amp;quot;
> > &gt; &gt;
> > &gt; &gt;        TILEINDEX
> > &gt;
> &amp;quot;/ms4w/apps/chameleon/samples/data/topo/shpindex.shp&amp;quot;
> > &gt; &gt;          TILEITEM &amp;quot;location&amp;quot;
> > &gt; &gt;       TYPE RASTER
> > &gt; &gt;       STATUS ON
> > &gt; &gt;       # display layer only in map scales of 100000 and smaller,
> means
> > &gt; &gt; scale values &amp;gt; 100000
> > &gt; &gt;       MINSCALE 100000
> > &gt; &gt;
> > &gt; &gt;       METADATA
> > &gt; &gt;                       &amp;quot;WMS_TITLE&amp;quot;
> &amp;quot;topokaarten&amp;quot;
> > &gt; &gt;                       &amp;quot;WMS_ABSTRACT&amp;quot;
> &amp;quot;agiv vlaanderen&amp;quot;
> > &gt; &gt;                       &amp;quot;WMS_SRS&amp;quot;
> &amp;quot;EPSG:31300&amp;quot;
> > &gt; &gt;       END
> > &gt; &gt;       PROJECTION
> > &gt; &gt;               &amp;quot;init=epsg:31300&amp;quot;
> > &gt; &gt;       END
> > &gt; &gt;
> > &gt; &gt; END
> > &gt; &gt;
> > &gt; &gt;
> > &gt;
> > &gt;
> > &gt;
> > &gt;
> >
> >
>
>
>
>



More information about the mapserver-users mailing list