[mapserver-users] Multi-layer output issue

2011-11-07 Thread Asad Ullah
Dear List,
I have an issue with getting a composite map of a number of layers. As you see 
it only return the top layer whereas it should show layers selected (see the 
URL below).  Any help would really be appreciated.

My url is something like:

http://lance2.modaps.eosdis.nasa.gov/cgi-bin/mapserv.cgi?map=usecase_all_download_2002.mapLAYERS=Terra250+Terra_snow_cover+fires24+Admin_Boundmode=mapimgext=-94.4722+28.7876+-88.6714+33.2041mapext=-94.4722+28.7876+-88.6714+33.2041map_size=2640.327719617658+2010.2412380518867imgx=2640.327719617658imgy=2010.2412380518867imgxy=2640.327719617658+2010.2412380518867map_imagetype=JPEG

and my part of mapfile is:

MAP
NAME usecase
UNITS dd
MAXSIZE 2
SIZE 1600 1200
IMAGECOLOR -1 -1 -1
IMAGETYPE  AGG
SHAPEPATH /MODAPSweb
PROJECTION
init=epsg:4326
END
 EXTENT -178.00 -80.00 183.00 80.00
WEB
IMAGEPATH /MODAPSweb/www/wms/tmp/
IMAGEURL /tmp/
END
LAYER
 NAME Terra250
TYPE RASTER
STATUS ON
OFFSITE 0 0 0
  PROJECTION
init=epsg:4326
  END
  DATA share/vrtfile/terr_250m_2011306.vrt
CLASS
  STYLE
BACKGROUNDCOLOR 255 255 255
  END
END
END
  LAYER
NAME Admin_Bound
TYPE LINE
STATUS ON
  PROJECTION
init=epsg:4326
  END
DATA share/vrtfile/esri-administrative-boundaries_level-1
  CLASS
STYLE
COLOR 0 0 0
WIDTH 0.5
  END
  END
   END
LAYER
 NAME Terra_snow_cover
TYPE RASTER
STATUS ON
OFFSITE 0 0 0
  PROJECTION
init=epsg:4326
  END
DATA share/vrtfile/MOR10FSCLLDY_2011306.vrt
VALIDATION
  'DATA' '^MOR10FSCLLDY_.*\.vrt$'
END
CLASS
  STYLE
BACKGROUNDCOLOR -1 -1 -1
  ENDEND
END
LAYER
  NAME fires24
  TYPE RASTER
  STATUS ON
TRANSPARENCY 100
OFFSITE 255 255 255
  CONNECTION http://firefly.geog.umd.edu/wms/wms?;
  CONNECTIONTYPE WMS
  METADATA
wms_title Fires - Past 24 hours
wms_namefires24
wms_onlineresource
http://firefly.geog.umd.edu/wms/wms?;
wms_srs   EPSG:4326
wms_server_version1.1.1
wms_formatimage/png
  END
PROJECTION
init=epsg:4326
 END
END
OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  TRANSPARENT ON
END
OUTPUTFORMAT
  NAME agg
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
END
OUTPUTFORMAT
  NAME 'AGG'
  DRIVER AGG/jpeg
  MIMETYPE image/jpeg
  IMAGEMODE RGB
  EXTENSION jpg
END
END

Thanks,

Asad



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] GetMap Issue

2011-11-03 Thread Asad Ullah
List,
I have an issue with getting a composite map of a number of layers. As you see 
it only return the top layer whereas it should show something like the image 
attached.  Any help would really be appreciated.

My url is something like:

http://lance2.modaps.eosdis.nasa.gov/cgi-bin/mapserv.cgi?map=usecase_all_download_2002.mapLAYERS=Terra250+Terra_snow_cover+fires24+Admin_Boundmode=mapimgext=-94.4722+28.7876+-88.6714+33.2041mapext=-94.4722+28.7876+-88.6714+33.2041map_size=2640.327719617658+2010.2412380518867imgx=2640.327719617658imgy=2010.2412380518867imgxy=2640.327719617658+2010.2412380518867map_imagetype=JPEG

and my part of mapfile is:

MAP
NAME usecase
UNITS dd
MAXSIZE 2
SIZE 1600 1200
IMAGECOLOR -1 -1 -1
IMAGETYPE  AGG
SHAPEPATH /MODAPSweb
PROJECTION
init=epsg:4326
END
 EXTENT -178.00 -80.00 183.00 80.00
