Skip to content

Empty nodes coordinates in ways OPL output with locations_on_ways=true #299

@flacombe

Description

@flacombe

What version of osmium-tool are you using?

I encounter this problem with the following versions

Debian Bullseye
osmium version 1.13.1
libosmium version 2.16.0
Supported PBF compression types: none zlib lz4

updated to

Debian Trixie
osmium version 1.18.0
libosmium version 2.22.0
Supported PBF compression types: none zlib lz4

What operating system version are you using?

Debian Bullseye and Debian Trixie

Tell us something about your system

8 CPU / 32 Go RAM / 2 To SSD

What did you do exactly?

I applied the follwing commands on the planet history file:

osmium tags-filter history-latest.osm.pbf -R w/power=line,cable -O -o history-interm.osh.pbf
osmium getid -H -r -t history-latest.osm.pbf  -I history-interm.osh.pbf -o history-useful.osh.pbf
osmium time-filter history-useful.osh.pbf 2024-10-01T00:00:00Z 2025-09-22T00:00:02Z -f opl,history=true,locations_on_ways=true -o features-lines.opl

What did you expect to happen?

I expected to get nodes members coordinates in the output OPL in the N field (nIDxLONGITUDEyLATITUDE) for selected ways.

What did happen instead?

I'm getting an incomplete OPL output like:

cat features-lines.opl | grep n13160885753
n1316088575 v1 dV c172268459 t2025-09-21T22:49:43Z i56597 uOberaffe T x84.1388664 y37.7405636
w1431824928 v1 dV c172268459 t2025-09-21T22:49:43Z i56597 uOberaffe Tcables=3,power=line Nn13160885754xy,n13160885753xy,n13160885752xy,n13160885751xy,n13160885750xy,n13160885749xy,n13160885748xy,n13160885747xy,n13160885746xy,n13160885745xy,n13160885744xy,n13160885743xy,n13160885742xy,n13160885741xy,n13160885740xy

As node is available in the OPL file, coordinates were expected to be shown beside x and y.

What did you do to try analyzing the problem?

I've upgrade from osmium 1.13.1 (Debian Bullseye) to osmium 1.18.0 (Debian Trixie)
I checked the commands and documentation, existing issues in this repo but didn't found anything relevant yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions