[OSGeoLive] #2352: mapnik python demo ol15

OSGeoLive trac_osgeolive at osgeo.org
Tue Aug 2 08:19:50 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 darkblueb):

 build 162  **ol15**
 {{{

 user at osgeolive:~/Downloads/python-mapnik-master/test$ ipython3
 Python 3.10.4 (main, Apr  2 2022, 09:04:19) [GCC 11.2.0]
 Type 'copyright', 'credits' or 'license' for more information
 IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.

 In [1]: import mapnik

 In [2]: m = mapnik.Map(512, 512)
    ...:

 In [3]: mapnik.load_map(m, 'data/good_maps/wgs842merc_reprojection.xml')
 ---------------------------------------------------------------------------
 RuntimeError                              Traceback (most recent call
 last)
 <ipython-input-3-26cbb3ea7887> in <module>
 ----> 1 mapnik.load_map(m, 'data/good_maps/wgs842merc_reprojection.xml')

 RuntimeError: Cannot initialize projection 'epsg:3857 ' without proj4
 support (-DMAPNIK_USE_PROJ4) in Map at line 1 of
 'data/good_maps/wgs842merc_reprojection.xml'

 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2352#comment:7>
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