WEB
IMAGEPATH /MODAPSweb/www/wms/tmp/
IMAGEURL /tmp/
END
LAYER
 NAME Terra250
TYPE RASTER
STATUS ON
OFFSITE 0 0 0
  PROJECTION
init=epsg:4326
  END
  DATA share/vrtfile/terr_250m_2011306.vrt
CLASS
  STYLE
BACKGROUNDCOLOR 255 255 255
  END
END
END
  LAYER
NAME Admin_Bound
TYPE LINE
STATUS ON
  PROJECTION
init=epsg:4326
  END
DATA share/vrtfile/esri-administrative-boundaries_level-1
  CLASS
STYLE
COLOR 0 0 0
WIDTH 0.5
  END
  END
   END
LAYER
 NAME Terra_snow_cover
TYPE RASTER
STATUS ON
OFFSITE 0 0 0
  PROJECTION
init=epsg:4326
  END
DATA share/vrtfile/MOR10FSCLLDY_2011306.vrt
VALIDATION
  'DATA' '^MOR10FSCLLDY_.*\.vrt$'
END
CLASS
  STYLE
BACKGROUNDCOLOR -1 -1 -1
  ENDEND
END
LAYER
  NAME fires24
  TYPE RASTER
  STATUS ON
TRANSPARENCY 100
OFFSITE 255 255 255
  CONNECTION http://firefly.geog.umd.edu/wms/wms?;
  CONNECTIONTYPE WMS
  METADATA
wms_title Fires - Past 24 hours
wms_namefires24
wms_onlineresource
http://firefly.geog.umd.edu/wms/wms?;
wms_srs   EPSG:4326
wms_server_version1.1.1
wms_formatimage/png
  END
PROJECTION
init=epsg:4326
 END
END
OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  TRANSPARENT ON
END
OUTPUTFORMAT
  NAME agg
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
END
OUTPUTFORMAT
  NAME 'AGG'
  DRIVER AGG/jpeg
  MIMETYPE image/jpeg
  IMAGEMODE RGB
  EXTENSION jpg
END
END

Thanks,

Asad

attachment: example.PNG___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] GetMap Issue

2011-11-03 Thread Asad Ullah
List,
I have an issue with getting a composite map of a number of layers. As you see 
it only return the top layer whereas it should show a multilayer image.  Any 
help would really be appreciated.

My url is something like:

http://lance2.modaps.eosdis.nasa.gov/cgi-bin/mapserv.cgi?map=usecase_all_download_2002.mapLAYERS=Terra250+Terra_snow_cover+fires24+Admin_Boundmode=mapimgext=-94.4722+28.7876+-88.6714+33.2041mapext=-94.4722+28.7876+-88.6714+33.2041map_size=2640.327719617658+2010.2412380518867imgx=2640.327719617658imgy=2010.2412380518867imgxy=2640.327719617658+2010.2412380518867map_imagetype=JPEG

and my part of mapfile is:

MAP
NAME usecase
UNITS dd
MAXSIZE 2
SIZE 1600 1200
IMAGECOLOR -1 -1 -1
IMAGETYPE  AGG
SHAPEPATH /MODAPSweb
PROJECTION
init=epsg:4326
END
 EXTENT -178.00 -80.00 183.00 80.00
WEB
IMAGEPATH /MODAPSweb/www/wms/tmp/
IMAGEURL /tmp/
END
LAYER
 NAME Terra250
TYPE RASTER
STATUS ON
OFFSITE 0 0 0
  PROJECTION
init=epsg:4326
  END
  DATA share/vrtfile/terr_250m_2011306.vrt
CLASS
  STYLE
BACKGROUNDCOLOR 255 255 255
  END
END
END
  LAYER
NAME Admin_Bound
TYPE LINE
STATUS ON
  PROJECTION
init=epsg:4326
  END
DATA share/vrtfile/esri-administrative-boundaries_level-1
  CLASS
STYLE
COLOR 0 0 0
WIDTH 0.5
  END
  END
   END
LAYER
 NAME Terra_snow_cover
TYPE RASTER
STATUS ON
OFFSITE 0 0 0
  PROJECTION
init=epsg:4326
  END
