[MapProxy] mapproxy with mapserver srs problem

karsten karsten at terragis.net
Tue Oct 15 02:47:17 PDT 2013


 Hmm ok in the apache error log I also found this that looks only
sub-optimal to me :

[Tue Oct 15 11:49:12 2013] [warn] mod_wsgi: Compiled for Python/2.7.2rc1.
[Tue Oct 15 11:49:12 2013] [warn] mod_wsgi: Runtime using Python/2.7.2+.
[Tue Oct 15 11:49:12 2013] [notice] Apache/2.2.20 (Ubuntu)
Phusion_Passenger/2.2.11 PHP/5.3.6-13ubuntu3.8 with Suhosin-Patch
mod_wsgi/3.3 Python/2.7.2+ confi$
[Tue Oct 15 11:49:26 2013] [error]
/usr/local/lib/python2.7/dist-packages/mapproxy/image/message.py:18:
UserWarning: Module _yaml was already imported from /$
[Tue Oct 15 11:49:26 2013] [error]   import pkg_resources
[Tue Oct 15 11:50:00 2013] [error] No handlers could be found for logger
"mapproxy.source.wms"

Could this be the reason for the trouble ?
However, that said the Osm source with Mapproxy works perfectly ...

Cheers
Karsten


-----Original Message-----
From: karsten [mailto:karsten at terragis.net] 
Sent: Tuesday, October 15, 2013 02:40 AM
To: 'Oliver Tonnhofer'; 'Rahkonen Jukka'
Cc: 'mapproxy at lists.osgeo.org'
Subject: RE: [MapProxy] mapproxy with mapserver srs problem

>>> It is not necessarily mentioned in Mapserver WMS documents that but I am
remembering that it must be EPSG. Send a message if it happens to be the
case.
>>> 
>> Good to know, thanks.
Thanks , Ah yes I think I had seen that years ago somewhere in an email but
actually never ran into any trouble with lower case, also as is the WMS is
working.
I still changed it to all upper case - but hat did not make any visible
difference I still get the same error

>> Because Mapserver is your own you can check the requests which are sent
by MapProxy by looking at what comes in for Mapserver from the Apache
access.log.
>> There aren't any separate Apache logs for MapServer since Karsten used
the integrated MapServer source-type in MapProxy.

Yes the only type of request I can find with either version (mapserver or
wms types is like this
http://terra2.terragis.net/mapproxy/service?LAYERS=gemeinde&FORMAT=image%2Fp
ng&SRS=EPSG%3A900913&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&TRANSPARENT
=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=888873.686294,59
72302.049725,1676765.531286,6575280.502525&WIDTH=784&HEIGHT=600

>> The source request log of MapProxy should list bbox and srs of the 
>> requests however. The default log.ini should also create a 
>> source-requests.log file with all requests >> made to MapServer. See: 
>> http://mapproxy.org/docs/nightly/deployment.html#logging
Sorry I somehow still do not understand correctly  - I think - how to enable
this as I still get no log file after running mapproxy-util create -t
log-ini log.ini At ldast that commad created an ini file in the same
dierctory but no source-requests.log fiel is to be found anyhwer o my serer
so far...
I also chsnged the owner fo the log.ini file to www-data to make sure it can
be accessed ...

The loggers options
mapproxy.system
mapproxy.config
mapproxy.source.XXX
mapproxy.source.request
Are only relevant inside python right ? or can I sue them in the yaml file
somehow to invoke logging ?
Any hints what I still need to do after running 
mapproxy-util create -t log-ini log.ini   ?

Thanks
Karsten
 


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.com
http://mapproxy.org | https://github.com/olt    | @oltonn










More information about the MapProxy mailing list