navit-gps / navit

The open source (GPL v2) turn-by-turn navigation software for many OS
http://www.navit-project.org
Other
551 stars 175 forks source link

Maptool error #1255

Closed peterbmckinley closed 9 months ago

peterbmckinley commented 9 months ago

Hi I have an osm map which I derived from a HERE Shapefile by successfully converting to osm by running

ogr2osm mymap.shp

And then subsequently successfully linted by running

xmllint --pretty 1 mymap.osm

But when I run maptool -i mymap.osm mymap.bin I get the following error:

PROGRESS: Phase 1: reading input data 0:00 0 MB PROGRESS1: Processed 0 nodes (0 out) 0 ways 0 relations 0 tiles 0:00 0 MB error:maptool:osm_add_node:./navit/maptool/osm.c:1427 assertion failed:id < ((2ull<<56)-1)

Aborted (core dumped)

peterbmckinley commented 9 months ago

If I run Maptool using the default stdin

maptool mymap

Maptool just prints

PROGRESS: Phase 1: reading input data 0:00 0 MB PROGRESS1: Processed 0 nodes (0 out) 0 ways 0 relations 0 tiles 0:00 0 MB

incrementing the second line every 30 seconds in an indefinite loop

peterbmckinley commented 9 months ago

resolved with ogr2osm --positive-id mymap.shp