[ka-Map-users] Trouble Printing

Daniel.Huber at ch2m.com Daniel.Huber at ch2m.com
Tue Mar 6 02:01:21 EST 2007


Using the "Print" routines to save maps as PDF or images, only the
layers that are set to be turned on in the map file (STATUS ON) are
showing up.  Layers that are toggled on or off do not appear any any of
the image/pdf documents.
 
Is there any special METADATA settings for the mapfile?  Or do I have
things all messed up to begin with?   Below is the mapfile that I am
using.
 
Thanks for any help you can provide,
 
Dan
 
 
 
 
MAP
  NAME "WBCSD_Demo"
  STATUS ON
  TRANSPARENT ON
  EXTENT -180 -90 180 83.623600 
  SIZE 800 400 
  SHAPEPATH "../data"
  FONTSET "../etc/fontset.txt"  # List of available fonts
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS DD
  WEB
    MINSCALE 5000000
    MAXSCALE 140000000
    IMAGEPATH "/mapserver/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    METADATA
      "max_extents" "auto"
    END
  END
  REFERENCE
    STATUS ON
    IMAGE "images/wbcsd.png"
    SIZE 140 90 
    EXTENT -180 -90 180 83.623600 
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
  END
  LEGEND
    STATUS ON
    LABEL
      TYPE BITMAP
      COLOR 0 0 89
    END
  END
  LAYER
    NAME "World"
    GROUP "World Map"
    STATUS ON
    DATA "world30"
    TYPE POLYGON
    CLASS
      NAME "World"
      STYLE
        COLOR 153 179 204
        OUTLINECOLOR 146 136 155
      END
    END
  END
 
  LAYER
    NAME "Countries"
    GROUP "World Map"
    STATUS ON
    DATA "WBCSD_FAO_WHO"
    TYPE POLYGON
    CLASS
      NAME "Countries"
      STYLE
        COLOR 242 239 233
        OUTLINECOLOR 0 0 0
      END
    END
  END
 
  LAYER
    NAME "Access to Improved Sanitation Coverage (%)"
    GROUP "Access to Improved Sanitation Coverage (%)"
    STATUS ON
    DATA "WBCSD_FAO_WHO"
    TYPE POLYGON
    CLASSITEM "TOT_SAN"
    CLASS
      NAME "No Data"
      EXPRESSION ([TOT_SAN] < 1)
      STYLE
        COLOR 242 239 233
        OUTLINECOLOR 0 0 0
      END
    END    
    CLASS
      NAME "0 - 25 %"
      EXPRESSION ([TOT_SAN] > 0 AND [TOT_SAN] <= 25)
      STYLE
        COLOR 255 204 153
        OUTLINECOLOR 0 0 0
      END
    END
 
    CLASS
      NAME "26 - 50 %"
      EXPRESSION ([TOT_SAN] > 25 AND [TOT_SAN] <= 50)
      STYLE
        COLOR 255 204 0 
        OUTLINECOLOR 0 0 0
      END
    END
    CLASS
      NAME "51 - 75 %"
      EXPRESSION ([TOT_SAN] > 50 AND [TOT_SAN] <= 75)
      STYLE
        COLOR 255 153 0  
        OUTLINECOLOR 0 0 0
      END
    END
     CLASS
       NAME "76 - 90 %"
       EXPRESSION ([TOT_SAN] > 75 AND [TOT_SAN] <= 90)
       STYLE
         COLOR 255 101 0 
         OUTLINECOLOR 0 0 0
       END
    END
    CLASS
      NAME "91 - 100 %"
      EXPRESSION ([TOT_SAN] > 90)
      STYLE
        COLOR 153 51 0
        OUTLINECOLOR 0 0 0
      END
    END
  END
 
  LAYER
    NAME "Access to Improved Drinking Water Coverage (%)"
    GROUP "Access to Improved Drinking Water Coverage (%)"
    STATUS OFF
    DATA "WBCSD_FAO_WHO"
    TYPE POLYGON
    CLASSITEM "TOT_WAT"
    CLASS
      NAME "No Data"
      EXPRESSION ([TOT_WAT] < 1)
      STYLE
        COLOR 242 239 233
        OUTLINECOLOR 0 0 0
      END
    END    
    CLASS
      NAME "0 - 25 %"
      EXPRESSION ([TOT_WAT] > 0 AND [TOT_WAT] <= 25)
      STYLE
        COLOR 153 204 255
        OUTLINECOLOR 0 0 0
      END
    END
 
    CLASS
      NAME "26 - 50 %"
      EXPRESSION ([TOT_WAT] > 25 AND [TOT_WAT] <= 50)
      STYLE
        COLOR 0 204 255 
        OUTLINECOLOR 0 0 0
      END
    END
    CLASS
      NAME "51 - 75 %"
      EXPRESSION ([TOT_WAT] > 50 AND [TOT_WAT] <= 75)
      STYLE
        COLOR 51 101 255  
        OUTLINECOLOR 0 0 0
      END
    END
     CLASS
       NAME "76 - 90 %"
       EXPRESSION ([TOT_WAT] > 75 AND [TOT_WAT] <= 90)
       STYLE
         COLOR 0 0 255 
         OUTLINECOLOR 0 0 0
       END
    END
    CLASS
      NAME "91 - 100 %"
      EXPRESSION ([TOT_WAT] > 90)
      STYLE
        COLOR 0 0 128
        OUTLINECOLOR 0 0 0
      END
    END
  END
 
  LAYER
    NAME "Industrial Water Withdrawal (%)"
    GROUP "Industrial Water Withdrawal (%)"
    STATUS OFF
    DATA "WBCSD_FAO_WHO"
    TYPE POLYGON
    CLASSITEM "IND_PERC"
    CLASS
      NAME "No Data"
      EXPRESSION ([IND_PERC] < 1)
      STYLE
        COLOR 242 239 233
        OUTLINECOLOR 0 0 0
      END
    END    
    CLASS
      NAME "0 - 25 %"
      EXPRESSION ([IND_PERC] > 0 AND [IND_PERC] <= 25)
      STYLE
        COLOR 204 255 255
        OUTLINECOLOR 0 0 0
      END
    END
 
    CLASS
      NAME "26 - 50 %"
      EXPRESSION ([IND_PERC] > 25 AND [IND_PERC] <= 50)
      STYLE
        COLOR 0 255 255 
        OUTLINECOLOR 0 0 0
      END
    END
    CLASS
      NAME "51 - 75 %"
      EXPRESSION ([IND_PERC] > 50 AND [IND_PERC] <= 75)
      STYLE
        COLOR 51 202 204 
        OUTLINECOLOR 0 0 0
      END
    END
     CLASS
       NAME "76 - 90 %"
       EXPRESSION ([IND_PERC] > 75 AND [IND_PERC] <= 90)
       STYLE
         COLOR 0 128 128 
         OUTLINECOLOR 0 0 0
       END
    END
    CLASS
      NAME "91 - 100 %"
      EXPRESSION ([IND_PERC] > 90)
      STYLE
        COLOR 0 51 101
        OUTLINECOLOR 0 0 0
      END
    END
    
  END #Layer
 
