Vés al contingut

Usuari:Ebrenc/prova

De la Viquipèdia, l'enciclopèdia lliure
  1. $Id: demo.map,v 1.1.1.1 2005/12/29 19:06:35 tkralidi Exp $
  1. Start of map file


MAP


# all temp files get prefixed with this string
NAME atles


# always returns a map
STATUS ON


# image format options
OUTPUTFORMAT
 NAME png
 DRIVER "GD/PNG"
 MIMETYPE "image/png"
 IMAGEMODE RGB
 EXTENSION "png"
 
END


# width / height of map image
SIZE 500 300


# projection of the INTERFACE that this mapfile supports
PROJECTION
 ##"init=epsg:4326"
"init=epsg:23031"
END


# minx miny maxx maxy
#EXTENT -2 37 8 43 # World

EXTENT 106999 4221600 779488 4755907


# units of map/app
UNITS Meters


# add def pointers for symbols


SYMBOLSET "/home/prosodia/atles/symbols/symbols.sym"

FONTSET   "/home/prosodia/atles/fonts/font.list"


#
# Start of web interface definition
#
WEB
 TEMPLATE "../../templates/demo.html"
 HEADER "../../templates/query_header.html"
 FOOTER "../../templates/query_footer.html"


 # this is set in the form which initializes the page, but can be set here if you want
 IMAGEPATH "/home/prosodia/atles/tmp"


 # this is set in the form which initializes the page, but can be set here if you want
 IMAGEURL "/home/prosodia/atles/tmp"
END


#
# Start of reference map
#
#
# Start of legend
#
LEGEND
 KEYSIZE 16 10
 LABEL
  TYPE TRUETYPE
  
  FONT arial
  SIZE 7
  COLOR 0 0 0
 END
 TEMPLATE "/ms4w/apps/ms_ogc_workshop/client/wms/llegenda.htm"
 STATUS ON
END


#
# Start of scalebar
#
SCALEBAR
 IMAGECOLOR 255 0 0
 LABEL
  COLOR 0 0 0
  SIZE tiny    
 END
 STYLE 1
 SIZE 80 2
 COLOR 0 0 0
 UNITS KILOMETERS
 INTERVALS 1
 TRANSPARENT FALSE
 STATUS TRUE
END


# start of querymap object
QUERYMAP
 SIZE 200 200
 STATUS ON
 STYLE HILITE
 COLOR 255 0 0
END


# start of layer definitions
  1. declarem el layer de les comarques

LAYER

 # name of layer
 NAME comar
 GROUP "VECTOR"
 
 
 PROJECTION
  "init=epsg:23031"
 END
 # what type of data is this?
 TYPE LINE
 TRANSPARENCY ALPHA
 # always returned with interface
 STATUS ON
 # actual data pointer
 DATA shapes/comarques_contorn
 # data is queryable
 DUMP TRUE
 TOLERANCE 5
 # how will this data look?
 CLASS
  NAME "Comar"
  STYLE
  	COLOR 0 0 0
  	size 1.6
  	width 1.6
  end
 END
END



  1. Declarem el layer dels dialectes del català
LAYER
NAME "dialectes"
DATA shapes/DIALECTES_Cat7e
STATUS on
TYPE Polygon
TRANSPARENCY ALPHA
LABELMAXSCALE 5050000
LABELMINSCALE 300000
TOLERANCE 7
TOLERANCEUNITS pixels


PROJECTION

  "init=epsg:23031"

END



CLASSITEM "dialecte"
 LABELITEM "Dialecte"
 CLASS
 
 NAME "central catalan"
 EXPRESSION ("[dialecte]" = "central catalan")
 STYLE
  COLOR 201 245 142
  
 END #STYLE
   LABEL
        COLOR 3 69 194
        TYPE TRUETYPE
        FONT arialbd
        size 11
        ANTIALIAS TRUE
        POSITION CC
 END #end label
