[mapserver-users] Overriding MapServer Map File "DATA" parameter
Asad Ullah
Asad.Ullah at sigmaspace.com
Tue Mar 29 08:42:57 PDT 2011
List,
I am trying to override virtual raster (.vrt) file defined in mapfile with a different one from a list of vrt files. I am using Opnelayers and Mapserver 5.6.6 to create map. In Openlayers, I have tried:
var Terra250tif = new OpenLayers.Layer.MapServer( "Terra250m_bands1-4-3",
"http://192.225.64.118/cgi-bin/mapserv?",
{
layers:"Terra250tif","map.layer[Terra250tif]":"DATA terr_ndvi.vrt",
map: '/usr/local/apache/htdocs/mapfiles/rrglobal_terra_250m_2011052jpg.map'
}, {singleTile:false});
The relevant part of the mapfile is:
LAYER
NAME "Terra250_367jpg"
TYPE RASTER
STATUS DEFAULT
OFFSITE 0 0 0
PROJECTION
"init=epsg:4326"
END
DATA "terr_250m_2011052jpg.vrt"
CLASS
STYLE
BACKGROUNDCOLOR 255 255 255
END
END
END
I looked at "mapserver.osgeo.org/cgi/controls.html....." but that did not helped. So, could anyone help with this.
Thanks,
Asad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110329/752a52ad/attachment.htm>
More information about the MapServer-users
mailing list