{
  "format": "sqlite",
  "from": {
    "cycle": "2026q2r6",
    "id": "water-na"
  },
  "kind": "water",
  "pack_meta_keys": [
    "attribution",
    "cycle",
    "id",
    "kind",
    "schema_version"
  ],
  "packs": {
    "water-na": {
      "builder": {
        "builder_refs": {
          "pyEfis": "d87cd5c897367b927aeb4a7fc33b5f677626e397"
        },
        "commit": "d87cd5c897367b927aeb4a7fc33b5f677626e397",
        "makerplane_data_commit": "d1cf80098d0a1d1e08163e25fb761582c825de3d",
        "repo": "pyEfis",
        "tool": "tools/fetch_geofabrik_water.py"
      },
      "container": "sqlite",
      "indexes": {
        "idx_bbox": {
          "columns": [
            "min_lat",
            "max_lat",
            "min_lon",
            "max_lon"
          ],
          "sql": "CREATE INDEX idx_bbox\n    ON water_polygons(min_lat, max_lat, min_lon, max_lon)",
          "table": "water_polygons",
          "unique": false
        },
        "idx_kind": {
          "columns": [
            "kind"
          ],
          "sql": "CREATE INDEX idx_kind ON water_polygons(kind)",
          "table": "water_polygons",
          "unique": false
        }
      },
      "pack": {
        "cycle": "2026q4r1",
        "id": "water-na",
        "kind": "water",
        "schema_version": "1"
      },
      "pack_meta_keys": [
        "attribution",
        "cycle",
        "id",
        "kind",
        "license",
        "license_url",
        "schema_version"
      ],
      "rtrees": {
        "water_rtree": {
          "columns": [
            "id",
            "min_lat",
            "max_lat",
            "min_lon",
            "max_lon"
          ],
          "sql": "CREATE VIRTUAL TABLE water_rtree USING rtree(\n    id,\n    min_lat, max_lat,\n    min_lon, max_lon\n)"
        },
        "waterway_rtree": {
          "columns": [
            "id",
            "min_lat",
            "max_lat",
            "min_lon",
            "max_lon"
          ],
          "sql": "CREATE VIRTUAL TABLE waterway_rtree USING rtree(\n    id, min_lat, max_lat, min_lon, max_lon\n)"
        }
      },
      "schema": "pack-schema/1",
      "source": "publish",
      "tables": {
        "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)"
        },
        "water_polygons": {
          "columns": [
            {
              "default": null,
              "name": "id",
              "notnull": false,
              "pk": 1,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "min_lat",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "max_lat",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "min_lon",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "max_lon",
              "notnull": true,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "kind",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "elev_ft",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "vertices",
              "notnull": true,
              "pk": 0,
              "type": "BLOB"
            },
            {
              "default": null,
              "name": "triangles",
              "notnull": false,
              "pk": 0,
              "type": "BLOB"
            },
            {
              "default": null,
              "name": "rings",
              "notnull": false,
              "pk": 0,
              "type": "BLOB"
            }
          ],
          "sql": "CREATE TABLE water_polygons (\n    id        INTEGER PRIMARY KEY AUTOINCREMENT,\n    min_lat   REAL NOT NULL,\n    max_lat   REAL NOT NULL,\n    min_lon   REAL NOT NULL,\n    max_lon   REAL NOT NULL,\n    kind      TEXT NOT NULL,\n    elev_ft   REAL,\n    vertices  BLOB NOT NULL,\n    -- Pre-tessellated triangle indices into the ``vertices`` array,\n    -- packed little-endian (3 indices per triangle): uint16 for rows\n    -- of <= 65535 vertices, uint32 beyond (dense multi-ring cells;\n    -- the dtype is implied by the row's vertex count on both the\n    -- build and read side). NULL only when tessellation failed at\n    -- build time (logged as a warning). The GPU water renderer\n    -- uploads these directly to a GL element-array buffer with one\n    -- draw call per polygon.\n    triangles BLOB,\n    -- Ring topology for multi-ring (outer + hole) polygons, packed as\n    -- little-endian ring END offsets into ``vertices`` (earcut\n    -- convention: outer ring first, then each hole ring; same\n    -- uint16/uint32 vertex-count rule as ``triangles``). NULL for\n    -- plain single-ring polygons \u2014 the overwhelming majority. When\n    -- present, ``triangles`` was tessellated hole-aware, so island\n    -- holes are excluded from the fill (#44).\n    rings     BLOB\n)"
        },
        "waterway_lines": {
          "columns": [
            {
              "default": null,
              "name": "id",
              "notnull": false,
              "pk": 1,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "fclass",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "min_lat",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "max_lat",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "min_lon",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "max_lon",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "verts",
              "notnull": true,
              "pk": 0,
              "type": "BLOB"
            }
          ],
          "sql": "CREATE TABLE waterway_lines (\n    id INTEGER PRIMARY KEY,\n    fclass TEXT NOT NULL,\n    min_lat REAL, max_lat REAL, min_lon REAL, max_lon REAL,\n    verts BLOB NOT NULL\n)"
        }
      }
    }
  },
  "schema": "pack-schema/1",
  "schema_version": "1",
  "tables": [
    {
      "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
    },
    {
      "columns": [
        {
          "default": null,
          "name": "id",
          "notnull": false,
          "pk": 1,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "min_lat",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lat",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "min_lon",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lon",
          "notnull": true,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "kind",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "elev_ft",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "vertices",
          "notnull": true,
          "pk": 0,
          "type": "BLOB"
        },
        {
          "default": null,
          "name": "triangles",
          "notnull": false,
          "pk": 0,
          "type": "BLOB"
        },
        {
          "default": null,
          "name": "rings",
          "notnull": false,
          "pk": 0,
          "type": "BLOB"
        }
      ],
      "indexes": [
        {
          "name": "idx_bbox",
          "sql": "CREATE INDEX idx_bbox\n    ON water_polygons(min_lat, max_lat, min_lon, max_lon)",
          "unique": false
        },
        {
          "name": "idx_kind",
          "sql": "CREATE INDEX idx_kind ON water_polygons(kind)",
          "unique": false
        }
      ],
      "name": "water_polygons",
      "sql": "CREATE TABLE water_polygons (\n    id        INTEGER PRIMARY KEY AUTOINCREMENT,\n    min_lat   REAL NOT NULL,\n    max_lat   REAL NOT NULL,\n    min_lon   REAL NOT NULL,\n    max_lon   REAL NOT NULL,\n    kind      TEXT NOT NULL,\n    elev_ft   REAL,\n    vertices  BLOB NOT NULL,\n    -- Pre-tessellated triangle indices into the ``vertices`` array,\n    -- packed little-endian (3 indices per triangle): uint16 for rows\n    -- of <= 65535 vertices, uint32 beyond (dense multi-ring cells;\n    -- the dtype is implied by the row's vertex count on both the\n    -- build and read side). NULL only when tessellation failed at\n    -- build time (logged as a warning). The GPU water renderer\n    -- uploads these directly to a GL element-array buffer with one\n    -- draw call per polygon.\n    triangles BLOB,\n    -- Ring topology for multi-ring (outer + hole) polygons, packed as\n    -- little-endian ring END offsets into ``vertices`` (earcut\n    -- convention: outer ring first, then each hole ring; same\n    -- uint16/uint32 vertex-count rule as ``triangles``). NULL for\n    -- plain single-ring polygons \u2014 the overwhelming majority. When\n    -- present, ``triangles`` was tessellated hole-aware, so island\n    -- holes are excluded from the fill (#44).\n    rings     BLOB\n)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "id",
          "notnull": false,
          "pk": 0,
          "type": "INT"
        },
        {
          "default": null,
          "name": "min_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "min_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        }
      ],
      "indexes": [],
      "name": "water_rtree",
      "shadow_tables": [
        "water_rtree_node",
        "water_rtree_parent",
        "water_rtree_rowid"
      ],
      "sql": "CREATE VIRTUAL TABLE water_rtree USING rtree(\n    id,\n    min_lat, max_lat,\n    min_lon, max_lon\n)",
      "virtual": true
    },
    {
      "columns": [
        {
          "default": null,
          "name": "id",
          "notnull": false,
          "pk": 1,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "fclass",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "min_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "min_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "verts",
          "notnull": true,
          "pk": 0,
          "type": "BLOB"
        }
      ],
      "indexes": [],
      "name": "waterway_lines",
      "sql": "CREATE TABLE waterway_lines (\n    id INTEGER PRIMARY KEY,\n    fclass TEXT NOT NULL,\n    min_lat REAL, max_lat REAL, min_lon REAL, max_lon REAL,\n    verts BLOB NOT NULL\n)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "id",
          "notnull": false,
          "pk": 0,
          "type": "INT"
        },
        {
          "default": null,
          "name": "min_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "min_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "max_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        }
      ],
      "indexes": [],
      "name": "waterway_rtree",
      "shadow_tables": [
        "waterway_rtree_node",
        "waterway_rtree_parent",
        "waterway_rtree_rowid"
      ],
      "sql": "CREATE VIRTUAL TABLE waterway_rtree USING rtree(\n    id, min_lat, max_lat, min_lon, max_lon\n)",
      "virtual": true
    }
  ]
}