END #CLASS


 CLASS
 NAME "northern catalan"
 EXPRESSION ("[dialecte]" = "northern catalan")

 STYLE
  COLOR 211 255 190
  
 END #STYLE
     LABEL
        COLOR 3 69 194
        TYPE TRUETYPE
        FONT arialbd
        size 11
        ANTIALIAS TRUE
        POSITION uc
 END #end label
END #CLASS

CLASS
 NAME "balearic catalan"
 EXPRESSION ("[dialecte]" = "balearic catalan")

 STYLE
  COLOR 201 232 168
  
 END #STYLE
     LABEL
        COLOR 3 69 194
        TYPE TRUETYPE
        FONT arialbd
        size 11
        ANTIALIAS TRUE
        POSITION auto
 END #end label
END #CLASS

  CLASS
 NAME "alguer catalan"
 EXPRESSION ("[dialecte]" = "alguer catalan")
 STYLE
  COLOR 201 232 158
  
 END #STYLE
     LABEL
        COLOR 3 69 194
        TYPE TRUETYPE
        FONT arialbd
        size 10
        ANTIALIAS TRUE
        POSITION AUTO
 END #end label
END #CLASS


CLASS
 NAME "northwestern catalan"
 EXPRESSION ("[dialecte]" = "northwestern catalan")

 STYLE
  COLOR 255 167 127
  
 END #STYLE
  LABEL
        COLOR 3 69 194
        TYPE TRUETYPE
        FONT arialbd
        size 11
        ANTIALIAS TRUE
        POSITION uc
        OFFSET -10 -40
 END #end label
END #CLASS


CLASS
 NAME "valencian"
 EXPRESSION ("[dialecte]" = "valencian")

 STYLE
  #COLOR 232 186 133
  COLOR 240 194 158
  #COLOR 255 210 180
  
 END #STYLE
     LABEL
        COLOR 3 69 194
        TYPE TRUETYPE
        FONT arialbd
        size 11
        ANTIALIAS TRUE
        POSITION CC
        OFFSET -10 -25
       # PRIORITY 5
      END #end label
END #CLASS
  1. CLASS
  2. NAME "tortosí"
  3. EXPRESSION ("[dialecte]" = "tortosí")
  4. STYLE
  5. COLOR 240 194 158
  1. END #STYLE
  1. END #CLASS


CLASS
 NAME "apitxat"
 EXPRESSION ("[dialecte]" = "apitxat")

 STYLE
  COLOR 255 212 102
  
 END #STYLE
END #CLASS

#CLASS
  1. NAME "transició tortosí - central"
# EXPRESSION ("[dialecte]" = "zona de transició tortosí-català central")

  1. STYLE
  2. COLOR 255 210 180
  1. END #STYLE
  2. END #CLASS
CLASS
 NAME "transition catalan - aragones"
 EXPRESSION ("[dialecte]" = "zona de transició català - aragonès")

 STYLE
  COLOR 255 219 224
  
 END #STYLE
END #CLASS

CLASS
 NAME "transition central - northwestern"
 EXPRESSION ("[dialecte]" = "zona de transició català central - català occidental")

 STYLE
  COLOR 255 234 190
  
 END #STYLE
END #CLASS

CLASS
 NAME "transition central - northern"
 EXPRESSION ("[dialecte]" = "zona de transició català central - rossellonès")

 STYLE
  COLOR 233 255 190
  
 END #STYLE
END #CLASS


END #LAYER

  1. declarem el layer dels MUNICIPIS
LAYER
 # name of layer
 NAME municipis
 GROUP "VECTOR"
 
 PROJECTION
  "init=epsg:23031"
 END
 # what type of data is this?
 TYPE POLYGON
 # always returned with interface
 MAXSCALE 750000
 LABELMAXSCALE 250000
 STATUS ON
 # actual data pointer
 DATA shapes/PPCCmunis
 # data is queryable
 DUMP TRUE
 TOLERANCE 5
 LABELITEM "Nom_muni"
 # how will this data look?
 CLASS
  NAME "municipis"
  STYLE
  	COLOR 255 255 255
  	outlinecolor 130 130 130
  END
  LABEL
        COLOR 0 0 0
        TYPE TRUETYPE
        FONT arialbd
        size 8
        ANTIALIAS TRUE
        POSITION cc
  END #end label
 END
