Mapserver
krishna
kris_rock82 at YAHOO.COM
Sat Jan 7 13:02:19 PST 2006
Hi all, i am new to mapserver programming. I have installed ms4w on my
windows machine and wrote a small mapfile. I am not sure how to write a
php script to generate a map from a mapfile using mapserv. Could anyone
please help me out in generating a mapfile with some php script. The
following is my mapfile
-----------------------------------------------------
MAP
NAME "states"
SIZE 400 400
STATUS ON
EXTENT -120 26.5 -85 61.5
SHAPEPATH "C:\ms4w\Apache\htdocs\mapserverdata\data\"
WEB
TEMPLATE "C:\ms4w\Apache\htdocs\demo.html"
IMAGEPATH "C:\temp"
IMAGEURL "c:\temp"
END
QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 255 0
END
LAYER
NAME "states"
TYPE POLYGON
STATUS ON
DATA "C:\ms4w\Apache\htdocs\mapserverdata\data\states"
FILTERITEM state
FILTER "%name%" #passed form querystring
CLASS
STYLE
#TEMPLATE "..\template\template.html"
COLOR 110 50 100
OUTLINECOLOR 200 200 200
END
END
END
END
---------------------------------------------------------------
I wrote this mapfile with some help from internet.
Any help is highly appreciated .........
Bye
More information about the MapServer-users
mailing list