Layer type not set
JayDub
justcallmejay at GMAIL.COM
Tue Oct 30 09:32:51 PDT 2007
I get that error when I run shp2img on my map file I get that error. I have
TYPE's for both my layers... so it's confusing.
Here's the map file.
# MapFile created with Gix Export Tool - Tue Oct 30 11:07:42 2007
# http://gix.sourceforge.net
# View Date : Tuesday, October 30, 2007 11:01:00 AM
#
MAP
NAME 'View1'
SIZE 550 400
EXTENT 776209.12862260 650266.98563681 777523.82598924 650705.21809236
UNITS meters
RESOLUTION 72
CONFIG PROJ_LIB 'C:/Proj/'
DATAPATTERN ''
TEMPLATEPATTERN ''
SHAPEPATH '/home/jay/web/shps/vcampus/'
SYMBOLSET '/home/jay/web/shps/vcampus/vcampus.sym'
FONTSET '/home/jay/web/shps/vcampus/vcampus.fnt'
STATUS on
IMAGECOLOR 255 255 255
IMAGETYPE png
STATUS on
DEBUG false
TRANSPARENT ON
WEB
MINSCALE 0
IMAGEPATH ''
IMAGEURL ''
LOG '/home/jay/web/shps/vcampus/vcampus.log'
METADATA
wms_extent "776162.79241854 649218.25528380
777627.68815657 651716.42081032"
wms_abstract "monagis-laptop ** Gix Generated
MapFile"
wms_encoding "ISO-8859-1"
wms_opaque "1"
wms_accesscontraints "none"
wms_addresstype "mailing address"
wms_address ""
wms_city ""
wms_stateorprovince ""
wms_postcode ""
wms_country ""
wms_contactelectronicmailaddress ""
wms_contactfacsimiletelephone ""
wms_contactperson ""
wms_contactorganization ""
wms_contactposition ""
wms_contactvoicetelephone ""
wms_feature_info_mime_type "NONE"
wms_fees "none"
# wms_group_title ""
wms_keywordlist "View1"
wms_title "View1"
wms_timeformat "YYYY-MM-DDTHH, YYYY-MM-DDTHH:MM,
YYYY-MM-DD HH:MM:SS"
wms_onlineresource
"http://monagis-laptop/cgi-bin/mapserv.exe?map=/home/jay/web/shps/vcampus/vcampus.map&"
wms_srs ""
END #METADATA
END #WEB
REFERENCE
IMAGE '/home/jay/web/shps/vcampus/vcampus.jpg'
EXTENT 776209.12862260 650266.98563681 777523.82598924 650705.21809236
STATUS on
COLOR -1 -1 -1
OUTLINECOLOR 255 255 0
SIZE 110 120
#MARKER
#MARKERSIZE
#MINBOXSIZE
#MAXBOXSIZE
END #REFERENCE
LEGEND
IMAGECOLOR 255 255 255
OUTLINECOLOR -1 -1 -1
KEYSIZE 18 12
KEYSPACING 2 2
POSTLABELCACHE true
POSITION ll
LABEL
ANTIALIAS true
BACKGROUNDCOLOR 255 255 255
BACKGROUNDSHADOWCOLOR -1 -1 -1
BACKGROUNDSHADOWSIZE 2 2
OUTLINECOLOR -1 -1 -1
COLOR 0 0 0
FONT 'Arial-Normal'
SIZE 10
TYPE truetype
END
STATUS on
END #LEGEND
SCALEBAR
BACKGROUNDCOLOR 255 255 255
COLOR 0 0 0
IMAGECOLOR 255 255 255
INTERVALS 4
LABEL
COLOR 0 0 0
SIZE tiny
TYPE bitmap
ANTIALIAS true
END
OUTLINECOLOR 0 0 0
POSITION lr
POSTLABELCACHE true
SIZE 200 4
STATUS on
STYLE 0
UNITS meters
END #SCALEBAR
QUERYMAP
STYLE hilite
STATUS on
COLOR 255 255 0
END #QUERYMAP
LAYER #Uwi_roads.shp
TRANSPARENCY 100
NAME 'Uwi_roads.shp'
METADATA
gix_layername "Uwi_roads.shp"
gix_layerfieldnames "ID"
gix_layerfieldalias "Id"
wms_abstract "monagis-laptop Uwi_roads.shp Gix Generated
MapFile"
wms_extent "776170.93451277 649218.25528380 777627.68815657
651716.42081032"
wms_keywordlist "Uwi_roads.shp, monagis-laptop, View1"
wms_opaque "0"
wms_srs "NONE"
wms_title "Uwi_roads.shp"
END #METADATA
TOLERANCE 3
TOLERANCEUNITS pixels
DATA '/home/jay/web/shps/vcampus/uwi_roads.shp'
HEADER 'header.html'
FOOTER 'footer.html'
LABELCACHE on
# TILEINDEX ''
# TILEITEM ''
STATUS on
DEBUG false
TRANSFORM true
TYPE line
CLASS
NAME 'Uwi_roads.shp'
TEMPLATE 'template.html'
#PEN
STYLE
SYMBOL 'Uwi_roads--0--0'
SIZE 1
COLOR 135 193 51
END #STYLE
END #CLASS
END #LAYER
LAYER #Uwi_faculties.shp
TRANSPARENCY 100
NAME 'Uwi_faculties.shp'
METADATA
gix_layername "Uwi_faculties.shp"
gix_layerfieldnames "NAME|HEIGHT|HGT_M|COMPLEX|BLDG_NAME"
gix_layerfieldalias "Name|Height|Hgt_m|Complex|Bldg_name"
wms_abstract "monagis-laptop Uwi_faculties.shp Gix Generated
MapFile"
wms_extent "776162.79241854 649423.95379948 777407.77098544
651614.06435945"
wms_keywordlist "Uwi_faculties.shp, monagis-laptop, View1"
wms_opaque "0"
wms_srs "NONE"
wms_title "Uwi_faculties.shp"
END #METADATA
TOLERANCE 3
TOLERANCEUNITS pixels
DATA '/home/jay/web/shps/vcampus/uwi_faculties.shp'
HEADER 'header.html'
FOOTER 'footer.html'
LABELCACHE on
# TILEINDEX ''
# TILEITEM ''
STATUS on
DEBUG false
TRANSFORM true
CLASS
NAME 'Uwi_faculties.shp'
TEMPLATE 'template.html'
#RASTERFILL_STYLE_SOLID
STYLE
COLOR 84 195 133
BACKGROUNDCOLOR 255 255 255
END #STYLE
#OUTLINE SYMBOL
STYLE
OUTLINECOLOR 0 0 0
SYMBOL 'Uwi_faculties--0--outline'
SIZE 1
END
END #CLASS
END #LAYER
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION png
TRANSPARENT on
END #OUTPUTFORMAT
END #MAP
--
View this message in context: http://www.nabble.com/Layer-type-not-set-tf4719416.html#a13491499
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list