tutorial example 1

Pericles S. Nacionales pnaciona at gis.umn.edu
Mon Oct 30 16:30:46 PST 2000


Try making your SHAPEPATH an absolute path and (or) switch the slashes.
Here's an example:  SHAPEPATH "e:\gisweb\library\hydrography\shapes"

Also try using
<img border="1"
src="/cgi-bin/mapserv?map=/webmap/tutorials/example1.map&mode=map"> instead
of <img border="1"
src="/cgi-bin/mapserv?map=/webmap/tutorials/example1.map&amp&;mode=map">

The tutorial might need some updating to work with the current version of
MapServer.  I'll update it as soon as I find time.

Good luck!
-Perry N.

----- Original Message -----
From: "Chad Nielsen" <cnielsen at co.tillamook.or.us>
To: "Mapserver Info" <mapserver-users at lists>
Sent: Monday, October 30, 2000 5:08 PM
Subject: tutorial example 1


> For some reason I am unable to implement the first tutorial example. I've
> set everything up just like in the example but for some reason the image
is
> not being displayed. I'm using the latest version of Mapserver on an NT
> Server. I've tried everything I could think of with the pathnames, quotes,
> different data, etc. Below is a copy of the mapfile and html tag I'm
using.
> If anyone could give me some feedback on it I would appreciated it very
> much.
>
> Many thanks,
> Chad Nielsen
>
> MAPSERVER EXAMPLE #1:
>
> root: e:\gisweb\ = http://gisweb.co.tillamook.or.us/
> cgi folder: e:\gisweb\cgi-bin\ = /cgi-bin/
> project folder: e:\gisweb\webmap\tutorials\ = /webmap/tutorials/
> data layer: e:\gisweb\library\hydrography\shapes\hydro.shp =
> /library/hydrography/shapes/hydro
>
> *** Here's my mapfile: ***
>
> # Mapserver Tutorial 1
>
> NAME EX1
> EXTENT 7283578.700 505176.159 7495434.300 804253.028
> SIZE 300 300
> SHAPEPATH "/library/hydrography/shapes"
>
> LAYER
>   NAME "Hydrography"
>   DATA  hydro
>   STATUS DEFAULT
>   TYPE LINE
>
>   CLASS
>     COLOR 250 175 25
>   END # end of class object
>
> END # end of layer object
>
> END # end of map file
>
> ***Here's the image tag used to display the map***
>
> <img border="1"
> src="/cgi-bin/mapserv?map=/webmap/tutorials/example1.map&amp&;mode=map">
>
>
>
>
> Chad M. Nielsen, GIS Programmer/Analyst
> Tillamook County Performance Partnership (TCPP)
> Tillamook Coastal Watershed Resource Center (TCWRC)
>
>   GIS:   http://gisweb.co.tillamook.or.us
>  TCPP:
http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm
> TCWRC:   http://www.tbcc.cc.or.us/~tcwrc/
>
>




More information about the MapServer-users mailing list