[Cartoweb-users] my mapfile...

Oliver Ishmael oliver_ishmael at hotmail.com
Tue Jan 31 11:34:27 EST 2006


hi List,

there seems to be some confusion, i dont have TEMPLATE specified in mapfile 
and i have no metatdata attributes for my UK layer.

is this the problem?

I include my mapfile for your info:

#
# Start of map file
#
MAP

#NAME DEMO
#STATUS ON
#SIZE 600 450
SYMBOLSET "etc/symbols.sym"
# European Extents
# this will require on-the-fly reprojection
# National Extents

# EXTENT 75000 50000 90000 1200000

# Regional Extents
EXTENT 402695.3 223949.11 655989 413919.39
#UNITS METERS

SHAPEPATH "data"
#SHAPEPATH "\\badc1\cadgis\gis\"
IMAGECOLOR 159 182 205
IMAGETYPE png

#FONTSET "/etc/fonts.txt"

REFERENCE
  IMAGE "reference/ref_map.png"
  EXTENT 402695.3 223949.11 655989 413919.39
  # IMAGE "images/keymap.png"
  # EXTENT -2200000 -712631 3072800 3840000
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
  SIZE 120 90
END

OUTPUTFORMAT
    NAME png
    DRIVER "GD/PNG"
    MIMETYPE "image/png"
    IMAGEMODE PC256
    EXTENSION "png"
    FORMATOPTION "INTERLACE=OFF"
END

#OUTPUTFORMAT
#    NAME GTiff
#    DRIVER "GDAL/GTiff"
#    MIMETYPE "image/tiff"
#    IMAGEMODE RGB
#    EXTENSION "tif"
#END


PROJECTION
   "init=epsg:27700"
END




# Start of LAYER DEFINITIONS ---------------------------------------------
# Whatever is going to be at the base of the map should be listed first 
(layers lower down lie on top)
#

# ------------------ ADMIN LAYERS 
-------------------------------------------

LAYER
  NAME "UK"
  #MAXSCALE     750000
  TYPE POLYGON
  STATUS OFF
  DATA "uk"
  CLASS
    NAME "uk"
    STYLE
      COLOR 154 205 50
      OUTLINECOLOR 0 0 0
    END
  END
END

#LAYER
#  NAME "50kindex"
#  STATUS ON
#  TILEINDEX "50kindex.dbf"
#  TILEITEM "LOCATION"
#  TYPE RASTER
#END

#LAYER
#  NAME "10kindex"
#  STATUS ON
#  TILEINDEX "/10kindex.shp"
#  TILEITEM "LOCATION"
#  TYPE RASTER
#END

LAYER
  NAME "countyboundaries"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "NAME"
  END
  TYPE POLYGON
  STATUS DEFAULT
  #DATA "Administrative Boundaries\countyboundaries"
  DATA "countyboundaries"
  CLASS
    NAME "countyboundaries"
    STYLE
      COLOR 105 139 34
      OUTLINECOLOR 0 0 0
    END
  END
END

LAYER
  NAME "LPA"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "NAME"
  END
  TYPE POLYGON
  STATUS ON
  DATA "local_planning_authorities"
  CLASS
    NAME "lpa"
    STYLE
      OUTLINECOLOR 0 0 0
    END
  END
END

LAYER
  NAME "NorfolkDistricts"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "NAME"
  END
  TYPE POLYGON
  STATUS DEFAULT
  DATA "Norfolk_district_2004"
  CLASS
    NAME "NorfolkDistricts"
    STYLE
      OUTLINECOLOR 0 0 0
      COLOR 124 205 124
    END
  END
END

LAYER
  NAME "WaveneyDistricts"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "NAME"
  END
  TYPE POLYGON
  STATUS DEFAULT
  DATA "Waveney_district_2004"
  CLASS
    NAME "WaveneyDistricts"
    STYLE
      OUTLINECOLOR 0 0 0
      COLOR 124 205 124
    END
  END
END

# Although listed here, the flood data will appear under the Sensitive Areas 
section of the legend (but they appear best if under all other layers)
LAYER
  NAME "Floodzone2"
  #MAXSCALE     750000
  METADATA
    "DESCRIPTION" "an_floodzone2_v2_9 - No unique_id specified in attribute 
table"
  END
  TYPE POLYGON
  STATUS ON
  DATA "an_floodzone2_v2_9"
  TRANSPARENCY 50
  CLASS
    NAME "Floodzone2"
    STYLE
      #OUTLINECOLOR 255 225 0
      COLOR   72 118 255
    END
  END
END

# Although listed here, the flood data will appear under the Sensitive Areas 
section of the legend (but they appear best if under all other layers)
LAYER
  NAME "Floodzone3"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "UNIQUE_ID"
  END
  TYPE POLYGON
  STATUS ON
  DATA "an_floodzone3_v2_9"
  TRANSPARENCY 50
  CLASS
    NAME "Floodzone3"
    STYLE
      #OUTLINECOLOR 255 225 0
      COLOR    58 95 205
    END
  END
END

