CONVERT MAPFILE FROM MAPSERV 3.7 to MAPSERV 4.4.1 (BINAR
Fabio D' Ovidio
fabio.dovidio at PLANETEK.IT
Fri Feb 3 01:51:33 PST 2006
Hi list,
Does anyone tell me how to convert the following map file written for mapserver 3.7 into map
file for mapserver 4.4.1 ? I'm working on windows machine (2000) and I've installed binaries.
MAP
NAME "Cai_Castrovillari"
STATUS ON
EXTENT 2566408.89 4383059.62 2669032.82 4456686.05
SIZE 600 420
SHAPEPATH "data"
SYMBOLSET "c:/Inetpub/wwwroot/maplab-2.0rc5/tutorial/etc/symbols.sym"
FONTSET "c:/Inetpub/wwwroot/maplab-2.0rc5/tutorial/etc/fonts.txt"
IMAGECOLOR 255 255 255
IMAGETYPE PNG
WEB
# path relative to the webserver document root
#MINSCALE 1000
#MAXSCALE 1550000
IMAGEPATH "C:/Siti_Web/CAI_Castrovillari/carto/tmp/"
# full path to image tmp dir, so cgi can find it
# Note: Windows is much happier with a full path here. Unixes might get away with path
relative to cgi-bin.
# Use backslash "\" with Windows, forward-slash "/" with Unixes, and end the path with
the proper slash.
IMAGEURL "./tmp/"
TEMPLATE "printable.html"
EMPTY "/carto/info.html"
METADATA
"wms_title" "CAI-Castrovillari"
"wms_onlineresource" "http://caicastrovillari.planetek.it/cgi-bin/aree_prod?"
"wms_srs" "EPSG:4269 EPSG:4326"
END
# url location of image tmp dir, so web browser can find it
# Don't forget a trailing "/" here, too
END
REFERENCE
STATUS ON
IMAGE "graphics/clearmap.gif"
SIZE 150 128
EXTENT 2566408.89 4383059.62 2669032.82 4456686.05
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
QUERYMAP
STATUS off
COLOR 255 255 0
STYLE SELECTED
END
# Web Interface Options
PROJECTION
"proj=latlong"
"lat_1=32"
"lat_2=44"
"lat_0=38"
"lon_0=-100"
"x_0=0"
"y_0=0"
"ellps=GRS80"
"datum=NAD83"
END
# LEGEND object
LEGEND
STATUS ON
KEYSIZE 18 12
TEMPLATE "legend.html"
# LABEL object
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
# Scalebar
SCALEBAR
STATUS EMBED
COLOR 66 136 200
OUTLINECOLOR 66 136 99
BACKGROUNDCOLOR 255 255 255
IMAGECOLOR 255 255 255
TRANSPARENT ON
UNITS KILOMETERS
INTERVALS 5
SIZE 200 5
STYLE 0
POSITION LL
LABEL
SIZE medium
COLOR 0 0 0
OUTLINECOLOR 255 255 255
END
END SYMBOL
NAME "rettangolo"
TYPE VECTOR
FILLED FALSE
POINTS
0 0 0 0.6 1 0.6 1 0 0 0
END
END
SYMBOL
NAME "linea-punto"
TYPE ELLIPSE
FILLED TRUE
POINTS
1 1
END
STYLE
10
5
1
5
END
END
SYMBOL
NAME "border2"
TYPE ELLIPSE
POINTS
1 1
END
STYLE
10
5
10
5
END
END
LAYER
NAME "DEM"
STATUS ON
DATA "DEM.ecw"
TYPE RASTER
TEMPLATE "ttt.html"
METADATA
"wms_title" "DEM Parco Nazionale del Pollino"
END
END
LAYER
NAME "U_CS_635"
STATUS ON
DATA "sentiero 4.shp"
TYPE LINE
TEMPLATE "ttt.html"
METADATA
"wms_title" "U CS 635"
END
CLASS
NAME "sentiero 4.shp"
SYMBOL "border2"
COLOR 255 0 0
SIZE 2
TEXT "U CS 635"
END
END
etc etc.....
More information about the MapServer-users
mailing list