OSMIUM-QUERY-LOCATIONS-INDEX(1)
β¨ OSMIUM-QUERY-LOCATIONS-INDEX(1) β¨
okay bestie, welcome to the osmium-query-locations-index manual page π this is the section 1 command, and it's literally just here to look up node locations. group chat energy only, but the facts are all staying, no cap.
πΈ NAME πΈ
osmium-query-locations-index β query node locations index π¦
β SYNOPSIS β
osmium query-locations-index -i INDEX-FILE [OPTIONS] NODE-ID
osmium query-locations-index -i INDEX-FILE [OPTIONS] --dump
π DESCRIPTION π
So basically you've got two moods here, and both of them are iconic β¨
- Get the location of a node out of an index that was made with
osmium create-locations-indexπ«Ά - Dump the whole index into an OSM file π¦
The index file format? Compatible with the one created by osmium add-location-to-ways -i dense_file_array,INDEX-FILE and with the flatnode store created by osm2pgsql. slay, standards π
β οΈ Heads up: this command will not work with negative node IDs. nope. don't even try it. π
Also, quick note β when you use the --dump option, metadata (like version, timestamp, etc.) does not get written to the output file, because honestly it's all empty anyway π If you want it, use the --output-format/-f option with add_metadata=... to overwrite that.
π OPTIONS π
--dumpβ Dump all node locations to an OSM file π Use the--output/-oand--output-format/-foptions to set the file format to be used. Default is STDOUT and the OPL format, respectively β¨-i,--index-file=FILENAMEβ The name of the index file. that's the one you're reading from, bestie π
π COMMON OPTIONS π
-h,--helpβ Show usage help. your bestie when you forget everything π«Ά-v,--verboseβ Set verbose mode. The program will output information about what it is doing to STDERR π it's giving commentary track
π OUTPUT OPTIONS π
-f,--output-format=FORMATβ The format of the output file. Can be used to set the output file format if it can't be autodetected from the output file name. Seeosmium-file-formats(5)or the libosmium manual for details π--fsyncβ Callfsyncafter writing the output file to force flushing buffers to disk. get that data on the disk, periodt πΎ--generator=NAMEβ The name and version of the program generating the output file. It will be added to the header of the output file. Default is"osmium/"and the version of osmium π·οΈ-o,--output=FILEβ Name of the output file. Default is-(STDOUT) β¨-O,--overwriteβ Allow an existing output file to be overwritten. Normally osmium will refuse to write over an existing file π« so if you want that, you have to say it out loud--output-header=OPTION=VALUEβ Add output header option. This command line option can be used multiple times for different OPTIONs π See theosmium-output-headers(5)man page for a list of available header options. For some commands you can use the special format"OPTION!"(ie. an exclamation mark after the OPTION and no value set) to set the value to the same as in the input file π
π DIAGNOSTICS π
osmium query-locations-index exits with exit code:
0β if everything went alright and the node location was found π1β if the node location was not found π2β if there was a problem with the command line arguments π
π§ MEMORY USAGE π§
osmium query-locations-index will not use a lot of memory. light as a feather, bestie πͺΆ
π₯ EXAMPLES π₯
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
π SEE ALSO π
osmium(1),osmium-create-locations-index(1),osmium-file-formats(5),osmium-output-headers(5)- Osmium website
osm2pgsql
π COPYRIGHT π
Copyright (C) 2013-2026 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. βοΈ (yes that's the whole vibe, it's free, go wild, but no promises fr fr)
π«Ά CONTACT π«Ά
If you have any questions or want to report a bug, please go to <https://osmcode.org/contact.html> β they're nice, I promise π
π AUTHORS π
Jochen Topf <jochen@topf.org>. the icon, the legend, the moment π
and that's the whole page bestie, you ate it π
β¨ this was version 1.19.1 of the osmium-query-locations-index manual, so go query those locations, love u, bye π¦π
π¦ where this page comes from
- fedora 44: osmium-tool 1.19.1-1.fc44 Β· GPL-3.0-only
- nixos 26.05: osmium-tool 1.19.1
- nixpkgs unstable: osmium-tool 1.19.1
- ubuntu stonking: osmium-tool 1.19.1-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms