[OpenLayers-Users] WMS error with openlayers

subhajeet sur subhajeetsur at gmail.com
Mon Feb 1 05:45:13 EST 2010


On 1/31/10, Pierre Giraud <pierre.giraud at camptocamp.com> wrote:
> On Sun, Jan 31, 2010 at 10:40 AM, subhajeet sur <subhajeetsur at gmail.com>
> wrote:
>> Dear all,
>>
>> I'm new to openlayers and mapserver. I'm trying to run a particular
>> mapfile via mapserver. I've encountered the following errors:
>>
>> 1. On using OpenLayers.Layers.MapServer:
>>        Base layer isn't gettting displayed when the overlays are selected.
>
> transparent is a parameter, not an option.
> new OpenLayers.Layers.MapServer(name, url, parameters, options);
>
>> 2. On using OpenLayers.Layers.WMS:
>>        Following error message is generated inspite of defining METADATA
>>  msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in
>> the LAYERS parameter.
>
> The parameter is "layers" (plural) not "layer".
>
> Regards,
> Pierre
>
>>
>> Please find the attached mapfile and the html template.
>> Could anyone please help me out.
>>
>> Thanks in advance.
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
>
> --
> Pierre GIRAUD
> Géomaticien, Analyste
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 93
> Mail : pierre.giraud at camptocamp.com
> http://www.camptocamp.com
>
Hi Pierre,

Thanks for your reply. Your suggestions were duly noted and the
required changes were made. However, the problem still persists in
case of WMS.

1. In case of Layer.WMS:
    I have some queries regarding the projection of the map(which i
believe is epsg:4326):
     Is it necessary to define PROJECTION property within each LAYER
explicitly, even if the same has been defined in METADATA in the WEB
section of the mapfile

2. In case of Layer.MapServer :
     Base Layer is visible but as soon as any of the overlays are
activated, the overlays completely overlap the base layer thereby
making the base not visible.


 The truth of the matter is that these mapfiles are examples from Bill
Kropla's book and have been written for mapserver. I just wanted to
modify them and try using openlayers with the same.

Attached are the modified files
 I shall be grateful if you could provide a pointer or two in this regard.

Thanks
Subhajeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100201/56c1fffb/mapserverexp.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: third.map
Type: application/octet-stream
Size: 11854 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100201/56c1fffb/third.obj


More information about the Users mailing list