[Mapserver-users] MS 3.5 Tutorial
Frieso ter Haseborg
ter-haseborg at sf-datentechnik.de
Mon Oct 13 00:07:09 PDT 2003
Hi,
the map-file is okay, has to be absolute path. The browser-path is okay
too, both version's are (with c:\ and without). You could also use a
relative path relative to your cgi-directory BUT NOT to your wwwroot. MS
looks from the current position of the mapserv.exe.
So if your mapserv.exe resides in
c:\inetpub\scripts\
and your mapfile is stored in
c:\inetpub\wwwroot\IRS\
you could also use
http://localhost/Scripts/mapserv.exe?map=..\wwwroot\IRS\IRS3.map&mode=ma
p
Perhaps there are more alternatives. But you can't use
http://localhost/Scripts/mapserv.exe?map=/IRS/IRS3.map&mode=map since MS
has no connection to your wwwroot.
And yes, IMO you are doing right! ;-)
HTH,
Frieso
>-----Original Message-----
>From: srinivas neelapala [mailto:neelapalas at yahoo.com]
>Sent: Friday, October 10, 2003 5:00 PM
>To: Frieso ter Haseborg
>Subject: RE: [Mapserver-users] MS 3.5 Tutorial
>
>
>Hi,
>
>In my map file i gave the full path for the shapepath:
>
>SHAPEPATH "C:\Inetpub\wwwroot\IRS\data"
>
>and in the browser i am using this:
>
>http://localhost/Scripts/mapserv.exe?map=\Inetpub\wwwroot\IRS\I
>RS3.map&mode=map
>(it works with the drive C: specified too)
>
>and ofcourse it works,,but i am not sure if thatz the
>right way to use and get the map in your browser. am i
>doing right ????
>
>Thanks for the help
>
>Srinivas
>
>
>
>
>--- Frieso ter Haseborg
><ter-haseborg at sf-datentechnik.de> wrote:
>> Hi,
>>
>> IMHO you _need_ to specify the full path to your map
>> on windows-systems!
>> This can be an absolute path or alternatively a
>> relative one starting
>> from the cgi-directory where your mapserv.exe
>> resides - "scripts" in
>> your case. MS doesn't take "wwwroot" as base-dir,
>> the base-dir of MS to
>> code path from is the cgi-directory.
>>
>> HTH,
>>
>> Frieso ter Haseborg
>> - Software Development -
>>
>> --
>>
>> --------------------------------------------------
>> S&F Datentechnik GmbH&Co.KG
>> Reimersstr. 41b
>> 26789 Leer, Germany
>>
>>
>>
>> >-----Original Message-----
>> >From: srinivas neelapala
>> [mailto:neelapalas at yahoo.com]
>> >Sent: Wednesday, October 08, 2003 10:37 PM
>> >To: mapserver-users at lists.gis.umn.edu
>> >Subject: [Mapserver-users] MS 3.5 Tutorial
>> >
>> >
>> >Hello,
>> >
>> >currently i am trying to work my way through 3.5
>> >turorials.
>> >
>> >i have created a map file and am trying to get the
>> map
>> >in my browser. it works when i give the full path
>> name
>> >in the browser:
>> >
>> >1)
>>
>>http://localhost/Scripts/mapserv.exe?map=C:\Inetpub\wwwroot\IRS
>> \IRS3.map&mode=map
>>
>> but doesn't when i try this:
>>
>> 2)
>>
>http://localhost/Scripts/mapserv.exe?map=/IRS/IRS3.map&mode=map
>>
>> IRS is the folder that i have created in the wwwroot
>> directory. i am using MS 3.6 & IIS
>>
>> as per the tutorials i think i needn't always
>> specify
>> the full path.
>>
>> Any help is appreciated
>>
>> Thanks
>>
>> Srini
>>
>>
>>
>>
>> __________________________________
>> Do you Yahoo!?
>> The New Yahoo! Shopping - with improved product
>> search
>> http://shopping.yahoo.com
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>>
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>>
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>>
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search
>http://shopping.yahoo.com
>
>
More information about the MapServer-users
mailing list