[MapProxy] Mapproxy hangs on reprojection?

Anne Blankert anne.blankert at geodan.nl
Sun Sep 26 16:10:20 EDT 2010


 Hello Oliver,

Thanks very much for taking time to answer my questions. More comments
are in between the lines.

Op 25-9-2010 11:58, Oliver Tonnhofer schreef:
> Hi Anne,
>
> On 25.09.2010, at 02:10, Anne Blankert wrote:
>> Now if I start the service with:
>> paster serve etc/develop.ini --reload
>>
>> The service completely hangs after 1 getCapabilities request + 4 GetMap epsg:900913 requests.
>> The 4 tiles are reprojected correctly, but no longer transparent.
>> I have to completely kill the command box that I used to run the virtual environment in before I can use mapproxy again.
>> [...]
>> Questions:
>> * Is the hang a problem caused by me, my machine, Vista in general, virtualenv, Python or MapProxy?
> I have never seen any hanging of MapProxy. Can you shutdown MapProxy with ctrl-c, ctrl-d or ctrl-z (can't remember which one works on windows) and post the traceback information?
>
I now also installed MapProxy in a virtual box under Ubuntu 10.4 and
that works without hanging. Under Windows Vista, ctrl-c gives some info
before returning to the command prompt, but after hanging, ctrl-c just
returns to the command prompt without messages. Under Windows, the osm
omniscale example is stable, but the reproject is not stable. Python
should behave the same under all OS-ses, but I think MapProxy also uses
some natively compiled modules?
>> * it seems that layer-transparancy is lost if reprojected. Is that true?
> It should work, otherwise it would be a bug :)
>
> Can you make sure your client requested MapProxy with `transparent=true`?
After reprojection, transparency still seems to be lost, also on the
Linux install.
Both client to MapProxy and MapProxy to WMS request with
'transparent=true'. I verified that the WMS server sends a png on a
transparent background.
http://webservice.nieuwekaart.nl/cgi-bin/nkn?styles=&format=image/png&height=1184&bbox=5.08392333984,52.2597524939,5.28717041016,52.3839820826&transparent=true&layers=nieuwekaart&service=WMS&srs=EPSG:4326&request=GetMap&width=1937&version=1.1.1
<http://webservice.nieuwekaart.nl//cgi-bin/nkn?styles=&format=image/png&height=1184&bbox=5.08392333984,52.2597524939,5.28717041016,52.3839820826&transparent=true&layers=nieuwekaart&service=WMS&srs=EPSG:4326&request=GetMap&width=1937&version=1.1.1>

client to MapProxy:
GET
/service?LAYERS=dnk&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=543008.64525163,6858541.6691548,547900.615061,6863433.6389641&WIDTH=256&HEIGHT=256
HTTP/1.1
Host: 192.168.1.19:8080
Connection: keep-alive
Referer: http://localhost/jsedugis/index3.html
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
Accept-Encoding: gzip,deflate,sdch
Accept-Language: nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

MapProxy to WMS:
GET
/cgi-bin/nkn?styles=&format=image%2Fpng&height=1184&bbox=5.08392333984,52.2597524939,5.28717041016,52.3839820826&transparent=true&layers=nieuwekaart&service=WMS&srs=EPSG%3A4326&request=GetMap&width=1937&version=1.1.1
HTTP/1.1
Accept-Encoding: identity
Host: webservice.nieuwekaart.nl
Connection: close
User-Agent: MapProxy-0.8.5

>> * the request header shows escaped request parameters, shouldn't they be unescaped?
> You mean 'image%2Fpng'? That is the right encoding.
You are probably right.
>> * the request header claims I am using MapProxy version 0.8.5 instead of 0.8.4
> And you are sure you haven't installed 0.8.5? It was released 5 days ago, and if you used easy_install/pip you should have that release. You can look into your virtualenv (lib/python2.6/site-packages) and check the output of `python -m mapproxy.core.version`.
The easy_install was so easy that I forgot about it. I had also
downloaded the tar.gz version 0.8.4, but only after your remark, I
realized I never had to use it.
> Regards,
> Oliver
>
Regards,

Anne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20100926/ff76303b/attachment.html


More information about the MapProxy mailing list