LAYER
  NAME "babound"
  #MAXSCALE     750000
  TYPE LINE
  STATUS DEFAULT
  DATA "babound"
  TRANSPARENCY 25
  CLASS
    NAME "babound"
    STYLE
      COLOR 102 102 102
      SYMBOL 'point'
      SIZE 4
    END
    STYLE
      COLOR 255 0 0
      SYMBOL 'rectangle-train'
      SIZE 2
    END
  END
END

# --------------- SENSITIVE AREAS ------------------------------------

LAYER
  NAME "ConservationAreas"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "NEWFIELD1"
  END
  TYPE POLYGON
  STATUS ON
  DATA "conservation_areas"
  TRANSPARENCY 50
  CLASS
    NAME "conservation_areas"
    STYLE
      OUTLINECOLOR 255 225 0
      COLOR  0 0 0
    END
  END
END

LAYER
  NAME "SSSI"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|string"
    "query_returned_attributes" "SSSI_NAME"
    "hilight_createlayer" "true"
    "hilight_color" "255 255 0"
    "hilight_transparency" "50"
  END
  TYPE POLYGON
  STATUS ON
  DATA "sssi_broads.shp"
  TRANSPARENCY 50
  CLASS
    NAME "SSSI"
    STYLE
      COLOR 205 91 69
    END
  END # end class
END # end layer

LAYER
  NAME "ArchaeologicalSites"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "NAME"
  END
  TYPE POLYGON
  STATUS ON
  DATA "archaeological_sites_of_regional_importance"
  CLASS
    NAME "asori"
    STYLE
      OUTLINECOLOR 255 225 0
      COLOR  189 183 107
    END
  END
END

# ----------------------- PLANNING --------------------------------

LAYER
  NAME "PreApp"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "ID|integer"
    "query_returned_attributes" "ID Location"
  END
  TYPE POINT
  STATUS ON
  DATA "general_enquires"
  CLASS
    NAME "general_enquires"
    STYLE
      SYMBOL "point"
      SIZE 10
      COLOR   72 118 255
      OUTLINECOLOR 255 225 0
    END
  END
END

LAYER
  NAME "ListedBuildings"
  #MAXSCALE     750000
  METADATA
   "id_attribute_string" "FID|integer"
   "query_returned_attributes" "REF_NO LOCATION GRADE AT_RISK"
  END
  TYPE POINT
  STATUS ON
  DATA "listed_buildings"
  CLASS
    NAME "Listed_Buildings"
    STYLE
      SYMBOL "point"
      SIZE 10
      COLOR  255 215 0
      OUTLINECOLOR 205 92 92
    END
  END
END

LAYER
  NAME "BuildingsatRisk"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "REF_NO LOCATION GRADE"
  END
  TYPE POINT
  STATUS ON
  DATA "buildingsatrisk"
  CLASS
    NAME "buildingsatrisk"
    STYLE
      SYMBOL "point"
      SIZE 10
      COLOR  205 92 92
      OUTLINECOLOR 255 225 0
    END
  END
END

LAYER
  NAME "PotentialLDF"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "LDF_Sites Site_Locat"
  END
  TYPE POLYGON
  STATUS ON
  DATA "potential_ldf_sites"
  CLASS
    NAME "Potential LDF Sites"
    STYLE
      OUTLINECOLOR 255 225 0
      COLOR  255 240 245
    END
  END
END

LAYER
  NAME "SiteBoundaries"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "APP_NOS_"
  END
  TYPE POLYGON
  STATUS ON
  DATA "Site_Boundaries"
  CLASS
    NAME "Site_Boundaries"
    STYLE
      OUTLINECOLOR 255 225 0
      COLOR  138 43 226
    END
  END
END

LAYER
  NAME "Enforcement"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "REF_NOS|string"
    "query_returned_attributes" "REF_NOS BREACH Location"
  END
  TYPE POINT
  STATUS ON
  DATA "Enforcement"
  CLASS
    NAME "Enforcement"
    STYLE
      SYMBOL "point"
      SIZE 10
      COLOR  255 0 255
      OUTLINECOLOR 255 225 0
    END
  END
END

LAYER
  NAME "S52_Agreements"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "DETAILS"
  END
  TYPE POLYGON
  STATUS ON
  DATA "Section_52_Agreements"
  CLASS
    NAME "Section_52_Agreements"
    STYLE
      OUTLINECOLOR 255 225 0
      COLOR  255 0 255
    END
  END
END

LAYER
  NAME "Dev_Boundaries"
  #MAXSCALE     750000
  METADATA
    "id_attribute_string" "FID|integer"
    "query_returned_attributes" "NEWFIELD2"
  END
  TYPE POLYGON
  STATUS ON
  DATA "devboundaries"
  CLASS
    NAME "devboundaries"
    STYLE
      OUTLINECOLOR 255 225 0
      COLOR  176 48 96
    END
  END
END

# End of LAYER DEFINITIONS 
----------------------------------------------------------


# End of MAP FILE --------------------------------------------
END


Thanx again

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters



More information about the Cartoweb-users mailing list