Mapserver

Jeff McKenna jmckenna at DMSOLUTIONS.CA
Sun Jan 8 05:45:29 PST 2006


Here is document that explains that exactly: http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample/

jeff


>  -------Original Message-------
>  From: krishna <kris_rock82 at YAHOO.COM>
>  Subject: [UMN_MAPSERVER-USERS] Mapserver
>  Sent: 07 Jan '06 16:02
>  
>  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



More information about the MapServer-users mailing list