[mapserver-users] WMS server layer trouble

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Mar 6 04:14:56 EST 2012


Hi,

Look at the GetCapabilities and see if Mapserver is advertising the layer extents in reasonable way. I have a feeling that QGis is trying to zoom automatically to the layer extents by taking the layer extents and some default resolution and calculating WIDTH and HEIGHT by those too. If they are wrong in the GetCapabilities there can be troubles.
For example the layer fiumi_02 shows now quite a large extents,

Fiumi II, III, IV ordine fiumi_02 epsg:32632 -1.47304E7 -9997960.0 500000.0 9997960.0

OpenJUMP shows the layers better because it does not generate oversized WIDTH and HEIGHT.
Consider adding "wms_bbox_extended" "true". It will help clients like OpenJUMP to zoom to layer extents with any supported srsName.
It could be easist and most safe to set the correct layer extenst manually in metadata.


-Jukka Rahkonen-

________________________________
Raffaele Morelli  wrote:
Hi,

I can't get it working as desired and can't understand why.
Here is my wms online resource: http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

If you try to load the layer "sostegni" in QGis you should get an image size error, selecting the "CEN-RF" layer works but loads all the layer in the mapfile.
The only layer I can import in QGis is the "Data Elevation Model".

I would like my wms server to act like
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

Any hints?
regards
-r

--
L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120306/2585c6fb/attachment.html


More information about the mapserver-users mailing list