hi 
 
Here is how I reference paths in Mapserver under Windows:
 
  # this is the real filepath to the temp dir for intermediate file
creation
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
 
THis works for me.
 
Kind regards,
 
Robert Sanson

>>> Guillaume Sueur <[EMAIL PROTECTED]> 21/05/2008 4:46
a.m. >>>

if you can, yes, have a try to linux. But this should work on Windows
too.
it's been a long time since I haven't used MapServer on Windows, but I

remember having had problems with backslashes. Can you try doubling
them 
(ie C:\\ms4w\\Apache\\htdocs\\test.html)

Can you confirm it is still the exact same error (parsing error on line

1) ?

then, can you check your CR-LF as well ?

Hope that helps !

Guillaume

????? ?apad???? a écrit :
> Unfortunately the error insists.
> I have tried every advice you gave me but stiil nothing.
> All the modifications i did are:
> 1)Check the orientation of slashes and i actually tried every
possible 
> orientation.
> 2)Placed the MAP keyword in the first line of .map file.
> 3)Tried an older version of MapServer (although there is nothing 
> different according to the site...).
> 
> Perhaps i should try it on linux?
> Does it make any difference at all?
> 
> *test.map*
> 
> MAP
>     NAME "TEST!!!"
>     SIZE 400 300
>     IMAGECOLOR 249 245 186
>     IMAGETYPE png
>     EXTENT -1.00 -1.00 1.00 1.00
> 
>     WEB
>            TEMPLATE "C:\ms4w\Apache\htdocs\test.html"
>            IMAGEPATH "C:\ms4w\Apache\htdocs\tmp"
>            IMAGEURL "/tmp/"
>     END
> 
>     LAYER
>            STATUS default
>            TYPE point
>            FEATURE
>                    POINTS 0.0 0.0 END
>                    TEXT "Hello World"
>            END
>            CLASS
>                    STYLE
>                        COLOR 255 0 0
>                    END
>                    LABEL
>                        TYPE bitmap
>                    END
>            END
>        END
> END
> 
> 
> 
> 
> 
> 
> 
> 
> *test.html
> 
> *<html>
> <head><title>MapServer Hello World</title></head>
> 
> <body>
> 
> 
> <form method=POST action="/cgi-bin/mapserv.exe">
>   <input type="submit" value="Click">
>   <input type="hidden" name="MAP"
value="C:\ms4w\Apache\htdocs\test.map">
>   <input type="hidden" name="map_web" value="imagepath 
> C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/">
> </form>
> <IMG SRC="[img]" width=400 height=300 border=0>
> 
> 
> </body>
> </html>
> *
> *
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


------------------------------------------------------------------
The contents of this email are confidential to AsureQuality. If you have 
received this communication in error please notify the sender immediately and 
delete the message and any attachments. The opinions expressed in this email 
are not necessarily those of AsureQuality. This message has been scanned for 
known viruses before delivery. AsureQuality supports the Unsolicited Electronic 
Messages Act 2007. If you do not wish to receive similar communications in 
future, please notify the sender of this message.
------------------------------------------------------------------


This message has been scanned for malware by SurfControl plc. 
www.surfcontrol.com
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to