[mapserver-users] Re: WMS image size issue (Raffaele Morelli)

Raffaele Morelli raffaele.morelli at gmail.com
Wed Feb 15 06:33:23 PST 2012


>
>
> Message: 6
> Date: Wed, 15 Feb 2012 13:12:35 +0000
> From: Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>
> Subject: Re: [mapserver-users] (no subject)
> To: "'mapserver-users at lists.osgeo.org'"
>        <mapserver-users at lists.osgeo.org>
> Message-ID:
>        <84446DEF76453C439E9E97E438E13A630755DE at pasuri.haapa.mmm.fi>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> The bounding boxes are bit odd, check the EXTENTS of your mapfile and
> possibly wms_extent if you have set it.
>  <SRS>EPSG:32632</SRS>
>    <LatLonBoundingBox minx="6.54004" miny="35.2168" maxx="19.6148"
> maxy="47.1372" />
>    <BoundingBox SRS=""
>                minx="313371" miny="3.93368e+06" maxx="1.31209e+06"
> maxy="5.22041e+06" />
>    <Layer queryable="1" opaque="0" cascaded="0">
>        <Name>sostegni</Name>
>        <Title>Sostegni</Title>
>        <SRS>EPSG:32632</SRS>
>        <LatLonBoundingBox minx="-177.507" miny="-8.2419e+12"
> maxx="173.211" maxy="8.2419e+12" />
>        <BoundingBox SRS="EPSG:32632"
>                    minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
> maxy="2.5e+07" />
>
>  Service itself is OK
>
>
>
> http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=469&HEIGHT=354&LAYERS=sostegni&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-104932.26069053586,3923518.6330312905,1669843.960523528,5263115.183798409&SRS=EPSG:32632&STYLES=
>
> I would guess that QGis is trying to do zoom to a best fit by
> investigating layer extents and resolution and because extents are so wide
> it makes unrealistically big sized request.  QGis will show the image if
> you zoom to correct location by coordinates or by opening a supporting
> vector file on the bottom. OpenJUMP had no problems for me.
>
> -Jukka Rahkonen-


Stange cause I actually got EXTENT from ogrinfo querying a postgis layer as
reported in this example
http://mapserver.org/input/vector/postgis.html#ogrinfo-examples

and here's the relevant output:

Extent: (313371.309628, 3933679.249407) - (1312087.106406, 5220406.386046)

...same error

-r
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120215/d6477316/attachment.html


More information about the mapserver-users mailing list