[Mapserver-users] errors
ronny
mamwake at yahoo.com
Fri Oct 10 23:22:23 PDT 2003
my mapfile is as follows;
#
# Start of map file
#
NAME TEST
STATUS ON
SIZE 600 600
EXTENT 102684.4 36316.3 228468.2 37262.1 102684.4
9858201.4 228468.2 9865136.9
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255
WEB
HEADER test_header.html
TEMPLATE test.html
FOOTER test_footer.html
MINSCALE 1000
MAXSCALE 1550000
IMAGEPATH "set in test.html"
IMAGEURL "set in test.html"
METADATA
WMS_TITLE "scomMapserver"
WMS_ACCESSCONSTRAINTS none
WMS_ONLINERESOURCE
"http://var/www/html/mapsite/test.html"
WMS_SRS "EPSG:26915"
END
END
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
#
# Start of reference map
#
#REFERENCE
# IMAGE graphics/test.png
# EXTENT 102684.4 36316.3 228468.2 37262.1 102684.4
9858201.4 228468.2 9865136.9
# SIZE 50 50
# STATUS ON
# COLOR -1 -1 -1
# OUTLINECOLOR 255 0 0
#END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE tiny
END
STYLE 1
SIZE 80 2
COLOR 255 255 255
UNITS MILES
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
#
# Start of layer definitions
#
LAYER
NAME Province_region
TYPE RASTER
STATUS DEFAULT
DATA "province_region"
CLASSITEM 'cty_name'
CLASS
EXPRESSION 'Province'
OUTLINECOLOR 128 128 128
COLOR 225 225 185
END
CLASS #
EXPRESSION /./
OUTLINECOLOR 128 128 128
COLOR 255 255 255
END
END
LAYER
NAME Towns_point
GROUP cities
TYPE RASTER
DATA "Towns_point"
STATUS OFF
CLASSITEM 'city_name'
CLASS
NAME "Cities & Towns"
EXPRESSION NONE
COLOR 255 225 90
TEMPLATE "population.html"
END
HEADER "population_header.html"
FOOTER "population_footer.html"
DUMP TRUE # allow GML export
END
END
LAYER
NAME Places_point
TYPE POINT
DATA "Places_point"
STATUS OFF
CLASS
SYMBOL 'circle'
SIZE 2
NAME 'Townships'
OUTLINECOLOR 181 181 145
END
END
LAYER
NAME Lakes_region
TYPE RASTER
STATUS OFF
DATA "Lakes_region"
CLASS
NAME 'Lakes & Rivers'
TEMPLATE "lakes.html"
COLOR 49 117 185
END
HEADER "lakes_header.html"
FOOTER "lakes_footer.html"
TOLERANCE 3
DUMP TRUE # allow GML export
END
END
LAYER
NAME Rivers_polyline
TYPE LINE
STATUS OFF
DATA "Rivers_polyline"
CLASS
NAME "Streams"
TEMPLATE "description.html"
COLOR 49 117 185
END
HEADER "description_header.html"
FOOTER "description_footer.html"
TOLERANCE 5
DUMP TRUE # allow GML export
END
END
LAYER
NAME Roads_polyline
GROUP roads
MAXSCALE 300000
STATUS OFF
DATA "Roads_polyline"
TYPE LINE
CLASS
COLOR 0 0 0
END
END
LAYER
NAME Parks_region
GROUP roads
MAXSCALE 300000
STATUS OFF
DATA "Parks_region"
TYPE ANNOTATION
LABELITEM "Park_name"
CLASS
COLOR 255 255 255
LABEL
MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE SMALL
COLOR 0 0 0
END
END
LAYER
NAME Public Utils_point
GROUP Public Utils
MAXSCALE 600000
STATUS OFF
DATA "Public Utils_point"
TYPE POLYGON
CLASS
NAME "Public Utils"
COLOR 0 0 0
END
END
LAYER
NAME railway_polyline
GROUP railways
MAXSCALE 600000
STATUS OFF
DATA "railway_polyline"
TYPE ANNOTATION
LABELITEM "railway_num"
CLASSITEM "railway_class"
CLASS
EXPRESSION "3"
COLOR 0 0 0 # dummy color
LABEL
MINFEATURESIZE 50
MINDISTANCE 150
POSITION CC
SIZE TINY
COLOR 0 0 0
END
END
CLASS
EXPRESSION "2"
COLOR 0 0 0 # dummy color
LABEL
MINFEATURESIZE 50
MINDISTANCE 150
POSITION CC
SIZE TINY
COLOR 0 0 0
END
END
CLASS
EXPRESSION "1"
STYLE
COLOR 0 0 0 # dummy color
LABEL
MINFEATURESIZE 50
MINDISTANCE 150
POSITION CC
SIZE TINY
COLOR 255 255 255
END
END
LAYER
NAME Places_point
TYPE POINT
DATA "Places_point"
STATUS OFF
CLASS
NAME 'Places'
COLOR 128 255 164
SYMBOL 'circle'
SIZE 7
TEMPLATE "airports.html"
END
HEADER "airports_header.html"
FOOTER "airports_footer.html"
TOLERANCE 5
END
END
LAYER
NAME Towns
NAME cities
TYPE POINT
DATA "towns_point"
STATUS OFF
LABELITEM "city_name"
CLASSITEM "city_name"
LABELMAXSCALE 500000
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
COLOR 0 0 0
SHADOWCOLOR 218 218 218
SHADOWSIZE 2 2
TYPE BITMAP
SIZE MEDIUM
POSITION CC
PARTIALS FALSE
BUFFER 2
END
END
END # Map File
--- Steve Lime <steve.lime at dnr.state.mn.us> wrote:
> What's the top of the map file look like?
>
> >>> ronny <mamwake at yahoo.com> 10/10/2003 7:51:39 AM
> >>>
>
> am getting ,,
> msLoadMap(): Unknown identifier. (102684.4):(6)
>
> 102684.4 is my X extent
>
> redhat linux 8.0
> MS4.0
>
>
> =====
> ronny
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
>
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
>
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
=====
ronny
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
More information about the MapServer-users
mailing list