EnglishFrenchSpanish

OnWorks favicon

osmium-fileinfo - Online in the Cloud

Run osmium-fileinfo in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command osmium-fileinfo that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


osmium-fileinfo - show information about an OSM file

SYNOPSIS


osmium fileinfo [OPTIONS] OSM-FILE

DESCRIPTION


Shows various information about OSM files such as the file type, bounding boxes in the
header, etc.

This command will usually only read the file header. Use the --extended option to show
more information.

Normally this command will output the data in human readable form. If the -j, --json
option is used, the output will be in JSON format instead.

If the -g, --get option is used, only the value of the named variable will be printed.

The output is split into three sections:

File This section shows the information available without opening the file itself. It
contains the file name, the format deduced from the file name, the compression used
and the size of the file in bytes.

Header This section shows the information available from the header of the file (if
available, OPL files have no header). Any available bounding boxes are shown as
well as header options such as the generator and file format version.

Data This section shows the information available from reading the whole file. It is
only shown if the --extended option was used. It shows the actual bounding box
calculated from the nodes in the file, the first and last timestamp of all objects
in the file, a CRC32 checksum of the data in the file, the number of changesets,
nodes, ways, and relations found in the file, whether the objects in the file were
ordered by type (nodes, then ways, then relations) and id, and whether there were
multiple versions of the same object in the file (history files and change files
can have that).

OPTIONS


-e, --extended
Read the complete file and show additional information. The default is to read
only the header of the file.

-F, --input-format=FORMAT
The format of the input file. Can be used to set the input file format if it can't
be autodetected from the file name. See osmium-file-formats(5) or the libosmium
manual for details.

-g, --get=VARIABLE
Get value of VARIABLE. Can not be used together with --json.

-G, --show-variables
Show a list of all variable names.

-j, --json
Output in JSON format. Can not be used together with --get.

-v, --verbose
Set verbose mode. The program will output information about what it is doing to
stderr.

VARIABLES


The following variables are available:

file.name - STRING
file.format - STRING: XML|PBF
file.compression - STRING: none|bzip2|gzip
file.size - INTEGER (0 for stdout)
header.with_history - BOOL (yes|no)
header.option.generator - STRING
header.option.version - STRING
header.option.pbf_dense_nodes - BOOL (yes|no)
header.option.osmosis_replication_timestamp - STRING with TIMESTAMP
header.option.osmosis_replication_sequence_number - INTEGER
header.option.osmosis_replication_base_url - STRING
data.bbox - BOX
(in JSON as nested ARRAY with coordinates)
data.timestamp.first - STRING with TIMESTAMP
data.timestamp.last - STRING wih TIMESTAMP
data.objects_ordered - BOOL (yes|no)
data.multiple_versions - STRING (yes|no|unknown)
(in JSON as BOOL and missing if "unknown")
data.crc32 - STRING with 8 hex digits
data.count.nodes - INTEGER
data.count.ways - INTEGER
data.count.relations - INTEGER
data.count.changesets - INTEGER
data.maxid.nodes - INTEGER
data.maxid.ways - INTEGER
data.maxid.relations - INTEGER
data.maxid.changesets - INTEGER

All timestamps are in the usual OSM ISO format yy-mm-ddThh::mm::ssZ. Boxes are in the
format (xmin, ymin, xmax, ymax).

DIAGNOSTICS


osmium fileinfo exits with exit code

0 if everything went alright,

1 if there was an error processing the data, or

2 if there was a problem with the command line arguments.

Use osmium-fileinfo online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad