[Mapserver-users] Map Layers do not appear

Nick Sanders johnicksanders at yahoo.ca
Fri Feb 27 06:26:49 PST 2004


--0-49023369-1077892009=:68935
Content-Type: multipart/alternative; boundary="0-1869863841-1077892009=:68935"

--0-1869863841-1077892009=:68935
Content-Type: text/plain; charset=us-ascii

I'm having trouble getting all of my layer to write.  I've included my map file, can anyone help? Note - the paths and field names are all good.
 
All of the files work until the last one, what am I doing wrong?
 
Thanks
Nick




---------------------------------
Post your free ad now! Yahoo! Canada Personals

--0-1869863841-1077892009=:68935
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>I'm having trouble getting all of my layer to write.  I've included my map file, can anyone help? Note - the paths and field names are all good.</DIV>
<DIV> </DIV>
<DIV>All of the files work until the last one, what am I doing wrong?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Nick</DIV></DIV><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>
--0-1869863841-1077892009=:68935--
--0-49023369-1077892009=:68935
Content-Type: text/plain; name="hg.map"
Content-Description: hg.map
Content-Disposition: inline; filename="hg.map"

MAP
  #
  # Start of map file
  #
  # Sample map file for a chameleon app.
  #
  NAME "Mercury Hotspots and Emissions"
  STATUS ON
  EXTENT -5885222.22222 -3406000 3692000 4649031
  SIZE 500 450 
  SHAPEPATH "/ms4w/apps/Myapp/data"
  SYMBOLSET "../etc/symbols.sym"
  FONTSET "../etc/fonts.txt"
  IMAGECOLOR 240 250 250
  UNITS METERS
  #
  # Start of web interface definition
  #
  WEB
    MINSCALE 2000000
    MAXSCALE 40000000
    #
    # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root 
    # of the drive where the .MAP file resides.
    #
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    #  LOG "/tmp/gmap.log"
    METADATA
    END
  END
  QUERYMAP
    COLOR 255 0 0
    STYLE HILITE
  END
  PROJECTION
    "init=epsg:42304" 
  END
  #
  # Start of reference map
  
  REFERENCE
     IMAGE images/keymap.gif
     EXTENT -2594561 -712631 3467361 3840000
     STATUS ON
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
    SIZE 120 90      
  END
  
  
  # Start of legend
  #
  LEGEND
    STATUS ON
    KEYSIZE 18 12 
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89
    END
  END
  #
  # Start of scalebar
  #
  SCALEBAR
    STATUS ON
    COLOR 255 255 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 0 0 0
    IMAGECOLOR 255 255 255
    UNITS kilometers
    INTERVALS 5
    SIZE 150 5 
    LABEL
      SIZE SMALL
      COLOR 0 0 0
    END
  END
  #
  # Start of layer definitions
  #
  #Background layer

#    LAYER
#      DATA "NorthHemisphere"
#      NAME "Land Area"
#      SIZEUNITS PIXELS
#      STATUS ON
#      TOLERANCE 0
#      TOLERANCEUNITS PIXELS
#      TYPE POLYGON
#      UNITS METERS
#      CLASS
#        NAME "Land Area"
#        STYLE
#            COLOR 234 234 234
#          MAXSIZE 100
#          MINSIZE 1
#          SIZE 1
#          SYMBOL 4
#        END
#      END
#    END

  LAYER
      DATA "base/SpeciesBase"
      NAME "Political Boundaries"
      STATUS ON
      TYPE POLYGON
      UNITS METERS
      CLASS
        NAME "Land Area"
        STYLE
          COLOR 240 245 240
          OUTLINECOLOR 150 150 150
          MAXSIZE 100
          MINSIZE 1
          SIZE 1
          SYMBOL 2
        END  
      END
    END

  LAYER
    NAME "Roads"
    DATA "base/roads"
    STATUS ON
    TYPE LINE
    UNITS METERS
    CLASS
      NAME "Roads"
      EXPRESSION ('[TYPE]' eq 'Major Highway' OR '[TYPE]' eq 'Secondary Highway')
      COLOR 170 0 0 
      MAXSIZE 10
      MINSIZE 1
      SIZE 1
      SYMBOL 2
      TEMPLATE "ttt_query.html"
    END    
  END

  LAYER
    NAME "Rails"
    DATA "base/rail"
    STATUS ON
    TYPE LINE
    UNITS METERS
    CLASS
      NAME "Railroads"
      COLOR 100 100 100 
      MAXSIZE 10
      MINSIZE 1
      SIZE 1
      SYMBOL 2
      TEMPLATE "ttt_query.html"
    END    
  END

  #US Hg layer from EPA, see Paul Miller for more info  
  LAYER
    NAME "US Hg Emissions (kg)"
    STATUS ON
    DATA "mercury/UShgEmis"
    TYPE POINT
    CLASSITEM "HGTOTALG"
      CLASS
        NAME "> 20"
        EXPRESSION ([HGTOTALG] > 1 AND [HGTOTALG] < 20000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 4
        COLOR 230 0 0
      END
      CLASS
        NAME "21-50"
        EXPRESSION ([HGTOTALG] > 20001 AND [HGTOTALG] < 50000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 6
        COLOR 230 0 0
      END
      CLASS
        NAME "51-100"
        EXPRESSION ([HGTOTALG] > 50001 AND [HGTOTALG] < 100000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 8
        COLOR 230 0 0
      END
      CLASS
        NAME "101-200"
        EXPRESSION ([HGTOTALG] > 100001 AND [HGTOTALG] < 200000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 10
        COLOR 230 0 0
      END
      CLASS
        NAME "201-400"
        EXPRESSION ([HGTOTALG] > 200001 AND [HGTOTALG] < 400000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 12
        COLOR 230 0 0 
      END
      CLASS
        NAME "401-500"
        EXPRESSION ([HGTOTALG] > 400001 AND [HGTOTALG] < 500000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 14
        COLOR 230 0 0
      END
  END

  LAYER
    NAME "Canada Hg Emissions (kg)"
    STATUS ON
    DATA "mercury/CanHgEmis"
    TYPE POINT
    CLASSITEM "2000_NPRI_"
    CLASS
        NAME "0"
        EXPRESSION ([2000_NPRI_] = 0)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 1
        COLOR 255 255 255
    END
    CLASS
        NAME "> 20"
        EXPRESSION ([2000_NPRI_] > 1 AND [2000_NPRI_] < 20000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 4
        COLOR 230 0 0
    END
    CLASS
        NAME "21-50"
        EXPRESSION ([2000_NPRI_] > 20001 AND [2000_NPRI_] < 50000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 6
        COLOR 230 0 0
    END
    CLASS
        NAME "51-100"
        EXPRESSION ([2000_NPRI_] > 50001 AND [2000_NPRI_] < 100000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 8
        COLOR 230 0 0
    END
    CLASS
        NAME "101-200"
        EXPRESSION ([2000_NPRI_] > 100001 AND [2000_NPRI_] < 200000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 10
        COLOR 230 0 0
    END
    CLASS
        NAME "201-400"
        EXPRESSION ([2000_NPRI_] > 200001 AND [2000_NPRI_] < 400000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 12
        COLOR 230 0 0 
    END
    CLASS
        NAME "401-500"
        EXPRESSION ([2000_NPRI_] > 400001 AND [2000_NPRI_] < 500000)
        TEMPLATE "ttt_query.html"
        SYMBOL 7
        SIZE 14
        COLOR 230 0 0
    END
  END
  
END

--0-49023369-1077892009=:68935--



More information about the MapServer-users mailing list