DATA share/vrtfile/MOR10FSCLLDY_2011306.vrt
VALIDATION
  'DATA' '^MOR10FSCLLDY_.*\.vrt$'
END
CLASS
  STYLE
BACKGROUNDCOLOR -1 -1 -1
  ENDEND
END
LAYER
  NAME fires24
  TYPE RASTER
  STATUS ON
TRANSPARENCY 100
OFFSITE 255 255 255
  CONNECTION http://firefly.geog.umd.edu/wms/wms?;
  CONNECTIONTYPE WMS
  METADATA
wms_title Fires - Past 24 hours
wms_namefires24
wms_onlineresource
http://firefly.geog.umd.edu/wms/wms?;
wms_srs   EPSG:4326
wms_server_version1.1.1
wms_formatimage/png
  END
PROJECTION
init=epsg:4326
 END
END
OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  TRANSPARENT ON
END
OUTPUTFORMAT
  NAME agg
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
END
OUTPUTFORMAT
  NAME 'AGG'
  DRIVER AGG/jpeg
  MIMETYPE image/jpeg
  IMAGEMODE RGB
  EXTENSION jpg
END
END

Thanks,

Asad

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Parameter substitution problem

2011-09-29 Thread Asad Ullah
Steve,
Thanks very much for your help. Adding quote did not change anything. However, 
if I change file name from, for example, 
OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png to  
OMI_OMCLDRRclpWMSNRT_20110922.png and do the substitution as:

/cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+OMI_OMCLDRRclpWMSNRT_+ amsreDate 
+ .png

It would work. Where the validation block is same as:

VALIDATION
   'DATA' '^OMI_.*\.png$'
END

So, do you think the problem is with validation definition?

Thanks,

Asad


-Original Message-
From: Steve Lime [mailto:sdl...@gmail.com] 
Sent: Wednesday, September 28, 2011 11:27 PM
To: Asad Ullah; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Parameter substitution problem

What happens if you quote the variable in the CGI call, that is:

  /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+'OMI-Aura_L3-OMCLDRRclpWMSNRT_+
amsreDate + .png'

Note the single quotes in the DATA value... I'll try to whip up local test case.

Steve

On Tue, Sep 27, 2011 at 4:28 PM, Asad Ullah asad.ul...@sigmaspace.com wrote:
 Steve,

 DATA in  the URL has quotes as:

 /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLDRRclpWMSNRT_+
 amsreDate + .png

 I unquoted the value in mapfile but there was no error. Any more suggestion?



 Thanks,



 Asad





 From: Steve Lime [mailto:sdl...@gmail.com]
 Sent: Friday, September 23, 2011 4:55 AM
 To: Asad Ullah
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Parameter substitution problem



 My guess is the validation is correct but the syntax of the URL parameter is
 is wrong in that the value passed for DATA is not quoted. If you unquote the
 default value in your mapfile does that result in a error? That would be an
 easy way to test the need for quotes.

 One last idea, while map_layer... should work, try map.layer... instead as
 you variable name.

 If you're really are just replacing the date part you could do that by doing
 a runtime sub...

  DATA OMI-Aura_L3-OMCLDRRclpWMSNRT_%date%.png
  VALIDATION
      date 'regex'
  END

 And then you pass date as a CGI variable.

 Steve

 On Thursday, September 22, 2011, Asad Ullah asad.ul...@sigmaspace.com
 wrote:
 List,
 I am trying to substitute DATA parameter in my mapfile with a call from
 Openlayers as follow:

 map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLDRRclpWMSNRT_+ amsreDate + .png

 The mapfile is:

 LAYER
  NAME OMI_CP
     TYPE RASTER
     STATUS DEFAULT
     OFFSITE 0 0 0
  PROJECTION
     init=epsg:4326
   END
     DATA OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png
 VALIDATION
   'DATA' '^OMI_.*\.png$'
 END

 The call should change the date part (20110922) of the png filename but it
 is not doing it. Can anyone point to what I am doing wrong here?

 Thanks,

 Asad

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Parameter substitution problem

2011-09-29 Thread Asad Ullah
I don't think (-) is a problem because I have tried changing (-) with (_) in 
the file name without success.

 

-Original Message-
From: Mr. Puneet Kishor [mailto:punk.k...@gmail.com] 
Sent: Thursday, September 29, 2011 9:47 AM
To: Asad Ullah
Cc: Steve Lime; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Parameter substitution problem


