This file is indexed.

/usr/share/doc/python3-pyosmium/examples/create_nodecache.py is in python3-pyosmium 2.6.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import osmium as o
import sys

if len(sys.argv) != 3:
    print("Usage: python create_nodecache.py <osm file> <node cache>")
    exit(-1)

reader = o.io.Reader(sys.argv[1], o.osm.osm_entity_bits.NODE)

idx = o.index.create_map("sparse_file_array," + sys.argv[2])
lh = o.NodeLocationsForWays(idx)

o.apply(reader, lh)

reader.close()