[Mapserver-users] help trying a WMS connection

Tyler Mitchell tjmitchell at riverside.bc.ca
Wed Jun 30 14:44:16 PDT 2004


This NASA/JPL WMS that has a global landsat mosaic (and more) is quite 
impressive.  I can view it with the ArcView 3 wmsclient from Refractions. 
I can also get an image manually constructing my own URL. 

But I can't get MapServer 4.2.0 or 4.3 to render it.

When I run this with shp2img, I get a message:

gd-png:  fatal libpng error: Out of Memory
gd-png error: setjmp returns error condition

Here's the map file.  Could someone else try this out for me with shp2img?

Tyler

---------------

NAME wms_test
STATUS ON
SIZE 400 400
EXTENT -180 -90 180 90
UNITS DD
SHAPEPATH "../data"
IMAGECOLOR 255 255 255
FONTSET "../fontsets/fonts.txt"

PROJECTION
  "proj=latlong"
  "ellps=GRS80"
END

WEB
  HEADER demo_header.html
  TEMPLATE test_wms.html
  FOOTER demo_footer.html
  IMAGEPATH "."
  IMAGEURL "/tmp/"
  LOG "mslog.txt"
END # Web

LAYER
  NAME global_mosaic
  TYPE RASTER
  STATUS DEFAULT
  CONNECTIONTYPE WMS
  CONNECTION 
"http://wms.jpl.nasa.gov/wms.cgi?version=1.1.0&srs=epsg:4326&format=image/png&layers=global_mosaic&styles=visual"
  METADATA
    "wms_srs" "epsg:4326"
  END
END # global_mosaic

END # Map File



More information about the MapServer-users mailing list