OSMIUM-QUERY-LOCATIONS-INDEX(1) | OSMIUM-QUERY-LOCATIONS-INDEX(1) |
osmium-query-locations-index - query node locations index
osmium query-locations-index -i INDEX-FILE [OPTIONS] NODE-ID
osmium query-locations-index -i INDEX-FILE [OPTIONS] --dump
Get the location of a node from an index created with osmium create-locations-index or dump the whole index into an OSM file.
The index file format is compatible to the one created by “osmium add-location-to-ways -i dense_file_array,INDEX-FILE” and to the flatnode store created by osm2pgsql.
This command will not work with negative node IDs.
Note that when the --dump option is used, metadata (like version, timestamp, etc.) is not written to the output file because it is all empty anyway. Use the --output-format/-f option with add_metadata=... to overwrite this.
osmium query-locations-index exits with exit code
osmium query-locations-index will not use a lot of memory.
Get location of node 1234 from locations.idx:
osmium query-locations-index -i locations.idx 1234
Dump contents of locations.idx into an OPL file:
osmium query-locations-index -i locations.idx --dump -o nodes.opl
Copyright (C) 2013-2023 Jochen Topf <jochen@topf.org>.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
If you have any questions or want to report a bug, please go to https://osmcode.org/contact.html
Jochen Topf <jochen@topf.org>.
1.15.0 |