END
 
  1. declarem el layer del mar
LAYER
 # name of layer
 NAME mar
 GROUP "VECTOR"
 
 PROJECTION
  "init=epsg:23031"
 END
 # what type of data is this?
 TYPE POLYGON

 # always returned with interface
 STATUS ON
 # actual data pointer
 DATA shapes/mar_pol
 # data is queryable
 DUMP TRUE
 TOLERANCE 5
   # how will this data look?
 CLASS
  NAME "mar"
  STYLE
  	COLOR 202 238	252
  	
  	outlinecolor 115 223 255
  END
 END
END
###############################################################################
#declarem el layer de les enquestes
LAYER
NAME 'Enquestes'
DATA 'shapes/enquestes'
STATUS on
TYPE Point
TOLERANCE 7
TOLERANCEUNITS pixels

PROJECTION
 'init=epsg:23031'
END

LABELITEM 'Nom_muni'
CLASSITEM 'simbol'

CLASS
 NAME 'Enquestes3'
 EXPRESSION ('[simbol]' = '3' and '[fet]' = '1')
 STYLE
 END
  LABEL
        COLOR 0 0 0
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position cl

        OFFSET 2 0

MINDISTANCE 10000

  END #end label 
END #CLASS
CLASS
 NAME 'Enquestes1'

STYLE

 END
 EXPRESSION ('[simbol]' = '1' and '[fet]' = '1')
  LABEL
        COLOR 0 0 0
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position cr ##retocat

         OFFSET 4 0  

MINDISTANCE 10000

  END #end label 
END #CLASS
CLASS
 NAME 'Enquestes2'
 EXPRESSION ('[simbol]' = '2' and '[fet]' = '1') 

STYLE

 END
  LABEL
        COLOR 0 0 0
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position lc

        OFFSET 2 5

MINDISTANCE 10000

  END #end label 
END #CLASS

CLASS

 NAME 'Enquestes4'
 EXPRESSION ('[simbol]' = '3' and '[fet]' = '0')
 STYLE
 END
  LABEL
        COLOR 90 90 90
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position cl

        OFFSET 2 0

MINDISTANCE 10000

  END #end label 
END #CLASS
CLASS
 NAME 'Enquestes5'

STYLE

 END
 EXPRESSION ('[simbol]' = '1' and '[fet]' = '0')
  LABEL
        COLOR 90 90 90
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position cr ##retocat

         OFFSET 4 0  

MINDISTANCE 10000

  END #end label 
END #CLASS
CLASS
 NAME 'Enquestes6'
 EXPRESSION ('[simbol]' = '2' and '[fet]' = '0') 

STYLE

 END
  LABEL
        COLOR 90 90 90
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position lc

        OFFSET 2 5

MINDISTANCE 10000

  END #end label 
END #CLASS

END #LAYER

##############################################################################

LAYER

NAME 'Enquestes2'
DATA 'shapes/enquestes'
STATUS on
TYPE Point

PROJECTION
 'init=epsg:23031'
END
 




LABELITEM 'Nom_muni'
CLASSITEM 'simbol'

CLASS
 NAME 'Enquestes3'
 EXPRESSION ('[simbol]' = '3')
 STYLE
 END
  LABEL
        COLOR 0 0 0
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position cr

        OFFSET 2 0

MINDISTANCE 10000


  END #end label 
END #CLASS
CLASS
 NAME 'Enquestes1'

STYLE

 END
 EXPRESSION ('[simbol]' = '1')
  LABEL
        COLOR 0 0 0
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position cr

        OFFSET 2 0

MINDISTANCE 10000


  END #end label 
END #CLASS
CLASS
 NAME 'Enquestes2'
 EXPRESSION ('[simbol]' = '2')

STYLE

 END
  LABEL
        COLOR 0 0 0
        TYPE TRUETYPE
        FONT arial
        size 7

force true

        ANTIALIAS false

position cr

        OFFSET 2 0

MINDISTANCE 10000

  END #end label 
END #CLASS

END #LAYER


END#final del mapfile