LAYER
    NAME "Annual Renewable Water Resource (m3/capita/year)"
    GROUP "Annual Renewable Water Resource (m3/capita/year)"
    STATUS OFF
    DATA "Basin_WAPP_v2"
    TYPE POLYGON
    CLASSITEM "WAPP_1995"
 
    CLASS
       NAME "No Data"
       EXPRESSION ([WAPP_1995] = -999)
       STYLE
         COLOR 242 239 233
       END
    END
 
 
    CLASS
      NAME "Extreme Scarcity  < 500"
      EXPRESSION ([WAPP_1995] = 1)
      STYLE
        COLOR 255 0 0
      END
    END
 
    CLASS
      NAME "Scarcity  500 - 1000"
      EXPRESSION ([WAPP_1995] = 2)
      STYLE
        COLOR 255 153 0
      END
    END
    CLASS
      NAME "Stress  1000 - 1700"
      EXPRESSION ([WAPP_1995] = 3)
      STYLE
        COLOR 255 255 0
      END
    END
    CLASS
      NAME "Sufficient  1700 - 4000"
      EXPRESSION ([WAPP_1995] = 4)
      STYLE
        COLOR 153 204 0
      END
    END
    CLASS
      NAME "Abundant  > 4000"
      EXPRESSION ([WAPP_1995] = 5)
      STYLE
        COLOR 0 128 0
      END
    END
    
  END  #Layer
  
LAYER
    NAME "Mean Annual Relative Water Stress Index"
    GROUP "Mean Annual Relative Water Stress Index"
    STATUS OFF
    DATA "i4_poly"
    TYPE POLYGON
    CLASSITEM "GRIDCODE"
 
    CLASS
       NAME "No Data"
       EXPRESSION ([GRIDCODE] = -999)
       STYLE
         COLOR 242 239 233
       END
    END
 
 
    CLASS
      NAME " < 0.2 "
      EXPRESSION ([GRIDCODE] = 1)
      STYLE
        COLOR 180 211 82
      END
    END
 
    CLASS
      NAME " 0.2 - 0.4 "
      EXPRESSION ([GRIDCODE] >= 2 AND [GRIDCODE] <= 4)
      STYLE
        COLOR 254 237 60
      END
    END
    CLASS
      NAME " 0.4 - 1.0 "
      EXPRESSION ([GRIDCODE] > 4 AND [GRIDCODE] <= 10)
      STYLE
        COLOR 250 4 5
      END
    END
    CLASS
      NAME " > 1.0 "
      EXPRESSION ([GRIDCODE] > 10)
      STYLE
        COLOR 181 26 0
      END
    END
 
    
  END  #Layer
  
  
    LAYER
      NAME "Borders"
      GROUP "Borders"
      STATUS ON
      DATA "WBCSD_FAO_WHO"
      TYPE POLYGON
      CLASS
        NAME "Borders"
        STYLE
          COLOR 255 255 255
          OUTLINECOLOR 0 0 0
        END
      END
  END
  
END #Map 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20070306/83745079/attachment-0001.html


More information about the ka-Map-users mailing list