[mapserver-users] RE: mapfile

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Tue Nov 2 14:17:55 EDT 2010


David,

Either add STATUS DEFAULT to your layer

or add &layer=Elevation to your URL string.

David.


From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand
Sent: Tuesday, November 02, 2010 1:17 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] mapfile

I have installed ms4w on XP and am trying to display a simple map with the following map file.

MAP
  IMAGETYPE png
  SIZE 600 400
  EXTENT -120 49 -110 60
  UNITS dd
  SHAPEPATH "R:/GIS/"
  LAYER
    NAME "Elevation"
    TYPE raster
    DATA "srtm/elevation.tif"
  END
END

I am testing mapserv from the command line with the following command

mapserv -nh "QUERY_STRING=map=R:/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map"

The following output is returned, which, I presume, is a PNG stream but there are no errors generated.

ëPNG
→
IHDR  ☻X  ☺É☺♥  ☺?ⁿ╝M   ♥PLTE   º─←╚   5IDATx£φ┴ü    ├á∙S_ß U☺
           |♠y↑ ☺░→ä♀    IEND«B`é


When but when I redirect the output to a *.png file, though, I simply get a blank white image.  Any clues?

Thanks.



===========================
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239

www.afsc.ca<about:www.afsc.ca> <http://www.afsc.ca<http://www.afsc.ca/>>
This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101102/0c229ef5/attachment-0001.html


More information about the mapserver-users mailing list