[Mapserver-users] 3.4 .map file convert 3.6.6
Mika Larronmaa
mika.larronmaa at gsf.fi
Mon Sep 15 23:14:38 PDT 2003
Hi,
Could somebody advise kindly, the map of version 3.4 , how the file is
changed so that it will operate in version 3.6.6.
#
# Start of map file
#
NAME GTK
##SIZE 1600 1200 #550 370
STATUS ON
SYMBOLSET symbols/symbols.sym
EXTENT 3077429.653 6655118.141 3720577.597 7760020.359 ##5056707.439
5540888.346 1857594.910 8814206.098
UNITS meters
SHAPEPATH "data"
IMAGECOLOR 0 0 0
#
# Start of web interface definition
#
WEB
HEADER queries/page_header.htm
FOOTER queries/page_footer.htm
MINSCALE 10
MAXSCALE 100000
IMAGEPATH "f:\inetpub\wwwroot\tmp_2\"
IMAGEURL "/tmp_2/"
END
QUERYMAP
SIZE 200 150
STATUS ON
STYLE HILITE
COLOR 255 255 0
END
#
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 1 1
SIZE small
END #LABEL
SIZE 150 5
COLOR 1 0 0
BACKGROUNDCOLOR 255 255 255
OUTLINECOLOR 1 0 0
UNITS kilometers
INTERVALS 4
STYLE 0
STATUS EMBED
POSITION ul
TRANSPARENT on
END #SCALEBAR
#
# Legend image
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
# imagecolor 222 247 181
COLOR 0 0 0
END
STATUS ON
END
#
# Layer definitions. Note first in list is drawn first so is bottom layer
#
# Notes: To be able to override layer on/off, layer status must be ON (not
DEFAULT)
LAYER
NAME kalliope
TYPE polygon
STATUS ON
DATA kalliope
HEADER "queries/kalliope_header.htm"
QUERY
#TEMPLATE "queries/kalliope.htm"
END
CLASSITEM 'code'
# Can't put all classes in because MapServer has class limit per layer, so
generalize
CLASS expression "1" COLOR 224 223 157 END
CLASS expression "2" COLOR 255 158 61 END
CLASS expression "3" COLOR 255 168 125 END
CLASS expression "4" COLOR 159 175 227 END
CLASS expression "5" COLOR 24 112 15 END
CLASS expression "6" COLOR 159 175 227 END
CLASS expression "7" COLOR 255 0 255 END
CLASS expression "8" COLOR 217 145 255 END
CLASS expression "9" COLOR 217 145 255 END
CLASS expression "10" COLOR 71 79 54 END
CLASS expression "11" COLOR 54 13 11 END
CLASS expression "12" COLOR 240 22 58 END
CLASS expression "13" COLOR 209 10 99 END
CLASS expression "14" COLOR 255 61 158 END
CLASS expression "15" COLOR 255 209 145 END
CLASS expression "16" COLOR 179 145 135 END
CLASS expression "17" COLOR 255 255 0 END
CLASS expression "18" COLOR 168 255 255 END
CLASS expression "19" COLOR 192 235 199 END
CLASS expression "20" COLOR 213 227 159 END
CLASS expression "21" COLOR 69 90 90 END
CLASS expression "22" COLOR 179 233 255 END
CLASS expression "23" COLOR 217 102 255 END
CLASS expression "24" COLOR 255 186 235 END
CLASS expression "25" COLOR 71 255 255 END
CLASS expression "26" COLOR 168 255 209 END
CLASS expression "27" COLOR 8 185 13 END
CLASS expression "28" COLOR 161 215 217 END
CLASS expression "29" COLOR 168 255 209 END
CLASS expression "30" COLOR 0 235 82 END
CLASS expression "31" COLOR 61 89 89 END
CLASS expression "32" COLOR 179 23 255 END
CLASS expression "33" COLOR 168 255 209 END
CLASS expression "34" COLOR 16 179 114 END
CLASS expression "35" COLOR 89 255 209 END
CLASS expression "36" COLOR 168 255 209 END
CLASS expression "37" COLOR 0 217 115 END
CLASS expression "38" COLOR 255 179 79 END
CLASS expression "39" COLOR 255 145 196 END
CLASS expression "40" COLOR 255 186 0 END
CLASS expression "41" COLOR 235 192 216 END
CLASS expression "42" COLOR 145 255 54 END
CLASS expression "43" COLOR 109 193 0 END
CLASS expression "44" COLOR 244 168 186 END
CLASS expression "45" COLOR 255 209 112 END
CLASS expression "46" COLOR 135 89 0 END
CLASS expression "47" COLOR 112 196 196 END
CLASS expression "48" COLOR 15 112 66 END
CLASS expression "49" COLOR 138 158 48 END
CLASS expression "50" COLOR 186 145 255 END
CLASS expression "51" COLOR 135 111 12 END
CLASS expression "52" COLOR 196 99 127 END
CLASS expression "53" COLOR 125 255 255 END
CLASS expression "54" COLOR 125 125 0 END
CLASS expression "55" COLOR 178 240 240 END
CLASS expression "56" COLOR 145 112 255 END
CLASS expression "57" COLOR 102 255 125 END
CLASS expression "58" COLOR 255 235 15 END
CLASS expression "59" COLOR 135 0 0 END
CLASS expression "60" COLOR 255 240 125 END
CLASS expression "61" COLOR 178 196 168 END
CLASS expression "62" COLOR 112 255 0 END
CLASS expression "63" COLOR 235 196 255 END
CLASS expression "64" COLOR 135 97 89 END
CLASS expression "65" COLOR 191 255 102 END
CLASS expression "66" COLOR 240 255 202 END
CLASS expression "67" COLOR 240 255 202 END
CLASS expression "68" COLOR 240 255 202 END
CLASS expression "69" COLOR 15 102 0 END
CLASS expression "70" COLOR 33 227 0 END
CLASS expression "71" COLOR 61 89 15 END
CLASS expression "72" COLOR 196 176 76 END
CLASS expression "73" COLOR 240 240 125 END
CLASS expression "74" COLOR 196 217 240 END
CLASS expression "75" COLOR 209 209 209 END
CLASS expression "76" COLOR 255 227 209 END
CLASS expression "77" COLOR 212 227 212 END
CLASS expression "78" COLOR 255 179 135 END
CLASS expression "79" COLOR 217 158 158 END
CLASS expression "80" COLOR 209 194 189 END
CLASS expression "81" COLOR 227 158 189 END
CLASS expression "82" COLOR 79 255 145 END
CLASS expression "83" COLOR 145 255 227 END
CLASS expression "84" COLOR 240 255 202 END
CLASS expression "85" COLOR 255 227 209 END
CLASS expression "86" COLOR 0 255 151 END
CLASS expression "87" COLOR 0 145 255 END
CLASS expression "88" COLOR 102 135 255 END
CLASS expression "89" COLOR 57 0 223 END
CLASS expression "90" COLOR 0 16 247 END
CLASS expression "91" COLOR 0 87 240 END
CLASS expression "92" COLOR 240 240 202 END
CLASS
name "Kalliopera"
EXPRESSION /./
COLOR 200 200 0
OUTLINECOLOR 1 1 1
END
END
LAYER
NAME tuuppia
TYPE polygon
STATUS ON
DATA tuuppia
HEADER "queries/tuuppia_header.htm"
QUERY
#TEMPLATE "queries/tuuppia.htm"
END
CLASSITEM 'Id'
# Can't put all classes in because MapServer has class limit per layer, so
generalize
CLASS expression "1" COLOR 198 99 74 END
CLASS expression "2" COLOR 0 0 255 END
CLASS expression "3" COLOR 255 214 0 END
CLASS expression "4" COLOR 189 181 107 END
CLASS expression "5" COLOR 255 214 0 END
CLASS
name "Glasiaaligeologiset tyyppialueet"
EXPRESSION /./
COLOR 254 100 10
OUTLINECOLOR 1 1 1
END
END
LAYER
NAME viuhkat
TYPE polygon
STATUS ON
DATA viuhkat
HEADER "queries/viuhkat_header.htm"
QUERY
#TEMPLATE "queries/viuhkat.htm"
END
CLASSITEM 'Id'
# Can't put all classes in because MapServer has class limit per layer, so
generalize
CLASS expression "0" COLOR 198 150 74 END
CLASS expression "1" COLOR 0 15 255 END
CLASS expression "2" COLOR 255 214 45 END
CLASS expression "3" COLOR 189 244 107 END
CLASS
name "Lohkareviuhkoja"
EXPRESSION /./
COLOR 254 100 10
OUTLINECOLOR 1 1 1
END
END
LAYER
NAME mustaliu
TYPE polygon
STATUS ON
DATA mustaliu
HEADER "queries/mustaliu_header.htm"
QUERY
#TEMPLATE "queries/mustaliu.htm"
END
CLASSITEM 'Status'
# Can't put all classes in because MapServer has class limit per layer, so
generalize
CLASS expression "Tulkittu" COLOR 0 0 255 END
CLASS expression "Tunnettu" COLOR 204 0 255 END
CLASS
name "Mustaliuskeet"
EXPRESSION /./
COLOR 200 200 0
OUTLINECOLOR 1 1 1
END
END
LAYER
NAME nuolet
TYPE polygon
STATUS ON
DATA nuolet
CLASSITEM 'id'
# Can't put all classes in because MapServer has class limit per layer, so
generalize
CLASS
name "Nuorin"
EXPRESSION /1/
COLOR 255 0 0
size 6
END
CLASS
name "Nuori"
EXPRESSION /2/
COLOR 0 255 0
size 6
END
CLASS
name "Vanha"
EXPRESSION /3/
COLOR 0 0 255
size 6
END
CLASS
name "Vanhin"
EXPRESSION /4/
COLOR 255 0 255
size 6
END
HEADER "queries/nuolet_n_header.htm"
QUERY
#TEMPLATE "queries/nuolet_n.htm"
END
END
LAYER
NAME ristikko
TYPE polygon
STATUS ON
DATA ristikko
CLASSITEM 'id'
# Can't put all classes in because MapServer has class limit per layer, so
generalize
CLASS
name "Lohkaretihentyma"
EXPRESSION /0/
COLOR 255 0 0
symbol 'cross'
size 7
END
HEADER "queries/ristikko_header.htm"
QUERY
#TEMPLATE "queries/ristikko.htm"
END
END
LAYER
NAME vedet
TYPE line
STATUS ON
DATA vedet
MAXSCALE 500000
MINSCALE 10000
CLASS
name "Vesistot *"
COLOR 0 0 255
END
HEADER "queries/vesi_header.htm"
QUERY
#TEMPLATE "queries/vesi.htm"
END
END
LAYER
NAME remuod
TYPE line
STATUS ON
DATA remuod
CLASS
name "Jaatikon reuna-asema"
COLOR 255 5 4
SIZE 5
END
HEADER "queries/remuod_header.htm"
QUERY
TEMPLATE "queries/remuod.htm"
END
END
LAYER
NAME harjut
TYPE polygon
STATUS ON
DATA harjut
CLASSITEM 'Id'
CLASS
name "Harjut"
COLOR 0 150 0
END
HEADER "queries/harjut_header.htm"
QUERY
TEMPLATE "queries/harjut.htm"
END
END
LAYER
NAME virtaus
TYPE line
STATUS ON
DATA virtaus
CLASSITEM 'Id'
CLASS
name "Mannerjaatikon virtaussuunnat"
COLOR 0 0 255
END
HEADER "queries/virtaus_header.htm"
QUERY
TEMPLATE "queries/virtaus.htm"
END
END
LAYER
NAME virtaus2
TYPE line
STATUS ON
DATA virtaus2
CLASSITEM 'Id'
CLASS
name "Jaatikon reunamuodostuma"
EXPRESSION /Ei tietoja/
COLOR 1 0 25
symbol 'line'
size 3
END
HEADER "queries/virtaus_2_header.htm"
QUERY
TEMPLATE "queries/virtaus_2.htm"
END
END
LAYER
NAME juonet
TYPE line
STATUS ON
DATA juonet
CLASSITEM 'Code'
CLASS
name "Diabaasia (~1 Ga) Laanilan juoni"
EXPRESSION /1/
COLOR 77 153 51
symbol 'line'
size 2
END
CLASS
name "Diabaasia (~1,12 Ga) Sallan juoni"
EXPRESSION /2/
COLOR 77 153 51
symbol 'line'
size 2
END
CLASS
name "Diabaasia (~1,27 Ga)"
EXPRESSION /3/
COLOR 77 153 51
symbol 'line'
size 2
END
CLASS
name "Diabaasia (~1,65 - 1,57 Ga)"
EXPRESSION /4/
COLOR 132 96 84
symbol 'line'
size 2
END
CLASS
name "Kvartsiporfyyria (~1,65 - 1,57 Ga)"
EXPRESSION /5/
COLOR 255 0 255
symbol 'line'
size 2
END
CLASS
name "Lamprofyyria (1,84 - 1,77 Ga)"
EXPRESSION /6/
COLOR 0 15 255
symbol 'line'
size 2
END
CLASS
name "Metadiabaasia (2.50 - 1,97 Ga)"
EXPRESSION /7/
COLOR 132 96 84
symbol 'line'
size 2
END
HEADER "queries/juonet_header.htm"
QUERY
TEMPLATE "queries/juonet.htm"
END
END
LAYER
NAME uurre
TYPE line
STATUS ON
DATA uurre
CLASSITEM 'ID'
CLASS
name "Nuori uurre"
EXPRESSION /0/
COLOR 100 153 51
symbol 'line'
size 2
END
CLASS
name "Vanha uurre"
EXPRESSION /1/
COLOR 255 153 51
symbol 'line'
size 2
END
HEADER "queries/uurre_header.htm"
QUERY
TEMPLATE "queries/uurre.htm"
END
END
LAYER
NAME rapautu
TYPE Point
STATUS on
DATA rapautu
CLASS
Name 'Moreeninalainen rapautuma...'
COLOR 0 255 255
OUTLINECOLOR 0 0 1
symbol 'circle'
SIZE 17
END
HEADER "queries/rapautuma_header.htm"
QUERY
TEMPLATE "queries/rapautuma.htm"
END
END
LAYER
NAME loppi_p
TYPE Point
STATUS on
DATA loppi_p
TOLERANCE 10
CLASS
Name 'Kairauspisteet'
COLOR 255 0 0
OUTLINECOLOR 0 0 1
symbol 'circle'
SIZE 17
END
HEADER "queries/loppi_header.htm"
QUERY
TEMPLATE "queries/loppi.htm"
END
END
LAYER
NAME rake
TYPE Point
STATUS off
DATA rake
TOLERANCE 10
CLASS
Name 'Litogeokemia pisteet'
COLOR 0 0 255
OUTLINECOLOR 0 0 1
symbol 'circle'
SIZE 12
END
HEADER "queries/rake_header.htm"
QUERY
TEMPLATE "queries/rake.htm"
END
END
LAYER
NAME kaivokse
TYPE point
STATUS ON
DATA kaivokse
CLASSITEM 'T'
TOLERANCE 10
CLASS
name "Metallikaivos"
EXPRESSION /1/
COLOR 1 1 255
OUTLINECOLOR 0 0 1
symbol 'star'
size 17
END
CLASS
name "Teollisuusmineraalikaivos"
EXPRESSION /2/
COLOR 2 255 1
OUTLINECOLOR 0 0 1
symbol 'triangle'
size 17
END
CLASS
name "Karbonaattikivikaivos"
EXPRESSION /3/
COLOR 255 255 1
OUTLINECOLOR 0 0 1
symbol 'square'
size 12
END
HEADER "queries/kaivokset_header.htm"
QUERY
TEMPLATE "queries/kaivokset.htm"
END
END
LAYER
NAME kerty
TYPE line
STATUS ON
DATA kerty
CLASSITEM 'ID'
CLASS
name "Pintalohkareiston kertymasektori"
EXPRESSION //
COLOR 255 1 255
symbol 'line'
size 2
END
HEADER "queries/kerty_header.htm"
QUERY
TEMPLATE "queries/kerty.htm"
END
END
LAYER
NAME saumamu
TYPE line
STATUS ON
DATA saumamu
CLASSITEM 'ID'
CLASS
name "Saumamuodostuma"
EXPRESSION /0/
COLOR 255 1 255
symbol 'line'
size 2
END
HEADER "queries/saumamu_header.htm"
QUERY
TEMPLATE "queries/saumamu.htm"
END
END
LAYER
NAME kertymal
TYPE polygon
STATUS ON
DATA kertymal
CLASSITEM 'id'
# Can't put all classes in because MapServer has class limit per layer, so
generalize
CLASS
name "Pintalohkareiston kertymaalue"
EXPRESSION /0/
COLOR 255 55 100
OUTLINECOLOR 2 0 1
symbol 'cross'
size 3
END
HEADER "queries/kertyma_al_header.htm"
QUERY
TEMPLATE "queries/kertyma_al.htm"
END
END
LAYER
NAME ruksit_
TYPE line
STATUS ON
DATA ruksit_
CLASSITEM 'id'
CLASS
name "Lohkare"
EXPRESSION /0/
COLOR 254 1 1
symbol 'line'
size 4
END
CLASS
name "Kulkeutunut lohkare"
EXPRESSION /1/
COLOR 254 1 1
symbol 'line'
size 4
END
HEADER "queries/ruksit_header.htm"
QUERY
TEMPLATE "queries/ruksit.htm"
END
END
END
END # Map File
-mika
More information about the MapServer-users
mailing list