FW: [Mapserver-users] landsat wms
Heitzso
heitzso at growthmodels.com
Tue Jul 15 20:30:10 PDT 2003
The HOWTO saved me
http://mapserver.gis.umn.edu/doc36/wms-client-howto.html
Note from the HOWTO that the bounding box, srs, and image
size are set by mapserver. Another key was I was using the demo
map file template which does not set an imagepath in the WEB
configuration (set instead via the init.html file) and that blocks
the WMS from having a place to put the temp file.
CURRENT PROBLEM: I have this layer at the top of the map
file because it blocks all other layers. Transparency doesn't
seem to help. BTW, I'm running mapserver_dev from a
couple of days ago.
From my current map file:
...
IMAGETYPE PNG
PROJECTION
"proj=latlong"
END
WEB
IMAGEPATH "/usr/local/apache/htdocs/tmp/"
IMAGEURL "/tmp/"
...
END
LAYER
NAME landsat7
METADATA
"wms_title" "landsat7"
"wms_srs" "EPSG:4326"
"wms_latlonboundingbox" "-127 23 -66 50"
END
TYPE RASTER
STATUS off
CONNECTIONTYPE WMS
CONNECTION
"http://wms.jpl.nasa.gov/wms.cgi?wmtver=1.0.0&format=jpeg&layers=us_landsat7"
PROJECTION
"init=epsg:4326"
END
END
LAYER
NAME landsatwgs84
METADATA
"wms_title" "landsatwgs84"
"wms_srs" "EPSG:4326"
"wms_latlonboundingbox" "-127 23 -66 50"
END
TYPE RASTER
STATUS off
CONNECTIONTYPE WMS
CONNECTION
"http://wms.jpl.nasa.gov/wms.cgi?wmtver=1.0.0&format=jpeg&layers=us_landsat_wgs84"
PROJECTION
"init=epsg:4326"
END
END
LAYER
NAME landsatwgs84over
METADATA
"wms_title" "landsatwgs84over"
"wms_srs" "EPSG:4326"
"wms_latlonboundingbox" "-127 23 -66 50"
END
TYPE RASTER
STATUS off
CONNECTIONTYPE WMS
CONNECTION
"http://wms.jpl.nasa.gov/wms.cgi?wmtver=1.0.0&format=jpeg&layers=us_landsat_wgs84_overlay"
PROJECTION
"init=epsg:4326"
END
END
More information about the MapServer-users
mailing list