On Sep 29, 2011, at 8:22 AM, Asad Ullah wrote:

 Steve,
 Thanks very much for your help. Adding quote did not change anything. 
 However, if I change file name from, for example, 
 OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png to  
 OMI_OMCLDRRclpWMSNRT_20110922.png and do the substitution as:
 
 /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+OMI_OMCLDRRclpWMSNRT_+ 
 amsreDate + .png
 
 It would work. Where the validation block is same as:
 
 VALIDATION
   'DATA' '^OMI_.*\.png$'
 END
 
 So, do you think the problem is with validation definition?



Could it be the dashes (-) in the problematic file name?



 
 Thanks,
 
 Asad
 
 
 -Original Message-
 From: Steve Lime [mailto:sdl...@gmail.com] 
 Sent: Wednesday, September 28, 2011 11:27 PM
 To: Asad Ullah; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Parameter substitution problem
 
 What happens if you quote the variable in the CGI call, that is:
 
  /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+'OMI-Aura_L3-OMCLDRRclpWMSNRT_+
 amsreDate + .png'
 
 Note the single quotes in the DATA value... I'll try to whip up local test 
 case.
 
 Steve
 
 On Tue, Sep 27, 2011 at 4:28 PM, Asad Ullah asad.ul...@sigmaspace.com wrote:
 Steve,
 
 DATA in  the URL has quotes as:
 
 /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLDRRclpWMSNRT_+
 amsreDate + .png
 
 I unquoted the value in mapfile but there was no error. Any more suggestion?
 
 
 
 Thanks,
 
 
 
 Asad
 
 
 
 
 
 From: Steve Lime [mailto:sdl...@gmail.com]
 Sent: Friday, September 23, 2011 4:55 AM
 To: Asad Ullah
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Parameter substitution problem
 
 
 
 My guess is the validation is correct but the syntax of the URL parameter is
 is wrong in that the value passed for DATA is not quoted. If you unquote the
 default value in your mapfile does that result in a error? That would be an
 easy way to test the need for quotes.
 
 One last idea, while map_layer... should work, try map.layer... instead as
 you variable name.
 
 If you're really are just replacing the date part you could do that by doing
 a runtime sub...
 
  DATA OMI-Aura_L3-OMCLDRRclpWMSNRT_%date%.png
  VALIDATION
  date 'regex'
  END
 
 And then you pass date as a CGI variable.
 
 Steve
 
 On Thursday, September 22, 2011, Asad Ullah asad.ul...@sigmaspace.com
 wrote:
 List,
 I am trying to substitute DATA parameter in my mapfile with a call from
 Openlayers as follow:
 
 map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLDRRclpWMSNRT_+ amsreDate + .png
 
 The mapfile is:
 
 LAYER
  NAME OMI_CP
 TYPE RASTER
 STATUS DEFAULT
 OFFSITE 0 0 0
  PROJECTION
 init=epsg:4326
   END
 DATA OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png
 VALIDATION
   'DATA' '^OMI_.*\.png$'
 END
 
 The call should change the date part (20110922) of the png filename but it
 is not doing it. Can anyone point to what I am doing wrong here?
 
 Thanks,
 
 Asad
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Parameter substitution problem

2011-09-29 Thread Asad Ullah
Thanks Jukka, Shortening file names worked.

Asad


-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: Thursday, September 29, 2011 10:26 AM
To: Asad Ullah; 'Mr. Puneet Kishor'
Cc: 'mapserver-users@lists.osgeo.org'
Subject: Re: [mapserver-users] Parameter substitution problem

Hi,

A couple of days ago somebody seemed to have troubles with imagery because of 
too long paths or filenames. Could you try to shorten your filename by removing 
some normal characters from it and see it starts to work at some limit?

-Jukka Rahkonen-

Asad Ullah wrote:

 
 I don't think (-) is a problem because I have tried changing 
 (-) with (_) in the file name without success.
 
  
 
 -Original Message-
 From: Mr. Puneet Kishor [mailto:punk.k...@gmail.com] 
 Sent: Thursday, September 29, 2011 9:47 AM
 To: Asad Ullah
 Cc: Steve Lime; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Parameter substitution problem
 
 
 On Sep 29, 2011, at 8:22 AM, Asad Ullah wrote:
 
  Steve,
  Thanks very much for your help. Adding quote did not change 
 anything. However, if I change file name from, for example, 
 OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png to  
 OMI_OMCLDRRclpWMSNRT_20110922.png and do the substitution as:
  
  
 /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+OMI_OMCLDRRclpWMS
