Setup mapserver iis
Hugo Girard
hgirard at CGQ.QC.CA
Thu Mar 23 07:25:42 PST 2006
hi all, i tied what you said but it failed, my command is now :
http://localhost/MSProjects/cgi-bin/mapserv.exe?map=C:\Documents%20and%20Settings\Administrateur\Bureau\randonneurs\map\main.map&mode=map
I can explain : I create a new web site in my IIS Manager : MSProjects
I create all the virtual directory correctly : cgi-bin, tmp, ms_tmp, chameleon
I add this line to my mapfile : CONGIG PROJ_LIB "c:\ms4w\proj\nad\"
I change the IMAGEPATH in my mapfile : IMAGEPATH "c:\ms4w\tmp\ms_tmp"
In short I followed this tutorial completely http://mapserver.gis.umn.edu/docs/howto/setupiis
If it can help, here my mapfile file :
MAP
NAME CarteSentier
IMAGETYPE PNG
SHAPEPATH "C:/Documents and Settings/Administrateur/Bureau/randonneurs/ShapeFile"
EXTENT 193557.937263 5317901.641953 379417.206051 5401384.000000
SIZE 600 450
IMAGECOLOR 255 255 255
CONGIG PROJ_LIB "c:\ms4w\proj\nad\"
SYMBOLSET "C:/Documents and Settings/Administrateur/Bureau/randonneurs/etc/symbols.sym"
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
END
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
FORMATOPTION "QUALITY=75"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END
WEB
TEMPLATE 'C:/Documents and Settings/Administrateur/Bureau/randonneurs/Templates/TempRandonneur.html'
IMAGEPATH "c:\ms4w\tmp\ms_tmp"
IMAGEURL 'http://localhost/mapservertmp/'
END
REFERENCE
STATUS ON
IMAGE "C:/Documents and Settings/Administrateur/Bureau/randonneurs/Images/KeyMap.png"
SIZE 150 113
EXTENT 193557.937263 5317901.641953 379417.206051 5401384.000000
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
LEGEND
STATUS ON
IMAGECOLOR 255 255 255
TRANSPARENT ON
POSITION LL
KEYSIZE 18 12
KEYSPACING 5 5
LABEL
TYPE BITMAP
SIZE MEDIUM
OFFSET 0 0
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE -1
COLOR 0 0 150
PARTIALS TRUE
FORCE FALSE
END
END
SCALEBAR
STATUS ON
COLOR 255 255 255
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 0 0 0
IMAGECOLOR 255 255 255
UNITS KILOMETERS
INTERVALS 5
SIZE 200 5
STYLE 0
POSITION LL
LABEL
TYPE BITMAP
SIZE SMALL
OFFSET 0 0
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE -1
COLOR 0 0 0
PARTIALS TRUE
FORCE FALSE
END
END
QUERYMAP
SIZE 200 150
STATUS ON
STYLE HILITE # SELECTED | NORMAL
COLOR 255 0 0
END
PROJECTION
"proj=tmerc"
"lat_0=0"
"lon_0=-70.5"
"k=0.999900"
"x_0=304800"
"y_0=0"
"ellps=GRS80"
"datum=NAD83"
"units=m"
"no_defs"
END
LAYER
NAME Hydro_poly
DATA hydrographie
STATUS ON
UNITS METERS
SIZEUNITs PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
TYPE POLYGON
METADATA
"DESCRIPTION" "Hydro du Saguenay"
END
CLASS
NAME "Hydrographie"
STYLE
SYMBOL 0
COLOR 91 214 249
END
END
END
LAYER
NAME Sentier_line
DATA Sentiers_mtm_nad83
STATUS ON
TYPE LINE
CLASS
NAME "Sentier"
STYLE
COLOR 255 0 0
END
END
END
LAYER
NAME "Routes"
STATUS ON
DATA Routes
TYPE LINE
LABELITEM "nomComplet"
LABELMAXSCALE 40000
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
NAME "Réseau routier"
STYLE
SYMBOL 0
COLOR 195 158 0
WIDTH 1
END
LABEL
TYPE BITMAP
SIZE MEDIUM
OFFSET 0 0
BUFFER 30
COLOR 0 0 0
PARTIALS TRUE
MINDISTANCE 20000
POSITION CC
ANGLE AUTO
END
END
END
LAYER
NAME "NomMunicipalite"
STATUS ON
DATA Nom_municipalite
TYPE POINT
LABELITEM "nom"
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
NAME "Municipalité"
SYMBOL 'circle'
SIZE 8
COLOR 0 0 0
MAXSCALE 1100000
MINSCALE 1
LABEL
TYPE BITMAP
SIZE MEDIUM
OFFSET -10 -10
BUFFER 0
COLOR 0 0 0
PARTIALS FALSE
MINDISTANCE 1
END
END
END
LAYER
NAME "SentiersLoc"
STATUS ON
DATA Sentiers_Localisation
TYPE POINT
LABELITEM "Nom_du_sen"
TOLERANCE 5
TOLERANCEUNITS PIXELS
CLASS
NAME "Identification des sentiers"
SYMBOL 'circle'
SIZE 10
COLOR 255 0 0
MAXSCALE 1100000
MINSCALE 100
TEMPLATE "C:/Documents and Settings/Administrateur/Bureau/randonneurs/Templates/InfoSentiers.html"
LABEL
TYPE BITMAP
SIZE MEDIUM
OFFSET -10 -10
BUFFER 0
COLOR 0 0 0
PARTIALS FALSE
MINDISTANCE 1
END
END
END
END
Thanks for the help !!!! I appreciate it !!!!!! ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060323/725406b0/attachment.htm>
More information about the MapServer-users
mailing list