{
  "format": "sqlite",
  "from": {
    "cycle": "261001",
    "id": "obstacles-conus"
  },
  "kind": "obstacles",
  "pack_meta_keys": [
    "attribution",
    "cycle",
    "effective",
    "expires",
    "id",
    "kind",
    "license",
    "license_url",
    "schema_version"
  ],
  "packs": {
    "obstacles-conus": {
      "builder": {
        "builder_refs": {},
        "commit": null,
        "makerplane_data_commit": null,
        "repo": "pyEfis",
        "tool": "tools/build_obstacle_db.py"
      },
      "container": "sqlite",
      "indexes": {
        "idx_obstacles_agl": {
          "columns": [
            "agl_ft"
          ],
          "sql": "CREATE INDEX idx_obstacles_agl ON obstacles(agl_ft)",
          "table": "obstacles",
          "unique": false
        },
        "idx_obstacles_lat": {
          "columns": [
            "lat"
          ],
          "sql": "CREATE INDEX idx_obstacles_lat ON obstacles(lat)",
          "table": "obstacles",
          "unique": false
        }
      },
      "pack": {
        "cycle": "261001",
        "id": "obstacles-conus",
        "kind": "obstacles",
        "schema_version": "1"
      },
      "pack_meta_keys": [
        "attribution",
        "cycle",
        "effective",
        "expires",
        "id",
        "kind",
        "license",
        "license_url",
        "schema_version"
      ],
      "rtrees": {},
      "schema": "pack-schema/1",
      "source": "bootstrap: read from the published pack",
      "tables": {
        "obstacles": {
          "columns": [
            {
              "default": null,
              "name": "oas_no",
              "notnull": false,
              "pk": 1,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "lat",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "lon",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "comment": "tip elevation, ft MSL",
              "default": null,
              "name": "amsl_ft",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "comment": "height above ground, ft",
              "default": null,
              "name": "agl_ft",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "comment": "\"TOWER\", \"ANTENNA\", \"BLDG\", \"STACK\", \"WIND TURB\", ...",
              "default": null,
              "name": "type",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "comment": "number of objects at this site (usually 1)",
              "default": null,
              "name": "quantity",
              "notnull": false,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "comment": "R=red, W=white, D=dual, M=marked, N=none, U=unknown",
              "default": null,
              "name": "lighting",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "marking",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "state",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "city",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            }
          ],
          "sql": "CREATE TABLE obstacles (\n    oas_no    TEXT PRIMARY KEY,\n    lat       REAL NOT NULL,\n    lon       REAL NOT NULL,\n    amsl_ft   REAL NOT NULL,        -- tip elevation, ft MSL\n    agl_ft    REAL NOT NULL,        -- height above ground, ft\n    type      TEXT,                 -- \"TOWER\", \"ANTENNA\", \"BLDG\", \"STACK\", \"WIND TURB\", ...\n    quantity  INTEGER,              -- number of objects at this site (usually 1)\n    lighting  TEXT,                 -- R=red, W=white, D=dual, M=marked, N=none, U=unknown\n    marking   TEXT,\n    state     TEXT,\n    city      TEXT\n)"
        },
        "pack_meta": {
          "columns": [
            {
              "default": null,
              "name": "key",
              "notnull": false,
              "pk": 1,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "value",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            }
          ],
          "sql": "CREATE TABLE pack_meta (key TEXT PRIMARY KEY, value TEXT)"
        }
      }
    }
  },
  "schema": "pack-schema/1",
  "schema_version": "1",
  "tables": [
    {
      "columns": [
        {
          "default": null,
          "name": "oas_no",
          "notnull": false,
          "pk": 1,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "lat",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "lon",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "amsl_ft",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "agl_ft",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "type",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "quantity",
          "notnull": false,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "lighting",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "marking",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "state",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "city",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        }
      ],
      "indexes": [
        {
          "name": "idx_obstacles_agl",
          "sql": "CREATE INDEX idx_obstacles_agl ON obstacles(agl_ft)",
          "unique": false
        },
        {
          "name": "idx_obstacles_lat",
          "sql": "CREATE INDEX idx_obstacles_lat ON obstacles(lat)",
          "unique": false
        },
        {
          "name": "sqlite_autoindex_obstacles_1",
          "sql": null,
          "unique": false
        }
      ],
      "name": "obstacles",
      "sql": "CREATE TABLE obstacles (\n    oas_no    TEXT PRIMARY KEY,\n    lat       REAL NOT NULL,\n    lon       REAL NOT NULL,\n    amsl_ft   REAL NOT NULL,        -- tip elevation, ft MSL\n    agl_ft    REAL NOT NULL,        -- height above ground, ft\n    type      TEXT,                 -- \"TOWER\", \"ANTENNA\", \"BLDG\", \"STACK\", \"WIND TURB\", ...\n    quantity  INTEGER,              -- number of objects at this site (usually 1)\n    lighting  TEXT,                 -- R=red, W=white, D=dual, M=marked, N=none, U=unknown\n    marking   TEXT,\n    state     TEXT,\n    city      TEXT\n)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "key",
          "notnull": false,
          "pk": 1,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "value",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        }
      ],
      "indexes": [
        {
          "name": "sqlite_autoindex_pack_meta_1",
          "sql": null,
          "unique": false
        }
      ],
      "name": "pack_meta",
      "sql": "CREATE TABLE pack_meta (key TEXT PRIMARY KEY, value TEXT)",
      "virtual": false
    }
  ]
}
