[OSGeoLive] #2352: mapnik python demo ol15

OSGeoLive trac_osgeolive at osgeo.org
Wed Aug 3 17:35:24 PDT 2022

#2352: mapnik python demo ol15
 Reporter:  darkblueb        |       Owner:  osgeolive@…
     Type:  defect           |      Status:  new
 Priority:  critical         |   Milestone:  OSGeoLive15.0
Component:  OSGeoLive        |  Resolution:
 Keywords:  mapnik, jupyter  |
Comment (by sanak):

 Okay, thanks for the information.\\
 I also confirmed it.
 user at osgeolive:~$ ldd /usr/lib/libmapnik.so.3.1.0 | grep proj
         libproj.so.22 => /lib/x86_64-linux-gnu/libproj.so.22


 > but the mapproxy demo still fails. Perhaps a configuration issue?

 About this mapproxy demo failing, the error message was changed to
 {{{failed to initialize projection with: '+init=epsg:3857'}}}, and from
 googling a bit, the cause seems to be in mapproxy side.
 - https://github.com/mapproxy/mapproxy/issues/538
 - https://github.com/mapproxy/mapproxy/issues/136#issuecomment-42392618

 From above 2nd link, I patched {{{/usr/lib/python3/dist-
 packages/mapproxy/source/mapnik.py}}} as follows  locally, then I could
 show the mapnik layer correctly.
 -         m.srs = '+init=%s' % str(query.srs.srs_code.lower())
 +         m.srs = str(query.srs.srs_code.lower())
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2352#comment:17>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.

More information about the osgeolive mailing list