NRT_+ amsreDate + .png
  
  It would work. Where the validation block is same as:
  
  VALIDATION
'DATA' '^OMI_.*\.png$'
  END
  
  So, do you think the problem is with validation definition?
 
 
 
 Could it be the dashes (-) in the problematic file name?
 
 
 
  
  Thanks,
  
  Asad
  
  
  -Original Message-
  From: Steve Lime [mailto:sdl...@gmail.com] 
  Sent: Wednesday, September 28, 2011 11:27 PM
  To: Asad Ullah; mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] Parameter substitution problem
  
  What happens if you quote the variable in the CGI call, that is:
  
   
 /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+'OMI-Aura_L3-OMCL
DRRclpWMSNRT_+
  amsreDate + .png'
  
  Note the single quotes in the DATA value... I'll try to 
 whip up local test case.
  
  Steve
  
  On Tue, Sep 27, 2011 at 4:28 PM, Asad Ullah 
 asad.ul...@sigmaspace.com wrote:
  Steve,
  
  DATA in  the URL has quotes as:
  
  
 /cgi-bin/mapserv.cgi?map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLD
RRclpWMSNRT_+
  amsreDate + .png
  
  I unquoted the value in mapfile but there was no error. 
 Any more suggestion?
  
  
  
  Thanks,
  
  
  
  Asad
  
  
  
  
  
  From: Steve Lime [mailto:sdl...@gmail.com]
  Sent: Friday, September 23, 2011 4:55 AM
  To: Asad Ullah
  Cc: mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] Parameter substitution problem
  
  
  
  My guess is the validation is correct but the syntax of 
 the URL parameter is
  is wrong in that the value passed for DATA is not quoted. 
 If you unquote the
  default value in your mapfile does that result in a error? 
 That would be an
  easy way to test the need for quotes.
  
  One last idea, while map_layer... should work, try 
 map.layer... instead as
  you variable name.
  
  If you're really are just replacing the date part you 
 could do that by doing
  a runtime sub...
  
   DATA OMI-Aura_L3-OMCLDRRclpWMSNRT_%date%.png
   VALIDATION
   date 'regex'
   END
  
  And then you pass date as a CGI variable.
  
  Steve
  
  On Thursday, September 22, 2011, Asad Ullah 
 asad.ul...@sigmaspace.com
  wrote:
  List,
  I am trying to substitute DATA parameter in my mapfile 
 with a call from
  Openlayers as follow:
  
  map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLDRRclpWMSNRT_+ 
 amsreDate + .png
  
  The mapfile is:
  
  LAYER
   NAME OMI_CP
  TYPE RASTER
  STATUS DEFAULT
  OFFSITE 0 0 0
   PROJECTION
  init=epsg:4326
END
  DATA OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png
  VALIDATION
'DATA' '^OMI_.*\.png$'
  END
  
  The call should change the date part (20110922) of the 
 png filename but it
  is not doing it. Can anyone point to what I am doing wrong here?
  
  Thanks,
  
  Asad
  
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Parameter substitution problem

2011-09-22 Thread Asad Ullah
List,
I am trying to substitute DATA parameter in my mapfile with a call from 
Openlayers as follow:

map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLDRRclpWMSNRT_+ amsreDate + .png

The mapfile is:

LAYER
 NAME OMI_CP
TYPE RASTER
STATUS DEFAULT
OFFSITE 0 0 0
 PROJECTION
init=epsg:4326
  END
DATA OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png
VALIDATION
  'DATA' '^OMI_.*\.png$'
END

The call should change the date part (20110922) of the png filename but it is 
not doing it. Can anyone point to what I am doing wrong here?

Thanks,

Asad
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Controling the amount of concurrent GetMap requests

2011-05-26 Thread Asad Ullah
List,
Does anybody know how to control number of concurrent GetMap requests in 
MapServer?
Thanks,

Asad


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Overriding MapServer Map File DATA parameter

2011-03-29 Thread Asad Ullah
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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users