[Mapserver-users] Problem with LINEITEM and CLASS NAME

Roger Truesdale ROGERT at gwm.sc.edu
Tue Jul 22 08:11:42 PDT 2003


I am running mapserv 3.6.6 with the following map that is listed below. 


Note the two lines marked by #-- in the TOWER layer.   One is for the
layer LINEITEM and the other for the class NAME.
When BOTH of these lines are commented out, a map of county boundries
appears with green circles for the tower locations.
This part works fine, but I want to use the TowerId field values  from
the dbf file as labels for the tower locations.  When I attempt to do
this by uncommenting only the LINEITEM line, I just get a blank screen
coming back with no error messages.  I checked that the LINEITEM value
TOWERID has the same case as in the dbf table. I also noticed that if I
leave the LINEITEM line commented out and uncomment the class NAME line,
then I also get a blank screen back.  Can anyone see what I am doing
wrong or what I may be missing?

Thanks.

-------------------------------------- MAP FILE
--------------------------


#
# Start of map file
#
NAME MAPSERV
STATUS ON
SIZE 600 600

FONTSET symbols/fonts/fonts.list


#SHADESET symbols/shade.sym
#MARKERSET symbols/marker.sym
#LINESET symbols/line.sym
SYMBOLSET symbols/symbols_ms34.sym

EXTENT 1292500.875 77778.96875 2746368.25 1233433.875
#EXTENT 1223954.55020386 62738.1920192846 2817302.34231788
1247690.0222657
UNITS FEET

SHAPEPATH "D:\Inetpub\wwwroot\test\ShapeData"

IMAGECOLOR 255 255 255


#
# Start of web interface definition
#
WEB
  HEADER "mapserv_header.html"
  TEMPLATE "mapserv.html"
  FOOTER "mapserv_footer.html"

  MINSCALE 1000		

  MAXSCALE 15500000
  IMAGEPATH "d:\inetpub\wwwroot\test\temp\"

  IMAGEURL "/test/temp/"

 
 # LOG "D:\Inetpub\test\mapserv.log"
 # LOG "mapserv.log"
END

QUERYMAP
  SIZE 75 75
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END

#
# Start of reference map
#
#REFERENCE
#  IMAGE Graphics/reference.gif
#  EXTENT 1223954.55020386 62738.1920192846 2817302.34231788
1247690.0222657
#  SIZE 50 50
#  COLOR -1 -1 -1
#  OUTLINECOLOR 255 0 0
#END

#
# Start of legend
#
LEGEND
  KEYSIZE 18 12
  LABEL
    TYPE BITMAP
    SIZE Small
    COLOR 5 10 100
  END
  STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 000 000 000
  LABEL
    COLOR 000 000 000
    SIZE Small   
  END
  STYLE 1
  SIZE 20 2
  COLOR 000 000 000
  UNITS FEET
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END


#
# Start of layer definitions
#

LAYER
  NAME COUNTY
  TYPE POLYGON
  DATA county
  STATUS DEFAULT

    CLASS 
       
       SYMBOL 3
       SIZE 4

       OUTLINECOLOR 128 128 128
       COLOR 255 255 128

       LABEL
         COLOR 0 0 0
         OUTLINECOLOR 255 255 255
         POSITION AUTO
         SIZE medium
         PARTIALS TRUE
         BUFFER 2
       END # LABEL OBJECT

    END # CLASS OBJECT

    HEADER "county_detail_header.html"
    FOOTER "county_detail_footer.html"

    QUERY
    TEMPLATE "county_detail.html"
    END

END # end of layer object


# Start of Tower Layer
LAYER
  NAME TOWER
  TYPE Point
  STATUS DEFAULT  
  DATA TOWER
  
#--  LABELITEM "TOWERID"
  CLASSITEM "SYMBOL"
    
   CLASS 	
      EXPRESSION /1/
#--      NAME "TOWERS"
      SYMBOL 13	
      SIZE 11	          # legend symbol size
      COLOR 000 128 000   # legend symbol color - green
    
     LABEL
      COLOR 0 0 0
      OUTLINECOLOR 255 255 255
      POSITION AUTO
      SIZE small
      PARTIALS TRUE
      BUFFER 2
     END

   END # CLASS

END #LAYER


END # End of Map File

Roger Truesdale
Interactive Site Architect
eBusiness Solutions (f.k.a. i2Media)
Contractual Services Group
Usc Computer Services
1244 Blossom Street, Columbia, SC 29208
Voice: (803) 777-7366  |  (803) 777-1900 (fax)
rogert at gwm.sc.edu  |  http://i2alliance.sc.edu




More information about the MapServer-users mailing list