On Saturday 02 January 2010 00:09:57, David Paleino wrote:
> Package: merkaartor
> Version: 0.14+svnfixes~20090912-2
> Severity: normal
> 
> Hello,
> I added a WMS [1] layer to Merkaartor, and it seems to fail setting the
>  BBOX when doing the requests. In console I have:
> 
> ---8<---
> ImageMapLayer::drawFull: getting:
>  "/arcgis/services/OrtofotoATA_20072008_f33/
>  MapServer/WMSServer?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&TRANSPARENT=T
> RUE& LAYERS=0&SRS=EPSG:4326&STYLES=&FORMAT=image/png&WIDTH=583&HEIGHT=652&
>  BBOX=nan,0.000000,nan,0.000000"
> --->8---
> 
> Notice the extremely wrong values of BBOX= :)

Grepping a bit, revealed that the URL is built in ImageMapLayer::drawFull() 
(src/Maps/ImageMapLayer.cpp:353).
This url takes its BBOX values from some computation done in 
Projection::getProjectedViewport() (src/Maps/Projection.cpp:105). There, 
adding:

    qDebug() << Viewport.topLeft().lon() << "," << Viewport.topLeft().lat();

right at the beginning of the function, reveals that the Viewport is 
effectively taken as a 0x0 box.

getProjectedViewport() is called at src/Maps/ImageMapLayer.cpp:355 :

    QRectF vp = p->theProjection.getProjectedViewport(p->Viewport, rect);

"p" is a MapViewPrivate, as defined at src/MapView.cpp:39 . Well, I can't go 
further than this, my limited C++ knowledge makes me stop here :/

Hope this can be of some help!

David
(who has requested a pkg-osm project on Alioth, and will soon contact you ;))


-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to