[OSGeoLive] #2352: mapnik python demo ol15
OSGeoLive
trac_osgeolive at osgeo.org
Tue Aug 2 10:36:49 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):
The error message itself seems to come from mapnik core library.
https://github.com/mapnik/mapnik/blob/v3.1.x/src/proj_transform.cpp#L129-L134
{{{
#ifdef MAPNIK_USE_PROJ4
source_.init_proj4();
dest_.init_proj4();
#else
throw std::runtime_error(std::string("Cannot initialize
proj_transform for given projections without proj4 support
(-DMAPNIK_USE_PROJ4): '") + source_.params() + "'->'" + dest_.params() +
"'");
#endif
}}}
I compared libmapnik between OSGeoLive 14.0 and 15.0beta1 environments,
and I noticed that OSGeoLive 15.0beta1 libmapnik3.1 seems not to link to
libproj.
- OSGeoLive 14.0
{{{
$ dpkg -l | grep libmapnik
ii libmapnik3.0 ...
:
$ dpkg -L libmapnik3.0
:
/usr/lib/libmapnik.so.3.0
$ ldd /usr/lib/libmapnik.so.3.0 | grep libproj
libproj.so.19 ...
}}}
- OSGeoLive 15.0beta1
{{{
$ dpkg -l | grep libmapnik
ii libmapnik3.1 ...
:
$ dpkg -L libmapnik3.1
:
/usr/lib/libmapnik.so.3.1
$ ldd /usr/lib/libmapnik.so.3.1 | grep libproj
}}}
So, I guess that rebuilding {{{libmapnik3.1}}} with
{{{-DMAPNIK_USE_PROJ4}}} flag or downgrading to {{{libmapnik3.0}}} may
solve this issue.
--
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2352#comment:8>
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