libmapnik compiled without proj support

Bug #1987559 reported by Marcos Sánchez Provencio
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
mapnik (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In what it seems a regression, libmapnik is compiled without proj support in ubuntu 22.04 (it was supported in ubuntu 20.04). The error from the (working in 20.04) program is:

RuntimeError: Cannot initialize proj_transform for given projections without proj4 support (-DMAPNIK_USE_PROJ4): '+proj=utm +zone=30 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'->'+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs'

`getbuildlog mapnik last` shows:
Note: will build without these OPTIONAL dependencies:
   - proj (Proj.4 C Projections library | configure with PROJ_LIBS & PROJ_INCLUDES | more info: http://trac.osgeo.org/proj/)^[[0m

Possibly related:
https://github.com/mapnik/mapnik/issues/4232 mentions upgrade to ubuntu 22.04

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libmapnik3.1 3.1.0+ds-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-46.49-generic 5.15.39
Uname: Linux 5.15.0-46-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 24 20:55:45 2022
InstallationDate: Installed on 2022-08-22 (2 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
SourcePackage: mapnik
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Marcos Sánchez Provencio (rapto) wrote :
Revision history for this message
Marcos Sánchez Provencio (rapto) wrote :

The attached python script works in ubuntu 20.04, produces said error on ubuntu 22.04

Revision history for this message
Marcos Sánchez Provencio (rapto) wrote :

I have reproduced the same error with the attached python test in ubuntu 22.10 beta

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mapnik (Ubuntu):
status: New → Confirmed
Revision history for this message
Gregory Boyd (flyovergreg) wrote :

renderd log shows the same error on just-installed Ubuntu 22.04.2 LTS.

May 28 15:24:55 ip-10-0-0-123 renderd[3396]: ** (process:3396): ERROR **: 15:24:55.614: reason: Cannot initialize proj_transform for given projections without proj4 support (-DMAPNIK_USE_PROJ4): '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs'->'+proj=longlat +datum=WGS84 +no_defs'

Revision history for this message
Marcos Sánchez Provencio (rapto) wrote :

No error on Ubuntu 23.04

Revision history for this message
Marcos Sánchez Provencio (rapto) wrote :

No error on Ubuntu 23.10

Revision history for this message
Marcos Sánchez Provencio (rapto) wrote :

No error on Ubuntu 24.04 (beta as of this comment)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.