Raster image won't reload after map query

Stephen H. Savage shsavage at ASU.EDU
Wed May 31 07:59:13 PDT 2006


Greetings,

   I have a MapServer application that uses aWMS raster image for the 
background.  When I perform a map query the map redraws and hilites features in 
the query rectangle, but the background raster doesn't redraw.  If I then hit 
the zoom to full extent (ROSA) button, the image redraws.  Any thoughts on 
what's stopping the redraw after a query?  Here's the .map file:

MAP
  NAME "Iraq Archaeological Sites"
  STATUS ON
  EXTENT 38.5 28.5 49.0 37.5 
  SIZE 400 343 
  SHAPEPATH "./data"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS DD
  WEB
    MINSCALE 1000
    MAXSCALE 10000000
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    TEMPLATE "../htdocs/header.htm"
    METADATA
    END
  END
  QUERYMAP
    STATUS ON
    SIZE -1 -1 
    COLOR 255 255 0
    STYLE HILITE
  END
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    POSITION UL
    KEYSIZE 18 12 
    KEYSPACING 5 5 
    TEMPLATE "ttt"
    LABEL
      TYPE BITMAP
      SIZE SMALL
      OFFSET 0 0 
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 89
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  SCALEBAR
    STATUS ON
    COLOR 255 255 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 0 0 0
    IMAGECOLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 500 5 
    STYLE 0
    POSITION LC
    LABEL
      TYPE BITMAP
      SIZE SMALL
      OFFSET 0 0 
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE RGB
    TRANSPARENT OFF
  END
  LAYER
    NAME "LandSat"
    STATUS ON
    TYPE RASTER
    CONNECTIONTYPE WMS
    CONNECTION "http://onearth.jpl.nasa.gov/wms.cgi?"
    UNITS DD
    SIZEUNITS KILOMETERS
    MINSCALE 1000000
    DEBUG ON
    METADATA
      "wms_name"				"BMNG"
      "wms_height"			"514"
      "wms_width"				"600"
      "wms_styles"			"visual Nov"
      "wms_srs"				"EPSG:4326"
      "wms_format"			"image/jpeg"
      "wms_server_version"		"1.1.1"
      "wms_latlonboundingbox"		"38.5 28.5 49.0 37.5"
      "wms_connectiontimeout"		"60"
      "wms_exceptions_format"    	"application/vnd.ogc.se_xml"
      "wms_server"			"wms.cgi"
      "wms_force_separate_request"	"1"
    END
  END
  LAYER
    NAME "Borders"
    STATUS ON
    DATA "data/borders"
    TYPE POLYGON
    UNITS DD
    SIZEUNITS KILOMETERS
    TOLERANCEUNITS PIXELS
    METADATA
    END
    CLASS
      STYLE
        SYMBOL 11
        OUTLINECOLOR 203 59 204
      END
    END
  END
  LAYER
    NAME "LandSat 14"
    STATUS ON
    TYPE RASTER
    TILEINDEX "data/ls14key"
    TILEITEM "FileName"
    UNITS DD
    SIZEUNITS KILOMETERS
    MINSCALE 1000
    MAXSCALE 1000000
    TOLERANCEUNITS PIXELS
    METADATA
    END
  END
  LAYER
    NAME "30 min. grid"
    STATUS ON
    DATA "data/ls14key"
    TYPE POLYGON
    UNITS DD
    SIZEUNITS KILOMETERS
    TOLERANCEUNITS PIXELS
    METADATA
    END
    CLASS
      STYLE
        SYMBOL 0
        OUTLINECOLOR 0 0 0
      END
    END
  END
  LAYER
    NAME "Pre-inventory Sites"
    STATUS ON
    DATA "data/PreInv"
    TYPE POINT
    UNITS DD
    SIZEUNITS KILOMETERS
    TEMPLATE "ttt"
    CLASS
      STYLE
        SYMBOL 7
        COLOR 177 0 0
        OUTLINECOLOR 0 0 0
        SIZE 6
        MAXSIZE 6
      END
    END
  END
END

Thanks,

-Steve

Stephen H. Savage, Affiliate Professor and Director
Geo-Archaeological Information Applications (GAIA) Lab
School of Human Evolution and Social Change
Box 872402
Arizona State University
Tempe, AZ  85287-2402

shsavage at asu.edu

http://gaialab.asu.edu/home  -  The GAIA Lab's home page
http://archaeology.asu.edu/Jordan  -  Personal home page 



More information about the MapServer-users mailing list