Usage

Example

Help

❯ attribuutit --help

 Usage: attribuutit [OPTIONS] COMMAND [ARGS]...

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                                    │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.             │
│ --help                        Show this message and exit.                                                                  │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ version   Report the version.                                                                                              │
│ eject     Eject an example configuration in JSON format with stem equal to name.                                           │
│ scan      Scan the file system based on the configuration given in name.json and persist the report eventually.            │
│ inspect   Inspect the file at path and persist the report eventually.                                                      │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Inspect GeoTIFF

❯ attribuutit inspect GRAY_50M_SR_OB.tif
Real run inspecting file at local/incoming/GRAY_50M_SR_OB.tif
GRAY_50M_SR_OB.tif -> CRS WGS_84 (4326) within [-179.99999999999997, 90.0, 179.99999999996405, -89.99999999998201]

Inspect Shape File

❯ attribuutit inspect ne_110m_admin_0_tiny_countries.shp
Real run inspecting file at local/incoming/ne_110m_admin_0_tiny_countries.shp
ne_110m_admin_0_tiny_countries.shp -> FeatureCollection/37 within [-175.23533295466754, -54.274478863695265, 179.20397422623353, 71.02824880643254]

Inspect VPF File

❯ attribuutit inspect lat
Real run inspecting file at lat
{
  "error": false,
  "error_detail": "",
  "byte_order": "little",
  "byte_order_explicit": true,
  "header_length": 268,
  "header_byte_offset": 5,
  "table_description": "Library Attribute (Extent) Table",
  "narrative_table_name": "-",
  "columns": {
    "id": {
      "column_rank": 1,
      "column_name": "id",
      "field_type": "I",
      "field_length": 1,
      "key_type": "P",
      "column_textual_description": "Row Identifier",
      "optional_value_description_table_name": "-",
      "optional_thematic_index_name": "-",
      "optional_column_narrative_table_name": "-"
    },
# - - - 8< - - -
    "ymax": {
      "column_rank": 6,
      "column_name": "ymax",
      "field_type": "F",
      "field_length": 1,
      "key_type": "N",
      "column_textual_description": "Northernmost latitude",
      "optional_value_description_table_name": "-",
      "optional_thematic_index_name": "-",
      "optional_column_narrative_table_name": "-"
    }
  }
}