[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]
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

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


-----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
>> 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
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
>> 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

>> 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
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   ?



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

More information about the MapProxy mailing list