From f60f2ea1ddfbc9cc76d344d8b28c08e815a0cef5 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Fri, 17 Jul 2026 11:15:14 +1200 Subject: [PATCH 01/20] feat: add a typespec emitter for both parquet and typescript --- package-lock.json | 26 + packages/schema/package.json | 14 +- packages/schema/src/types/next.ts | 1438 +++++++++++++++++ .../src/types/next/parquet/airport.json | 141 ++ .../schema/src/types/next/parquet/b_box.json | 26 + .../src/types/next/parquet/bridge_line.json | 159 ++ .../src/types/next/parquet/building.json | 153 ++ .../types/next/parquet/building_point.json | 158 ++ .../src/types/next/parquet/coastline.json | 140 ++ .../src/types/next/parquet/contour.json | 158 ++ .../src/types/next/parquet/data_source.json | 54 + .../types/next/parquet/descriptive_text.json | 146 ++ .../src/types/next/parquet/fence_line.json | 135 ++ .../src/types/next/parquet/ferry_line.json | 147 ++ .../src/types/next/parquet/geo_parquet.json | 38 + .../types/next/parquet/geographic_name.json | 152 ++ .../schema/src/types/next/parquet/island.json | 147 ++ .../src/types/next/parquet/landcover.json | 141 ++ .../types/next/parquet/landcover_line.json | 135 ++ .../parquet/landcover_point_core_types.json | 141 ++ .../src/types/next/parquet/landuse.json | 159 ++ .../src/types/next/parquet/landuse_line.json | 147 ++ .../src/types/next/parquet/landuse_point.json | 159 ++ .../schema/src/types/next/parquet/marine.json | 147 ++ .../src/types/next/parquet/marine_point.json | 141 ++ .../next/parquet/nztopo50_carto_text.json | 175 ++ .../types/next/parquet/nztopo50_dms_grid.json | 61 + .../src/types/next/parquet/nztopo50_grid.json | 61 + .../next/parquet/nztopo50_map_sheet.json | 102 ++ .../src/types/next/parquet/place_point.json | 164 ++ .../types/next/parquet/product_feature.json | 18 + .../src/types/next/parquet/railway_line.json | 165 ++ .../src/types/next/parquet/railway_point.json | 141 ++ .../schema/src/types/next/parquet/relief.json | 146 ++ .../src/types/next/parquet/relief_line.json | 152 ++ .../src/types/next/parquet/relief_point.json | 162 ++ .../types/next/parquet/residential_area.json | 141 ++ .../src/types/next/parquet/road_line.json | 188 +++ .../src/types/next/parquet/rock_outcrop.json | 141 ++ .../schema/src/types/next/parquet/runway.json | 153 ++ .../src/types/next/parquet/structure.json | 171 ++ .../types/next/parquet/structure_line.json | 159 ++ .../types/next/parquet/structure_point.json | 169 ++ .../next/parquet/topographic_feature.json | 30 + .../next/parquet/topographic_metadata.json | 73 + .../src/types/next/parquet/track_line.json | 159 ++ .../types/next/parquet/transport_point.json | 141 ++ .../src/types/next/parquet/trig_point.json | 158 ++ .../src/types/next/parquet/tunnel_line.json | 165 ++ .../src/types/next/parquet/utility_line.json | 165 ++ .../src/types/next/parquet/utility_point.json | 146 ++ .../src/types/next/parquet/vegetation.json | 147 ++ .../types/next/parquet/vegetation_line.json | 135 ++ .../types/next/parquet/vegetation_point.json | 135 ++ .../schema/src/types/next/parquet/water.json | 181 +++ .../src/types/next/parquet/water_line.json | 147 ++ .../src/types/next/parquet/water_point.json | 152 ++ .../schema/src/types/parquet/airport.json | 74 + .../src/types/parquet/audit_fields.json | 18 + packages/schema/src/types/parquet/b_box.json | 26 + .../schema/src/types/parquet/bridge_line.json | 98 ++ .../schema/src/types/parquet/building.json | 86 + .../src/types/parquet/building_point.json | 91 ++ .../schema/src/types/parquet/coastline.json | 79 + .../schema/src/types/parquet/contour.json | 90 ++ .../src/types/parquet/descriptive_text.json | 85 + .../schema/src/types/parquet/fence_line.json | 68 + .../src/types/parquet/ferry_crossing.json | 68 + .../src/types/parquet/geographic_name.json | 85 + packages/schema/src/types/parquet/island.json | 80 + .../schema/src/types/parquet/landcover.json | 80 + .../src/types/parquet/landcover_line.json | 68 + .../src/types/parquet/landcover_point.json | 90 ++ .../schema/src/types/parquet/landuse.json | 98 ++ .../src/types/parquet/landuse_line.json | 86 + packages/schema/src/types/parquet/marine.json | 80 + .../types/parquet/nztopo50_carto_text.json | 169 ++ .../src/types/parquet/nztopo50_dms_grid.json | 55 + .../src/types/parquet/nztopo50_grid.json | 55 + .../src/types/parquet/nztopo50_map_sheet.json | 102 ++ .../schema/src/types/parquet/place_point.json | 114 ++ .../src/types/parquet/product_identity.json | 12 + .../src/types/parquet/railway_line.json | 122 ++ .../src/types/parquet/railway_station.json | 74 + packages/schema/src/types/parquet/relief.json | 79 + .../schema/src/types/parquet/relief_line.json | 85 + .../src/types/parquet/relief_point.json | 85 + .../src/types/parquet/residential_area.json | 74 + .../schema/src/types/parquet/road_line.json | 133 ++ packages/schema/src/types/parquet/runway.json | 86 + .../schema/src/types/parquet/structure.json | 110 ++ .../src/types/parquet/structure_line.json | 110 ++ .../src/types/parquet/structure_point.json | 138 ++ .../src/types/parquet/topo_identity.json | 12 + .../schema/src/types/parquet/track_line.json | 92 ++ .../src/types/parquet/transport_point.json | 74 + .../schema/src/types/parquet/trig_point.json | 91 ++ .../schema/src/types/parquet/tunnel_line.json | 98 ++ .../src/types/parquet/utility_line.json | 98 ++ .../src/types/parquet/utility_point.json | 79 + .../schema/src/types/parquet/vegetation.json | 80 + .../src/types/parquet/vegetation_line.json | 68 + .../src/types/parquet/vegetation_point.json | 68 + packages/schema/src/types/parquet/water.json | 120 ++ .../schema/src/types/parquet/water_line.json | 80 + .../schema/src/types/parquet/water_point.json | 90 ++ packages/schema/src/types/types.ts | 1152 +++++++++++++ packages/schema/tsconfig.json | 8 + packages/schema/tspconfig.next.yaml | 3 + packages/schema/tspconfig.yaml | 4 + packages/typespec-emitter/package.json | 19 + packages/typespec-emitter/src/index.ts | 59 + packages/typespec-emitter/src/parquet.ts | 132 ++ packages/typespec-emitter/src/pydantic.ts | 16 + packages/typespec-emitter/src/typescript.ts | 178 ++ packages/typespec-emitter/src/utils.ts | 57 + packages/typespec-emitter/tsconfig.json | 8 + tsconfig.json | 6 + 118 files changed, 14549 insertions(+), 1 deletion(-) create mode 100644 packages/schema/src/types/next.ts create mode 100644 packages/schema/src/types/next/parquet/airport.json create mode 100644 packages/schema/src/types/next/parquet/b_box.json create mode 100644 packages/schema/src/types/next/parquet/bridge_line.json create mode 100644 packages/schema/src/types/next/parquet/building.json create mode 100644 packages/schema/src/types/next/parquet/building_point.json create mode 100644 packages/schema/src/types/next/parquet/coastline.json create mode 100644 packages/schema/src/types/next/parquet/contour.json create mode 100644 packages/schema/src/types/next/parquet/data_source.json create mode 100644 packages/schema/src/types/next/parquet/descriptive_text.json create mode 100644 packages/schema/src/types/next/parquet/fence_line.json create mode 100644 packages/schema/src/types/next/parquet/ferry_line.json create mode 100644 packages/schema/src/types/next/parquet/geo_parquet.json create mode 100644 packages/schema/src/types/next/parquet/geographic_name.json create mode 100644 packages/schema/src/types/next/parquet/island.json create mode 100644 packages/schema/src/types/next/parquet/landcover.json create mode 100644 packages/schema/src/types/next/parquet/landcover_line.json create mode 100644 packages/schema/src/types/next/parquet/landcover_point_core_types.json create mode 100644 packages/schema/src/types/next/parquet/landuse.json create mode 100644 packages/schema/src/types/next/parquet/landuse_line.json create mode 100644 packages/schema/src/types/next/parquet/landuse_point.json create mode 100644 packages/schema/src/types/next/parquet/marine.json create mode 100644 packages/schema/src/types/next/parquet/marine_point.json create mode 100644 packages/schema/src/types/next/parquet/nztopo50_carto_text.json create mode 100644 packages/schema/src/types/next/parquet/nztopo50_dms_grid.json create mode 100644 packages/schema/src/types/next/parquet/nztopo50_grid.json create mode 100644 packages/schema/src/types/next/parquet/nztopo50_map_sheet.json create mode 100644 packages/schema/src/types/next/parquet/place_point.json create mode 100644 packages/schema/src/types/next/parquet/product_feature.json create mode 100644 packages/schema/src/types/next/parquet/railway_line.json create mode 100644 packages/schema/src/types/next/parquet/railway_point.json create mode 100644 packages/schema/src/types/next/parquet/relief.json create mode 100644 packages/schema/src/types/next/parquet/relief_line.json create mode 100644 packages/schema/src/types/next/parquet/relief_point.json create mode 100644 packages/schema/src/types/next/parquet/residential_area.json create mode 100644 packages/schema/src/types/next/parquet/road_line.json create mode 100644 packages/schema/src/types/next/parquet/rock_outcrop.json create mode 100644 packages/schema/src/types/next/parquet/runway.json create mode 100644 packages/schema/src/types/next/parquet/structure.json create mode 100644 packages/schema/src/types/next/parquet/structure_line.json create mode 100644 packages/schema/src/types/next/parquet/structure_point.json create mode 100644 packages/schema/src/types/next/parquet/topographic_feature.json create mode 100644 packages/schema/src/types/next/parquet/topographic_metadata.json create mode 100644 packages/schema/src/types/next/parquet/track_line.json create mode 100644 packages/schema/src/types/next/parquet/transport_point.json create mode 100644 packages/schema/src/types/next/parquet/trig_point.json create mode 100644 packages/schema/src/types/next/parquet/tunnel_line.json create mode 100644 packages/schema/src/types/next/parquet/utility_line.json create mode 100644 packages/schema/src/types/next/parquet/utility_point.json create mode 100644 packages/schema/src/types/next/parquet/vegetation.json create mode 100644 packages/schema/src/types/next/parquet/vegetation_line.json create mode 100644 packages/schema/src/types/next/parquet/vegetation_point.json create mode 100644 packages/schema/src/types/next/parquet/water.json create mode 100644 packages/schema/src/types/next/parquet/water_line.json create mode 100644 packages/schema/src/types/next/parquet/water_point.json create mode 100644 packages/schema/src/types/parquet/airport.json create mode 100644 packages/schema/src/types/parquet/audit_fields.json create mode 100644 packages/schema/src/types/parquet/b_box.json create mode 100644 packages/schema/src/types/parquet/bridge_line.json create mode 100644 packages/schema/src/types/parquet/building.json create mode 100644 packages/schema/src/types/parquet/building_point.json create mode 100644 packages/schema/src/types/parquet/coastline.json create mode 100644 packages/schema/src/types/parquet/contour.json create mode 100644 packages/schema/src/types/parquet/descriptive_text.json create mode 100644 packages/schema/src/types/parquet/fence_line.json create mode 100644 packages/schema/src/types/parquet/ferry_crossing.json create mode 100644 packages/schema/src/types/parquet/geographic_name.json create mode 100644 packages/schema/src/types/parquet/island.json create mode 100644 packages/schema/src/types/parquet/landcover.json create mode 100644 packages/schema/src/types/parquet/landcover_line.json create mode 100644 packages/schema/src/types/parquet/landcover_point.json create mode 100644 packages/schema/src/types/parquet/landuse.json create mode 100644 packages/schema/src/types/parquet/landuse_line.json create mode 100644 packages/schema/src/types/parquet/marine.json create mode 100644 packages/schema/src/types/parquet/nztopo50_carto_text.json create mode 100644 packages/schema/src/types/parquet/nztopo50_dms_grid.json create mode 100644 packages/schema/src/types/parquet/nztopo50_grid.json create mode 100644 packages/schema/src/types/parquet/nztopo50_map_sheet.json create mode 100644 packages/schema/src/types/parquet/place_point.json create mode 100644 packages/schema/src/types/parquet/product_identity.json create mode 100644 packages/schema/src/types/parquet/railway_line.json create mode 100644 packages/schema/src/types/parquet/railway_station.json create mode 100644 packages/schema/src/types/parquet/relief.json create mode 100644 packages/schema/src/types/parquet/relief_line.json create mode 100644 packages/schema/src/types/parquet/relief_point.json create mode 100644 packages/schema/src/types/parquet/residential_area.json create mode 100644 packages/schema/src/types/parquet/road_line.json create mode 100644 packages/schema/src/types/parquet/runway.json create mode 100644 packages/schema/src/types/parquet/structure.json create mode 100644 packages/schema/src/types/parquet/structure_line.json create mode 100644 packages/schema/src/types/parquet/structure_point.json create mode 100644 packages/schema/src/types/parquet/topo_identity.json create mode 100644 packages/schema/src/types/parquet/track_line.json create mode 100644 packages/schema/src/types/parquet/transport_point.json create mode 100644 packages/schema/src/types/parquet/trig_point.json create mode 100644 packages/schema/src/types/parquet/tunnel_line.json create mode 100644 packages/schema/src/types/parquet/utility_line.json create mode 100644 packages/schema/src/types/parquet/utility_point.json create mode 100644 packages/schema/src/types/parquet/vegetation.json create mode 100644 packages/schema/src/types/parquet/vegetation_line.json create mode 100644 packages/schema/src/types/parquet/vegetation_point.json create mode 100644 packages/schema/src/types/parquet/water.json create mode 100644 packages/schema/src/types/parquet/water_line.json create mode 100644 packages/schema/src/types/parquet/water_point.json create mode 100644 packages/schema/src/types/types.ts create mode 100644 packages/schema/tsconfig.json create mode 100644 packages/typespec-emitter/package.json create mode 100644 packages/typespec-emitter/src/index.ts create mode 100644 packages/typespec-emitter/src/parquet.ts create mode 100644 packages/typespec-emitter/src/pydantic.ts create mode 100644 packages/typespec-emitter/src/typescript.ts create mode 100644 packages/typespec-emitter/src/utils.ts create mode 100644 packages/typespec-emitter/tsconfig.json diff --git a/package-lock.json b/package-lock.json index 64982fd76..1109503cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2666,6 +2666,10 @@ "resolved": "packages/stac", "link": true }, + "node_modules/@linzjs/typespec-emitter": { + "resolved": "packages/typespec-emitter", + "link": true + }, "node_modules/@ltd/j-toml": { "version": "1.38.0", "resolved": "https://registry.npmjs.org/@ltd/j-toml/-/j-toml-1.38.0.tgz", @@ -13918,6 +13922,7 @@ "@typespec/json-schema": "^1.11.0" }, "devDependencies": { + "@linzjs/typespec-emitter": "^0.1.0", "@types/node": "^24.10.0", "@typespec/compiler": "^1.11.0" }, @@ -14121,6 +14126,27 @@ "dependencies": { "@linzjs/topographic-system-shared": "^0.8.0" } + }, + "packages/typespec-emitter": { + "name": "@linzjs/typespec-emitter", + "version": "0.1.0", + "dependencies": { + "@typespec/compiler": "^1.11.0" + }, + "engines": { + "node": "^24.5.0" + } + }, + "packages/typespec-typescript": { + "name": "@linzjs/typespec-typescript", + "version": "0.1.0", + "extraneous": true, + "dependencies": { + "@typespec/compiler": "^1.11.0" + }, + "engines": { + "node": "^24.5.0" + } } } } diff --git a/packages/schema/package.json b/packages/schema/package.json index 44bbb7062..357a21969 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -4,15 +4,27 @@ "private": true, "type": "module", "tspMain": "src/main.tsp", + "main": "src/types/types.ts", + "types": "src/types/types.ts", + "exports": { + ".": { + "typespec": "./src/main.tsp", + "default": "./src/types/types.ts" + }, + "./next": { + "default": "./src/types/next.ts" + } + }, "engines": { "node": "^24.5.0" }, "scripts": { "check": "tsp format --check \"src/**/*.tsp\"", "format": "tsp format \"src/**/*.tsp\"", - "bundle": "tsp compile . && tsp compile src/next.tsp --config tspconfig.next.yaml && (cd ../../schema && oxfmt .)" + "bundle": "tsp compile . && tsp compile src/next.tsp --config tspconfig.next.yaml && (cd ../../schema && oxfmt .) && oxfmt src" }, "devDependencies": { + "@linzjs/typespec-emitter": "^0.1.0", "@types/node": "^24.10.0", "@typespec/compiler": "^1.11.0" }, diff --git a/packages/schema/src/types/next.ts b/packages/schema/src/types/next.ts new file mode 100644 index 000000000..108425124 --- /dev/null +++ b/packages/schema/src/types/next.ts @@ -0,0 +1,1438 @@ +/** + * This file was automatically generated by the TypeSpec TypeScript emitter. + * Do not edit this file manually. + */ + +export type BridgeSubtype = 'foot_traffic' | 'train'; + +export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; + +export type BuildingStatus = 'derelict' | 'historic' | 'private'; + +export type BuildingSubtype = + | 'abattoir' + | 'camp' + | 'cement_works' + | 'church' + | 'energy_facility' + | 'factory' + | 'fertiliser_works' + | 'fire_lookout' + | 'forest_headquarters' + | 'gas_compound' + | 'greenhouse' + | 'gun_club' + | 'gun_emplacement' + | 'hall' + | 'homestead' + | 'hospital' + | 'hut' + | 'lodge' + | 'marae' + | 'mill' + | 'museum' + | 'observatory' + | 'polytechnic' + | 'power_generation' + | 'prison' + | 'private_hut' + | 'salt_works' + | 'school' + | 'shingle_works' + | 'silo' + | 'stamping_battery' + | 'substation' + | 'surf_club' + | 'university' + | 'visitor_centre' + | 'water_treatment_plant'; + +export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; + +export type CartoColour = '' | 'black' | 'process_blue' | 'red'; + +export type CartoFont = '' | 'Nimbus Sans LINZ'; + +export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; + +export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; + +export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; + +export type CartoTextfont = + | 'ATTrium-Italic' + | 'ATTriumMou-Cond' + | 'ATTriumMou-CondBold' + | 'ATTriumMou-CondItalic' + | 'ATTriumMou-Italic' + | 'ATTriumMou-Regular' + | 'Courier Bold Oblique'; + +export type ConstructionType = 'suspension' | 'swing' | 'trestle'; + +/** + * This enum will be redone in another work item - keeping as is for now + */ +export type DisplayEnum = '0' | '1' | '2' | '3'; + +export type GridDirection = 'x' | 'y'; + +export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; + +export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; + +export type LanduseStatus = 'dangerous' | 'disused' | 'old'; + +export type LanduseSubtype = 'training' | 'opencast' | 'underground'; + +export type LanduseType = + | 'cemetery' + | 'cycle_track' + | 'dog_track' + | 'golf_course' + | 'gravel_pit' + | 'horse_track' + | 'landfill' + | 'mine' + | 'orchard' + | 'pumice_pit' + | 'quarry' + | 'racetrack' + | 'rifle_range' + | 'showground' + | 'sportsfield' + | 'vineyard' + | 'vehicle_track'; + +export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; + +export type PlaceComposition = 'limestone' | 'pumice' | 'coral'; + +export type PlaceSubtype = 'opencast' | 'underground'; + +export type PlaceType = 'cave' | 'cemetery' | 'grave' | 'historic_site' | 'mine' | 'monument' | 'pa'; + +export type RailwayStatus = 'disused'; + +export type RailwaySubtype = 'siding'; + +export type RailwayTrackType = 'single' | 'multiple'; + +export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; + +export type ReliefLineSubtype = 'causeway' | 'stopbank'; + +export type ReliefLineType = + | 'cliff_edge' + | 'cutting_edge' + | 'embankment' + | 'rapid' + | 'slip_edge' + | 'waterfall' + | 'waterfall_edge' + | 'seawall'; + +export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; + +export type RoadStatus = 'under_construction' | 'closed'; + +export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; + +export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; + +export type RunwayStatus = 'disused'; + +export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; + +export type RunwaySurface = 'grass' | 'sealed'; + +export type Status = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureLineType = + | 'boatramp' + | 'boom' + | 'breakwater' + | 'cableway_industrial' + | 'cableway_people' + | 'dam' + | 'flume' + | 'ladder' + | 'marine_farm' + | 'ski_lift' + | 'ski_tow' + | 'slipway' + | 'spillway_edge' + | 'walkwire' + | 'water_race' + | 'weir' + | 'wharf' + | 'wharf_edge'; + +export type StructurePointType = + | 'beacon' + | 'bivouac' + | 'buoy' + | 'chimney' + | 'dredge' + | 'flare' + | 'floodgate' + | 'gate' + | 'ladder' + | 'mast' + | 'radar_dome' + | 'redoubt' + | 'satellite_station' + | 'shaft' + | 'siphon' + | 'stockyard' + | 'tank' + | 'tower' + | 'well' + | 'windmill' + | 'wreck'; + +export type StructureSpecies = 'mussels' | 'salmon'; + +export type StructureStatus = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureSubtype = + | 'building' + | 'coal' + | 'concrete' + | 'disused' + | 'fuel' + | 'historic' + | 'jetty' + | 'lake' + | 'land' + | 'lighthouse' + | 'lime' + | 'locked' + | 'plane' + | 'power_generation' + | 'rock' + | 'sea' + | 'ship' + | 'surge_chamber' + | 'tunnel_ventilation' + | 'uncovered' + | 'water'; + +export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; + +export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; + +export type SubstanceExtracted = + | 'bentonite' + | 'clay' + | 'coal' + | 'gold' + | 'gravel' + | 'ironsand' + | 'lime' + | 'limestone' + | 'metal' + | 'quartz' + | 'scheelite' + | 'shingle' + | 'silica sand' + | 'silver' + | 'stone' + | 'zeolite'; + +export type TrackStatus = 'closed'; + +export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; + +export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; + +export type TunnelStatus = 'closed' | 'under construction'; + +export type TunnelSubtype = 'natural'; + +export type TunnelUse = 'cablecar' | 'foot traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; + +export type UtilityPointType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; + +export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; + +export type UtilitySupporttype = 'pole' | 'pylon'; + +export type UtilityVisibility = 'underground'; + +export type VegetationSubtype = 'coniferous' | 'non-coniferous'; + +export type WaterPerennial = 'dry' | 'seasonal'; + +export type WaterSubtype = + | 'evaporation' + | 'hydro_electric' + | 'ice_skating' + | 'oil' + | 'oxidation' + | 'reservoir' + | 'settling' + | 'sewage' + | 'sewage_treatment' + | 'sludge'; + +export type WaterTemperatureIndicator = 'cold' | 'hot'; + +export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; + +export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; + +export interface Airport { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'airport'; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * GeoParquet 1.1 covering bbox struct. + */ +export interface BBox { + xmin: number; + ymin: number; + xmax: number; + ymax: number; +} + +export interface BridgeLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: BridgeType | null; + subtype: BridgeSubtype | null; + construction_type: ConstructionType | null; + status: Status | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Building { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface BuildingPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + orientation: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Coastline { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'coastline' | 'water_confluence' | 'wharf'; + elevation: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Contour { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'contour'; + elevation: number | null; + definition: string | null; + designation: 'supplementary' | null; + formation: 'depression' | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface DataSource { + /** Name of the column in this table where the linked data gets copied to */ + table_column: string; + /** Registered source for linked data */ + source: MetadataSource; + /** Name of the key column in source to use for linking */ + source_key_name: string; + /** Value of the key column in source to use for linking. */ + source_key_value: number | string; + /** Name of the table in source that contains the linked data */ + source_table: string; + /** Name of the column in the source where the linked data gets copied from */ + source_column: string; + /** Timestamp when the source was last updated */ + source_updated_at: string; + /** Timestamp when this linked data was last imported */ + imported_at: string; +} + +export interface DescriptiveText { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'descriptive_text'; + info_display: string | null; + size: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FenceLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'fence'; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FerryLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ferry_crossing'; + subtype: 'vehicle' | 'passenger' | 'freight' | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeographicName { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'geographic_name'; + name: string | null; + desc_code: string | null; + size: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeoParquet { + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Island { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'island'; + name: string | null; + group_name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landcover { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverType; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'dredge_tailing'; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverPointCoreTypes { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverPointCoreType; + subtype: null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landuse { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LanduseLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandusePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Marine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'mangrove' | 'reef' | 'rock' | 'shoal'; + name: string | null; + composition: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface MarinePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock'; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50CartoText { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + /** id (UUID) of the example feature. */ + example_point_id: string | null; + full_text: string | null; + text_bend: number | null; + text_char_spacing_distance: number | null; + text_colour: number | null; + text_font: CartoTextfont | null; + text_height: number | null; + text_orientation: number | null; + text_placement: number | null; + text_size_type: number | null; + text_stretch_length: number | null; + text_string: string | null; + text_word_spacing_distance: number | null; + font: CartoFont | null; + style: CartoStyle | null; + colour: CartoColour | null; + size: number | null; + placement: CartoPlacement | null; + offset: number | null; + textanchor: CartoTextanchor | null; + labelanchor: number | null; + charplace: CartoCharplace | null; + chardistance: number | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50DmsGrid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50Grid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50MapSheet { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'nztopo50_map_sheet'; + sheet_code: string; + sheet_name: string; + origin_x: number; + origin_y: number; + /** id (UUID) of the example feature. */ + example_point_id: string; + published_version: string; + published_at: string; + updated_at: string; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface PlacePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: PlaceType; + subtype: PlaceSubtype | null; + name: string | null; + elevation: number | null; + composition: PlaceComposition | null; + description: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ProductFeature { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +/** + * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. + * Where a railway line is located close to a road, the line held in the data and shown on the printed map + * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. + * + * Multiple sidings may be held in the data and shown on the printed maps as a single feature + */ +export interface RailwayLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'railway'; + subtype: RailwaySubtype | null; + track_type: RailwayTrackType | null; + vehicle_type: RailwayVehicleType | null; + status: RailwayStatus | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RailwayPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'station'; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Relief { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'waterfall' | 'rapid'; + name: string | null; + height: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefLineType; + subtype: ReliefLineSubtype | null; + name: string | null; + height: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefPointType; + name: string | null; + display: DisplayEnum | null; + elevation: number | null; + height: number | null; + orientation: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ResidentialArea { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'residential_area'; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RoadLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'road'; + hierarchy: string | null; + status: RoadStatus | null; + name: string | null; + highway_number: string | null; + lane_count: number | null; + surface: RoadSurface | null; + way_count: 'one_way' | null; + width_indicator: 'w' | null; + road_access: 'mp' | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RockOutcrop { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock_outcrop'; + subtype: RockOutcropSubtype; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Runway { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'runway'; + subtype: RunwaySubtype | null; + status: RunwayStatus | null; + surface: RunwaySurface | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Structure { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureType; + subtype: StructureSubtype | null; + lid_type: 'covered' | null; + tank_type: StructureTankType | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructureLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureLineType; + subtype: StructureSubtype | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructurePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructurePointType; + subtype: StructureSubtype | null; + tank_type: StructureTankType | null; + status: StructureStatus | null; + name: string | null; + height: number | null; + orientation: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TopographicFeature { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +export interface TopographicMetadata { + metadata: DataSource[] | null; +} + +export interface TrackLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'track'; + subtype: TrackSubtype | null; + track_type: TrackType | null; + status: TrackStatus | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TransportPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ford' | 'helipad'; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TrigPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'trig'; + trig_type: 'beaconed' | null; + name: string | null; + code: string | null; + elevation: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TunnelLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'tunnel'; + tunnel_use: TunnelUse | null; + tunnel_use2: TunnelUse | null; + subtype: TunnelSubtype | null; + status: TunnelStatus | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'pipeline' | 'powerline' | 'telephone'; + subtype: UtilitySubtype | null; + support_type: UtilitySupporttype | null; + status: string | null; + name: string | null; + visibility: UtilityVisibility | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: UtilityPointType; + name: string | null; + orientation: number | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Vegetation { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; + subtype: VegetationSubtype | null; + species: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'shelter_belt'; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'tree' | 'scattered_scrub'; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Water { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + subtype: WaterSubtype | null; + hierarchy: string | null; + name: string | null; + group_name: string | null; + height: number | null; + elevation: number | null; + perennial: WaterPerennial | null; + temperature_indicator: WaterTemperatureIndicator | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + hierarchy: string | null; + name: string | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + name: string | null; + orientation: number | null; + temperature_indicator: WaterTemperatureIndicator | null; + metadata: DataSource[] | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} diff --git a/packages/schema/src/types/next/parquet/airport.json b/packages/schema/src/types/next/parquet/airport.json new file mode 100644 index 000000000..239d05fa7 --- /dev/null +++ b/packages/schema/src/types/next/parquet/airport.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "airport", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/b_box.json b/packages/schema/src/types/next/parquet/b_box.json new file mode 100644 index 000000000..b1cb5bed1 --- /dev/null +++ b/packages/schema/src/types/next/parquet/b_box.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "b_box", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] +} diff --git a/packages/schema/src/types/next/parquet/bridge_line.json b/packages/schema/src/types/next/parquet/bridge_line.json new file mode 100644 index 000000000..95e1f1d5a --- /dev/null +++ b/packages/schema/src/types/next/parquet/bridge_line.json @@ -0,0 +1,159 @@ +{ + "type": "message", + "name": "bridge_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "construction_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/building.json b/packages/schema/src/types/next/parquet/building.json new file mode 100644 index 000000000..c54c35cf5 --- /dev/null +++ b/packages/schema/src/types/next/parquet/building.json @@ -0,0 +1,153 @@ +{ + "type": "message", + "name": "building", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/building_point.json b/packages/schema/src/types/next/parquet/building_point.json new file mode 100644 index 000000000..7ed7a0e83 --- /dev/null +++ b/packages/schema/src/types/next/parquet/building_point.json @@ -0,0 +1,158 @@ +{ + "type": "message", + "name": "building_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/coastline.json b/packages/schema/src/types/next/parquet/coastline.json new file mode 100644 index 000000000..ecef936af --- /dev/null +++ b/packages/schema/src/types/next/parquet/coastline.json @@ -0,0 +1,140 @@ +{ + "type": "message", + "name": "coastline", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/contour.json b/packages/schema/src/types/next/parquet/contour.json new file mode 100644 index 000000000..1a0f574f7 --- /dev/null +++ b/packages/schema/src/types/next/parquet/contour.json @@ -0,0 +1,158 @@ +{ + "type": "message", + "name": "contour", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "definition", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "designation", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "formation", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/data_source.json b/packages/schema/src/types/next/parquet/data_source.json new file mode 100644 index 000000000..eaa26fcc5 --- /dev/null +++ b/packages/schema/src/types/next/parquet/data_source.json @@ -0,0 +1,54 @@ +{ + "type": "message", + "name": "data_source", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] +} diff --git a/packages/schema/src/types/next/parquet/descriptive_text.json b/packages/schema/src/types/next/parquet/descriptive_text.json new file mode 100644 index 000000000..70fb15998 --- /dev/null +++ b/packages/schema/src/types/next/parquet/descriptive_text.json @@ -0,0 +1,146 @@ +{ + "type": "message", + "name": "descriptive_text", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "info_display", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "size", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/fence_line.json b/packages/schema/src/types/next/parquet/fence_line.json new file mode 100644 index 000000000..08f29126f --- /dev/null +++ b/packages/schema/src/types/next/parquet/fence_line.json @@ -0,0 +1,135 @@ +{ + "type": "message", + "name": "fence_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/ferry_line.json b/packages/schema/src/types/next/parquet/ferry_line.json new file mode 100644 index 000000000..a27d3fd8c --- /dev/null +++ b/packages/schema/src/types/next/parquet/ferry_line.json @@ -0,0 +1,147 @@ +{ + "type": "message", + "name": "ferry_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/geo_parquet.json b/packages/schema/src/types/next/parquet/geo_parquet.json new file mode 100644 index 000000000..cbb8252dc --- /dev/null +++ b/packages/schema/src/types/next/parquet/geo_parquet.json @@ -0,0 +1,38 @@ +{ + "type": "message", + "name": "geo_parquet", + "fields": [ + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/geographic_name.json b/packages/schema/src/types/next/parquet/geographic_name.json new file mode 100644 index 000000000..1412bf5f0 --- /dev/null +++ b/packages/schema/src/types/next/parquet/geographic_name.json @@ -0,0 +1,152 @@ +{ + "type": "message", + "name": "geographic_name", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "desc_code", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "size", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/island.json b/packages/schema/src/types/next/parquet/island.json new file mode 100644 index 000000000..f7c497adf --- /dev/null +++ b/packages/schema/src/types/next/parquet/island.json @@ -0,0 +1,147 @@ +{ + "type": "message", + "name": "island", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "group_name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/landcover.json b/packages/schema/src/types/next/parquet/landcover.json new file mode 100644 index 000000000..155ec8ae5 --- /dev/null +++ b/packages/schema/src/types/next/parquet/landcover.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "landcover", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/landcover_line.json b/packages/schema/src/types/next/parquet/landcover_line.json new file mode 100644 index 000000000..2c2bec8da --- /dev/null +++ b/packages/schema/src/types/next/parquet/landcover_line.json @@ -0,0 +1,135 @@ +{ + "type": "message", + "name": "landcover_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/landcover_point_core_types.json b/packages/schema/src/types/next/parquet/landcover_point_core_types.json new file mode 100644 index 000000000..551053d3e --- /dev/null +++ b/packages/schema/src/types/next/parquet/landcover_point_core_types.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "landcover_point_core_types", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/landuse.json b/packages/schema/src/types/next/parquet/landuse.json new file mode 100644 index 000000000..dca4d948e --- /dev/null +++ b/packages/schema/src/types/next/parquet/landuse.json @@ -0,0 +1,159 @@ +{ + "type": "message", + "name": "landuse", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "substance_extracted", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/landuse_line.json b/packages/schema/src/types/next/parquet/landuse_line.json new file mode 100644 index 000000000..4815ee947 --- /dev/null +++ b/packages/schema/src/types/next/parquet/landuse_line.json @@ -0,0 +1,147 @@ +{ + "type": "message", + "name": "landuse_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/landuse_point.json b/packages/schema/src/types/next/parquet/landuse_point.json new file mode 100644 index 000000000..371286d38 --- /dev/null +++ b/packages/schema/src/types/next/parquet/landuse_point.json @@ -0,0 +1,159 @@ +{ + "type": "message", + "name": "landuse_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "substance_extracted", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/marine.json b/packages/schema/src/types/next/parquet/marine.json new file mode 100644 index 000000000..f95cf8bb2 --- /dev/null +++ b/packages/schema/src/types/next/parquet/marine.json @@ -0,0 +1,147 @@ +{ + "type": "message", + "name": "marine", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "composition", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/marine_point.json b/packages/schema/src/types/next/parquet/marine_point.json new file mode 100644 index 000000000..96e19550f --- /dev/null +++ b/packages/schema/src/types/next/parquet/marine_point.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "marine_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/nztopo50_carto_text.json b/packages/schema/src/types/next/parquet/nztopo50_carto_text.json new file mode 100644 index 000000000..949665b63 --- /dev/null +++ b/packages/schema/src/types/next/parquet/nztopo50_carto_text.json @@ -0,0 +1,175 @@ +{ + "type": "message", + "name": "nztopo50_carto_text", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "example_point_id", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "full_text", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "text_bend", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_char_spacing_distance", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_colour", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_font", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "text_height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "text_orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "text_placement", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_size_type", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_stretch_length", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_string", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "text_word_spacing_distance", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "font", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "style", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "colour", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "size", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "placement", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "offset", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "textanchor", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "labelanchor", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "charplace", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "chardistance", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/nztopo50_dms_grid.json b/packages/schema/src/types/next/parquet/nztopo50_dms_grid.json new file mode 100644 index 000000000..dd3d2227b --- /dev/null +++ b/packages/schema/src/types/next/parquet/nztopo50_dms_grid.json @@ -0,0 +1,61 @@ +{ + "type": "message", + "name": "nztopo50_dms_grid", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "direction", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "value", + "repetition": "REQUIRED", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/nztopo50_grid.json b/packages/schema/src/types/next/parquet/nztopo50_grid.json new file mode 100644 index 000000000..aebd093f6 --- /dev/null +++ b/packages/schema/src/types/next/parquet/nztopo50_grid.json @@ -0,0 +1,61 @@ +{ + "type": "message", + "name": "nztopo50_grid", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "direction", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "value", + "repetition": "REQUIRED", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/nztopo50_map_sheet.json b/packages/schema/src/types/next/parquet/nztopo50_map_sheet.json new file mode 100644 index 000000000..dd8eeccd1 --- /dev/null +++ b/packages/schema/src/types/next/parquet/nztopo50_map_sheet.json @@ -0,0 +1,102 @@ +{ + "type": "message", + "name": "nztopo50_map_sheet", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "sheet_code", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "sheet_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "origin_x", + "repetition": "REQUIRED", + "physical_type": "DOUBLE" + }, + { + "name": "origin_y", + "repetition": "REQUIRED", + "physical_type": "DOUBLE" + }, + { + "name": "example_point_id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "published_version", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "published_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/place_point.json b/packages/schema/src/types/next/parquet/place_point.json new file mode 100644 index 000000000..2a857e89c --- /dev/null +++ b/packages/schema/src/types/next/parquet/place_point.json @@ -0,0 +1,164 @@ +{ + "type": "message", + "name": "place_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "composition", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "description", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/product_feature.json b/packages/schema/src/types/next/parquet/product_feature.json new file mode 100644 index 000000000..d5a57fca7 --- /dev/null +++ b/packages/schema/src/types/next/parquet/product_feature.json @@ -0,0 +1,18 @@ +{ + "type": "message", + "name": "product_feature", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + } + ] +} diff --git a/packages/schema/src/types/next/parquet/railway_line.json b/packages/schema/src/types/next/parquet/railway_line.json new file mode 100644 index 000000000..59f756844 --- /dev/null +++ b/packages/schema/src/types/next/parquet/railway_line.json @@ -0,0 +1,165 @@ +{ + "type": "message", + "name": "railway_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "track_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "vehicle_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/railway_point.json b/packages/schema/src/types/next/parquet/railway_point.json new file mode 100644 index 000000000..dfe86a9ea --- /dev/null +++ b/packages/schema/src/types/next/parquet/railway_point.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "railway_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/relief.json b/packages/schema/src/types/next/parquet/relief.json new file mode 100644 index 000000000..4328fa8f0 --- /dev/null +++ b/packages/schema/src/types/next/parquet/relief.json @@ -0,0 +1,146 @@ +{ + "type": "message", + "name": "relief", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/relief_line.json b/packages/schema/src/types/next/parquet/relief_line.json new file mode 100644 index 000000000..ef3755973 --- /dev/null +++ b/packages/schema/src/types/next/parquet/relief_line.json @@ -0,0 +1,152 @@ +{ + "type": "message", + "name": "relief_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/relief_point.json b/packages/schema/src/types/next/parquet/relief_point.json new file mode 100644 index 000000000..4b7154ebe --- /dev/null +++ b/packages/schema/src/types/next/parquet/relief_point.json @@ -0,0 +1,162 @@ +{ + "type": "message", + "name": "relief_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "display", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/residential_area.json b/packages/schema/src/types/next/parquet/residential_area.json new file mode 100644 index 000000000..cc93e76f0 --- /dev/null +++ b/packages/schema/src/types/next/parquet/residential_area.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "residential_area", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/road_line.json b/packages/schema/src/types/next/parquet/road_line.json new file mode 100644 index 000000000..81a840b08 --- /dev/null +++ b/packages/schema/src/types/next/parquet/road_line.json @@ -0,0 +1,188 @@ +{ + "type": "message", + "name": "road_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "hierarchy", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "highway_number", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "lane_count", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "surface", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "way_count", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "width_indicator", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "road_access", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/rock_outcrop.json b/packages/schema/src/types/next/parquet/rock_outcrop.json new file mode 100644 index 000000000..850bea20c --- /dev/null +++ b/packages/schema/src/types/next/parquet/rock_outcrop.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "rock_outcrop", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/runway.json b/packages/schema/src/types/next/parquet/runway.json new file mode 100644 index 000000000..15844ec61 --- /dev/null +++ b/packages/schema/src/types/next/parquet/runway.json @@ -0,0 +1,153 @@ +{ + "type": "message", + "name": "runway", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "surface", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/structure.json b/packages/schema/src/types/next/parquet/structure.json new file mode 100644 index 000000000..dcb4d836e --- /dev/null +++ b/packages/schema/src/types/next/parquet/structure.json @@ -0,0 +1,171 @@ +{ + "type": "message", + "name": "structure", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "lid_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tank_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "species", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/structure_line.json b/packages/schema/src/types/next/parquet/structure_line.json new file mode 100644 index 000000000..12252cd7d --- /dev/null +++ b/packages/schema/src/types/next/parquet/structure_line.json @@ -0,0 +1,159 @@ +{ + "type": "message", + "name": "structure_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "species", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/structure_point.json b/packages/schema/src/types/next/parquet/structure_point.json new file mode 100644 index 000000000..bdafffccf --- /dev/null +++ b/packages/schema/src/types/next/parquet/structure_point.json @@ -0,0 +1,169 @@ +{ + "type": "message", + "name": "structure_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tank_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/topographic_feature.json b/packages/schema/src/types/next/parquet/topographic_feature.json new file mode 100644 index 000000000..7b5e24229 --- /dev/null +++ b/packages/schema/src/types/next/parquet/topographic_feature.json @@ -0,0 +1,30 @@ +{ + "type": "message", + "name": "topographic_feature", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + } + ] +} diff --git a/packages/schema/src/types/next/parquet/topographic_metadata.json b/packages/schema/src/types/next/parquet/topographic_metadata.json new file mode 100644 index 000000000..73859a9a4 --- /dev/null +++ b/packages/schema/src/types/next/parquet/topographic_metadata.json @@ -0,0 +1,73 @@ +{ + "type": "message", + "name": "topographic_metadata", + "fields": [ + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/track_line.json b/packages/schema/src/types/next/parquet/track_line.json new file mode 100644 index 000000000..0ea4e1b96 --- /dev/null +++ b/packages/schema/src/types/next/parquet/track_line.json @@ -0,0 +1,159 @@ +{ + "type": "message", + "name": "track_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "track_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/transport_point.json b/packages/schema/src/types/next/parquet/transport_point.json new file mode 100644 index 000000000..1870c9c50 --- /dev/null +++ b/packages/schema/src/types/next/parquet/transport_point.json @@ -0,0 +1,141 @@ +{ + "type": "message", + "name": "transport_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/trig_point.json b/packages/schema/src/types/next/parquet/trig_point.json new file mode 100644 index 000000000..44c760fdb --- /dev/null +++ b/packages/schema/src/types/next/parquet/trig_point.json @@ -0,0 +1,158 @@ +{ + "type": "message", + "name": "trig_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "trig_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "code", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/tunnel_line.json b/packages/schema/src/types/next/parquet/tunnel_line.json new file mode 100644 index 000000000..7e56d8a3f --- /dev/null +++ b/packages/schema/src/types/next/parquet/tunnel_line.json @@ -0,0 +1,165 @@ +{ + "type": "message", + "name": "tunnel_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tunnel_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tunnel_use2", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/utility_line.json b/packages/schema/src/types/next/parquet/utility_line.json new file mode 100644 index 000000000..a7dd2c150 --- /dev/null +++ b/packages/schema/src/types/next/parquet/utility_line.json @@ -0,0 +1,165 @@ +{ + "type": "message", + "name": "utility_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "support_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "visibility", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/utility_point.json b/packages/schema/src/types/next/parquet/utility_point.json new file mode 100644 index 000000000..24b98b11c --- /dev/null +++ b/packages/schema/src/types/next/parquet/utility_point.json @@ -0,0 +1,146 @@ +{ + "type": "message", + "name": "utility_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/vegetation.json b/packages/schema/src/types/next/parquet/vegetation.json new file mode 100644 index 000000000..245df32bb --- /dev/null +++ b/packages/schema/src/types/next/parquet/vegetation.json @@ -0,0 +1,147 @@ +{ + "type": "message", + "name": "vegetation", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "species", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/vegetation_line.json b/packages/schema/src/types/next/parquet/vegetation_line.json new file mode 100644 index 000000000..77d546405 --- /dev/null +++ b/packages/schema/src/types/next/parquet/vegetation_line.json @@ -0,0 +1,135 @@ +{ + "type": "message", + "name": "vegetation_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/vegetation_point.json b/packages/schema/src/types/next/parquet/vegetation_point.json new file mode 100644 index 000000000..4bcb3603d --- /dev/null +++ b/packages/schema/src/types/next/parquet/vegetation_point.json @@ -0,0 +1,135 @@ +{ + "type": "message", + "name": "vegetation_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/water.json b/packages/schema/src/types/next/parquet/water.json new file mode 100644 index 000000000..86379b243 --- /dev/null +++ b/packages/schema/src/types/next/parquet/water.json @@ -0,0 +1,181 @@ +{ + "type": "message", + "name": "water", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "hierarchy", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "group_name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "perennial", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "temperature_indicator", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/water_line.json b/packages/schema/src/types/next/parquet/water_line.json new file mode 100644 index 000000000..b307660b7 --- /dev/null +++ b/packages/schema/src/types/next/parquet/water_line.json @@ -0,0 +1,147 @@ +{ + "type": "message", + "name": "water_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "hierarchy", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/next/parquet/water_point.json b/packages/schema/src/types/next/parquet/water_point.json new file mode 100644 index 000000000..9ce1e0452 --- /dev/null +++ b/packages/schema/src/types/next/parquet/water_point.json @@ -0,0 +1,152 @@ +{ + "type": "message", + "name": "water_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "temperature_indicator", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "metadata", + "repetition": "OPTIONAL", + "logical_type": "LIST", + "fields": [ + { + "name": "list", + "repetition": "REPEATED", + "fields": [ + { + "name": "element", + "repetition": "REQUIRED", + "fields": [ + { + "name": "table_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_key_value", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_table", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_column", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "source_updated_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + }, + { + "name": "imported_at", + "repetition": "REQUIRED", + "physical_type": "INT64", + "logical_type": "TIMESTAMP" + } + ] + } + ] + } + ] + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/airport.json b/packages/schema/src/types/parquet/airport.json new file mode 100644 index 000000000..d9b398f3d --- /dev/null +++ b/packages/schema/src/types/parquet/airport.json @@ -0,0 +1,74 @@ +{ + "type": "message", + "name": "airport", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "REQUIRED", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/audit_fields.json b/packages/schema/src/types/parquet/audit_fields.json new file mode 100644 index 000000000..e2aa08908 --- /dev/null +++ b/packages/schema/src/types/parquet/audit_fields.json @@ -0,0 +1,18 @@ +{ + "type": "message", + "name": "audit_fields", + "fields": [ + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + } + ] +} diff --git a/packages/schema/src/types/parquet/b_box.json b/packages/schema/src/types/parquet/b_box.json new file mode 100644 index 000000000..b1cb5bed1 --- /dev/null +++ b/packages/schema/src/types/parquet/b_box.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "b_box", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] +} diff --git a/packages/schema/src/types/parquet/bridge_line.json b/packages/schema/src/types/parquet/bridge_line.json new file mode 100644 index 000000000..30f9d5ea4 --- /dev/null +++ b/packages/schema/src/types/parquet/bridge_line.json @@ -0,0 +1,98 @@ +{ + "type": "message", + "name": "bridge_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bridge_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bridge_use2", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "construction_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/building.json b/packages/schema/src/types/parquet/building.json new file mode 100644 index 000000000..1d3c78d9c --- /dev/null +++ b/packages/schema/src/types/parquet/building.json @@ -0,0 +1,86 @@ +{ + "type": "message", + "name": "building", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "building_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/building_point.json b/packages/schema/src/types/parquet/building_point.json new file mode 100644 index 000000000..70ed40529 --- /dev/null +++ b/packages/schema/src/types/parquet/building_point.json @@ -0,0 +1,91 @@ +{ + "type": "message", + "name": "building_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "building_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/coastline.json b/packages/schema/src/types/parquet/coastline.json new file mode 100644 index 000000000..02ac163ff --- /dev/null +++ b/packages/schema/src/types/parquet/coastline.json @@ -0,0 +1,79 @@ +{ + "type": "message", + "name": "coastline", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "coastline_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/contour.json b/packages/schema/src/types/parquet/contour.json new file mode 100644 index 000000000..c41ff4a33 --- /dev/null +++ b/packages/schema/src/types/parquet/contour.json @@ -0,0 +1,90 @@ +{ + "type": "message", + "name": "contour", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "definition", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "designation", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "formation", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/descriptive_text.json b/packages/schema/src/types/parquet/descriptive_text.json new file mode 100644 index 000000000..3ea76a689 --- /dev/null +++ b/packages/schema/src/types/parquet/descriptive_text.json @@ -0,0 +1,85 @@ +{ + "type": "message", + "name": "descriptive_text", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "nzgb_id", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "info_display", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "size", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/fence_line.json b/packages/schema/src/types/parquet/fence_line.json new file mode 100644 index 000000000..f1425ed9d --- /dev/null +++ b/packages/schema/src/types/parquet/fence_line.json @@ -0,0 +1,68 @@ +{ + "type": "message", + "name": "fence_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/ferry_crossing.json b/packages/schema/src/types/parquet/ferry_crossing.json new file mode 100644 index 000000000..71f7f220b --- /dev/null +++ b/packages/schema/src/types/parquet/ferry_crossing.json @@ -0,0 +1,68 @@ +{ + "type": "message", + "name": "ferry_crossing", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/geographic_name.json b/packages/schema/src/types/parquet/geographic_name.json new file mode 100644 index 000000000..0408f7e1d --- /dev/null +++ b/packages/schema/src/types/parquet/geographic_name.json @@ -0,0 +1,85 @@ +{ + "type": "message", + "name": "geographic_name", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "desc_code", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "size", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/island.json b/packages/schema/src/types/parquet/island.json new file mode 100644 index 000000000..caf6bf1f1 --- /dev/null +++ b/packages/schema/src/types/parquet/island.json @@ -0,0 +1,80 @@ +{ + "type": "message", + "name": "island", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "group_name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/landcover.json b/packages/schema/src/types/parquet/landcover.json new file mode 100644 index 000000000..01a5ce41f --- /dev/null +++ b/packages/schema/src/types/parquet/landcover.json @@ -0,0 +1,80 @@ +{ + "type": "message", + "name": "landcover", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/landcover_line.json b/packages/schema/src/types/parquet/landcover_line.json new file mode 100644 index 000000000..13219d1d5 --- /dev/null +++ b/packages/schema/src/types/parquet/landcover_line.json @@ -0,0 +1,68 @@ +{ + "type": "message", + "name": "landcover_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/landcover_point.json b/packages/schema/src/types/parquet/landcover_point.json new file mode 100644 index 000000000..2c21770e3 --- /dev/null +++ b/packages/schema/src/types/parquet/landcover_point.json @@ -0,0 +1,90 @@ +{ + "type": "message", + "name": "landcover_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "display", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/landuse.json b/packages/schema/src/types/parquet/landuse.json new file mode 100644 index 000000000..9ead7a94e --- /dev/null +++ b/packages/schema/src/types/parquet/landuse.json @@ -0,0 +1,98 @@ +{ + "type": "message", + "name": "landuse", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "landuse_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "substance_extracted", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/landuse_line.json b/packages/schema/src/types/parquet/landuse_line.json new file mode 100644 index 000000000..c661906fb --- /dev/null +++ b/packages/schema/src/types/parquet/landuse_line.json @@ -0,0 +1,86 @@ +{ + "type": "message", + "name": "landuse_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "landuse_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/marine.json b/packages/schema/src/types/parquet/marine.json new file mode 100644 index 000000000..31361c880 --- /dev/null +++ b/packages/schema/src/types/parquet/marine.json @@ -0,0 +1,80 @@ +{ + "type": "message", + "name": "marine", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "composition", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/nztopo50_carto_text.json b/packages/schema/src/types/parquet/nztopo50_carto_text.json new file mode 100644 index 000000000..587c635e8 --- /dev/null +++ b/packages/schema/src/types/parquet/nztopo50_carto_text.json @@ -0,0 +1,169 @@ +{ + "type": "message", + "name": "nztopo50_carto_text", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "example_point_id", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "full_text", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "text_bend", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_char_spacing_distance", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_colour", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_font", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "text_height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "text_orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "text_placement", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_size_type", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_stretch_length", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "text_string", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "text_word_spacing_distance", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "font", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "style", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "colour", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "size", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "placement", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "offset", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "textanchor", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "labelanchor", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "charplace", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "chardistance", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/nztopo50_dms_grid.json b/packages/schema/src/types/parquet/nztopo50_dms_grid.json new file mode 100644 index 000000000..7807fafab --- /dev/null +++ b/packages/schema/src/types/parquet/nztopo50_dms_grid.json @@ -0,0 +1,55 @@ +{ + "type": "message", + "name": "nztopo50_dms_grid", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "direction", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "value", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/nztopo50_grid.json b/packages/schema/src/types/parquet/nztopo50_grid.json new file mode 100644 index 000000000..42f43bfa2 --- /dev/null +++ b/packages/schema/src/types/parquet/nztopo50_grid.json @@ -0,0 +1,55 @@ +{ + "type": "message", + "name": "nztopo50_grid", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "direction", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "value", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/nztopo50_map_sheet.json b/packages/schema/src/types/parquet/nztopo50_map_sheet.json new file mode 100644 index 000000000..4b604aca3 --- /dev/null +++ b/packages/schema/src/types/parquet/nztopo50_map_sheet.json @@ -0,0 +1,102 @@ +{ + "type": "message", + "name": "nztopo50_map_sheet", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "sheet_code", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "sheet_name", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "x_origin", + "repetition": "REQUIRED", + "physical_type": "DOUBLE" + }, + { + "name": "y_origin", + "repetition": "REQUIRED", + "physical_type": "DOUBLE" + }, + { + "name": "example_point_id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "published_version", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "published_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/place_point.json b/packages/schema/src/types/parquet/place_point.json new file mode 100644 index 000000000..fcbb775a4 --- /dev/null +++ b/packages/schema/src/types/parquet/place_point.json @@ -0,0 +1,114 @@ +{ + "type": "message", + "name": "place_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "place_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "composition", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "description", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "substance_extracted", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/product_identity.json b/packages/schema/src/types/parquet/product_identity.json new file mode 100644 index 000000000..d173fd001 --- /dev/null +++ b/packages/schema/src/types/parquet/product_identity.json @@ -0,0 +1,12 @@ +{ + "type": "message", + "name": "product_identity", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + } + ] +} diff --git a/packages/schema/src/types/parquet/railway_line.json b/packages/schema/src/types/parquet/railway_line.json new file mode 100644 index 000000000..aebac094c --- /dev/null +++ b/packages/schema/src/types/parquet/railway_line.json @@ -0,0 +1,122 @@ +{ + "type": "message", + "name": "railway_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "railway_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "track_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "vehicle_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "nzgb_id", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "route", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "route2", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "route3", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/railway_station.json b/packages/schema/src/types/parquet/railway_station.json new file mode 100644 index 000000000..3a66525d0 --- /dev/null +++ b/packages/schema/src/types/parquet/railway_station.json @@ -0,0 +1,74 @@ +{ + "type": "message", + "name": "railway_station", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/relief.json b/packages/schema/src/types/parquet/relief.json new file mode 100644 index 000000000..c476e0374 --- /dev/null +++ b/packages/schema/src/types/parquet/relief.json @@ -0,0 +1,79 @@ +{ + "type": "message", + "name": "relief", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/relief_line.json b/packages/schema/src/types/parquet/relief_line.json new file mode 100644 index 000000000..b2fa3b98d --- /dev/null +++ b/packages/schema/src/types/parquet/relief_line.json @@ -0,0 +1,85 @@ +{ + "type": "message", + "name": "relief_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "relief_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/relief_point.json b/packages/schema/src/types/parquet/relief_point.json new file mode 100644 index 000000000..68702dc6b --- /dev/null +++ b/packages/schema/src/types/parquet/relief_point.json @@ -0,0 +1,85 @@ +{ + "type": "message", + "name": "relief_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "display", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/residential_area.json b/packages/schema/src/types/parquet/residential_area.json new file mode 100644 index 000000000..5777f4f44 --- /dev/null +++ b/packages/schema/src/types/parquet/residential_area.json @@ -0,0 +1,74 @@ +{ + "type": "message", + "name": "residential_area", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/road_line.json b/packages/schema/src/types/parquet/road_line.json new file mode 100644 index 000000000..8f11b2186 --- /dev/null +++ b/packages/schema/src/types/parquet/road_line.json @@ -0,0 +1,133 @@ +{ + "type": "message", + "name": "road_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "hierarchy", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "highway_number", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "lane_count", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "surface", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "way_count", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "width_indicator", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "road_access", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name_id", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "rna_sufi", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/runway.json b/packages/schema/src/types/parquet/runway.json new file mode 100644 index 000000000..67b0e8ee3 --- /dev/null +++ b/packages/schema/src/types/parquet/runway.json @@ -0,0 +1,86 @@ +{ + "type": "message", + "name": "runway", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "runway_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "surface", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/structure.json b/packages/schema/src/types/parquet/structure.json new file mode 100644 index 000000000..a23d37a9a --- /dev/null +++ b/packages/schema/src/types/parquet/structure.json @@ -0,0 +1,110 @@ +{ + "type": "message", + "name": "structure", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "lid_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tank_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "species", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "stored_item", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/structure_line.json b/packages/schema/src/types/parquet/structure_line.json new file mode 100644 index 000000000..d8460f919 --- /dev/null +++ b/packages/schema/src/types/parquet/structure_line.json @@ -0,0 +1,110 @@ +{ + "type": "message", + "name": "structure_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "structure_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "species", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "material", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "material_conveyed", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "restrictions", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/structure_point.json b/packages/schema/src/types/parquet/structure_point.json new file mode 100644 index 000000000..9c857a0cc --- /dev/null +++ b/packages/schema/src/types/parquet/structure_point.json @@ -0,0 +1,138 @@ +{ + "type": "message", + "name": "structure_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "structure_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tank_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "location", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "material", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "restrictions", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "stored_item", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "wreck_of", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/topo_identity.json b/packages/schema/src/types/parquet/topo_identity.json new file mode 100644 index 000000000..4cfaea022 --- /dev/null +++ b/packages/schema/src/types/parquet/topo_identity.json @@ -0,0 +1,12 @@ +{ + "type": "message", + "name": "topo_identity", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + } + ] +} diff --git a/packages/schema/src/types/parquet/track_line.json b/packages/schema/src/types/parquet/track_line.json new file mode 100644 index 000000000..dbb44453f --- /dev/null +++ b/packages/schema/src/types/parquet/track_line.json @@ -0,0 +1,92 @@ +{ + "type": "message", + "name": "track_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "track_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "track_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/transport_point.json b/packages/schema/src/types/parquet/transport_point.json new file mode 100644 index 000000000..cf600d4dc --- /dev/null +++ b/packages/schema/src/types/parquet/transport_point.json @@ -0,0 +1,74 @@ +{ + "type": "message", + "name": "transport_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/trig_point.json b/packages/schema/src/types/parquet/trig_point.json new file mode 100644 index 000000000..d4cd2f37a --- /dev/null +++ b/packages/schema/src/types/parquet/trig_point.json @@ -0,0 +1,91 @@ +{ + "type": "message", + "name": "trig_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "trig_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "code", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/tunnel_line.json b/packages/schema/src/types/parquet/tunnel_line.json new file mode 100644 index 000000000..e4475cad2 --- /dev/null +++ b/packages/schema/src/types/parquet/tunnel_line.json @@ -0,0 +1,98 @@ +{ + "type": "message", + "name": "tunnel_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tunnel_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "tunnel_use2", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/utility_line.json b/packages/schema/src/types/parquet/utility_line.json new file mode 100644 index 000000000..6c59261f7 --- /dev/null +++ b/packages/schema/src/types/parquet/utility_line.json @@ -0,0 +1,98 @@ +{ + "type": "message", + "name": "utility_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "utility_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "support_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "status", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "visibility", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/utility_point.json b/packages/schema/src/types/parquet/utility_point.json new file mode 100644 index 000000000..2568fa4f1 --- /dev/null +++ b/packages/schema/src/types/parquet/utility_point.json @@ -0,0 +1,79 @@ +{ + "type": "message", + "name": "utility_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/vegetation.json b/packages/schema/src/types/parquet/vegetation.json new file mode 100644 index 000000000..9a1a80493 --- /dev/null +++ b/packages/schema/src/types/parquet/vegetation.json @@ -0,0 +1,80 @@ +{ + "type": "message", + "name": "vegetation", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "subtype", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "species", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/vegetation_line.json b/packages/schema/src/types/parquet/vegetation_line.json new file mode 100644 index 000000000..2b46f1069 --- /dev/null +++ b/packages/schema/src/types/parquet/vegetation_line.json @@ -0,0 +1,68 @@ +{ + "type": "message", + "name": "vegetation_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/vegetation_point.json b/packages/schema/src/types/parquet/vegetation_point.json new file mode 100644 index 000000000..a5242d33c --- /dev/null +++ b/packages/schema/src/types/parquet/vegetation_point.json @@ -0,0 +1,68 @@ +{ + "type": "message", + "name": "vegetation_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/water.json b/packages/schema/src/types/parquet/water.json new file mode 100644 index 000000000..14607dd15 --- /dev/null +++ b/packages/schema/src/types/parquet/water.json @@ -0,0 +1,120 @@ +{ + "type": "message", + "name": "water", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "water_use", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "hierarchy", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "group_name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "nzgb_feat_id", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "perennial", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "temperature", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/water_line.json b/packages/schema/src/types/parquet/water_line.json new file mode 100644 index 000000000..13676aedb --- /dev/null +++ b/packages/schema/src/types/parquet/water_line.json @@ -0,0 +1,80 @@ +{ + "type": "message", + "name": "water_line", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "hierarchy", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/parquet/water_point.json b/packages/schema/src/types/parquet/water_point.json new file mode 100644 index 000000000..4865c7936 --- /dev/null +++ b/packages/schema/src/types/parquet/water_point.json @@ -0,0 +1,90 @@ +{ + "type": "message", + "name": "water_point", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "height", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "orientation", + "repetition": "OPTIONAL", + "physical_type": "DOUBLE" + }, + { + "name": "temperature_indicator", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "bbox", + "repetition": "OPTIONAL", + "fields": [ + { + "name": "xmin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymin", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "xmax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + }, + { + "name": "ymax", + "repetition": "REQUIRED", + "physical_type": "FLOAT" + } + ] + } + ] +} diff --git a/packages/schema/src/types/types.ts b/packages/schema/src/types/types.ts new file mode 100644 index 000000000..99de2c14e --- /dev/null +++ b/packages/schema/src/types/types.ts @@ -0,0 +1,1152 @@ +/** + * This file was automatically generated by the TypeSpec TypeScript emitter. + * Do not edit this file manually. + */ + +/** + * Auto-derived from observed values of `bridge_use2`. + */ +export type BridgeUse2Enum = 'train'; + +/** + * Auto-derived from observed values of `bridge_use`. + */ +export type BridgeUseEnum = 'cablecar' | 'farm' | 'foot traffic' | 'train' | 'vehicle'; + +/** + * Auto-derived from observed values of `charplace`. + */ +export type CharplaceEnum = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; + +/** + * Auto-derived from observed values of `colour`. + */ +export type ColourEnum = '' | 'black' | 'process_blue' | 'red'; + +/** + * Auto-derived from observed values of `composition`. + */ +export type CompositionEnum = 'limestone' | 'pumice'; + +/** + * Auto-derived from observed values of `construction_type`. + */ +export type ConstructionTypeEnum = 'suspension' | 'swing' | 'trestle'; + +/** + * Auto-derived from observed values of `designation`. + */ +export type DesignationEnum = 'supplementary'; + +/** + * Auto-derived from observed values of `direction`. + */ +export type DirectionEnum = 'x' | 'y'; + +/** + * Auto-derived from observed values of `display`. + */ +export type DisplayEnum = '0' | '1' | '2' | '3'; + +/** + * Auto-derived from observed values of `example_class`. + */ +export type ExampleClassEnum = 'geographic_name' | 'trig_pnt'; + +/** + * Auto-derived from observed values of `font`. + */ +export type FontEnum = '' | 'Nimbus Sans LINZ'; + +/** + * Auto-derived from observed values of `formation`. + */ +export type FormationEnum = 'depression'; + +/** + * Auto-derived from observed values of `subtype`. + */ +export type LanduseSubTypeEnum = 'opencast' | 'training'; + +/** + * Auto-derived from observed values of `landuse_use`. + */ +export type LanduseUseEnum = 'cycle' | 'dog' | 'horse' | 'vehicle'; + +/** + * Auto-derived from observed values of `lid_type`. + */ +export type LidTypeEnum = 'covered'; + +/** + * Auto-derived from observed values of `location`. + */ +export type LocationEnum = 'lake' | 'land' | 'sea'; + +/** + * Auto-derived from observed values of `material_conveyed`. + */ +export type MaterialConveyedEnum = 'coal' | 'lime'; + +/** + * Auto-derived from observed values of `material`. + */ +export type MaterialEnum = 'concrete' | 'rock'; + +/** + * Auto-derived from observed values of `perennial`. + */ +export type PerennialEnum = 'dry' | 'seasonal'; + +/** + * Auto-derived from observed values of `placement`. + */ +export type PlacementEnum = '' | 'AL' | 'BL' | 'OL'; + +/** + * Auto-derived from observed values of `place_type`. + */ +export type PlaceTypeEnum = 'opencast' | 'underground'; + +/** + * Auto-derived from observed values of `railway_use`. + */ +export type RailwayUseEnum = 'siding'; + +/** + * Auto-derived from observed values of `relief_use`. + */ +export type ReliefUseEnum = 'causeway' | 'stopbank'; + +/** + * Auto-derived from observed values of `restrictions`. + */ +export type RestrictionsEnum = 'locked'; + +/** + * Auto-derived from observed values of `road_access`. + */ +export type RoadAccessEnum = 'mp'; + +/** + * Auto-derived from observed values of `runway_use`. + */ +export type RunwayUseEnum = 'aerodrome' | 'airport' | 'airstrip'; + +/** + * Auto-derived from observed values of `species`. + */ +export type SpeciesEnum = 'mussels' | 'salmon'; + +/** + * Auto-derived from observed values of `status`. + */ +export type StatusEnum = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under construction'; + +/** + * Auto-derived from observed values of `stored_item`. + */ +export type StoredItemEnum = 'fuel' | 'water'; + +/** + * Auto-derived from observed values of `subtype`. + */ +export type StructureSubTypeEnum = 'lighthouse' | 'surge chamber' | 'uncovered' | 'water'; + +/** + * Auto-derived from observed values of `structure_use`. + */ +export type StructureUseEnum = 'disused' | 'historic' | 'jetty' | 'power generation' | 'tunnel ventilation'; + +/** + * Auto-derived from observed values of `style`. + */ +export type StyleEnum = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; + +/** + * Auto-derived from observed values of `substance`. + */ +export type SubstanceEnum = + | 'bentonite' + | 'clay' + | 'coal' + | 'gold' + | 'gravel' + | 'ironsand' + | 'lime' + | 'limestone' + | 'metal' + | 'quartz' + | 'scheelite' + | 'shingle' + | 'silica sand' + | 'silver' + | 'stone' + | 'zeolite'; + +/** + * Auto-derived from observed values of `subtype`. + */ +export type SubTypeEnum = 'coniferous' | 'non-coniferous'; + +/** + * Auto-derived from observed values of `support_type`. + */ +export type SupportTypeEnum = 'pole' | 'pylon'; + +/** + * Auto-derived from observed values of `surface`. + */ +export type SurfaceEnum = 'grass' | 'metalled' | 'sealed' | 'unmetalled'; + +/** + * Auto-derived from observed values of `temperature`. + */ +export type TemperatureEnum = 'hot'; + +/** + * Auto-derived from observed values of `temperature_indicator`. + */ +export type TemperatureIndicatorEnum = 'cold' | 'hot'; + +/** + * Auto-derived from observed values of `textanchor`. + */ +export type TextanchorEnum = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; + +/** + * Auto-derived from observed values of `text_font`. + */ +export type TextFontEnum = + | 'ATTrium-Italic' + | 'ATTriumMou-Cond' + | 'ATTriumMou-CondBold' + | 'ATTriumMou-CondItalic' + | 'ATTriumMou-Italic' + | 'ATTriumMou-Regular' + | 'Courier Bold Oblique'; + +/** + * Auto-derived from observed values of `track_type`. + */ +export type TrackTypeEnum = 'connector' | 'multiple' | 'route' | 'single'; + +/** + * Auto-derived from observed values of `track_use`. + */ +export type TrackUseEnum = 'cycle only' | 'foot' | 'vehicle'; + +/** + * Auto-derived from observed values of `trig_type`. + */ +export type TrigTypeEnum = 'beaconed'; + +/** + * Auto-derived from observed values of `subtype`. + */ +export type TunnelSubTypeEnum = 'natural'; + +/** + * Auto-derived from observed values of `tunnel_use2`. + */ +export type TunnelUse2Enum = 'livestock'; + +/** + * Auto-derived from observed values of `tunnel_use`. + */ +export type TunnelUseEnum = 'cablecar' | 'foot traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; + +/** + * Auto-derived from observed values of `infrastructure_use`. + */ +export type UtilityUseEnum = 'ironsand' | 'sewage' | 'steam' | 'water'; + +/** + * Auto-derived from observed values of `vehicle_type`. + */ +export type VehicleTypeEnum = 'cablecar' | 'rail cart' | 'train' | 'tram'; + +/** + * Auto-derived from observed values of `visibility`. + */ +export type VisibilityEnum = 'underground'; + +/** + * Auto-derived from observed values of `water_use`. + */ +export type WaterUseEnum = + | 'evaporation' + | 'hydro-electric' + | 'ice skating' + | 'oil' + | 'oxidation' + | 'reservoir' + | 'settling' + | 'sewage' + | 'sewage treatment' + | 'sludge'; + +/** + * Auto-derived from observed values of `way_count`. + */ +export type WayCountEnum = 'one way'; + +/** + * Auto-derived from observed values of `wreck_of`. + */ +export type WreckOfEnum = 'plane' | 'ship'; + +export interface Airport { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'airport'; + name: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox: BBox; +} + +/** + * Capture / change-tracking columns shared by most features. + */ +export interface AuditFields { + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; +} + +/** + * GeoParquet 1.1 covering bbox struct. + */ +export interface BBox { + xmin: number; + ymin: number; + xmax: number; + ymax: number; +} + +export interface BridgeLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'bridge'; + bridge_use?: BridgeUseEnum | null; + bridge_use2?: BridgeUse2Enum | null; + construction_type?: ConstructionTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Building { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'building'; + building_use?: string | null; + status?: StatusEnum | null; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface BuildingPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'building'; + building_use?: string | null; + status?: StatusEnum | null; + name?: string | null; + orientation?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Coastline { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'coastline'; + coastline_type?: string | null; + elevation?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Contour { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: number | null; + type: 'contour'; + elevation?: number | null; + definition?: string | null; + designation?: DesignationEnum | null; + formation?: FormationEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface DescriptiveText { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'descriptive_text'; + nzgb_id?: unknown; + info_display?: string | null; + size?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface FenceLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'fence'; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface FerryCrossing { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'ferry_crossing'; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface GeographicName { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'geographic_name'; + name?: string | null; + desc_code?: string | null; + size?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Island { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'island'; + name?: string | null; + group_name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Landcover { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'rapid' | 'sand' | 'scree' | 'shingle' | 'swamp'; + subtype?: SubTypeEnum | null; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface LandcoverLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'dredge_tailing'; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface LandcoverPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'fumarole' | 'rock_outcrop' | 'swamp'; + name?: string | null; + elevation?: number | null; + display?: DisplayEnum | null; + orientation?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Landuse { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: + | 'cemetery' + | 'golf_course' + | 'gravel_pit' + | 'landfill' + | 'mine' + | 'orchard' + | 'pumice_pit' + | 'quarry' + | 'racetrack' + | 'rifle_range' + | 'showground' + | 'sportsfield' + | 'vineyard'; + landuse_use?: LanduseUseEnum | null; + subtype?: LanduseSubTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + substance_extracted?: SubstanceEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface LanduseLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'racetrack'; + landuse_use?: LanduseUseEnum | null; + subtype?: LanduseSubTypeEnum | null; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Marine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'mangrove' | 'reef' | 'rock' | 'shoal'; + name?: string | null; + composition?: CompositionEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Nztopo50CartoText { + /** UUID for the feature. */ + id: string; + /** id (UUID) of the example feature. */ + example_point_id?: string | null; + full_text?: string | null; + text_bend?: number | null; + text_char_spacing_distance?: number | null; + text_colour?: number | null; + text_font?: TextFontEnum | null; + text_height?: number | null; + text_orientation?: number | null; + text_placement?: number | null; + text_size_type?: number | null; + text_stretch_length?: number | null; + text_string?: string | null; + text_word_spacing_distance?: number | null; + font?: FontEnum | null; + style?: StyleEnum | null; + colour?: ColourEnum | null; + size?: number | null; + placement?: PlacementEnum | null; + offset?: number | null; + textanchor?: TextanchorEnum | null; + labelanchor?: number | null; + charplace?: CharplaceEnum | null; + chardistance?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Nztopo50DmsGrid { + /** UUID for the feature. */ + id: string; + direction?: DirectionEnum | null; + value?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Nztopo50Grid { + /** UUID for the feature. */ + id: string; + direction?: DirectionEnum | null; + value?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Nztopo50MapSheet { + /** UUID for the feature. */ + id: string; + t50_fid?: unknown; + type: 'nztopo50_map_sheet'; + sheet_code: string; + sheet_name: string; + x_origin: number; + y_origin: number; + /** topo_id (UUID) of the example feature. */ + example_point_id: string; + published_version: string; + published_at: Record; + updated_at: Record; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface PlacePoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: + | 'cave' + | 'cemetery' + | 'grave' + | 'historic_site' + | 'mine' + | 'monument' + | 'pa' + | 'radar_dome' + | 'saddle' + | 'satellite_station'; + place_type?: PlaceTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + elevation?: number | null; + composition?: CompositionEnum | null; + description?: string | null; + orientation?: number | null; + substance_extracted?: SubstanceEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface ProductIdentity { + /** UUID for the feature. */ + id: string; +} + +export interface RailwayLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'railway'; + railway_use?: RailwayUseEnum | null; + track_type?: TrackTypeEnum | null; + vehicle_type?: VehicleTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + nzgb_id?: unknown; + route?: string | null; + route2?: string | null; + route3?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface RailwayStation { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'rail_station'; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Relief { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'waterfall'; + name?: string | null; + height?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface ReliefLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'cliff_edge' | 'cutting_edge' | 'embankment' | 'rapid' | 'slip_edge' | 'waterfall' | 'waterfall_edge'; + relief_use?: ReliefUseEnum | null; + name?: string | null; + height?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface ReliefPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'height' | 'sinkhole'; + name?: string | null; + display?: DisplayEnum | null; + elevation?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface ResidentialArea { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'residential_area'; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface RoadLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'road'; + hierarchy?: string | null; + status?: StatusEnum | null; + name?: string | null; + highway_number?: string | null; + lane_count?: number | null; + surface?: SurfaceEnum | null; + way_count?: WayCountEnum | null; + width_indicator?: 'w' | null; + road_access?: RoadAccessEnum | null; + name_id?: unknown; + rna_sufi?: unknown; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Runway { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'runway'; + runway_use?: RunwayUseEnum | null; + status?: StatusEnum | null; + surface?: SurfaceEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Structure { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; + lid_type?: LidTypeEnum | null; + tank_type?: string | null; + subtype?: StructureSubTypeEnum | null; + species?: SpeciesEnum | null; + status?: StatusEnum | null; + name?: string | null; + stored_item?: StoredItemEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface StructureLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: + | 'boatramp' + | 'boom' + | 'breakwater' + | 'cableway_industrial' + | 'cableway_people' + | 'dam' + | 'flume' + | 'ladder' + | 'marine_farm' + | 'ski_lift' + | 'ski_tow' + | 'slipway' + | 'spillway_edge' + | 'walkwire' + | 'water_race' + | 'weir' + | 'wharf' + | 'wharf_edge'; + structure_use?: StructureUseEnum | null; + species?: SpeciesEnum | null; + status?: StatusEnum | null; + name?: string | null; + material?: MaterialEnum | null; + material_conveyed?: MaterialConveyedEnum | null; + restrictions?: RestrictionsEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface StructurePoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: + | 'beacon' + | 'bivouac' + | 'buoy' + | 'chimney' + | 'dredge' + | 'flare' + | 'floodgate' + | 'gate' + | 'ladder' + | 'mast' + | 'redoubt' + | 'shaft' + | 'siphon' + | 'stockyard' + | 'tank' + | 'tower' + | 'well' + | 'windmill' + | 'wreck'; + structure_use?: StructureUseEnum | null; + tank_type?: 'uncovered' | 'water' | 'surge chamber' | null; + subtype?: StructureSubTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + location?: LocationEnum | null; + height?: number | null; + orientation?: number | null; + material?: MaterialEnum | null; + restrictions?: RestrictionsEnum | null; + stored_item?: StoredItemEnum | null; + wreck_of?: WreckOfEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +/** + * Identity columns shared by every file in the dataset. + */ +export interface TopoIdentity { + /** UUID for the feature. */ + id: string; +} + +export interface TrackLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'track'; + track_use?: TrackUseEnum | null; + track_type?: TrackTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface TransportPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'ford' | 'helipad'; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface TrigPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'trig'; + trig_type?: TrigTypeEnum | null; + name?: string | null; + code?: string | null; + elevation?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface TunnelLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'tunnel'; + tunnel_use?: TunnelUseEnum | null; + tunnel_use2?: TunnelUse2Enum | null; + subtype?: TunnelSubTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface UtilityLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'pipeline' | 'powerline' | 'telephone'; + utility_use?: UtilityUseEnum | null; + support_type?: SupportTypeEnum | null; + status?: StatusEnum | null; + name?: string | null; + visibility?: VisibilityEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface UtilityPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'gas_valve' | 'geo_bore' | 'pylon'; + name?: string | null; + orientation?: number | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Vegetation { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; + subtype?: SubTypeEnum | null; + species?: SpeciesEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface VegetationLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'shelter_belt'; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface VegetationPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'tree'; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface Water { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'canal' | 'lagoon' | 'lake' | 'pond' | 'river'; + water_use?: WaterUseEnum | null; + hierarchy?: string | null; + name?: string | null; + group_name?: string | null; + nzgb_feat_id?: unknown; + height?: number | null; + elevation?: number | null; + perennial?: PerennialEnum | null; + temperature?: TemperatureEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface WaterLine { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'canal' | 'drain' | 'river'; + hierarchy?: string | null; + name?: string | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} + +export interface WaterPoint { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'rock' | 'soakhole' | 'spring' | 'waterfall'; + name?: string | null; + height?: number | null; + orientation?: number | null; + temperature_indicator?: TemperatureIndicatorEnum | null; + /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ + geometry: unknown; + bbox?: BBox; +} diff --git a/packages/schema/tsconfig.json b/packages/schema/tsconfig.json new file mode 100644 index 000000000..e4aabe31e --- /dev/null +++ b/packages/schema/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./build/" + }, + "include": ["src/"] +} diff --git a/packages/schema/tspconfig.next.yaml b/packages/schema/tspconfig.next.yaml index d195dc1ba..e984f865d 100644 --- a/packages/schema/tspconfig.next.yaml +++ b/packages/schema/tspconfig.next.yaml @@ -3,3 +3,6 @@ options: '@typespec/json-schema': emitter-output-dir: '{project-root}/../../schema/next' file-type: 'json' + '@linzjs/typespec-emitter': + typescript-output-file: '{project-root}/src/types/next.ts' + parquet-output-dir: '{project-root}/src/types/next/parquet/' diff --git a/packages/schema/tspconfig.yaml b/packages/schema/tspconfig.yaml index 3e775ae21..35b78e43f 100644 --- a/packages/schema/tspconfig.yaml +++ b/packages/schema/tspconfig.yaml @@ -1,6 +1,10 @@ emit: - '@typespec/json-schema' + - '@linzjs/typespec-emitter' options: '@typespec/json-schema': emitter-output-dir: '{project-root}/../../schema' file-type: 'json' + '@linzjs/typespec-emitter': + typescript-output-file: '{project-root}/src/types/types.ts' + parquet-output-dir: '{project-root}/src/types/parquet/' diff --git a/packages/typespec-emitter/package.json b/packages/typespec-emitter/package.json new file mode 100644 index 000000000..827fdd2f6 --- /dev/null +++ b/packages/typespec-emitter/package.json @@ -0,0 +1,19 @@ +{ + "name": "@linzjs/typespec-emitter", + "version": "0.1.0", + "private": true, + "type": "module", + "main": "src/index.ts", + "exports": { + ".": { + "typespec": "./src/index.ts", + "default": "./src/index.ts" + } + }, + "engines": { + "node": "^24.5.0" + }, + "dependencies": { + "@typespec/compiler": "^1.11.0" + } +} diff --git a/packages/typespec-emitter/src/index.ts b/packages/typespec-emitter/src/index.ts new file mode 100644 index 000000000..674423562 --- /dev/null +++ b/packages/typespec-emitter/src/index.ts @@ -0,0 +1,59 @@ +import { createTypeSpecLibrary } from '@typespec/compiler'; +import type { EmitContext, JSONSchemaType, Model, Enum, Union } from '@typespec/compiler'; + +import { emitParquetSchema } from './parquet.ts'; +import { emitPydanticModels } from './pydantic.ts'; +import { emitTypeScript } from './typescript.ts'; +import { collectTypes } from './utils.ts'; + +export interface EmitterOptions { + 'typescript-output-file'?: string; + 'parquet-output-dir'?: string; + 'pydantic-output-file'?: string; +} + +const EmitterOptionsSchema: JSONSchemaType = { + type: 'object', + properties: { + 'typescript-output-file': { type: 'string', nullable: true }, + 'parquet-output-dir': { type: 'string', nullable: true }, + 'pydantic-output-file': { type: 'string', nullable: true }, + }, + required: [], +}; + +export const $lib = createTypeSpecLibrary({ + name: '@linzjs/typespec-emitter', + diagnostics: {}, + emitter: { + options: EmitterOptionsSchema, + }, +}); + +export async function $onEmit(context: EmitContext) { + const { program, options } = context; + + const models = new Map(); + const enums = new Map(); + const unions = new Map(); + + collectTypes(program.getGlobalNamespaceType(), models, enums, unions); + + // 1. Emit TypeScript Types if configured + if (options['typescript-output-file']) { + const outputFile = options['typescript-output-file']; + await emitTypeScript(program, outputFile, models, enums, unions); + } + + // 2. Emit Parquet Schema if configured + if (options['parquet-output-dir']) { + const outputDir = options['parquet-output-dir']; + await emitParquetSchema(program, outputDir, models); + } + + // 3. Emit Pydantic Models if configured + if (options['pydantic-output-file']) { + const outputFile = options['pydantic-output-file']; + await emitPydanticModels(program, outputFile, models); + } +} diff --git a/packages/typespec-emitter/src/parquet.ts b/packages/typespec-emitter/src/parquet.ts new file mode 100644 index 000000000..e4c9f3463 --- /dev/null +++ b/packages/typespec-emitter/src/parquet.ts @@ -0,0 +1,132 @@ +import { emitFile, resolvePath } from '@typespec/compiler'; +import type { Model, Type } from '@typespec/compiler'; + +import { toSnakeCase, unwrapNullableType } from './utils.ts'; + +interface ParquetField { + name: string; + repetition: 'REQUIRED' | 'OPTIONAL' | 'REPEATED'; + physical_type?: string; + logical_type?: string; + fields?: ParquetField[]; +} + +function mapTypeSpecToParquet(type: Type): { physical_type?: string; logical_type?: string } { + switch (type.kind) { + case 'Scalar': + switch (type.name) { + case 'boolean': + return { physical_type: 'BOOLEAN' }; + case 'int32': + return { physical_type: 'INT32' }; + case 'int64': + return { physical_type: 'INT64' }; + case 'float32': + return { physical_type: 'FLOAT' }; + case 'float64': + return { physical_type: 'DOUBLE' }; + case 'string': + return { physical_type: 'BYTE_ARRAY', logical_type: 'STRING' }; + case 'bytes': + return { physical_type: 'BYTE_ARRAY' }; + case 'plainDate': + return { physical_type: 'INT32', logical_type: 'DATE' }; + case 'utcDateTime': + case 'offsetDateTime': + return { physical_type: 'INT64', logical_type: 'TIMESTAMP' }; + case 'decimal': + return { physical_type: 'BYTE_ARRAY', logical_type: 'DECIMAL' }; + } + break; + case 'Enum': + return { physical_type: 'BYTE_ARRAY', logical_type: 'STRING' }; + } + return { physical_type: 'BYTE_ARRAY', logical_type: 'STRING' }; // fallback +} + +function getParquetFields(model: Model): ParquetField[] { + const fields: ParquetField[] = []; + for (const prop of model.properties.values()) { + const fieldName = toSnakeCase(prop.name); + + // Check nullability/optionality + const unwrapped = unwrapNullableType(prop.type); + const isOptional = prop.optional || unwrapped.optional; + const repetition = isOptional ? 'OPTIONAL' : 'REQUIRED'; + + const targetType = unwrapped.type; + + if (targetType.kind === 'Model' && targetType.name === 'Array' && targetType.indexer) { + const arrayItemUnwrapped = unwrapNullableType(targetType.indexer.value); + const arrayItemType = arrayItemUnwrapped.type; + + const itemField: ParquetField = { + name: 'element', + repetition: arrayItemUnwrapped.optional ? 'OPTIONAL' : 'REQUIRED', + }; + + if ( + arrayItemType.kind === 'Model' && + arrayItemType.name !== 'Array' && + arrayItemType.name !== 'Record' && + arrayItemType.properties.size > 0 + ) { + itemField.fields = getParquetFields(arrayItemType); + } else { + const mapped = mapTypeSpecToParquet(arrayItemType); + if (mapped.physical_type) itemField.physical_type = mapped.physical_type; + if (mapped.logical_type) itemField.logical_type = mapped.logical_type; + } + + fields.push({ + name: fieldName, + repetition, + logical_type: 'LIST', + fields: [ + { + name: 'list', + repetition: 'REPEATED', + fields: [itemField], + }, + ], + }); + } else if ( + targetType.kind === 'Model' && + targetType.name !== 'Array' && + targetType.name !== 'Record' && + targetType.properties.size > 0 + ) { + fields.push({ + name: fieldName, + repetition, + fields: getParquetFields(targetType), + }); + } else { + const mapped = mapTypeSpecToParquet(targetType); + const field: ParquetField = { + name: fieldName, + repetition, + }; + if (mapped.physical_type) field.physical_type = mapped.physical_type; + if (mapped.logical_type) field.logical_type = mapped.logical_type; + fields.push(field); + } + } + return fields; +} + +export async function emitParquetSchema(program: any, outputDir: string, models: Map) { + for (const [name, model] of models.entries()) { + const tableName = toSnakeCase(name); + const schema = { + type: 'message', + name: tableName, + fields: getParquetFields(model), + }; + const schemaFile = resolvePath(outputDir, `${tableName}.json`); + await emitFile(program, { + path: schemaFile, + content: JSON.stringify(schema, null, 2) + '\n', + }); + } +} diff --git a/packages/typespec-emitter/src/pydantic.ts b/packages/typespec-emitter/src/pydantic.ts new file mode 100644 index 000000000..1cc2601fa --- /dev/null +++ b/packages/typespec-emitter/src/pydantic.ts @@ -0,0 +1,16 @@ +import { emitFile } from '@typespec/compiler'; +import type { Model } from '@typespec/compiler'; + +import { toPascalCase } from './utils.ts'; + +export async function emitPydanticModels(program: any, outputFile: string, models: Map) { + // Placeholder for future Pydantic models generation + let code = `# This is a placeholder for Python Pydantic models output.\n\n`; + for (const model of models.keys()) { + code += `class ${toPascalCase(model)}:\n pass\n\n`; + } + await emitFile(program, { + path: outputFile, + content: code, + }); +} diff --git a/packages/typespec-emitter/src/typescript.ts b/packages/typespec-emitter/src/typescript.ts new file mode 100644 index 000000000..40ece2159 --- /dev/null +++ b/packages/typespec-emitter/src/typescript.ts @@ -0,0 +1,178 @@ +import { emitFile, getDoc } from '@typespec/compiler'; +import type { Model, Enum, Union, Type } from '@typespec/compiler'; + +import { toPascalCase } from './utils.ts'; + +export async function emitTypeScript( + program: any, + outputFile: string, + models: Map, + enums: Map, + unions: Map, +) { + function getJSDocComment(type: Type): string { + const doc = getDoc(program, type); + if (!doc) return ''; + const lines = doc.trim().split('\n'); + if (lines.length === 1) { + return ` /** ${lines[0]} */\n`; + } + return ` /**\n${lines.map((line) => ` * ${line}`).join('\n')}\n */\n`; + } + + function getTsType(type: Type): string { + switch (type.kind) { + case 'Intrinsic': + if (type.name === 'void') return 'void'; + if (type.name === 'never') return 'never'; + if (type.name === 'null') return 'null'; + if (type.name === 'unknown') return 'unknown'; + return 'any'; + case 'String': + return JSON.stringify(type.value); + case 'Number': + return String(type.value); + case 'Boolean': + return String(type.value); + case 'Scalar': + switch (type.name) { + case 'string': + return 'string'; + case 'boolean': + return 'boolean'; + case 'int32': + case 'int64': + case 'int16': + case 'int8': + case 'uint32': + case 'uint16': + case 'uint8': + case 'float32': + case 'float64': + case 'numeric': + case 'integer': + case 'safeint': + case 'float': + case 'decimal': + case 'decimal128': + return 'number'; + case 'utcDateTime': + case 'offsetDateTime': + case 'plainDate': + case 'plainTime': + case 'duration': + case 'url': + return 'string'; + default: + return type.name ? toPascalCase(type.name) : 'any'; + } + case 'Enum': + return toPascalCase(type.name); + case 'Union': + if (type.name) { + return toPascalCase(type.name); + } + const unionTypes = Array.from(type.variants.values()).map((v) => getTsType(v.type)); + const uniqueUnionTypes = Array.from(new Set(unionTypes)); + return uniqueUnionTypes.join(' | '); + case 'Tuple': + return `[${type.values.map(getTsType).join(', ')}]`; + case 'Model': + if (type.name === 'Array') { + if (type.indexer) { + return `${getTsType(type.indexer.value)}[]`; + } + return 'any[]'; + } + if (type.name === 'Record') { + if (type.indexer) { + return `Record<${getTsType(type.indexer.key)}, ${getTsType(type.indexer.value)}>`; + } + return 'Record'; + } + if (type.name && type.name !== 'object') { + return toPascalCase(type.name); + } + if (type.properties.size === 0) { + return 'Record'; + } + const props: string[] = []; + for (const prop of type.properties.values()) { + props.push(`${prop.name}${prop.optional ? '?' : ''}: ${getTsType(prop.type)}`); + } + return `{ ${props.join('; ')} }`; + case 'ModelProperty': + return getTsType(type.type); + case 'EnumMember': + return type.value !== undefined ? JSON.stringify(type.value) : JSON.stringify(type.name); + case 'UnionVariant': + return getTsType(type.type); + default: + return 'any'; + } + } + + let code = `/**\n * This file was automatically generated by the TypeSpec TypeScript emitter.\n * Do not edit this file manually.\n */\n\n`; + + // Generate Enums as Type Aliases (erasable syntax) + const sortedEnums = Array.from(enums.values()).sort((a, b) => a.name.localeCompare(b.name)); + for (const e of sortedEnums) { + const doc = getDoc(program, e); + const comment = doc + ? `/**\n${doc + .trim() + .split('\n') + .map((l) => ` * ${l}`) + .join('\n')}\n */\n` + : ''; + const memberValues = Array.from(e.members.values()).map((member) => + member.value !== undefined ? JSON.stringify(member.value) : JSON.stringify(member.name), + ); + code += `${comment}export type ${toPascalCase(e.name)} = ${memberValues.join(' | ')};\n\n`; + } + + // Generate Unions + const sortedUnions = Array.from(unions.values()).sort((a, b) => a.name!.localeCompare(b.name!)); + for (const u of sortedUnions) { + const doc = getDoc(program, u); + const comment = doc + ? `/**\n${doc + .trim() + .split('\n') + .map((l) => ` * ${l}`) + .join('\n')}\n */\n` + : ''; + const unionTypes = Array.from(u.variants.values()).map((v) => getTsType(v.type)); + const uniqueUnionTypes = Array.from(new Set(unionTypes)); + code += `${comment}export type ${toPascalCase(u.name!)} = ${uniqueUnionTypes.join(' | ')};\n\n`; + } + + // Generate Models + const sortedModels = Array.from(models.values()).sort((a, b) => a.name.localeCompare(b.name)); + for (const m of sortedModels) { + const doc = getDoc(program, m); + const comment = doc + ? `/**\n${doc + .trim() + .split('\n') + .map((l) => ` * ${l}`) + .join('\n')}\n */\n` + : ''; + code += `${comment}export interface ${toPascalCase(m.name)} {\n`; + if (m.indexer) { + const keyType = getTsType(m.indexer.key); + const valueType = getTsType(m.indexer.value); + code += ` [key: ${keyType}]: ${valueType};\n`; + } + for (const prop of m.properties.values()) { + const propComment = getJSDocComment(prop); + code += `${propComment} ${prop.name}${prop.optional ? '?' : ''}: ${getTsType(prop.type)};\n`; + } + code += '}\n\n'; + } + + await emitFile(program, { + path: outputFile, + content: code, + }); +} diff --git a/packages/typespec-emitter/src/utils.ts b/packages/typespec-emitter/src/utils.ts new file mode 100644 index 000000000..0dfade96b --- /dev/null +++ b/packages/typespec-emitter/src/utils.ts @@ -0,0 +1,57 @@ +import type { Namespace, Model, Enum, Union, Type } from '@typespec/compiler'; + +export function toPascalCase(str: string): string { + if (!str) return ''; + return str + .split(/[_-]/) + .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) + .join(''); +} + +export function toSnakeCase(str: string): string { + if (!str) return ''; + return str + .replace(/([a-z0-9])([A-Z])/g, '$1_$2') + .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2') + .toLowerCase(); +} + +export function unwrapNullableType(type: Type): { type: Type; optional: boolean } { + if (type.kind === 'Union') { + const variants = Array.from(type.variants.values()); + const nonNullVariants = variants.filter((v) => v.type.kind !== 'Intrinsic' || v.type.name !== 'null'); + const hasNull = variants.length !== nonNullVariants.length; + const first = nonNullVariants[0]; + if (first) { + return { type: first.type, optional: hasNull }; + } + } + return { type, optional: false }; +} + +export function collectTypes( + ns: Namespace, + models: Map, + enums: Map, + unions: Map, +) { + for (const model of ns.models.values()) { + if (model.name && model.name !== 'Array' && model.name !== 'Record') { + models.set(model.name, model); + } + } + for (const e of ns.enums.values()) { + if (e.name) { + enums.set(e.name, e); + } + } + for (const u of ns.unions.values()) { + if (u.name) { + unions.set(u.name, u); + } + } + for (const subNs of ns.namespaces.values()) { + if (subNs.name === 'TypeSpec') continue; + collectTypes(subNs, models, enums, unions); + } +} diff --git a/packages/typespec-emitter/tsconfig.json b/packages/typespec-emitter/tsconfig.json new file mode 100644 index 000000000..e4aabe31e --- /dev/null +++ b/packages/typespec-emitter/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./build/" + }, + "include": ["src/"] +} diff --git a/tsconfig.json b/tsconfig.json index 38a063a7a..afee283c9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,12 @@ { "files": [], "references": [ + { + "path": "./packages/typespec-emitter" + }, + { + "path": "./packages/schema" + }, { "path": "./packages/stac" }, From 05d3625688923b04f185a494dcdacb424f524eb6 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Mon, 20 Jul 2026 15:16:23 +1200 Subject: [PATCH 02/20] refactor: only export the standard json types --- .../schema/src/types/next/parquet/b_box.json | 26 ---- .../src/types/next/parquet/data_source.json | 54 ------- .../src/types/next/parquet/geo_parquet.json | 38 ----- .../parquet/landcover_point_core_types.json | 141 ------------------ .../types/next/parquet/product_feature.json | 18 --- .../src/types/next/parquet/rock_outcrop.json | 141 ------------------ .../next/parquet/topographic_feature.json | 30 ---- .../next/parquet/topographic_metadata.json | 73 --------- packages/schema/src/types/parquet/b_box.json | 26 ---- packages/typespec-emitter/package.json | 3 +- packages/typespec-emitter/src/parquet.ts | 8 +- packages/typespec-emitter/src/pydantic.ts | 12 +- 12 files changed, 16 insertions(+), 554 deletions(-) delete mode 100644 packages/schema/src/types/next/parquet/b_box.json delete mode 100644 packages/schema/src/types/next/parquet/data_source.json delete mode 100644 packages/schema/src/types/next/parquet/geo_parquet.json delete mode 100644 packages/schema/src/types/next/parquet/landcover_point_core_types.json delete mode 100644 packages/schema/src/types/next/parquet/product_feature.json delete mode 100644 packages/schema/src/types/next/parquet/rock_outcrop.json delete mode 100644 packages/schema/src/types/next/parquet/topographic_feature.json delete mode 100644 packages/schema/src/types/next/parquet/topographic_metadata.json delete mode 100644 packages/schema/src/types/parquet/b_box.json diff --git a/packages/schema/src/types/next/parquet/b_box.json b/packages/schema/src/types/next/parquet/b_box.json deleted file mode 100644 index b1cb5bed1..000000000 --- a/packages/schema/src/types/next/parquet/b_box.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "b_box", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] -} diff --git a/packages/schema/src/types/next/parquet/data_source.json b/packages/schema/src/types/next/parquet/data_source.json deleted file mode 100644 index eaa26fcc5..000000000 --- a/packages/schema/src/types/next/parquet/data_source.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "type": "message", - "name": "data_source", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] -} diff --git a/packages/schema/src/types/next/parquet/geo_parquet.json b/packages/schema/src/types/next/parquet/geo_parquet.json deleted file mode 100644 index cbb8252dc..000000000 --- a/packages/schema/src/types/next/parquet/geo_parquet.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "type": "message", - "name": "geo_parquet", - "fields": [ - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/landcover_point_core_types.json b/packages/schema/src/types/next/parquet/landcover_point_core_types.json deleted file mode 100644 index 551053d3e..000000000 --- a/packages/schema/src/types/next/parquet/landcover_point_core_types.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "landcover_point_core_types", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/product_feature.json b/packages/schema/src/types/next/parquet/product_feature.json deleted file mode 100644 index d5a57fca7..000000000 --- a/packages/schema/src/types/next/parquet/product_feature.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "message", - "name": "product_feature", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - } - ] -} diff --git a/packages/schema/src/types/next/parquet/rock_outcrop.json b/packages/schema/src/types/next/parquet/rock_outcrop.json deleted file mode 100644 index 850bea20c..000000000 --- a/packages/schema/src/types/next/parquet/rock_outcrop.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "rock_outcrop", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/topographic_feature.json b/packages/schema/src/types/next/parquet/topographic_feature.json deleted file mode 100644 index 7b5e24229..000000000 --- a/packages/schema/src/types/next/parquet/topographic_feature.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "message", - "name": "topographic_feature", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - } - ] -} diff --git a/packages/schema/src/types/next/parquet/topographic_metadata.json b/packages/schema/src/types/next/parquet/topographic_metadata.json deleted file mode 100644 index 73859a9a4..000000000 --- a/packages/schema/src/types/next/parquet/topographic_metadata.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "type": "message", - "name": "topographic_metadata", - "fields": [ - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/b_box.json b/packages/schema/src/types/parquet/b_box.json deleted file mode 100644 index b1cb5bed1..000000000 --- a/packages/schema/src/types/parquet/b_box.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "b_box", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] -} diff --git a/packages/typespec-emitter/package.json b/packages/typespec-emitter/package.json index 827fdd2f6..695445be8 100644 --- a/packages/typespec-emitter/package.json +++ b/packages/typespec-emitter/package.json @@ -14,6 +14,7 @@ "node": "^24.5.0" }, "dependencies": { - "@typespec/compiler": "^1.11.0" + "@typespec/compiler": "^1.11.0", + "@typespec/json-schema": "^1.11.0" } } diff --git a/packages/typespec-emitter/src/parquet.ts b/packages/typespec-emitter/src/parquet.ts index e4c9f3463..de86d013c 100644 --- a/packages/typespec-emitter/src/parquet.ts +++ b/packages/typespec-emitter/src/parquet.ts @@ -1,5 +1,6 @@ import { emitFile, resolvePath } from '@typespec/compiler'; -import type { Model, Type } from '@typespec/compiler'; +import type { Model, Program, Type } from '@typespec/compiler'; +import { isJsonSchemaDeclaration } from '@typespec/json-schema'; import { toSnakeCase, unwrapNullableType } from './utils.ts'; @@ -115,8 +116,11 @@ function getParquetFields(model: Model): ParquetField[] { return fields; } -export async function emitParquetSchema(program: any, outputDir: string, models: Map) { +export async function emitParquetSchema(program: Program, outputDir: string, models: Map) { for (const [name, model] of models.entries()) { + if (!isJsonSchemaDeclaration(program, model)) { + continue; + } const tableName = toSnakeCase(name); const schema = { type: 'message', diff --git a/packages/typespec-emitter/src/pydantic.ts b/packages/typespec-emitter/src/pydantic.ts index 1cc2601fa..e92310b20 100644 --- a/packages/typespec-emitter/src/pydantic.ts +++ b/packages/typespec-emitter/src/pydantic.ts @@ -1,13 +1,17 @@ import { emitFile } from '@typespec/compiler'; -import type { Model } from '@typespec/compiler'; +import type { Model, Program } from '@typespec/compiler'; +import { isJsonSchemaDeclaration } from '@typespec/json-schema'; import { toPascalCase } from './utils.ts'; -export async function emitPydanticModels(program: any, outputFile: string, models: Map) { +export async function emitPydanticModels(program: Program, outputFile: string, models: Map) { // Placeholder for future Pydantic models generation let code = `# This is a placeholder for Python Pydantic models output.\n\n`; - for (const model of models.keys()) { - code += `class ${toPascalCase(model)}:\n pass\n\n`; + for (const [name, model] of models.entries()) { + if (!isJsonSchemaDeclaration(program, model)) { + continue; + } + code += `class ${toPascalCase(name)}:\n pass\n\n`; } await emitFile(program, { path: outputFile, From 0c2062e224f55bcad34fb6f69ffe1ecdab8f4ca6 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Mon, 20 Jul 2026 16:16:03 +1200 Subject: [PATCH 03/20] refactor: more types --- packages/schema/src/types/next.ts | 6 +- .../src/types/parquet/coastline_polygon.json | 65 +++++++++++++++++++ packages/schema/src/types/types.ts | 19 ++++++ 3 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 packages/schema/src/types/parquet/coastline_polygon.json diff --git a/packages/schema/src/types/next.ts b/packages/schema/src/types/next.ts index 108425124..a239965fd 100644 --- a/packages/schema/src/types/next.ts +++ b/packages/schema/src/types/next.ts @@ -257,7 +257,7 @@ export type SubstanceExtracted = | 'quartz' | 'scheelite' | 'shingle' - | 'silica sand' + | 'silica_sand' | 'silver' | 'stone' | 'zeolite'; @@ -268,11 +268,11 @@ export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; -export type TunnelStatus = 'closed' | 'under construction'; +export type TunnelStatus = 'closed' | 'under_construction'; export type TunnelSubtype = 'natural'; -export type TunnelUse = 'cablecar' | 'foot traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; +export type TunnelUse = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; export type UtilityPointType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; diff --git a/packages/schema/src/types/parquet/coastline_polygon.json b/packages/schema/src/types/parquet/coastline_polygon.json new file mode 100644 index 000000000..68cdf3213 --- /dev/null +++ b/packages/schema/src/types/parquet/coastline_polygon.json @@ -0,0 +1,65 @@ +{ + "type": "message", + "name": "coastline_polygon", + "fields": [ + { + "name": "id", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "updated_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "created_at", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "t50_fid", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "type", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "coastline_type", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "elevation", + "repetition": "OPTIONAL", + "physical_type": "INT32" + }, + { + "name": "name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "group_name", + "repetition": "OPTIONAL", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + }, + { + "name": "geometry", + "repetition": "REQUIRED", + "physical_type": "BYTE_ARRAY", + "logical_type": "STRING" + } + ] +} diff --git a/packages/schema/src/types/types.ts b/packages/schema/src/types/types.ts index 99de2c14e..a8848b2e5 100644 --- a/packages/schema/src/types/types.ts +++ b/packages/schema/src/types/types.ts @@ -406,6 +406,25 @@ export interface Coastline { bbox?: BBox; } +/** + * Derived polygon Union of coastline and island + */ +export interface CoastlinePolygon { + /** UUID for the feature. */ + id: string; + updated_at: Record; + /** Default at write time: today. */ + created_at: Record; + t50_fid?: unknown; + type: 'coastline' | 'island'; + coastline_type?: string | null; + elevation?: number | null; + name?: string | null; + group_name?: string | null; + /** WKB polygon geometry in NZGD2000 (EPSG:4167). */ + geometry: unknown; +} + export interface Contour { /** UUID for the feature. */ id: string; From fc1c2192211d66d9b93f23bad82ba9bdd1df6978 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 22 Jul 2026 14:52:10 +1200 Subject: [PATCH 04/20] build: only export the next types --- package-lock.json | 9 +- packages/schema/package.json | 12 +- packages/schema/src/types/next.ts | 1438 ----------------- .../src/types/next/parquet/airport.json | 141 -- .../src/types/next/parquet/bridge_line.json | 159 -- .../src/types/next/parquet/building.json | 153 -- .../types/next/parquet/building_point.json | 158 -- .../src/types/next/parquet/coastline.json | 140 -- .../src/types/next/parquet/contour.json | 158 -- .../types/next/parquet/descriptive_text.json | 146 -- .../src/types/next/parquet/fence_line.json | 135 -- .../src/types/next/parquet/ferry_line.json | 147 -- .../types/next/parquet/geographic_name.json | 152 -- .../schema/src/types/next/parquet/island.json | 147 -- .../src/types/next/parquet/landcover.json | 141 -- .../types/next/parquet/landcover_line.json | 135 -- .../src/types/next/parquet/landuse.json | 159 -- .../src/types/next/parquet/landuse_line.json | 147 -- .../src/types/next/parquet/landuse_point.json | 159 -- .../schema/src/types/next/parquet/marine.json | 147 -- .../src/types/next/parquet/marine_point.json | 141 -- .../next/parquet/nztopo50_carto_text.json | 175 -- .../types/next/parquet/nztopo50_dms_grid.json | 61 - .../src/types/next/parquet/nztopo50_grid.json | 61 - .../next/parquet/nztopo50_map_sheet.json | 102 -- .../src/types/next/parquet/place_point.json | 164 -- .../src/types/next/parquet/railway_line.json | 165 -- .../src/types/next/parquet/railway_point.json | 141 -- .../schema/src/types/next/parquet/relief.json | 146 -- .../src/types/next/parquet/relief_line.json | 152 -- .../src/types/next/parquet/relief_point.json | 162 -- .../types/next/parquet/residential_area.json | 141 -- .../src/types/next/parquet/road_line.json | 188 --- .../schema/src/types/next/parquet/runway.json | 153 -- .../src/types/next/parquet/structure.json | 171 -- .../types/next/parquet/structure_line.json | 159 -- .../types/next/parquet/structure_point.json | 169 -- .../src/types/next/parquet/track_line.json | 159 -- .../types/next/parquet/transport_point.json | 141 -- .../src/types/next/parquet/trig_point.json | 158 -- .../src/types/next/parquet/tunnel_line.json | 165 -- .../src/types/next/parquet/utility_line.json | 165 -- .../src/types/next/parquet/utility_point.json | 146 -- .../src/types/next/parquet/vegetation.json | 147 -- .../types/next/parquet/vegetation_line.json | 135 -- .../types/next/parquet/vegetation_point.json | 135 -- .../schema/src/types/next/parquet/water.json | 181 --- .../src/types/next/parquet/water_line.json | 147 -- .../src/types/next/parquet/water_point.json | 152 -- .../schema/src/types/parquet/airport.json | 74 - .../src/types/parquet/audit_fields.json | 18 - .../schema/src/types/parquet/bridge_line.json | 98 -- .../schema/src/types/parquet/building.json | 86 - .../src/types/parquet/building_point.json | 91 -- .../schema/src/types/parquet/coastline.json | 79 - .../src/types/parquet/coastline_polygon.json | 65 - .../schema/src/types/parquet/contour.json | 90 -- .../src/types/parquet/descriptive_text.json | 85 - .../schema/src/types/parquet/fence_line.json | 68 - .../src/types/parquet/ferry_crossing.json | 68 - .../src/types/parquet/geographic_name.json | 85 - packages/schema/src/types/parquet/island.json | 80 - .../schema/src/types/parquet/landcover.json | 80 - .../src/types/parquet/landcover_line.json | 68 - .../src/types/parquet/landcover_point.json | 90 -- .../schema/src/types/parquet/landuse.json | 98 -- .../src/types/parquet/landuse_line.json | 86 - packages/schema/src/types/parquet/marine.json | 80 - .../types/parquet/nztopo50_carto_text.json | 169 -- .../src/types/parquet/nztopo50_dms_grid.json | 55 - .../src/types/parquet/nztopo50_grid.json | 55 - .../src/types/parquet/nztopo50_map_sheet.json | 102 -- .../schema/src/types/parquet/place_point.json | 114 -- .../src/types/parquet/product_identity.json | 12 - .../src/types/parquet/railway_line.json | 122 -- .../src/types/parquet/railway_station.json | 74 - packages/schema/src/types/parquet/relief.json | 79 - .../schema/src/types/parquet/relief_line.json | 85 - .../src/types/parquet/relief_point.json | 85 - .../src/types/parquet/residential_area.json | 74 - .../schema/src/types/parquet/road_line.json | 133 -- packages/schema/src/types/parquet/runway.json | 86 - .../schema/src/types/parquet/structure.json | 110 -- .../src/types/parquet/structure_line.json | 110 -- .../src/types/parquet/structure_point.json | 138 -- .../src/types/parquet/topo_identity.json | 12 - .../schema/src/types/parquet/track_line.json | 92 -- .../src/types/parquet/transport_point.json | 74 - .../schema/src/types/parquet/trig_point.json | 91 -- .../schema/src/types/parquet/tunnel_line.json | 98 -- .../src/types/parquet/utility_line.json | 98 -- .../src/types/parquet/utility_point.json | 79 - .../schema/src/types/parquet/vegetation.json | 80 - .../src/types/parquet/vegetation_line.json | 68 - .../src/types/parquet/vegetation_point.json | 68 - packages/schema/src/types/parquet/water.json | 120 -- .../schema/src/types/parquet/water_line.json | 80 - .../schema/src/types/parquet/water_point.json | 90 -- packages/schema/src/types/types.ts | 1171 -------------- packages/schema/tspconfig.next.yaml | 3 +- packages/schema/tspconfig.yaml | 3 - packages/shared/src/index.ts | 1 + packages/typespec-emitter/src/parquet.ts | 47 +- 103 files changed, 33 insertions(+), 13599 deletions(-) delete mode 100644 packages/schema/src/types/next.ts delete mode 100644 packages/schema/src/types/next/parquet/airport.json delete mode 100644 packages/schema/src/types/next/parquet/bridge_line.json delete mode 100644 packages/schema/src/types/next/parquet/building.json delete mode 100644 packages/schema/src/types/next/parquet/building_point.json delete mode 100644 packages/schema/src/types/next/parquet/coastline.json delete mode 100644 packages/schema/src/types/next/parquet/contour.json delete mode 100644 packages/schema/src/types/next/parquet/descriptive_text.json delete mode 100644 packages/schema/src/types/next/parquet/fence_line.json delete mode 100644 packages/schema/src/types/next/parquet/ferry_line.json delete mode 100644 packages/schema/src/types/next/parquet/geographic_name.json delete mode 100644 packages/schema/src/types/next/parquet/island.json delete mode 100644 packages/schema/src/types/next/parquet/landcover.json delete mode 100644 packages/schema/src/types/next/parquet/landcover_line.json delete mode 100644 packages/schema/src/types/next/parquet/landuse.json delete mode 100644 packages/schema/src/types/next/parquet/landuse_line.json delete mode 100644 packages/schema/src/types/next/parquet/landuse_point.json delete mode 100644 packages/schema/src/types/next/parquet/marine.json delete mode 100644 packages/schema/src/types/next/parquet/marine_point.json delete mode 100644 packages/schema/src/types/next/parquet/nztopo50_carto_text.json delete mode 100644 packages/schema/src/types/next/parquet/nztopo50_dms_grid.json delete mode 100644 packages/schema/src/types/next/parquet/nztopo50_grid.json delete mode 100644 packages/schema/src/types/next/parquet/nztopo50_map_sheet.json delete mode 100644 packages/schema/src/types/next/parquet/place_point.json delete mode 100644 packages/schema/src/types/next/parquet/railway_line.json delete mode 100644 packages/schema/src/types/next/parquet/railway_point.json delete mode 100644 packages/schema/src/types/next/parquet/relief.json delete mode 100644 packages/schema/src/types/next/parquet/relief_line.json delete mode 100644 packages/schema/src/types/next/parquet/relief_point.json delete mode 100644 packages/schema/src/types/next/parquet/residential_area.json delete mode 100644 packages/schema/src/types/next/parquet/road_line.json delete mode 100644 packages/schema/src/types/next/parquet/runway.json delete mode 100644 packages/schema/src/types/next/parquet/structure.json delete mode 100644 packages/schema/src/types/next/parquet/structure_line.json delete mode 100644 packages/schema/src/types/next/parquet/structure_point.json delete mode 100644 packages/schema/src/types/next/parquet/track_line.json delete mode 100644 packages/schema/src/types/next/parquet/transport_point.json delete mode 100644 packages/schema/src/types/next/parquet/trig_point.json delete mode 100644 packages/schema/src/types/next/parquet/tunnel_line.json delete mode 100644 packages/schema/src/types/next/parquet/utility_line.json delete mode 100644 packages/schema/src/types/next/parquet/utility_point.json delete mode 100644 packages/schema/src/types/next/parquet/vegetation.json delete mode 100644 packages/schema/src/types/next/parquet/vegetation_line.json delete mode 100644 packages/schema/src/types/next/parquet/vegetation_point.json delete mode 100644 packages/schema/src/types/next/parquet/water.json delete mode 100644 packages/schema/src/types/next/parquet/water_line.json delete mode 100644 packages/schema/src/types/next/parquet/water_point.json delete mode 100644 packages/schema/src/types/parquet/airport.json delete mode 100644 packages/schema/src/types/parquet/audit_fields.json delete mode 100644 packages/schema/src/types/parquet/bridge_line.json delete mode 100644 packages/schema/src/types/parquet/building.json delete mode 100644 packages/schema/src/types/parquet/building_point.json delete mode 100644 packages/schema/src/types/parquet/coastline.json delete mode 100644 packages/schema/src/types/parquet/coastline_polygon.json delete mode 100644 packages/schema/src/types/parquet/contour.json delete mode 100644 packages/schema/src/types/parquet/descriptive_text.json delete mode 100644 packages/schema/src/types/parquet/fence_line.json delete mode 100644 packages/schema/src/types/parquet/ferry_crossing.json delete mode 100644 packages/schema/src/types/parquet/geographic_name.json delete mode 100644 packages/schema/src/types/parquet/island.json delete mode 100644 packages/schema/src/types/parquet/landcover.json delete mode 100644 packages/schema/src/types/parquet/landcover_line.json delete mode 100644 packages/schema/src/types/parquet/landcover_point.json delete mode 100644 packages/schema/src/types/parquet/landuse.json delete mode 100644 packages/schema/src/types/parquet/landuse_line.json delete mode 100644 packages/schema/src/types/parquet/marine.json delete mode 100644 packages/schema/src/types/parquet/nztopo50_carto_text.json delete mode 100644 packages/schema/src/types/parquet/nztopo50_dms_grid.json delete mode 100644 packages/schema/src/types/parquet/nztopo50_grid.json delete mode 100644 packages/schema/src/types/parquet/nztopo50_map_sheet.json delete mode 100644 packages/schema/src/types/parquet/place_point.json delete mode 100644 packages/schema/src/types/parquet/product_identity.json delete mode 100644 packages/schema/src/types/parquet/railway_line.json delete mode 100644 packages/schema/src/types/parquet/railway_station.json delete mode 100644 packages/schema/src/types/parquet/relief.json delete mode 100644 packages/schema/src/types/parquet/relief_line.json delete mode 100644 packages/schema/src/types/parquet/relief_point.json delete mode 100644 packages/schema/src/types/parquet/residential_area.json delete mode 100644 packages/schema/src/types/parquet/road_line.json delete mode 100644 packages/schema/src/types/parquet/runway.json delete mode 100644 packages/schema/src/types/parquet/structure.json delete mode 100644 packages/schema/src/types/parquet/structure_line.json delete mode 100644 packages/schema/src/types/parquet/structure_point.json delete mode 100644 packages/schema/src/types/parquet/topo_identity.json delete mode 100644 packages/schema/src/types/parquet/track_line.json delete mode 100644 packages/schema/src/types/parquet/transport_point.json delete mode 100644 packages/schema/src/types/parquet/trig_point.json delete mode 100644 packages/schema/src/types/parquet/tunnel_line.json delete mode 100644 packages/schema/src/types/parquet/utility_line.json delete mode 100644 packages/schema/src/types/parquet/utility_point.json delete mode 100644 packages/schema/src/types/parquet/vegetation.json delete mode 100644 packages/schema/src/types/parquet/vegetation_line.json delete mode 100644 packages/schema/src/types/parquet/vegetation_point.json delete mode 100644 packages/schema/src/types/parquet/water.json delete mode 100644 packages/schema/src/types/parquet/water_line.json delete mode 100644 packages/schema/src/types/parquet/water_point.json delete mode 100644 packages/schema/src/types/types.ts diff --git a/package-lock.json b/package-lock.json index 1109503cc..869dc22fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13918,13 +13918,11 @@ "packages/schema": { "name": "@linzjs/topographic-system-schema", "version": "0.0.1", - "dependencies": { - "@typespec/json-schema": "^1.11.0" - }, "devDependencies": { "@linzjs/typespec-emitter": "^0.1.0", "@types/node": "^24.10.0", - "@typespec/compiler": "^1.11.0" + "@typespec/compiler": "^1.11.0", + "@typespec/json-schema": "^1.11.0" }, "engines": { "node": "^24.5.0" @@ -14131,7 +14129,8 @@ "name": "@linzjs/typespec-emitter", "version": "0.1.0", "dependencies": { - "@typespec/compiler": "^1.11.0" + "@typespec/compiler": "^1.11.0", + "@typespec/json-schema": "^1.11.0" }, "engines": { "node": "^24.5.0" diff --git a/packages/schema/package.json b/packages/schema/package.json index 357a21969..d2f552295 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -9,10 +9,7 @@ "exports": { ".": { "typespec": "./src/main.tsp", - "default": "./src/types/types.ts" - }, - "./next": { - "default": "./src/types/next.ts" + "default": "./src/types/index.ts" } }, "engines": { @@ -26,9 +23,8 @@ "devDependencies": { "@linzjs/typespec-emitter": "^0.1.0", "@types/node": "^24.10.0", - "@typespec/compiler": "^1.11.0" - }, - "dependencies": { + "@typespec/compiler": "^1.11.0", "@typespec/json-schema": "^1.11.0" - } + }, + "dependencies": {} } diff --git a/packages/schema/src/types/next.ts b/packages/schema/src/types/next.ts deleted file mode 100644 index a239965fd..000000000 --- a/packages/schema/src/types/next.ts +++ /dev/null @@ -1,1438 +0,0 @@ -/** - * This file was automatically generated by the TypeSpec TypeScript emitter. - * Do not edit this file manually. - */ - -export type BridgeSubtype = 'foot_traffic' | 'train'; - -export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; - -export type BuildingStatus = 'derelict' | 'historic' | 'private'; - -export type BuildingSubtype = - | 'abattoir' - | 'camp' - | 'cement_works' - | 'church' - | 'energy_facility' - | 'factory' - | 'fertiliser_works' - | 'fire_lookout' - | 'forest_headquarters' - | 'gas_compound' - | 'greenhouse' - | 'gun_club' - | 'gun_emplacement' - | 'hall' - | 'homestead' - | 'hospital' - | 'hut' - | 'lodge' - | 'marae' - | 'mill' - | 'museum' - | 'observatory' - | 'polytechnic' - | 'power_generation' - | 'prison' - | 'private_hut' - | 'salt_works' - | 'school' - | 'shingle_works' - | 'silo' - | 'stamping_battery' - | 'substation' - | 'surf_club' - | 'university' - | 'visitor_centre' - | 'water_treatment_plant'; - -export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; - -export type CartoColour = '' | 'black' | 'process_blue' | 'red'; - -export type CartoFont = '' | 'Nimbus Sans LINZ'; - -export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; - -export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; - -export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; - -export type CartoTextfont = - | 'ATTrium-Italic' - | 'ATTriumMou-Cond' - | 'ATTriumMou-CondBold' - | 'ATTriumMou-CondItalic' - | 'ATTriumMou-Italic' - | 'ATTriumMou-Regular' - | 'Courier Bold Oblique'; - -export type ConstructionType = 'suspension' | 'swing' | 'trestle'; - -/** - * This enum will be redone in another work item - keeping as is for now - */ -export type DisplayEnum = '0' | '1' | '2' | '3'; - -export type GridDirection = 'x' | 'y'; - -export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; - -export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; - -export type LanduseStatus = 'dangerous' | 'disused' | 'old'; - -export type LanduseSubtype = 'training' | 'opencast' | 'underground'; - -export type LanduseType = - | 'cemetery' - | 'cycle_track' - | 'dog_track' - | 'golf_course' - | 'gravel_pit' - | 'horse_track' - | 'landfill' - | 'mine' - | 'orchard' - | 'pumice_pit' - | 'quarry' - | 'racetrack' - | 'rifle_range' - | 'showground' - | 'sportsfield' - | 'vineyard' - | 'vehicle_track'; - -export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; - -export type PlaceComposition = 'limestone' | 'pumice' | 'coral'; - -export type PlaceSubtype = 'opencast' | 'underground'; - -export type PlaceType = 'cave' | 'cemetery' | 'grave' | 'historic_site' | 'mine' | 'monument' | 'pa'; - -export type RailwayStatus = 'disused'; - -export type RailwaySubtype = 'siding'; - -export type RailwayTrackType = 'single' | 'multiple'; - -export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; - -export type ReliefLineSubtype = 'causeway' | 'stopbank'; - -export type ReliefLineType = - | 'cliff_edge' - | 'cutting_edge' - | 'embankment' - | 'rapid' - | 'slip_edge' - | 'waterfall' - | 'waterfall_edge' - | 'seawall'; - -export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; - -export type RoadStatus = 'under_construction' | 'closed'; - -export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; - -export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; - -export type RunwayStatus = 'disused'; - -export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; - -export type RunwaySurface = 'grass' | 'sealed'; - -export type Status = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureLineType = - | 'boatramp' - | 'boom' - | 'breakwater' - | 'cableway_industrial' - | 'cableway_people' - | 'dam' - | 'flume' - | 'ladder' - | 'marine_farm' - | 'ski_lift' - | 'ski_tow' - | 'slipway' - | 'spillway_edge' - | 'walkwire' - | 'water_race' - | 'weir' - | 'wharf' - | 'wharf_edge'; - -export type StructurePointType = - | 'beacon' - | 'bivouac' - | 'buoy' - | 'chimney' - | 'dredge' - | 'flare' - | 'floodgate' - | 'gate' - | 'ladder' - | 'mast' - | 'radar_dome' - | 'redoubt' - | 'satellite_station' - | 'shaft' - | 'siphon' - | 'stockyard' - | 'tank' - | 'tower' - | 'well' - | 'windmill' - | 'wreck'; - -export type StructureSpecies = 'mussels' | 'salmon'; - -export type StructureStatus = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureSubtype = - | 'building' - | 'coal' - | 'concrete' - | 'disused' - | 'fuel' - | 'historic' - | 'jetty' - | 'lake' - | 'land' - | 'lighthouse' - | 'lime' - | 'locked' - | 'plane' - | 'power_generation' - | 'rock' - | 'sea' - | 'ship' - | 'surge_chamber' - | 'tunnel_ventilation' - | 'uncovered' - | 'water'; - -export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; - -export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; - -export type SubstanceExtracted = - | 'bentonite' - | 'clay' - | 'coal' - | 'gold' - | 'gravel' - | 'ironsand' - | 'lime' - | 'limestone' - | 'metal' - | 'quartz' - | 'scheelite' - | 'shingle' - | 'silica_sand' - | 'silver' - | 'stone' - | 'zeolite'; - -export type TrackStatus = 'closed'; - -export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; - -export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; - -export type TunnelStatus = 'closed' | 'under_construction'; - -export type TunnelSubtype = 'natural'; - -export type TunnelUse = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; - -export type UtilityPointType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; - -export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; - -export type UtilitySupporttype = 'pole' | 'pylon'; - -export type UtilityVisibility = 'underground'; - -export type VegetationSubtype = 'coniferous' | 'non-coniferous'; - -export type WaterPerennial = 'dry' | 'seasonal'; - -export type WaterSubtype = - | 'evaporation' - | 'hydro_electric' - | 'ice_skating' - | 'oil' - | 'oxidation' - | 'reservoir' - | 'settling' - | 'sewage' - | 'sewage_treatment' - | 'sludge'; - -export type WaterTemperatureIndicator = 'cold' | 'hot'; - -export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; - -export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; - -export interface Airport { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'airport'; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * GeoParquet 1.1 covering bbox struct. - */ -export interface BBox { - xmin: number; - ymin: number; - xmax: number; - ymax: number; -} - -export interface BridgeLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: BridgeType | null; - subtype: BridgeSubtype | null; - construction_type: ConstructionType | null; - status: Status | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Building { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface BuildingPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - orientation: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Coastline { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'coastline' | 'water_confluence' | 'wharf'; - elevation: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Contour { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'contour'; - elevation: number | null; - definition: string | null; - designation: 'supplementary' | null; - formation: 'depression' | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface DataSource { - /** Name of the column in this table where the linked data gets copied to */ - table_column: string; - /** Registered source for linked data */ - source: MetadataSource; - /** Name of the key column in source to use for linking */ - source_key_name: string; - /** Value of the key column in source to use for linking. */ - source_key_value: number | string; - /** Name of the table in source that contains the linked data */ - source_table: string; - /** Name of the column in the source where the linked data gets copied from */ - source_column: string; - /** Timestamp when the source was last updated */ - source_updated_at: string; - /** Timestamp when this linked data was last imported */ - imported_at: string; -} - -export interface DescriptiveText { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'descriptive_text'; - info_display: string | null; - size: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FenceLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'fence'; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FerryLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ferry_crossing'; - subtype: 'vehicle' | 'passenger' | 'freight' | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeographicName { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'geographic_name'; - name: string | null; - desc_code: string | null; - size: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeoParquet { - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Island { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'island'; - name: string | null; - group_name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landcover { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverType; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'dredge_tailing'; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverPointCoreTypes { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverPointCoreType; - subtype: null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landuse { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LanduseLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandusePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Marine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'mangrove' | 'reef' | 'rock' | 'shoal'; - name: string | null; - composition: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface MarinePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock'; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50CartoText { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - /** id (UUID) of the example feature. */ - example_point_id: string | null; - full_text: string | null; - text_bend: number | null; - text_char_spacing_distance: number | null; - text_colour: number | null; - text_font: CartoTextfont | null; - text_height: number | null; - text_orientation: number | null; - text_placement: number | null; - text_size_type: number | null; - text_stretch_length: number | null; - text_string: string | null; - text_word_spacing_distance: number | null; - font: CartoFont | null; - style: CartoStyle | null; - colour: CartoColour | null; - size: number | null; - placement: CartoPlacement | null; - offset: number | null; - textanchor: CartoTextanchor | null; - labelanchor: number | null; - charplace: CartoCharplace | null; - chardistance: number | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50DmsGrid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50Grid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50MapSheet { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'nztopo50_map_sheet'; - sheet_code: string; - sheet_name: string; - origin_x: number; - origin_y: number; - /** id (UUID) of the example feature. */ - example_point_id: string; - published_version: string; - published_at: string; - updated_at: string; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface PlacePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: PlaceType; - subtype: PlaceSubtype | null; - name: string | null; - elevation: number | null; - composition: PlaceComposition | null; - description: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ProductFeature { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -/** - * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. - * Where a railway line is located close to a road, the line held in the data and shown on the printed map - * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. - * - * Multiple sidings may be held in the data and shown on the printed maps as a single feature - */ -export interface RailwayLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'railway'; - subtype: RailwaySubtype | null; - track_type: RailwayTrackType | null; - vehicle_type: RailwayVehicleType | null; - status: RailwayStatus | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RailwayPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'station'; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Relief { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'waterfall' | 'rapid'; - name: string | null; - height: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefLineType; - subtype: ReliefLineSubtype | null; - name: string | null; - height: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefPointType; - name: string | null; - display: DisplayEnum | null; - elevation: number | null; - height: number | null; - orientation: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ResidentialArea { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'residential_area'; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RoadLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'road'; - hierarchy: string | null; - status: RoadStatus | null; - name: string | null; - highway_number: string | null; - lane_count: number | null; - surface: RoadSurface | null; - way_count: 'one_way' | null; - width_indicator: 'w' | null; - road_access: 'mp' | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RockOutcrop { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock_outcrop'; - subtype: RockOutcropSubtype; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Runway { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'runway'; - subtype: RunwaySubtype | null; - status: RunwayStatus | null; - surface: RunwaySurface | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Structure { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureType; - subtype: StructureSubtype | null; - lid_type: 'covered' | null; - tank_type: StructureTankType | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructureLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureLineType; - subtype: StructureSubtype | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructurePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructurePointType; - subtype: StructureSubtype | null; - tank_type: StructureTankType | null; - status: StructureStatus | null; - name: string | null; - height: number | null; - orientation: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TopographicFeature { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -export interface TopographicMetadata { - metadata: DataSource[] | null; -} - -export interface TrackLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'track'; - subtype: TrackSubtype | null; - track_type: TrackType | null; - status: TrackStatus | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TransportPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ford' | 'helipad'; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TrigPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'trig'; - trig_type: 'beaconed' | null; - name: string | null; - code: string | null; - elevation: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TunnelLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'tunnel'; - tunnel_use: TunnelUse | null; - tunnel_use2: TunnelUse | null; - subtype: TunnelSubtype | null; - status: TunnelStatus | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'pipeline' | 'powerline' | 'telephone'; - subtype: UtilitySubtype | null; - support_type: UtilitySupporttype | null; - status: string | null; - name: string | null; - visibility: UtilityVisibility | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: UtilityPointType; - name: string | null; - orientation: number | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Vegetation { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; - subtype: VegetationSubtype | null; - species: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'shelter_belt'; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'tree' | 'scattered_scrub'; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Water { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - subtype: WaterSubtype | null; - hierarchy: string | null; - name: string | null; - group_name: string | null; - height: number | null; - elevation: number | null; - perennial: WaterPerennial | null; - temperature_indicator: WaterTemperatureIndicator | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface WaterLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - hierarchy: string | null; - name: string | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface WaterPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - name: string | null; - orientation: number | null; - temperature_indicator: WaterTemperatureIndicator | null; - metadata: DataSource[] | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} diff --git a/packages/schema/src/types/next/parquet/airport.json b/packages/schema/src/types/next/parquet/airport.json deleted file mode 100644 index 239d05fa7..000000000 --- a/packages/schema/src/types/next/parquet/airport.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "airport", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/bridge_line.json b/packages/schema/src/types/next/parquet/bridge_line.json deleted file mode 100644 index 95e1f1d5a..000000000 --- a/packages/schema/src/types/next/parquet/bridge_line.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "type": "message", - "name": "bridge_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "construction_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/building.json b/packages/schema/src/types/next/parquet/building.json deleted file mode 100644 index c54c35cf5..000000000 --- a/packages/schema/src/types/next/parquet/building.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "type": "message", - "name": "building", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/building_point.json b/packages/schema/src/types/next/parquet/building_point.json deleted file mode 100644 index 7ed7a0e83..000000000 --- a/packages/schema/src/types/next/parquet/building_point.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "type": "message", - "name": "building_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/coastline.json b/packages/schema/src/types/next/parquet/coastline.json deleted file mode 100644 index ecef936af..000000000 --- a/packages/schema/src/types/next/parquet/coastline.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "type": "message", - "name": "coastline", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/contour.json b/packages/schema/src/types/next/parquet/contour.json deleted file mode 100644 index 1a0f574f7..000000000 --- a/packages/schema/src/types/next/parquet/contour.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "type": "message", - "name": "contour", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "definition", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "designation", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "formation", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/descriptive_text.json b/packages/schema/src/types/next/parquet/descriptive_text.json deleted file mode 100644 index 70fb15998..000000000 --- a/packages/schema/src/types/next/parquet/descriptive_text.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "type": "message", - "name": "descriptive_text", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "info_display", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "size", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/fence_line.json b/packages/schema/src/types/next/parquet/fence_line.json deleted file mode 100644 index 08f29126f..000000000 --- a/packages/schema/src/types/next/parquet/fence_line.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "type": "message", - "name": "fence_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/ferry_line.json b/packages/schema/src/types/next/parquet/ferry_line.json deleted file mode 100644 index a27d3fd8c..000000000 --- a/packages/schema/src/types/next/parquet/ferry_line.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "type": "message", - "name": "ferry_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/geographic_name.json b/packages/schema/src/types/next/parquet/geographic_name.json deleted file mode 100644 index 1412bf5f0..000000000 --- a/packages/schema/src/types/next/parquet/geographic_name.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "message", - "name": "geographic_name", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "desc_code", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "size", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/island.json b/packages/schema/src/types/next/parquet/island.json deleted file mode 100644 index f7c497adf..000000000 --- a/packages/schema/src/types/next/parquet/island.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "type": "message", - "name": "island", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "group_name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/landcover.json b/packages/schema/src/types/next/parquet/landcover.json deleted file mode 100644 index 155ec8ae5..000000000 --- a/packages/schema/src/types/next/parquet/landcover.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "landcover", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/landcover_line.json b/packages/schema/src/types/next/parquet/landcover_line.json deleted file mode 100644 index 2c2bec8da..000000000 --- a/packages/schema/src/types/next/parquet/landcover_line.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "type": "message", - "name": "landcover_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/landuse.json b/packages/schema/src/types/next/parquet/landuse.json deleted file mode 100644 index dca4d948e..000000000 --- a/packages/schema/src/types/next/parquet/landuse.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "type": "message", - "name": "landuse", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "substance_extracted", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/landuse_line.json b/packages/schema/src/types/next/parquet/landuse_line.json deleted file mode 100644 index 4815ee947..000000000 --- a/packages/schema/src/types/next/parquet/landuse_line.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "type": "message", - "name": "landuse_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/landuse_point.json b/packages/schema/src/types/next/parquet/landuse_point.json deleted file mode 100644 index 371286d38..000000000 --- a/packages/schema/src/types/next/parquet/landuse_point.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "type": "message", - "name": "landuse_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "substance_extracted", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/marine.json b/packages/schema/src/types/next/parquet/marine.json deleted file mode 100644 index f95cf8bb2..000000000 --- a/packages/schema/src/types/next/parquet/marine.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "type": "message", - "name": "marine", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "composition", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/marine_point.json b/packages/schema/src/types/next/parquet/marine_point.json deleted file mode 100644 index 96e19550f..000000000 --- a/packages/schema/src/types/next/parquet/marine_point.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "marine_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/nztopo50_carto_text.json b/packages/schema/src/types/next/parquet/nztopo50_carto_text.json deleted file mode 100644 index 949665b63..000000000 --- a/packages/schema/src/types/next/parquet/nztopo50_carto_text.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_carto_text", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "example_point_id", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "full_text", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "text_bend", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_char_spacing_distance", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_colour", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_font", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "text_height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "text_orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "text_placement", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_size_type", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_stretch_length", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_string", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "text_word_spacing_distance", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "font", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "style", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "colour", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "size", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "placement", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "offset", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "textanchor", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "labelanchor", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "charplace", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "chardistance", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/nztopo50_dms_grid.json b/packages/schema/src/types/next/parquet/nztopo50_dms_grid.json deleted file mode 100644 index dd3d2227b..000000000 --- a/packages/schema/src/types/next/parquet/nztopo50_dms_grid.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_dms_grid", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "direction", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "value", - "repetition": "REQUIRED", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/nztopo50_grid.json b/packages/schema/src/types/next/parquet/nztopo50_grid.json deleted file mode 100644 index aebd093f6..000000000 --- a/packages/schema/src/types/next/parquet/nztopo50_grid.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_grid", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "direction", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "value", - "repetition": "REQUIRED", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/nztopo50_map_sheet.json b/packages/schema/src/types/next/parquet/nztopo50_map_sheet.json deleted file mode 100644 index dd8eeccd1..000000000 --- a/packages/schema/src/types/next/parquet/nztopo50_map_sheet.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_map_sheet", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "sheet_code", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "sheet_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "origin_x", - "repetition": "REQUIRED", - "physical_type": "DOUBLE" - }, - { - "name": "origin_y", - "repetition": "REQUIRED", - "physical_type": "DOUBLE" - }, - { - "name": "example_point_id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "published_version", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "published_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/place_point.json b/packages/schema/src/types/next/parquet/place_point.json deleted file mode 100644 index 2a857e89c..000000000 --- a/packages/schema/src/types/next/parquet/place_point.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "type": "message", - "name": "place_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "composition", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "description", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/railway_line.json b/packages/schema/src/types/next/parquet/railway_line.json deleted file mode 100644 index 59f756844..000000000 --- a/packages/schema/src/types/next/parquet/railway_line.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "type": "message", - "name": "railway_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "track_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "vehicle_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/railway_point.json b/packages/schema/src/types/next/parquet/railway_point.json deleted file mode 100644 index dfe86a9ea..000000000 --- a/packages/schema/src/types/next/parquet/railway_point.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "railway_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/relief.json b/packages/schema/src/types/next/parquet/relief.json deleted file mode 100644 index 4328fa8f0..000000000 --- a/packages/schema/src/types/next/parquet/relief.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "type": "message", - "name": "relief", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/relief_line.json b/packages/schema/src/types/next/parquet/relief_line.json deleted file mode 100644 index ef3755973..000000000 --- a/packages/schema/src/types/next/parquet/relief_line.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "message", - "name": "relief_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/relief_point.json b/packages/schema/src/types/next/parquet/relief_point.json deleted file mode 100644 index 4b7154ebe..000000000 --- a/packages/schema/src/types/next/parquet/relief_point.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "type": "message", - "name": "relief_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "display", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/residential_area.json b/packages/schema/src/types/next/parquet/residential_area.json deleted file mode 100644 index cc93e76f0..000000000 --- a/packages/schema/src/types/next/parquet/residential_area.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "residential_area", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/road_line.json b/packages/schema/src/types/next/parquet/road_line.json deleted file mode 100644 index 81a840b08..000000000 --- a/packages/schema/src/types/next/parquet/road_line.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "type": "message", - "name": "road_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "hierarchy", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "highway_number", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "lane_count", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "surface", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "way_count", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "width_indicator", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "road_access", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/runway.json b/packages/schema/src/types/next/parquet/runway.json deleted file mode 100644 index 15844ec61..000000000 --- a/packages/schema/src/types/next/parquet/runway.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "type": "message", - "name": "runway", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "surface", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/structure.json b/packages/schema/src/types/next/parquet/structure.json deleted file mode 100644 index dcb4d836e..000000000 --- a/packages/schema/src/types/next/parquet/structure.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "type": "message", - "name": "structure", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "lid_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tank_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "species", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/structure_line.json b/packages/schema/src/types/next/parquet/structure_line.json deleted file mode 100644 index 12252cd7d..000000000 --- a/packages/schema/src/types/next/parquet/structure_line.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "type": "message", - "name": "structure_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "species", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/structure_point.json b/packages/schema/src/types/next/parquet/structure_point.json deleted file mode 100644 index bdafffccf..000000000 --- a/packages/schema/src/types/next/parquet/structure_point.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "message", - "name": "structure_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tank_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/track_line.json b/packages/schema/src/types/next/parquet/track_line.json deleted file mode 100644 index 0ea4e1b96..000000000 --- a/packages/schema/src/types/next/parquet/track_line.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "type": "message", - "name": "track_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "track_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/transport_point.json b/packages/schema/src/types/next/parquet/transport_point.json deleted file mode 100644 index 1870c9c50..000000000 --- a/packages/schema/src/types/next/parquet/transport_point.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "message", - "name": "transport_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/trig_point.json b/packages/schema/src/types/next/parquet/trig_point.json deleted file mode 100644 index 44c760fdb..000000000 --- a/packages/schema/src/types/next/parquet/trig_point.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "type": "message", - "name": "trig_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "trig_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "code", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/tunnel_line.json b/packages/schema/src/types/next/parquet/tunnel_line.json deleted file mode 100644 index 7e56d8a3f..000000000 --- a/packages/schema/src/types/next/parquet/tunnel_line.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "type": "message", - "name": "tunnel_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tunnel_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tunnel_use2", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/utility_line.json b/packages/schema/src/types/next/parquet/utility_line.json deleted file mode 100644 index a7dd2c150..000000000 --- a/packages/schema/src/types/next/parquet/utility_line.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "type": "message", - "name": "utility_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "support_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "visibility", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/utility_point.json b/packages/schema/src/types/next/parquet/utility_point.json deleted file mode 100644 index 24b98b11c..000000000 --- a/packages/schema/src/types/next/parquet/utility_point.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "type": "message", - "name": "utility_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/vegetation.json b/packages/schema/src/types/next/parquet/vegetation.json deleted file mode 100644 index 245df32bb..000000000 --- a/packages/schema/src/types/next/parquet/vegetation.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "type": "message", - "name": "vegetation", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "species", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/vegetation_line.json b/packages/schema/src/types/next/parquet/vegetation_line.json deleted file mode 100644 index 77d546405..000000000 --- a/packages/schema/src/types/next/parquet/vegetation_line.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "type": "message", - "name": "vegetation_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/vegetation_point.json b/packages/schema/src/types/next/parquet/vegetation_point.json deleted file mode 100644 index 4bcb3603d..000000000 --- a/packages/schema/src/types/next/parquet/vegetation_point.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "type": "message", - "name": "vegetation_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/water.json b/packages/schema/src/types/next/parquet/water.json deleted file mode 100644 index 86379b243..000000000 --- a/packages/schema/src/types/next/parquet/water.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "type": "message", - "name": "water", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "hierarchy", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "group_name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "perennial", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "temperature_indicator", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/water_line.json b/packages/schema/src/types/next/parquet/water_line.json deleted file mode 100644 index b307660b7..000000000 --- a/packages/schema/src/types/next/parquet/water_line.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "type": "message", - "name": "water_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "hierarchy", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/next/parquet/water_point.json b/packages/schema/src/types/next/parquet/water_point.json deleted file mode 100644 index 9ce1e0452..000000000 --- a/packages/schema/src/types/next/parquet/water_point.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "message", - "name": "water_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "temperature_indicator", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "metadata", - "repetition": "OPTIONAL", - "logical_type": "LIST", - "fields": [ - { - "name": "list", - "repetition": "REPEATED", - "fields": [ - { - "name": "element", - "repetition": "REQUIRED", - "fields": [ - { - "name": "table_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_key_value", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_table", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_column", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "source_updated_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - }, - { - "name": "imported_at", - "repetition": "REQUIRED", - "physical_type": "INT64", - "logical_type": "TIMESTAMP" - } - ] - } - ] - } - ] - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/airport.json b/packages/schema/src/types/parquet/airport.json deleted file mode 100644 index d9b398f3d..000000000 --- a/packages/schema/src/types/parquet/airport.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "type": "message", - "name": "airport", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "REQUIRED", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/audit_fields.json b/packages/schema/src/types/parquet/audit_fields.json deleted file mode 100644 index e2aa08908..000000000 --- a/packages/schema/src/types/parquet/audit_fields.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "message", - "name": "audit_fields", - "fields": [ - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - } - ] -} diff --git a/packages/schema/src/types/parquet/bridge_line.json b/packages/schema/src/types/parquet/bridge_line.json deleted file mode 100644 index 30f9d5ea4..000000000 --- a/packages/schema/src/types/parquet/bridge_line.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "type": "message", - "name": "bridge_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bridge_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bridge_use2", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "construction_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/building.json b/packages/schema/src/types/parquet/building.json deleted file mode 100644 index 1d3c78d9c..000000000 --- a/packages/schema/src/types/parquet/building.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "type": "message", - "name": "building", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "building_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/building_point.json b/packages/schema/src/types/parquet/building_point.json deleted file mode 100644 index 70ed40529..000000000 --- a/packages/schema/src/types/parquet/building_point.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "type": "message", - "name": "building_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "building_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/coastline.json b/packages/schema/src/types/parquet/coastline.json deleted file mode 100644 index 02ac163ff..000000000 --- a/packages/schema/src/types/parquet/coastline.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "type": "message", - "name": "coastline", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "coastline_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/coastline_polygon.json b/packages/schema/src/types/parquet/coastline_polygon.json deleted file mode 100644 index 68cdf3213..000000000 --- a/packages/schema/src/types/parquet/coastline_polygon.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "type": "message", - "name": "coastline_polygon", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "coastline_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "group_name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - } - ] -} diff --git a/packages/schema/src/types/parquet/contour.json b/packages/schema/src/types/parquet/contour.json deleted file mode 100644 index c41ff4a33..000000000 --- a/packages/schema/src/types/parquet/contour.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "type": "message", - "name": "contour", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "definition", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "designation", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "formation", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/descriptive_text.json b/packages/schema/src/types/parquet/descriptive_text.json deleted file mode 100644 index 3ea76a689..000000000 --- a/packages/schema/src/types/parquet/descriptive_text.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "message", - "name": "descriptive_text", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "nzgb_id", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "info_display", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "size", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/fence_line.json b/packages/schema/src/types/parquet/fence_line.json deleted file mode 100644 index f1425ed9d..000000000 --- a/packages/schema/src/types/parquet/fence_line.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "message", - "name": "fence_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/ferry_crossing.json b/packages/schema/src/types/parquet/ferry_crossing.json deleted file mode 100644 index 71f7f220b..000000000 --- a/packages/schema/src/types/parquet/ferry_crossing.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "message", - "name": "ferry_crossing", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/geographic_name.json b/packages/schema/src/types/parquet/geographic_name.json deleted file mode 100644 index 0408f7e1d..000000000 --- a/packages/schema/src/types/parquet/geographic_name.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "message", - "name": "geographic_name", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "desc_code", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "size", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/island.json b/packages/schema/src/types/parquet/island.json deleted file mode 100644 index caf6bf1f1..000000000 --- a/packages/schema/src/types/parquet/island.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "type": "message", - "name": "island", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "group_name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/landcover.json b/packages/schema/src/types/parquet/landcover.json deleted file mode 100644 index 01a5ce41f..000000000 --- a/packages/schema/src/types/parquet/landcover.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "type": "message", - "name": "landcover", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/landcover_line.json b/packages/schema/src/types/parquet/landcover_line.json deleted file mode 100644 index 13219d1d5..000000000 --- a/packages/schema/src/types/parquet/landcover_line.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "message", - "name": "landcover_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/landcover_point.json b/packages/schema/src/types/parquet/landcover_point.json deleted file mode 100644 index 2c21770e3..000000000 --- a/packages/schema/src/types/parquet/landcover_point.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "type": "message", - "name": "landcover_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "display", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/landuse.json b/packages/schema/src/types/parquet/landuse.json deleted file mode 100644 index 9ead7a94e..000000000 --- a/packages/schema/src/types/parquet/landuse.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "type": "message", - "name": "landuse", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "landuse_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "substance_extracted", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/landuse_line.json b/packages/schema/src/types/parquet/landuse_line.json deleted file mode 100644 index c661906fb..000000000 --- a/packages/schema/src/types/parquet/landuse_line.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "type": "message", - "name": "landuse_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "landuse_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/marine.json b/packages/schema/src/types/parquet/marine.json deleted file mode 100644 index 31361c880..000000000 --- a/packages/schema/src/types/parquet/marine.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "type": "message", - "name": "marine", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "composition", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/nztopo50_carto_text.json b/packages/schema/src/types/parquet/nztopo50_carto_text.json deleted file mode 100644 index 587c635e8..000000000 --- a/packages/schema/src/types/parquet/nztopo50_carto_text.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_carto_text", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "example_point_id", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "full_text", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "text_bend", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_char_spacing_distance", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_colour", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_font", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "text_height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "text_orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "text_placement", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_size_type", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_stretch_length", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "text_string", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "text_word_spacing_distance", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "font", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "style", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "colour", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "size", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "placement", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "offset", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "textanchor", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "labelanchor", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "charplace", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "chardistance", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/nztopo50_dms_grid.json b/packages/schema/src/types/parquet/nztopo50_dms_grid.json deleted file mode 100644 index 7807fafab..000000000 --- a/packages/schema/src/types/parquet/nztopo50_dms_grid.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_dms_grid", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "direction", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "value", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/nztopo50_grid.json b/packages/schema/src/types/parquet/nztopo50_grid.json deleted file mode 100644 index 42f43bfa2..000000000 --- a/packages/schema/src/types/parquet/nztopo50_grid.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_grid", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "direction", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "value", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/nztopo50_map_sheet.json b/packages/schema/src/types/parquet/nztopo50_map_sheet.json deleted file mode 100644 index 4b604aca3..000000000 --- a/packages/schema/src/types/parquet/nztopo50_map_sheet.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_map_sheet", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "sheet_code", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "sheet_name", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "x_origin", - "repetition": "REQUIRED", - "physical_type": "DOUBLE" - }, - { - "name": "y_origin", - "repetition": "REQUIRED", - "physical_type": "DOUBLE" - }, - { - "name": "example_point_id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "published_version", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "published_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/place_point.json b/packages/schema/src/types/parquet/place_point.json deleted file mode 100644 index fcbb775a4..000000000 --- a/packages/schema/src/types/parquet/place_point.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "type": "message", - "name": "place_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "place_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "composition", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "description", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "substance_extracted", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/product_identity.json b/packages/schema/src/types/parquet/product_identity.json deleted file mode 100644 index d173fd001..000000000 --- a/packages/schema/src/types/parquet/product_identity.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "message", - "name": "product_identity", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - } - ] -} diff --git a/packages/schema/src/types/parquet/railway_line.json b/packages/schema/src/types/parquet/railway_line.json deleted file mode 100644 index aebac094c..000000000 --- a/packages/schema/src/types/parquet/railway_line.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "type": "message", - "name": "railway_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "railway_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "track_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "vehicle_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "nzgb_id", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "route", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "route2", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "route3", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/railway_station.json b/packages/schema/src/types/parquet/railway_station.json deleted file mode 100644 index 3a66525d0..000000000 --- a/packages/schema/src/types/parquet/railway_station.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "type": "message", - "name": "railway_station", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/relief.json b/packages/schema/src/types/parquet/relief.json deleted file mode 100644 index c476e0374..000000000 --- a/packages/schema/src/types/parquet/relief.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "type": "message", - "name": "relief", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/relief_line.json b/packages/schema/src/types/parquet/relief_line.json deleted file mode 100644 index b2fa3b98d..000000000 --- a/packages/schema/src/types/parquet/relief_line.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "message", - "name": "relief_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "relief_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/relief_point.json b/packages/schema/src/types/parquet/relief_point.json deleted file mode 100644 index 68702dc6b..000000000 --- a/packages/schema/src/types/parquet/relief_point.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "message", - "name": "relief_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "display", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/residential_area.json b/packages/schema/src/types/parquet/residential_area.json deleted file mode 100644 index 5777f4f44..000000000 --- a/packages/schema/src/types/parquet/residential_area.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "type": "message", - "name": "residential_area", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/road_line.json b/packages/schema/src/types/parquet/road_line.json deleted file mode 100644 index 8f11b2186..000000000 --- a/packages/schema/src/types/parquet/road_line.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "type": "message", - "name": "road_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "hierarchy", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "highway_number", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "lane_count", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "surface", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "way_count", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "width_indicator", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "road_access", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name_id", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "rna_sufi", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/runway.json b/packages/schema/src/types/parquet/runway.json deleted file mode 100644 index 67b0e8ee3..000000000 --- a/packages/schema/src/types/parquet/runway.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "type": "message", - "name": "runway", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "runway_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "surface", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/structure.json b/packages/schema/src/types/parquet/structure.json deleted file mode 100644 index a23d37a9a..000000000 --- a/packages/schema/src/types/parquet/structure.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "type": "message", - "name": "structure", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "lid_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tank_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "species", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "stored_item", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/structure_line.json b/packages/schema/src/types/parquet/structure_line.json deleted file mode 100644 index d8460f919..000000000 --- a/packages/schema/src/types/parquet/structure_line.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "type": "message", - "name": "structure_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "structure_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "species", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "material", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "material_conveyed", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "restrictions", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/structure_point.json b/packages/schema/src/types/parquet/structure_point.json deleted file mode 100644 index 9c857a0cc..000000000 --- a/packages/schema/src/types/parquet/structure_point.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "type": "message", - "name": "structure_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "structure_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tank_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "location", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "material", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "restrictions", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "stored_item", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "wreck_of", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/topo_identity.json b/packages/schema/src/types/parquet/topo_identity.json deleted file mode 100644 index 4cfaea022..000000000 --- a/packages/schema/src/types/parquet/topo_identity.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "message", - "name": "topo_identity", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - } - ] -} diff --git a/packages/schema/src/types/parquet/track_line.json b/packages/schema/src/types/parquet/track_line.json deleted file mode 100644 index dbb44453f..000000000 --- a/packages/schema/src/types/parquet/track_line.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "type": "message", - "name": "track_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "track_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "track_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/transport_point.json b/packages/schema/src/types/parquet/transport_point.json deleted file mode 100644 index cf600d4dc..000000000 --- a/packages/schema/src/types/parquet/transport_point.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "type": "message", - "name": "transport_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/trig_point.json b/packages/schema/src/types/parquet/trig_point.json deleted file mode 100644 index d4cd2f37a..000000000 --- a/packages/schema/src/types/parquet/trig_point.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "type": "message", - "name": "trig_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "trig_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "code", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/tunnel_line.json b/packages/schema/src/types/parquet/tunnel_line.json deleted file mode 100644 index e4475cad2..000000000 --- a/packages/schema/src/types/parquet/tunnel_line.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "type": "message", - "name": "tunnel_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tunnel_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "tunnel_use2", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/utility_line.json b/packages/schema/src/types/parquet/utility_line.json deleted file mode 100644 index 6c59261f7..000000000 --- a/packages/schema/src/types/parquet/utility_line.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "type": "message", - "name": "utility_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "utility_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "support_type", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "status", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "visibility", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/utility_point.json b/packages/schema/src/types/parquet/utility_point.json deleted file mode 100644 index 2568fa4f1..000000000 --- a/packages/schema/src/types/parquet/utility_point.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "type": "message", - "name": "utility_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/vegetation.json b/packages/schema/src/types/parquet/vegetation.json deleted file mode 100644 index 9a1a80493..000000000 --- a/packages/schema/src/types/parquet/vegetation.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "type": "message", - "name": "vegetation", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "subtype", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "species", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/vegetation_line.json b/packages/schema/src/types/parquet/vegetation_line.json deleted file mode 100644 index 2b46f1069..000000000 --- a/packages/schema/src/types/parquet/vegetation_line.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "message", - "name": "vegetation_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/vegetation_point.json b/packages/schema/src/types/parquet/vegetation_point.json deleted file mode 100644 index a5242d33c..000000000 --- a/packages/schema/src/types/parquet/vegetation_point.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "message", - "name": "vegetation_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/water.json b/packages/schema/src/types/parquet/water.json deleted file mode 100644 index 14607dd15..000000000 --- a/packages/schema/src/types/parquet/water.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "type": "message", - "name": "water", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "water_use", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "hierarchy", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "group_name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "nzgb_feat_id", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "elevation", - "repetition": "OPTIONAL", - "physical_type": "INT32" - }, - { - "name": "perennial", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "temperature", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/water_line.json b/packages/schema/src/types/parquet/water_line.json deleted file mode 100644 index 13676aedb..000000000 --- a/packages/schema/src/types/parquet/water_line.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "type": "message", - "name": "water_line", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "hierarchy", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/parquet/water_point.json b/packages/schema/src/types/parquet/water_point.json deleted file mode 100644 index 4865c7936..000000000 --- a/packages/schema/src/types/parquet/water_point.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "type": "message", - "name": "water_point", - "fields": [ - { - "name": "id", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "updated_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "created_at", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "t50_fid", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "type", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "name", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "height", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "orientation", - "repetition": "OPTIONAL", - "physical_type": "DOUBLE" - }, - { - "name": "temperature_indicator", - "repetition": "OPTIONAL", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "geometry", - "repetition": "REQUIRED", - "physical_type": "BYTE_ARRAY", - "logical_type": "STRING" - }, - { - "name": "bbox", - "repetition": "OPTIONAL", - "fields": [ - { - "name": "xmin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymin", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "xmax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - }, - { - "name": "ymax", - "repetition": "REQUIRED", - "physical_type": "FLOAT" - } - ] - } - ] -} diff --git a/packages/schema/src/types/types.ts b/packages/schema/src/types/types.ts deleted file mode 100644 index a8848b2e5..000000000 --- a/packages/schema/src/types/types.ts +++ /dev/null @@ -1,1171 +0,0 @@ -/** - * This file was automatically generated by the TypeSpec TypeScript emitter. - * Do not edit this file manually. - */ - -/** - * Auto-derived from observed values of `bridge_use2`. - */ -export type BridgeUse2Enum = 'train'; - -/** - * Auto-derived from observed values of `bridge_use`. - */ -export type BridgeUseEnum = 'cablecar' | 'farm' | 'foot traffic' | 'train' | 'vehicle'; - -/** - * Auto-derived from observed values of `charplace`. - */ -export type CharplaceEnum = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; - -/** - * Auto-derived from observed values of `colour`. - */ -export type ColourEnum = '' | 'black' | 'process_blue' | 'red'; - -/** - * Auto-derived from observed values of `composition`. - */ -export type CompositionEnum = 'limestone' | 'pumice'; - -/** - * Auto-derived from observed values of `construction_type`. - */ -export type ConstructionTypeEnum = 'suspension' | 'swing' | 'trestle'; - -/** - * Auto-derived from observed values of `designation`. - */ -export type DesignationEnum = 'supplementary'; - -/** - * Auto-derived from observed values of `direction`. - */ -export type DirectionEnum = 'x' | 'y'; - -/** - * Auto-derived from observed values of `display`. - */ -export type DisplayEnum = '0' | '1' | '2' | '3'; - -/** - * Auto-derived from observed values of `example_class`. - */ -export type ExampleClassEnum = 'geographic_name' | 'trig_pnt'; - -/** - * Auto-derived from observed values of `font`. - */ -export type FontEnum = '' | 'Nimbus Sans LINZ'; - -/** - * Auto-derived from observed values of `formation`. - */ -export type FormationEnum = 'depression'; - -/** - * Auto-derived from observed values of `subtype`. - */ -export type LanduseSubTypeEnum = 'opencast' | 'training'; - -/** - * Auto-derived from observed values of `landuse_use`. - */ -export type LanduseUseEnum = 'cycle' | 'dog' | 'horse' | 'vehicle'; - -/** - * Auto-derived from observed values of `lid_type`. - */ -export type LidTypeEnum = 'covered'; - -/** - * Auto-derived from observed values of `location`. - */ -export type LocationEnum = 'lake' | 'land' | 'sea'; - -/** - * Auto-derived from observed values of `material_conveyed`. - */ -export type MaterialConveyedEnum = 'coal' | 'lime'; - -/** - * Auto-derived from observed values of `material`. - */ -export type MaterialEnum = 'concrete' | 'rock'; - -/** - * Auto-derived from observed values of `perennial`. - */ -export type PerennialEnum = 'dry' | 'seasonal'; - -/** - * Auto-derived from observed values of `placement`. - */ -export type PlacementEnum = '' | 'AL' | 'BL' | 'OL'; - -/** - * Auto-derived from observed values of `place_type`. - */ -export type PlaceTypeEnum = 'opencast' | 'underground'; - -/** - * Auto-derived from observed values of `railway_use`. - */ -export type RailwayUseEnum = 'siding'; - -/** - * Auto-derived from observed values of `relief_use`. - */ -export type ReliefUseEnum = 'causeway' | 'stopbank'; - -/** - * Auto-derived from observed values of `restrictions`. - */ -export type RestrictionsEnum = 'locked'; - -/** - * Auto-derived from observed values of `road_access`. - */ -export type RoadAccessEnum = 'mp'; - -/** - * Auto-derived from observed values of `runway_use`. - */ -export type RunwayUseEnum = 'aerodrome' | 'airport' | 'airstrip'; - -/** - * Auto-derived from observed values of `species`. - */ -export type SpeciesEnum = 'mussels' | 'salmon'; - -/** - * Auto-derived from observed values of `status`. - */ -export type StatusEnum = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under construction'; - -/** - * Auto-derived from observed values of `stored_item`. - */ -export type StoredItemEnum = 'fuel' | 'water'; - -/** - * Auto-derived from observed values of `subtype`. - */ -export type StructureSubTypeEnum = 'lighthouse' | 'surge chamber' | 'uncovered' | 'water'; - -/** - * Auto-derived from observed values of `structure_use`. - */ -export type StructureUseEnum = 'disused' | 'historic' | 'jetty' | 'power generation' | 'tunnel ventilation'; - -/** - * Auto-derived from observed values of `style`. - */ -export type StyleEnum = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; - -/** - * Auto-derived from observed values of `substance`. - */ -export type SubstanceEnum = - | 'bentonite' - | 'clay' - | 'coal' - | 'gold' - | 'gravel' - | 'ironsand' - | 'lime' - | 'limestone' - | 'metal' - | 'quartz' - | 'scheelite' - | 'shingle' - | 'silica sand' - | 'silver' - | 'stone' - | 'zeolite'; - -/** - * Auto-derived from observed values of `subtype`. - */ -export type SubTypeEnum = 'coniferous' | 'non-coniferous'; - -/** - * Auto-derived from observed values of `support_type`. - */ -export type SupportTypeEnum = 'pole' | 'pylon'; - -/** - * Auto-derived from observed values of `surface`. - */ -export type SurfaceEnum = 'grass' | 'metalled' | 'sealed' | 'unmetalled'; - -/** - * Auto-derived from observed values of `temperature`. - */ -export type TemperatureEnum = 'hot'; - -/** - * Auto-derived from observed values of `temperature_indicator`. - */ -export type TemperatureIndicatorEnum = 'cold' | 'hot'; - -/** - * Auto-derived from observed values of `textanchor`. - */ -export type TextanchorEnum = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; - -/** - * Auto-derived from observed values of `text_font`. - */ -export type TextFontEnum = - | 'ATTrium-Italic' - | 'ATTriumMou-Cond' - | 'ATTriumMou-CondBold' - | 'ATTriumMou-CondItalic' - | 'ATTriumMou-Italic' - | 'ATTriumMou-Regular' - | 'Courier Bold Oblique'; - -/** - * Auto-derived from observed values of `track_type`. - */ -export type TrackTypeEnum = 'connector' | 'multiple' | 'route' | 'single'; - -/** - * Auto-derived from observed values of `track_use`. - */ -export type TrackUseEnum = 'cycle only' | 'foot' | 'vehicle'; - -/** - * Auto-derived from observed values of `trig_type`. - */ -export type TrigTypeEnum = 'beaconed'; - -/** - * Auto-derived from observed values of `subtype`. - */ -export type TunnelSubTypeEnum = 'natural'; - -/** - * Auto-derived from observed values of `tunnel_use2`. - */ -export type TunnelUse2Enum = 'livestock'; - -/** - * Auto-derived from observed values of `tunnel_use`. - */ -export type TunnelUseEnum = 'cablecar' | 'foot traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; - -/** - * Auto-derived from observed values of `infrastructure_use`. - */ -export type UtilityUseEnum = 'ironsand' | 'sewage' | 'steam' | 'water'; - -/** - * Auto-derived from observed values of `vehicle_type`. - */ -export type VehicleTypeEnum = 'cablecar' | 'rail cart' | 'train' | 'tram'; - -/** - * Auto-derived from observed values of `visibility`. - */ -export type VisibilityEnum = 'underground'; - -/** - * Auto-derived from observed values of `water_use`. - */ -export type WaterUseEnum = - | 'evaporation' - | 'hydro-electric' - | 'ice skating' - | 'oil' - | 'oxidation' - | 'reservoir' - | 'settling' - | 'sewage' - | 'sewage treatment' - | 'sludge'; - -/** - * Auto-derived from observed values of `way_count`. - */ -export type WayCountEnum = 'one way'; - -/** - * Auto-derived from observed values of `wreck_of`. - */ -export type WreckOfEnum = 'plane' | 'ship'; - -export interface Airport { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'airport'; - name: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox: BBox; -} - -/** - * Capture / change-tracking columns shared by most features. - */ -export interface AuditFields { - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; -} - -/** - * GeoParquet 1.1 covering bbox struct. - */ -export interface BBox { - xmin: number; - ymin: number; - xmax: number; - ymax: number; -} - -export interface BridgeLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'bridge'; - bridge_use?: BridgeUseEnum | null; - bridge_use2?: BridgeUse2Enum | null; - construction_type?: ConstructionTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Building { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'building'; - building_use?: string | null; - status?: StatusEnum | null; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface BuildingPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'building'; - building_use?: string | null; - status?: StatusEnum | null; - name?: string | null; - orientation?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Coastline { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'coastline'; - coastline_type?: string | null; - elevation?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -/** - * Derived polygon Union of coastline and island - */ -export interface CoastlinePolygon { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'coastline' | 'island'; - coastline_type?: string | null; - elevation?: number | null; - name?: string | null; - group_name?: string | null; - /** WKB polygon geometry in NZGD2000 (EPSG:4167). */ - geometry: unknown; -} - -export interface Contour { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: number | null; - type: 'contour'; - elevation?: number | null; - definition?: string | null; - designation?: DesignationEnum | null; - formation?: FormationEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface DescriptiveText { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'descriptive_text'; - nzgb_id?: unknown; - info_display?: string | null; - size?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface FenceLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'fence'; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface FerryCrossing { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'ferry_crossing'; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface GeographicName { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'geographic_name'; - name?: string | null; - desc_code?: string | null; - size?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Island { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'island'; - name?: string | null; - group_name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Landcover { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'rapid' | 'sand' | 'scree' | 'shingle' | 'swamp'; - subtype?: SubTypeEnum | null; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface LandcoverLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'dredge_tailing'; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface LandcoverPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'fumarole' | 'rock_outcrop' | 'swamp'; - name?: string | null; - elevation?: number | null; - display?: DisplayEnum | null; - orientation?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Landuse { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: - | 'cemetery' - | 'golf_course' - | 'gravel_pit' - | 'landfill' - | 'mine' - | 'orchard' - | 'pumice_pit' - | 'quarry' - | 'racetrack' - | 'rifle_range' - | 'showground' - | 'sportsfield' - | 'vineyard'; - landuse_use?: LanduseUseEnum | null; - subtype?: LanduseSubTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - substance_extracted?: SubstanceEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface LanduseLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'racetrack'; - landuse_use?: LanduseUseEnum | null; - subtype?: LanduseSubTypeEnum | null; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Marine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'mangrove' | 'reef' | 'rock' | 'shoal'; - name?: string | null; - composition?: CompositionEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Nztopo50CartoText { - /** UUID for the feature. */ - id: string; - /** id (UUID) of the example feature. */ - example_point_id?: string | null; - full_text?: string | null; - text_bend?: number | null; - text_char_spacing_distance?: number | null; - text_colour?: number | null; - text_font?: TextFontEnum | null; - text_height?: number | null; - text_orientation?: number | null; - text_placement?: number | null; - text_size_type?: number | null; - text_stretch_length?: number | null; - text_string?: string | null; - text_word_spacing_distance?: number | null; - font?: FontEnum | null; - style?: StyleEnum | null; - colour?: ColourEnum | null; - size?: number | null; - placement?: PlacementEnum | null; - offset?: number | null; - textanchor?: TextanchorEnum | null; - labelanchor?: number | null; - charplace?: CharplaceEnum | null; - chardistance?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Nztopo50DmsGrid { - /** UUID for the feature. */ - id: string; - direction?: DirectionEnum | null; - value?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Nztopo50Grid { - /** UUID for the feature. */ - id: string; - direction?: DirectionEnum | null; - value?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Nztopo50MapSheet { - /** UUID for the feature. */ - id: string; - t50_fid?: unknown; - type: 'nztopo50_map_sheet'; - sheet_code: string; - sheet_name: string; - x_origin: number; - y_origin: number; - /** topo_id (UUID) of the example feature. */ - example_point_id: string; - published_version: string; - published_at: Record; - updated_at: Record; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface PlacePoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: - | 'cave' - | 'cemetery' - | 'grave' - | 'historic_site' - | 'mine' - | 'monument' - | 'pa' - | 'radar_dome' - | 'saddle' - | 'satellite_station'; - place_type?: PlaceTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - elevation?: number | null; - composition?: CompositionEnum | null; - description?: string | null; - orientation?: number | null; - substance_extracted?: SubstanceEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface ProductIdentity { - /** UUID for the feature. */ - id: string; -} - -export interface RailwayLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'railway'; - railway_use?: RailwayUseEnum | null; - track_type?: TrackTypeEnum | null; - vehicle_type?: VehicleTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - nzgb_id?: unknown; - route?: string | null; - route2?: string | null; - route3?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface RailwayStation { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'rail_station'; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Relief { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'waterfall'; - name?: string | null; - height?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface ReliefLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'cliff_edge' | 'cutting_edge' | 'embankment' | 'rapid' | 'slip_edge' | 'waterfall' | 'waterfall_edge'; - relief_use?: ReliefUseEnum | null; - name?: string | null; - height?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface ReliefPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'height' | 'sinkhole'; - name?: string | null; - display?: DisplayEnum | null; - elevation?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface ResidentialArea { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'residential_area'; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface RoadLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'road'; - hierarchy?: string | null; - status?: StatusEnum | null; - name?: string | null; - highway_number?: string | null; - lane_count?: number | null; - surface?: SurfaceEnum | null; - way_count?: WayCountEnum | null; - width_indicator?: 'w' | null; - road_access?: RoadAccessEnum | null; - name_id?: unknown; - rna_sufi?: unknown; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Runway { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'runway'; - runway_use?: RunwayUseEnum | null; - status?: StatusEnum | null; - surface?: SurfaceEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Structure { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; - lid_type?: LidTypeEnum | null; - tank_type?: string | null; - subtype?: StructureSubTypeEnum | null; - species?: SpeciesEnum | null; - status?: StatusEnum | null; - name?: string | null; - stored_item?: StoredItemEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface StructureLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: - | 'boatramp' - | 'boom' - | 'breakwater' - | 'cableway_industrial' - | 'cableway_people' - | 'dam' - | 'flume' - | 'ladder' - | 'marine_farm' - | 'ski_lift' - | 'ski_tow' - | 'slipway' - | 'spillway_edge' - | 'walkwire' - | 'water_race' - | 'weir' - | 'wharf' - | 'wharf_edge'; - structure_use?: StructureUseEnum | null; - species?: SpeciesEnum | null; - status?: StatusEnum | null; - name?: string | null; - material?: MaterialEnum | null; - material_conveyed?: MaterialConveyedEnum | null; - restrictions?: RestrictionsEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface StructurePoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: - | 'beacon' - | 'bivouac' - | 'buoy' - | 'chimney' - | 'dredge' - | 'flare' - | 'floodgate' - | 'gate' - | 'ladder' - | 'mast' - | 'redoubt' - | 'shaft' - | 'siphon' - | 'stockyard' - | 'tank' - | 'tower' - | 'well' - | 'windmill' - | 'wreck'; - structure_use?: StructureUseEnum | null; - tank_type?: 'uncovered' | 'water' | 'surge chamber' | null; - subtype?: StructureSubTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - location?: LocationEnum | null; - height?: number | null; - orientation?: number | null; - material?: MaterialEnum | null; - restrictions?: RestrictionsEnum | null; - stored_item?: StoredItemEnum | null; - wreck_of?: WreckOfEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -/** - * Identity columns shared by every file in the dataset. - */ -export interface TopoIdentity { - /** UUID for the feature. */ - id: string; -} - -export interface TrackLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'track'; - track_use?: TrackUseEnum | null; - track_type?: TrackTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface TransportPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'ford' | 'helipad'; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface TrigPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'trig'; - trig_type?: TrigTypeEnum | null; - name?: string | null; - code?: string | null; - elevation?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface TunnelLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'tunnel'; - tunnel_use?: TunnelUseEnum | null; - tunnel_use2?: TunnelUse2Enum | null; - subtype?: TunnelSubTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface UtilityLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'pipeline' | 'powerline' | 'telephone'; - utility_use?: UtilityUseEnum | null; - support_type?: SupportTypeEnum | null; - status?: StatusEnum | null; - name?: string | null; - visibility?: VisibilityEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface UtilityPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'gas_valve' | 'geo_bore' | 'pylon'; - name?: string | null; - orientation?: number | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Vegetation { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; - subtype?: SubTypeEnum | null; - species?: SpeciesEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface VegetationLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'shelter_belt'; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface VegetationPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'tree'; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface Water { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'canal' | 'lagoon' | 'lake' | 'pond' | 'river'; - water_use?: WaterUseEnum | null; - hierarchy?: string | null; - name?: string | null; - group_name?: string | null; - nzgb_feat_id?: unknown; - height?: number | null; - elevation?: number | null; - perennial?: PerennialEnum | null; - temperature?: TemperatureEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface WaterLine { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'canal' | 'drain' | 'river'; - hierarchy?: string | null; - name?: string | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} - -export interface WaterPoint { - /** UUID for the feature. */ - id: string; - updated_at: Record; - /** Default at write time: today. */ - created_at: Record; - t50_fid?: unknown; - type: 'rock' | 'soakhole' | 'spring' | 'waterfall'; - name?: string | null; - height?: number | null; - orientation?: number | null; - temperature_indicator?: TemperatureIndicatorEnum | null; - /** WKB geometry. Validation only checks presence + non-null; semantic checks live elsewhere. */ - geometry: unknown; - bbox?: BBox; -} diff --git a/packages/schema/tspconfig.next.yaml b/packages/schema/tspconfig.next.yaml index e984f865d..0a293657b 100644 --- a/packages/schema/tspconfig.next.yaml +++ b/packages/schema/tspconfig.next.yaml @@ -4,5 +4,4 @@ options: emitter-output-dir: '{project-root}/../../schema/next' file-type: 'json' '@linzjs/typespec-emitter': - typescript-output-file: '{project-root}/src/types/next.ts' - parquet-output-dir: '{project-root}/src/types/next/parquet/' + typescript-output-file: '{project-root}/src/types/index.ts' diff --git a/packages/schema/tspconfig.yaml b/packages/schema/tspconfig.yaml index 35b78e43f..24444ca06 100644 --- a/packages/schema/tspconfig.yaml +++ b/packages/schema/tspconfig.yaml @@ -5,6 +5,3 @@ options: '@typespec/json-schema': emitter-output-dir: '{project-root}/../../schema' file-type: 'json' - '@linzjs/typespec-emitter': - typescript-output-file: '{project-root}/src/types/types.ts' - parquet-output-dir: '{project-root}/src/types/parquet/' diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 00bc3c804..6df399657 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -21,3 +21,4 @@ export type { ParquetStacMetadata } from './parquet.metadata.ts'; export { concurrency, qFromArgs, qMap, qMapAll, worker } from './limit.ts'; export { StacExtensions } from './stac.extensions.ts'; export type { StacExtensionUrl, StacFileV2_1_0, StacProjectionV2_0_0, StacTableV1_3_0 } from './stac.extensions.ts'; +export { ParquetField } from './parquet.schema.ts'; diff --git a/packages/typespec-emitter/src/parquet.ts b/packages/typespec-emitter/src/parquet.ts index de86d013c..61c1e53ff 100644 --- a/packages/typespec-emitter/src/parquet.ts +++ b/packages/typespec-emitter/src/parquet.ts @@ -4,45 +4,44 @@ import { isJsonSchemaDeclaration } from '@typespec/json-schema'; import { toSnakeCase, unwrapNullableType } from './utils.ts'; -interface ParquetField { +export interface ParquetField { name: string; - repetition: 'REQUIRED' | 'OPTIONAL' | 'REPEATED'; - physical_type?: string; + repetition_type: 'REQUIRED' | 'OPTIONAL' | 'REPEATED'; + type?: string; logical_type?: string; fields?: ParquetField[]; } - -function mapTypeSpecToParquet(type: Type): { physical_type?: string; logical_type?: string } { +function mapTypeSpecToParquet(type: Type): { type?: string; logical_type?: string } { switch (type.kind) { case 'Scalar': switch (type.name) { case 'boolean': - return { physical_type: 'BOOLEAN' }; + return { type: 'BOOLEAN' }; case 'int32': - return { physical_type: 'INT32' }; + return { type: 'INT32' }; case 'int64': - return { physical_type: 'INT64' }; + return { type: 'INT64' }; case 'float32': - return { physical_type: 'FLOAT' }; + return { type: 'FLOAT' }; case 'float64': - return { physical_type: 'DOUBLE' }; + return { type: 'DOUBLE' }; case 'string': - return { physical_type: 'BYTE_ARRAY', logical_type: 'STRING' }; + return { type: 'BYTE_ARRAY', logical_type: 'STRING' }; case 'bytes': - return { physical_type: 'BYTE_ARRAY' }; + return { type: 'BYTE_ARRAY' }; case 'plainDate': - return { physical_type: 'INT32', logical_type: 'DATE' }; + return { type: 'INT32', logical_type: 'DATE' }; case 'utcDateTime': case 'offsetDateTime': - return { physical_type: 'INT64', logical_type: 'TIMESTAMP' }; + return { type: 'INT64', logical_type: 'TIMESTAMP' }; case 'decimal': - return { physical_type: 'BYTE_ARRAY', logical_type: 'DECIMAL' }; + return { type: 'BYTE_ARRAY', logical_type: 'DECIMAL' }; } break; case 'Enum': - return { physical_type: 'BYTE_ARRAY', logical_type: 'STRING' }; + return { type: 'BYTE_ARRAY', logical_type: 'STRING' }; } - return { physical_type: 'BYTE_ARRAY', logical_type: 'STRING' }; // fallback + return { type: 'BYTE_ARRAY', logical_type: 'STRING' }; // fallback } function getParquetFields(model: Model): ParquetField[] { @@ -63,7 +62,7 @@ function getParquetFields(model: Model): ParquetField[] { const itemField: ParquetField = { name: 'element', - repetition: arrayItemUnwrapped.optional ? 'OPTIONAL' : 'REQUIRED', + repetition_type: arrayItemUnwrapped.optional ? 'OPTIONAL' : 'REQUIRED', }; if ( @@ -75,18 +74,18 @@ function getParquetFields(model: Model): ParquetField[] { itemField.fields = getParquetFields(arrayItemType); } else { const mapped = mapTypeSpecToParquet(arrayItemType); - if (mapped.physical_type) itemField.physical_type = mapped.physical_type; + if (mapped.type) itemField.type = mapped.type; if (mapped.logical_type) itemField.logical_type = mapped.logical_type; } fields.push({ name: fieldName, - repetition, + repetition_type: repetition, logical_type: 'LIST', fields: [ { name: 'list', - repetition: 'REPEATED', + repetition_type: 'REPEATED', fields: [itemField], }, ], @@ -99,16 +98,16 @@ function getParquetFields(model: Model): ParquetField[] { ) { fields.push({ name: fieldName, - repetition, + repetition_type: repetition, fields: getParquetFields(targetType), }); } else { const mapped = mapTypeSpecToParquet(targetType); const field: ParquetField = { name: fieldName, - repetition, + repetition_type: repetition, }; - if (mapped.physical_type) field.physical_type = mapped.physical_type; + if (mapped.type) field.type = mapped.type; if (mapped.logical_type) field.logical_type = mapped.logical_type; fields.push(field); } From 0314ce08b602ee3d76f93b6703272f60fef55f66 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 22 Jul 2026 14:56:32 +1200 Subject: [PATCH 05/20] build: missing file --- packages/shared/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 6df399657..00bc3c804 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -21,4 +21,3 @@ export type { ParquetStacMetadata } from './parquet.metadata.ts'; export { concurrency, qFromArgs, qMap, qMapAll, worker } from './limit.ts'; export { StacExtensions } from './stac.extensions.ts'; export type { StacExtensionUrl, StacFileV2_1_0, StacProjectionV2_0_0, StacTableV1_3_0 } from './stac.extensions.ts'; -export { ParquetField } from './parquet.schema.ts'; From 0e1b0608fdd60ce65402c2d4fe44050b98ead591 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:14:32 +1200 Subject: [PATCH 06/20] refactor: missing files --- packages/typespec-emitter/README.md | 0 packages/typespec-emitter/src/parquet.test.ts | 128 ++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 packages/typespec-emitter/README.md create mode 100644 packages/typespec-emitter/src/parquet.test.ts diff --git a/packages/typespec-emitter/README.md b/packages/typespec-emitter/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/packages/typespec-emitter/src/parquet.test.ts b/packages/typespec-emitter/src/parquet.test.ts new file mode 100644 index 000000000..0e401b395 --- /dev/null +++ b/packages/typespec-emitter/src/parquet.test.ts @@ -0,0 +1,128 @@ +import assert from 'node:assert'; +import { describe, it } from 'node:test'; + +import type { SchemaElement } from 'hyparquet'; + +/** + * Helper function to validate that a hyparquet schema tree matches our emitted Parquet JSON schema. + */ +export function validateHyparquetSchema( + hyparquetTree: { element: SchemaElement; children: { element: SchemaElement }[] }, + expectedSchema: { + name: string; + fields: Array<{ name: string; repetition: string; physical_type?: string; logical_type?: string }>; + }, +): void { + assert.strictEqual( + hyparquetTree.element.name, + expectedSchema.name, + `Expected table name ${expectedSchema.name}, got ${hyparquetTree.element.name}`, + ); + + const hyparquetColumns = new Map(hyparquetTree.children.map((c) => [c.element.name, c.element])); + + for (const field of expectedSchema.fields) { + const actual = hyparquetColumns.get(field.name); + assert.ok(actual, `Column "${field.name}" missing in hyparquet schema`); + + assert.strictEqual(actual.repetition_type, field.repetition, `Repetition mismatch for column "${field.name}"`); + + if (field.physical_type) { + assert.strictEqual(actual.type, field.physical_type, `Physical type mismatch for column "${field.name}"`); + } + + if (field.logical_type) { + assert.strictEqual( + actual.logical_type?.type, + field.logical_type, + `Logical type mismatch for column "${field.name}"`, + ); + } + } +} + +describe('Parquet Schema Emitter & Validator', () => { + it('validates a hyparquet schema tree against an emitted Parquet JSON schema', () => { + const mockHyparquetTree = { + element: { name: 'railway_line', num_children: 2 }, + children: [ + { + element: { + name: 'id', + type: 'BYTE_ARRAY', + repetition_type: 'REQUIRED', + logical_type: { type: 'STRING' }, + }, + }, + { + element: { + name: 'route', + type: 'BYTE_ARRAY', + repetition_type: 'OPTIONAL', + logical_type: { type: 'STRING' }, + }, + }, + ], + }; + + const sampleEmittedSchema = { + type: 'message', + name: 'railway_line', + fields: [ + { + name: 'id', + repetition: 'REQUIRED', + physical_type: 'BYTE_ARRAY', + logical_type: 'STRING', + }, + { + name: 'route', + repetition: 'OPTIONAL', + physical_type: 'BYTE_ARRAY', + logical_type: 'STRING', + }, + ], + }; + + validateHyparquetSchema(mockHyparquetTree as any, sampleEmittedSchema); + }); + + it('fails validation when a required column is missing', () => { + const mockHyparquetTree = { + element: { name: 'railway_line', num_children: 1 }, + children: [ + { + element: { + name: 'id', + type: 'BYTE_ARRAY', + repetition_type: 'REQUIRED', + logical_type: { type: 'STRING' }, + }, + }, + ], + }; + + const sampleEmittedSchema = { + type: 'message', + name: 'railway_line', + fields: [ + { + name: 'id', + repetition: 'REQUIRED', + physical_type: 'BYTE_ARRAY', + logical_type: 'STRING', + }, + { + name: 'route', + repetition: 'OPTIONAL', + physical_type: 'BYTE_ARRAY', + logical_type: 'STRING', + }, + ], + }; + + assert.throws(() => { + validateHyparquetSchema(mockHyparquetTree as any, sampleEmittedSchema); + }, /Column "route" missing/); + }); +}); From 7eb58fbd1f5ab5d00bb2f47cd040b414e4b01feb Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:22:24 +1200 Subject: [PATCH 07/20] refactor: cleanup --- packages/typespec-emitter/src/typescript.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/typespec-emitter/src/typescript.ts b/packages/typespec-emitter/src/typescript.ts index 40ece2159..ac11dde7a 100644 --- a/packages/typespec-emitter/src/typescript.ts +++ b/packages/typespec-emitter/src/typescript.ts @@ -132,7 +132,7 @@ export async function emitTypeScript( } // Generate Unions - const sortedUnions = Array.from(unions.values()).sort((a, b) => a.name!.localeCompare(b.name!)); + const sortedUnions = Array.from(unions.values()).sort((a, b) => (a.name ?? '').localeCompare(b.name ?? '')); for (const u of sortedUnions) { const doc = getDoc(program, u); const comment = doc @@ -144,7 +144,7 @@ export async function emitTypeScript( : ''; const unionTypes = Array.from(u.variants.values()).map((v) => getTsType(v.type)); const uniqueUnionTypes = Array.from(new Set(unionTypes)); - code += `${comment}export type ${toPascalCase(u.name!)} = ${uniqueUnionTypes.join(' | ')};\n\n`; + code += `${comment}export type ${toPascalCase(u.name ?? '')} = ${uniqueUnionTypes.join(' | ')};\n\n`; } // Generate Models From 00b5ce61c193d1206a52e931117ba8f3bf7aa315 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:29:31 +1200 Subject: [PATCH 08/20] fix(schema): update package.json entry points to index.ts --- packages/schema/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/schema/package.json b/packages/schema/package.json index d2f552295..922206f76 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -4,11 +4,12 @@ "private": true, "type": "module", "tspMain": "src/main.tsp", - "main": "src/types/types.ts", - "types": "src/types/types.ts", + "main": "src/types/index.ts", + "types": "src/types/index.ts", "exports": { ".": { "typespec": "./src/main.tsp", + "types": "./src/types/index.ts", "default": "./src/types/index.ts" } }, From cd7aa6259c9e2f9dc7f1b3856e5c1b7e904702ba Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:29:45 +1200 Subject: [PATCH 09/20] feat(schema): track generated next types --- packages/schema/src/types/index.ts | 1626 ++++++++++++++++++++++++++++ 1 file changed, 1626 insertions(+) create mode 100644 packages/schema/src/types/index.ts diff --git a/packages/schema/src/types/index.ts b/packages/schema/src/types/index.ts new file mode 100644 index 000000000..b2ee1f72f --- /dev/null +++ b/packages/schema/src/types/index.ts @@ -0,0 +1,1626 @@ +/** + * This file was automatically generated by the TypeSpec TypeScript emitter. + * Do not edit this file manually. + */ + +export type BridgeSubtype = 'foot_traffic' | 'train'; + +export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; + +export type BuildingStatus = 'derelict' | 'historic' | 'private'; + +export type BuildingSubtype = + | 'abattoir' + | 'camp' + | 'cement_works' + | 'church' + | 'energy_facility' + | 'factory' + | 'fertiliser_works' + | 'fire_lookout' + | 'forest_headquarters' + | 'gas_compound' + | 'greenhouse' + | 'gun_club' + | 'gun_emplacement' + | 'hall' + | 'homestead' + | 'hospital' + | 'hut' + | 'lodge' + | 'marae' + | 'mill' + | 'museum' + | 'observatory' + | 'polytechnic' + | 'power_generation' + | 'prison' + | 'private_hut' + | 'salt_works' + | 'school' + | 'shingle_works' + | 'shelter' + | 'silo' + | 'stamping_battery' + | 'substation' + | 'surf_club' + | 'university' + | 'visitor_centre' + | 'water_treatment_plant'; + +export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; + +export type CartoColour = '' | 'black' | 'process_blue' | 'warm_red'; + +export type CartoFont = '' | 'Nimbus Sans LINZ'; + +export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; + +export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; + +export type CartoSymbolType = + | 'contour_number' + | 'golf_course' + | 'highway_shield' + | 'mine_opencast' + | 'mine_training' + | 'mine_underground'; + +export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; + +export type CartoTextfont = + | 'ATTrium-Italic' + | 'ATTriumMou-Cond' + | 'ATTriumMou-CondBold' + | 'ATTriumMou-CondItalic' + | 'ATTriumMou-Italic' + | 'ATTriumMou-Regular' + | 'Courier Bold Oblique'; + +export type CompositionSubtype = 'coral' | 'limestone' | 'pumice' | 'rock'; + +export type ConstructionType = 'suspension' | 'swing' | 'trestle'; + +export type GridDirection = 'x' | 'y'; + +export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; + +export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; + +export type LanduseStatus = 'dangerous' | 'disused' | 'old'; + +export type LanduseSubtype = 'training' | 'opencast' | 'underground'; + +export type LanduseType = + | 'cemetery' + | 'cycle_track' + | 'dog_track' + | 'golf_course' + | 'gravel_pit' + | 'horse_track' + | 'landfill' + | 'mine' + | 'orchard' + | 'pumice_pit' + | 'quarry' + | 'racetrack' + | 'rifle_range' + | 'showground' + | 'sportsfield' + | 'vineyard' + | 'vehicle_track'; + +export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; + +export type PlaceType = 'cave' | 'grave' | 'historic_site' | 'monument' | 'pa'; + +export type RailwayStatus = 'disused'; + +export type RailwaySubtype = 'siding'; + +export type RailwayTrackType = 'single' | 'multiple'; + +export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; + +export type ReliefLineSubtype = 'causeway' | 'stopbank'; + +export type ReliefLineType = + | 'cliff_edge' + | 'cutting_edge' + | 'embankment' + | 'rapid' + | 'slip_edge' + | 'waterfall' + | 'waterfall_edge' + | 'seawall'; + +export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; + +export type RoadStatus = 'under_construction' | 'closed'; + +export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; + +export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; + +export type RunwayStatus = 'disused'; + +export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; + +export type RunwaySurface = 'grass' | 'sealed'; + +export type Status = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureLineType = + | 'boatramp' + | 'boom' + | 'breakwater' + | 'cableway_industrial' + | 'cableway_people' + | 'dam' + | 'flume' + | 'ladder' + | 'marine_farm' + | 'ski_lift' + | 'ski_tow' + | 'slipway' + | 'spillway_edge' + | 'walkwire' + | 'water_race' + | 'weir' + | 'wharf' + | 'wharf_edge'; + +export type StructurePointType = + | 'beacon' + | 'bivouac' + | 'buoy' + | 'chimney' + | 'dredge' + | 'flare' + | 'floodgate' + | 'gate' + | 'ladder' + | 'lighthouse' + | 'mast' + | 'radar_dome' + | 'redoubt' + | 'satellite_station' + | 'shaft' + | 'siphon' + | 'stockyard' + | 'tank' + | 'tower' + | 'well' + | 'windmill' + | 'wreck'; + +export type StructureSpecies = 'mussels' | 'salmon'; + +export type StructureStatus = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureSubtype = + | 'building' + | 'coal' + | 'concrete' + | 'disused' + | 'fuel' + | 'historic' + | 'jetty' + | 'lake' + | 'land' + | 'lighthouse' + | 'lime' + | 'locked' + | 'plane' + | 'power_generation' + | 'rock' + | 'sea' + | 'ship' + | 'surge_chamber' + | 'tunnel_ventilation' + | 'uncovered' + | 'water'; + +export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; + +export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; + +export type SubstanceExtracted = + | 'bentonite' + | 'clay' + | 'coal' + | 'gold' + | 'gravel' + | 'ironsand' + | 'lime' + | 'limestone' + | 'metal' + | 'quartz' + | 'scheelite' + | 'shingle' + | 'silica_sand' + | 'silver' + | 'stone' + | 'zeolite'; + +export type Theme = + | 'annotation' + | 'buildings' + | 'landcover' + | 'landuse' + | 'mapsheets' + | 'relief' + | 'structures' + | 'transport' + | 'utility'; + +export type TrackStatus = 'closed'; + +export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; + +export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; + +export type TunnelConstructionType = 'natural' | 'manmade'; + +export type TunnelStatus = 'closed' | 'historic' | 'disused' | 'derelict' | 'under_construction'; + +export type TunnelType = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; + +export type UtilityPointType = 'gas_valve' | 'geo_bore' | 'pylon'; + +export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; + +export type UtilitySupporttype = 'pole' | 'pylon'; + +export type UtilityVisibility = 'underground'; + +export type VegetationSubtype = 'coniferous' | 'non-coniferous'; + +export type WaterPerennial = 'dry' | 'seasonal'; + +export type WaterSubtype = + | 'evaporation' + | 'hydro_electric' + | 'ice_skating' + | 'oil' + | 'oxidation' + | 'reservoir' + | 'settling' + | 'sewage' + | 'sewage_treatment' + | 'sludge'; + +export type WaterTemperatureIndicator = 'cold' | 'hot'; + +export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; + +export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; + +export interface Airport { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'airport'; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * GeoParquet 1.1 covering bbox struct. + */ +export interface BBox { + xmin: number; + ymin: number; + xmax: number; + ymax: number; +} + +export interface BridgeLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: BridgeType | null; + subtype: BridgeSubtype | null; + construction_type: ConstructionType | null; + status: Status | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Building { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + theme: 'buildings'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface BuildingPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + orientation: number | null; + theme: 'buildings'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Coastline { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'coastline' | 'water_confluence' | 'wharf'; + elevation: number | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Contour { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'contour'; + elevation: number | null; + definition: string | null; + designation: 'supplementary' | null; + formation: 'depression' | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface DataSource { + /** Name of the column in this table where the linked data gets copied to */ + table_column: string; + /** Registered source for linked data */ + source: MetadataSource; + /** Name of the key column in source to use for linking */ + source_key_name: string; + /** Value of the key column in source to use for linking. */ + source_key_value: number | string; + /** Name of the table in source that contains the linked data */ + source_table: string; + /** Name of the column in the source where the linked data gets copied from */ + source_column: string; + /** Timestamp when the source was last updated */ + source_updated_at: string; + /** Timestamp when this linked data was last imported */ + imported_at: string; +} + +export interface DescriptiveText { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'descriptive_text'; + info_display: string | null; + size: number | null; + theme: 'annotation'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FenceLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'fence'; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FerryLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ferry_crossing'; + subtype: 'vehicle' | 'passenger' | 'freight' | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeographicName { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'geographic_name'; + name: string | null; + desc_code: string | null; + size: number | null; + theme: 'annotation'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeoParquet { + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Island { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'island'; + name: string | null; + group_name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landcover { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverType; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'dredge_tailing'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverPointCoreTypes { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverPointCoreType; + orientation: null; + elevation: null; + subtype: null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverPointCommon { + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landuse { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LanduseLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandusePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Marine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'mangrove' | 'reef' | 'rock' | 'shoal'; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface MarinePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock'; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50CartoSymbol { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + created_at: string; + updated_at: string; + /** + * id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or + * the road centreline it labels. + * + * Null where no feature was close enough to match. + */ + source_id: string | null; + type: CartoSymbolType; + label: string | null; + /** Label rotation in degrees clockwise from east. Null for symbols drawn unrotated. */ + orientation: number | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50CartoText { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + /** id (UUID) of the example feature. */ + example_point_id: string | null; + full_text: string | null; + text_bend: number | null; + text_char_spacing_distance: number | null; + text_colour: number | null; + text_font: CartoTextfont | null; + text_height: number | null; + text_orientation: number | null; + text_placement: number | null; + text_size_type: number | null; + text_stretch_length: number | null; + text_string: string | null; + text_word_spacing_distance: number | null; + font: CartoFont | null; + style: CartoStyle | null; + colour: CartoColour | null; + size: number | null; + placement: CartoPlacement | null; + offset: number | null; + textanchor: CartoTextanchor | null; + labelanchor: number | null; + charplace: CartoCharplace | null; + chardistance: number | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * Derived polygon Union of coastline and island + */ +export interface Nztopo50CoastlineIsland { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'coastline' | 'island'; + elevation: number | null; + name: string | null; + group_name: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50DmsGrid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50Grid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50IceContour { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'contour_ice'; + elevation: number | null; + definition: string | null; + designation: 'supplementary' | null; + formation: 'depression' | null; + theme: 'relief'; + /** UUID for the intersecting contour feature. */ + contour_id: string; + /** UUID for the intersecting landcover feature. */ + landcover_id: string; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50MapSheet { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'nztopo50_map_sheet'; + sheet_code: string; + sheet_name: string; + origin_x: number; + origin_y: number; + /** id (UUID) of the example feature. */ + example_point_id: string; + published_version: string; + published_at: string; + updated_at: string; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50RockLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + /** UUID of the source `marine` rock polygon this boundary line was derived from. */ + marine_id: string; + type: 'rock'; + name: string | null; + subtype: CompositionSubtype | null; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * Derived sea (moana) polygons for the water layer. + * + * The land polygons (coastline and island) are inverted and sliced by Web + * Mercator quadkey tiles so no single large polygon exists. + */ +export interface Nztopo50SeaPolygon { + id: string; + type: 'moana'; + /** Web Mercator quadkey of the tile this sea polygon was sliced to. */ + quadkey: string; + created_at: string; + updated_at: string; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface PlacePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: PlaceType; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ProductFeature { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +/** + * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. + * Where a railway line is located close to a road, the line held in the data and shown on the printed map + * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. + * + * Multiple sidings may be held in the data and shown on the printed maps as a single feature + */ +export interface RailwayLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'railway'; + subtype: RailwaySubtype | null; + track_type: RailwayTrackType | null; + vehicle_type: RailwayVehicleType | null; + status: RailwayStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RailwayPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'station'; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Relief { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'waterfall' | 'rapid'; + name: string | null; + height: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefLineType; + subtype: ReliefLineSubtype | null; + name: string | null; + height: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefPointType; + name: string | null; + elevation: number | null; + height: number | null; + orientation: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ResidentialArea { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'residential_area'; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RoadLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'road'; + hierarchy: string | null; + status: RoadStatus | null; + name: string | null; + highway_number: string | null; + lane_count: number | null; + surface: RoadSurface | null; + way_count: 'one_way' | null; + width_indicator: 'w' | null; + road_access: 'mp' | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RockOutcrop { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock_outcrop'; + orientation: number; + elevation: number; + subtype: RockOutcropSubtype; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Runway { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'runway'; + subtype: RunwaySubtype | null; + status: RunwayStatus | null; + surface: RunwaySurface | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Structure { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureType; + subtype: StructureSubtype | null; + lid_type: 'covered' | null; + tank_type: StructureTankType | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructureLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureLineType; + subtype: StructureSubtype | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructurePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructurePointType; + subtype: StructureSubtype | null; + tank_type: StructureTankType | null; + status: StructureStatus | null; + name: string | null; + height: number | null; + orientation: number | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TopographicFeature { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +export interface TopographicMetadata { + metadata: string | null; +} + +export interface TrackLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'track'; + subtype: TrackSubtype | null; + track_type: TrackType | null; + status: TrackStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TransportPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ford' | 'helipad'; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TrigPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'trig'; + trig_type: 'beaconed' | null; + name: string | null; + code: string | null; + elevation: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TunnelLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: TunnelType; + subtype: 'livestock' | null; + construction_type: TunnelConstructionType | null; + status: TunnelStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'pipeline' | 'powerline' | 'telephone'; + subtype: UtilitySubtype | null; + support_type: UtilitySupporttype | null; + status: string | null; + visibility: UtilityVisibility | null; + theme: 'utility'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: UtilityPointType; + orientation: number | null; + theme: 'utility'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Vegetation { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; + subtype: VegetationSubtype | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'shelter_belt'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'tree' | 'scattered_scrub'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Water { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + subtype: WaterSubtype | null; + name: string | null; + group_name: string | null; + height: number | null; + elevation: number | null; + perennial: WaterPerennial | null; + temperature_indicator: WaterTemperatureIndicator | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + name: string | null; + height: number | null; + orientation: number | null; + temperature_indicator: WaterTemperatureIndicator | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} From 883df2886c29bfd37c210aa2cf92f6657eeae8ba Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:30:18 +1200 Subject: [PATCH 10/20] chore(schema): scope typespec-emitter to tspconfig.next.yaml --- packages/schema/tspconfig.next.yaml | 3 +++ packages/schema/tspconfig.yaml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/schema/tspconfig.next.yaml b/packages/schema/tspconfig.next.yaml index 0a293657b..97d0eff2c 100644 --- a/packages/schema/tspconfig.next.yaml +++ b/packages/schema/tspconfig.next.yaml @@ -1,4 +1,7 @@ extends: ./tspconfig.yaml +emit: + - '@typespec/json-schema' + - '@linzjs/typespec-emitter' options: '@typespec/json-schema': emitter-output-dir: '{project-root}/../../schema/next' diff --git a/packages/schema/tspconfig.yaml b/packages/schema/tspconfig.yaml index 24444ca06..3e775ae21 100644 --- a/packages/schema/tspconfig.yaml +++ b/packages/schema/tspconfig.yaml @@ -1,6 +1,5 @@ emit: - '@typespec/json-schema' - - '@linzjs/typespec-emitter' options: '@typespec/json-schema': emitter-output-dir: '{project-root}/../../schema' From 402552a1db481443529608ef0c767bd14b59fe80 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:30:41 +1200 Subject: [PATCH 11/20] feat(typespec-emitter): add test script and hyparquet devDependency --- packages/typespec-emitter/package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/typespec-emitter/package.json b/packages/typespec-emitter/package.json index 695445be8..8d336d747 100644 --- a/packages/typespec-emitter/package.json +++ b/packages/typespec-emitter/package.json @@ -13,8 +13,14 @@ "engines": { "node": "^24.5.0" }, + "scripts": { + "test": "node --test \"src/**/*.test.ts\"" + }, "dependencies": { "@typespec/compiler": "^1.11.0", "@typespec/json-schema": "^1.11.0" + }, + "devDependencies": { + "hyparquet": "^1.24.1" } } From 04a710cfad4790a09ff38829f58bc2f8682d69c1 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:31:19 +1200 Subject: [PATCH 12/20] refactor(typespec-emitter): type Program, escape property names, and support base models --- packages/typespec-emitter/src/typescript.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/typespec-emitter/src/typescript.ts b/packages/typespec-emitter/src/typescript.ts index ac11dde7a..c01c5b8aa 100644 --- a/packages/typespec-emitter/src/typescript.ts +++ b/packages/typespec-emitter/src/typescript.ts @@ -1,10 +1,14 @@ import { emitFile, getDoc } from '@typespec/compiler'; -import type { Model, Enum, Union, Type } from '@typespec/compiler'; +import type { Enum, Model, Program, Type, Union } from '@typespec/compiler'; import { toPascalCase } from './utils.ts'; +function formatPropName(name: string): string { + return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name) ? name : JSON.stringify(name); +} + export async function emitTypeScript( - program: any, + program: Program, outputFile: string, models: Map, enums: Map, @@ -98,7 +102,7 @@ export async function emitTypeScript( } const props: string[] = []; for (const prop of type.properties.values()) { - props.push(`${prop.name}${prop.optional ? '?' : ''}: ${getTsType(prop.type)}`); + props.push(`${formatPropName(prop.name)}${prop.optional ? '?' : ''}: ${getTsType(prop.type)}`); } return `{ ${props.join('; ')} }`; case 'ModelProperty': @@ -158,7 +162,8 @@ export async function emitTypeScript( .map((l) => ` * ${l}`) .join('\n')}\n */\n` : ''; - code += `${comment}export interface ${toPascalCase(m.name)} {\n`; + const extendsClause = m.baseModel?.name ? ` extends ${toPascalCase(m.baseModel.name)}` : ''; + code += `${comment}export interface ${toPascalCase(m.name)}${extendsClause} {\n`; if (m.indexer) { const keyType = getTsType(m.indexer.key); const valueType = getTsType(m.indexer.value); @@ -166,7 +171,7 @@ export async function emitTypeScript( } for (const prop of m.properties.values()) { const propComment = getJSDocComment(prop); - code += `${propComment} ${prop.name}${prop.optional ? '?' : ''}: ${getTsType(prop.type)};\n`; + code += `${propComment} ${formatPropName(prop.name)}${prop.optional ? '?' : ''}: ${getTsType(prop.type)};\n`; } code += '}\n\n'; } From 8578ff9dfab3b774f943aceec0e68bc96338acf8 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:31:52 +1200 Subject: [PATCH 13/20] test(typespec-emitter): align validateHyparquetSchema with ParquetField interface --- packages/typespec-emitter/src/parquet.test.ts | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/typespec-emitter/src/parquet.test.ts b/packages/typespec-emitter/src/parquet.test.ts index 0e401b395..59472aa94 100644 --- a/packages/typespec-emitter/src/parquet.test.ts +++ b/packages/typespec-emitter/src/parquet.test.ts @@ -3,6 +3,8 @@ import { describe, it } from 'node:test'; import type { SchemaElement } from 'hyparquet'; +import type { ParquetField } from './parquet.ts'; + /** * Helper function to validate that a hyparquet schema tree matches our emitted Parquet JSON schema. */ @@ -10,7 +12,7 @@ export function validateHyparquetSchema( hyparquetTree: { element: SchemaElement; children: { element: SchemaElement }[] }, expectedSchema: { name: string; - fields: Array<{ name: string; repetition: string; physical_type?: string; logical_type?: string }>; + fields: ParquetField[]; }, ): void { assert.strictEqual( @@ -25,10 +27,10 @@ export function validateHyparquetSchema( const actual = hyparquetColumns.get(field.name); assert.ok(actual, `Column "${field.name}" missing in hyparquet schema`); - assert.strictEqual(actual.repetition_type, field.repetition, `Repetition mismatch for column "${field.name}"`); + assert.strictEqual(actual.repetition_type, field.repetition_type, `Repetition mismatch for column "${field.name}"`); - if (field.physical_type) { - assert.strictEqual(actual.type, field.physical_type, `Physical type mismatch for column "${field.name}"`); + if (field.type) { + assert.strictEqual(actual.type, field.type, `Physical type mismatch for column "${field.name}"`); } if (field.logical_type) { @@ -71,14 +73,14 @@ describe('Parquet Schema Emitter & Validator', () => { fields: [ { name: 'id', - repetition: 'REQUIRED', - physical_type: 'BYTE_ARRAY', + repetition_type: 'REQUIRED' as const, + type: 'BYTE_ARRAY', logical_type: 'STRING', }, { name: 'route', - repetition: 'OPTIONAL', - physical_type: 'BYTE_ARRAY', + repetition_type: 'OPTIONAL' as const, + type: 'BYTE_ARRAY', logical_type: 'STRING', }, ], @@ -108,14 +110,14 @@ describe('Parquet Schema Emitter & Validator', () => { fields: [ { name: 'id', - repetition: 'REQUIRED', - physical_type: 'BYTE_ARRAY', + repetition_type: 'REQUIRED' as const, + type: 'BYTE_ARRAY', logical_type: 'STRING', }, { name: 'route', - repetition: 'OPTIONAL', - physical_type: 'BYTE_ARRAY', + repetition_type: 'OPTIONAL' as const, + type: 'BYTE_ARRAY', logical_type: 'STRING', }, ], From 3e976da1df89d3834e01f52c9b639360d7ba4c86 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 15 Sep 2026 09:32:05 +1200 Subject: [PATCH 14/20] docs(typespec-emitter): add README documentation --- packages/typespec-emitter/README.md | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/packages/typespec-emitter/README.md b/packages/typespec-emitter/README.md index e69de29bb..26ce31671 100644 --- a/packages/typespec-emitter/README.md +++ b/packages/typespec-emitter/README.md @@ -0,0 +1,31 @@ +# @linzjs/typespec-emitter + +Custom TypeSpec emitter for LINZ Topographic System schemas. + +## Features + +- **TypeScript Types**: Emits TypeScript type aliases for enums and unions, and interfaces for models with JSDoc documentation comments. +- **Parquet Schemas**: Emits Parquet JSON schema descriptions mapping TypeSpec scalars, arrays, and structs to Parquet physical and logical types. +- **Pydantic Models**: Experimental / future support for Python Pydantic models. + +## Configuration + +Configure the emitter in your `tspconfig.yaml`: + +```yaml +emit: + - '@linzjs/typespec-emitter' +options: + '@linzjs/typespec-emitter': + typescript-output-file: '{project-root}/src/types/index.ts' + parquet-output-dir: '{project-root}/src/parquet' + pydantic-output-file: '{project-root}/src/models.py' +``` + +### Options + +| Option | Type | Description | +| ------------------------ | -------- | ------------------------------------------------ | +| `typescript-output-file` | `string` | File path for emitted TypeScript types. | +| `parquet-output-dir` | `string` | Directory path for emitted Parquet JSON schemas. | +| `pydantic-output-file` | `string` | File path for emitted Pydantic Python models. | From 58f1d8d5496763a6ed128a452af10923d440d4c7 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 16 Sep 2026 11:08:50 +1200 Subject: [PATCH 15/20] feat(schema): setup @typespec/versioning and add namespace Topography --- package-lock.json | 406 ++++-------------- packages/schema/src/features/airport.tsp | 2 + packages/schema/src/features/bridge_line.tsp | 2 + packages/schema/src/features/building.tsp | 2 + .../schema/src/features/building_point.tsp | 2 + packages/schema/src/features/coastline.tsp | 2 + packages/schema/src/features/common.tsp | 3 + packages/schema/src/features/contour.tsp | 2 + .../schema/src/features/descriptive_text.tsp | 2 + packages/schema/src/features/fence_line.tsp | 2 + packages/schema/src/features/ferry_line.tsp | 2 + .../schema/src/features/geographic_name.tsp | 2 + packages/schema/src/features/island.tsp | 2 + packages/schema/src/features/landcover.tsp | 2 + .../schema/src/features/landcover_line.tsp | 2 + .../schema/src/features/landcover_point.tsp | 2 + packages/schema/src/features/landuse.tsp | 2 + packages/schema/src/features/landuse_line.tsp | 2 + .../schema/src/features/landuse_point.tsp | 2 + packages/schema/src/features/marine.tsp | 2 + packages/schema/src/features/marine_point.tsp | 2 + packages/schema/src/features/next/airport.tsp | 15 - .../schema/src/features/next/bridge_line.tsp | 51 --- .../schema/src/features/next/building.tsp | 63 --- .../src/features/next/building_point.tsp | 19 - .../schema/src/features/next/coastline.tsp | 15 - packages/schema/src/features/next/common.tsp | 97 ----- packages/schema/src/features/next/contour.tsp | 18 - .../src/features/next/descriptive_text.tsp | 16 - .../schema/src/features/next/fence_line.tsp | 14 - .../schema/src/features/next/ferry_line.tsp | 16 - .../src/features/next/geographic_name.tsp | 17 - packages/schema/src/features/next/island.tsp | 16 - .../schema/src/features/next/landcover.tsp | 26 -- .../src/features/next/landcover_line.tsp | 14 - .../src/features/next/landcover_point.tsp | 50 --- packages/schema/src/features/next/landuse.tsp | 69 --- .../schema/src/features/next/landuse_line.tsp | 17 - .../src/features/next/landuse_point.tsp | 19 - packages/schema/src/features/next/main.tsp | 52 --- packages/schema/src/features/next/marine.tsp | 16 - .../schema/src/features/next/marine_point.tsp | 16 - .../features/next/nztopo50_carto_symbol.tsp | 37 -- .../src/features/next/nztopo50_carto_text.tsp | 96 ----- .../next/nztopo50_coastline_island.tsp | 18 - .../src/features/next/nztopo50_dms_grid.tsp | 5 - .../src/features/next/nztopo50_grid.tsp | 18 - .../features/next/nztopo50_ice_contour.tsp | 25 -- .../src/features/next/nztopo50_map_sheet.tsp | 23 - .../src/features/next/nztopo50_rock_line.tsp | 19 - .../features/next/nztopo50_sea_polygon.tsp | 24 -- .../schema/src/features/next/place_point.tsp | 24 -- .../schema/src/features/next/railway_line.tsp | 60 --- .../src/features/next/railway_point.tsp | 15 - packages/schema/src/features/next/relief.tsp | 16 - .../schema/src/features/next/relief_line.tsp | 33 -- .../schema/src/features/next/relief_point.tsp | 25 -- .../src/features/next/residential_area.tsp | 15 - .../schema/src/features/next/road_line.tsp | 34 -- packages/schema/src/features/next/runway.tsp | 32 -- .../schema/src/features/next/structure.tsp | 78 ---- .../src/features/next/structure_line.tsp | 40 -- .../src/features/next/structure_point.tsp | 46 -- .../schema/src/features/next/track_line.tsp | 35 -- .../src/features/next/transport_point.tsp | 15 - .../schema/src/features/next/trig_point.tsp | 18 - .../schema/src/features/next/tunnel_line.tsp | 41 -- .../schema/src/features/next/utility_line.tsp | 34 -- .../src/features/next/utility_point.tsp | 21 - .../schema/src/features/next/vegetation.tsp | 20 - .../src/features/next/vegetation_line.tsp | 14 - .../src/features/next/vegetation_point.tsp | 14 - packages/schema/src/features/next/water.tsp | 56 --- .../schema/src/features/next/water_line.tsp | 16 - .../schema/src/features/next/water_point.tsp | 19 - .../src/features/nztopo50_carto_symbol.tsp | 2 + .../src/features/nztopo50_carto_text.tsp | 2 + .../features/nztopo50_coastline_island.tsp | 2 + .../schema/src/features/nztopo50_dms_grid.tsp | 2 + .../schema/src/features/nztopo50_grid.tsp | 2 + .../src/features/nztopo50_ice_contour.tsp | 2 + .../src/features/nztopo50_map_sheet.tsp | 2 + .../src/features/nztopo50_rock_line.tsp | 2 + .../src/features/nztopo50_sea_polygon.tsp | 2 + packages/schema/src/features/place_point.tsp | 2 + packages/schema/src/features/railway_line.tsp | 2 + .../schema/src/features/railway_point.tsp | 2 + packages/schema/src/features/relief.tsp | 2 + packages/schema/src/features/relief_line.tsp | 2 + packages/schema/src/features/relief_point.tsp | 2 + .../schema/src/features/residential_area.tsp | 2 + packages/schema/src/features/road_line.tsp | 2 + packages/schema/src/features/runway.tsp | 2 + packages/schema/src/features/structure.tsp | 2 + .../schema/src/features/structure_line.tsp | 2 + .../schema/src/features/structure_point.tsp | 2 + packages/schema/src/features/track_line.tsp | 2 + .../schema/src/features/transport_point.tsp | 2 + packages/schema/src/features/trig_point.tsp | 2 + packages/schema/src/features/tunnel_line.tsp | 2 + packages/schema/src/features/utility_line.tsp | 2 + .../schema/src/features/utility_point.tsp | 2 + packages/schema/src/features/vegetation.tsp | 2 + .../schema/src/features/vegetation_line.tsp | 2 + .../schema/src/features/vegetation_point.tsp | 2 + packages/schema/src/features/water.tsp | 2 + packages/schema/src/features/water_line.tsp | 2 + packages/schema/src/features/water_point.tsp | 2 + packages/schema/src/main.tsp | 2 + packages/schema/src/version.tsp | 11 + 110 files changed, 198 insertions(+), 1950 deletions(-) delete mode 100644 packages/schema/src/features/next/airport.tsp delete mode 100644 packages/schema/src/features/next/bridge_line.tsp delete mode 100644 packages/schema/src/features/next/building.tsp delete mode 100644 packages/schema/src/features/next/building_point.tsp delete mode 100644 packages/schema/src/features/next/coastline.tsp delete mode 100644 packages/schema/src/features/next/common.tsp delete mode 100644 packages/schema/src/features/next/contour.tsp delete mode 100644 packages/schema/src/features/next/descriptive_text.tsp delete mode 100644 packages/schema/src/features/next/fence_line.tsp delete mode 100644 packages/schema/src/features/next/ferry_line.tsp delete mode 100644 packages/schema/src/features/next/geographic_name.tsp delete mode 100644 packages/schema/src/features/next/island.tsp delete mode 100644 packages/schema/src/features/next/landcover.tsp delete mode 100644 packages/schema/src/features/next/landcover_line.tsp delete mode 100644 packages/schema/src/features/next/landcover_point.tsp delete mode 100644 packages/schema/src/features/next/landuse.tsp delete mode 100644 packages/schema/src/features/next/landuse_line.tsp delete mode 100644 packages/schema/src/features/next/landuse_point.tsp delete mode 100644 packages/schema/src/features/next/main.tsp delete mode 100644 packages/schema/src/features/next/marine.tsp delete mode 100644 packages/schema/src/features/next/marine_point.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_carto_symbol.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_carto_text.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_coastline_island.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_dms_grid.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_grid.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_ice_contour.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_map_sheet.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_rock_line.tsp delete mode 100644 packages/schema/src/features/next/nztopo50_sea_polygon.tsp delete mode 100644 packages/schema/src/features/next/place_point.tsp delete mode 100644 packages/schema/src/features/next/railway_line.tsp delete mode 100644 packages/schema/src/features/next/railway_point.tsp delete mode 100644 packages/schema/src/features/next/relief.tsp delete mode 100644 packages/schema/src/features/next/relief_line.tsp delete mode 100644 packages/schema/src/features/next/relief_point.tsp delete mode 100644 packages/schema/src/features/next/residential_area.tsp delete mode 100644 packages/schema/src/features/next/road_line.tsp delete mode 100644 packages/schema/src/features/next/runway.tsp delete mode 100644 packages/schema/src/features/next/structure.tsp delete mode 100644 packages/schema/src/features/next/structure_line.tsp delete mode 100644 packages/schema/src/features/next/structure_point.tsp delete mode 100644 packages/schema/src/features/next/track_line.tsp delete mode 100644 packages/schema/src/features/next/transport_point.tsp delete mode 100644 packages/schema/src/features/next/trig_point.tsp delete mode 100644 packages/schema/src/features/next/tunnel_line.tsp delete mode 100644 packages/schema/src/features/next/utility_line.tsp delete mode 100644 packages/schema/src/features/next/utility_point.tsp delete mode 100644 packages/schema/src/features/next/vegetation.tsp delete mode 100644 packages/schema/src/features/next/vegetation_line.tsp delete mode 100644 packages/schema/src/features/next/vegetation_point.tsp delete mode 100644 packages/schema/src/features/next/water.tsp delete mode 100644 packages/schema/src/features/next/water_line.tsp delete mode 100644 packages/schema/src/features/next/water_point.tsp create mode 100644 packages/schema/src/version.tsp diff --git a/package-lock.json b/package-lock.json index 92d30575a..1c88c9297 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2697,41 +2697,6 @@ ], "license": "MIT" }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/@npmcli/agent": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@npmcli/agent/-/agent-4.0.0.tgz", @@ -5179,18 +5144,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@sindresorhus/merge-streams": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", - "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@smithy/abort-controller": { "version": "4.2.5", "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.2.5.tgz", @@ -6416,35 +6369,34 @@ } }, "node_modules/@typespec/compiler": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.11.0.tgz", - "integrity": "sha512-4vuWtoepc4rYJ81K+P7xn2ByXIRhBM40rfzAGnpagNuGSVHuKEC6lqJqs3ePvhCpnxiYAC8XWpaOi+BEDzyhnQ==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.15.0.tgz", + "integrity": "sha512-NbCIRAIzyozchlSaGPVuyV43bC+y+OpXYCuT+8M8kt35Ln9zWzLFcIt7irofQ5QUXBZrHsBFpI5fTOFdCGeWCA==", "license": "MIT", "dependencies": { - "@babel/code-frame": "~7.29.0", - "@inquirer/prompts": "^8.3.0", - "ajv": "~8.18.0", - "change-case": "~5.4.4", + "@babel/code-frame": "^7.29.0", + "@inquirer/prompts": "^8.4.1", + "ajv": "^8.18.0", + "change-case": "^5.4.4", "env-paths": "^4.0.0", - "globby": "~16.1.1", "is-unicode-supported": "^2.1.0", - "mustache": "~4.2.0", - "picocolors": "~1.1.1", - "prettier": "~3.8.1", + "mustache": "^4.2.0", + "picocolors": "^1.1.1", + "prettier": "^3.9.5", "semver": "^7.7.4", - "tar": "^7.5.11", - "temporal-polyfill": "^0.3.2", - "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.12", - "yaml": "~2.8.2", - "yargs": "~18.0.0" + "tar": "^7.5.21", + "temporal-polyfill": "^1.0.1", + "vscode-languageserver": "^10.0.0", + "vscode-languageserver-textdocument": "^1.0.12", + "yaml": "^2.8.3", + "yargs": "^18.0.0" }, "bin": { "tsp": "cmd/tsp.js", "tsp-server": "cmd/tsp-server.js" }, "engines": { - "node": ">=20.0.0" + "node": ">=22.0.0" } }, "node_modules/@typespec/compiler/node_modules/@inquirer/ansi": { @@ -6943,19 +6895,31 @@ } }, "node_modules/@typespec/json-schema": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-1.11.0.tgz", - "integrity": "sha512-Nb/6PGIPpIeM9hBqy+ko7Su64cIHb0hkJhou6wyfKuh7PDG5gj3CEvZSyqYw0Wmb0mcFhcXIVw9kKJizZ/WWyw==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-1.15.0.tgz", + "integrity": "sha512-sq27AxnzVRX5mrPlncsqQLi2aE34CLDALaqbY2HmnMiYmS70wY1zJH3I4hWT4AUxiZYokln9sf0FZ4ukT6ZJ+Q==", "license": "MIT", "dependencies": { "@typespec/asset-emitter": "^0.79.1", - "yaml": "~2.8.2" + "yaml": "^2.8.3" }, "engines": { - "node": ">=20.0.0" + "node": ">=22.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.11.0" + "@typespec/compiler": "^1.15.0" + } + }, + "node_modules/@typespec/versioning": { + "version": "0.85.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.85.0.tgz", + "integrity": "sha512-8qIbWBnIWor3p9DFzcVz4xU4YK6PFgMia4+IDczhb5G4J9bYquK9gJSFNPfoF86Foq9nHad83swX25kxRiS6Jw==", + "license": "MIT", + "engines": { + "node": ">=22.0.0" + }, + "peerDependencies": { + "@typespec/compiler": "^1.15.0" } }, "node_modules/@yarnpkg/lockfile": { @@ -7350,18 +7314,6 @@ "concat-map": "0.0.1" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/buffer": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", @@ -8454,34 +8406,6 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "license": "MIT" }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/fast-string-truncated-width": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz", @@ -8558,15 +8482,6 @@ "fxparser": "src/cli/cli.js" } }, - "node_modules/fastq": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", - "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -8634,18 +8549,6 @@ "node": ">=10" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/find-up": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", @@ -9139,38 +9042,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/globby": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-16.1.1.tgz", - "integrity": "sha512-dW7vl+yiAJSp6aCekaVnVJxurRv7DCOLyXqEG3RYMYUg7AuJ2jCqPkZTA8ooqC2vtnkaMcV5WfFBMuEnTu1OQg==", - "license": "MIT", - "dependencies": { - "@sindresorhus/merge-streams": "^4.0.0", - "fast-glob": "^3.3.3", - "ignore": "^7.0.5", - "is-path-inside": "^4.0.0", - "slash": "^5.1.0", - "unicorn-magic": "^0.4.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby/node_modules/slash": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", - "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", - "license": "MIT", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -9384,6 +9255,7 @@ "version": "7.0.5", "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, "license": "MIT", "engines": { "node": ">= 4" @@ -9634,6 +9506,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -9652,6 +9525,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" @@ -9670,15 +9544,6 @@ "node": ">=8" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/is-obj": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", @@ -9689,18 +9554,6 @@ "node": ">=8" } }, - "node_modules/is-path-inside": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-4.0.0.tgz", - "integrity": "sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-plain-obj": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", @@ -10593,46 +10446,12 @@ "dev": true, "license": "MIT" }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, "node_modules/mgrs": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/mgrs/-/mgrs-1.0.0.tgz", "integrity": "sha512-awNbTOqCxK1DBGjalK3xqWIstBZgN6fxsMSiXLs9/spqWkF2pAhb2rrYCFSsr1/tT7PhcDGjZndG8SWYn0byYA==", "license": "MIT" }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/micromatch/node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -12177,9 +11996,9 @@ } }, "node_modules/prettier": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz", - "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz", + "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==", "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" @@ -12376,26 +12195,6 @@ "dev": true, "license": "MIT" }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/quick-format-unescaped": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", @@ -12707,16 +12506,6 @@ "node": ">= 4" } }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, "node_modules/robust-predicates": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", @@ -12733,29 +12522,6 @@ "node": ">=0.12.0" } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, "node_modules/rxjs": { "version": "7.8.2", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", @@ -13181,9 +12947,9 @@ } }, "node_modules/tar": { - "version": "7.5.15", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.15.tgz", - "integrity": "sha512-dzGK0boVlC4W5QFuQN1EFSl3bIDYsk7Tj40U6eIBnK2k/8ml7TZ5agbI5j5+qnoVcAA+rNtBml8SEiLxZpNqRQ==", + "version": "7.5.22", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", + "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", @@ -13213,19 +12979,26 @@ } }, "node_modules/temporal-polyfill": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-0.3.2.tgz", - "integrity": "sha512-TzHthD/heRK947GNiSu3Y5gSPpeUDH34+LESnfsq8bqpFhsB79HFBX8+Z834IVX68P3EUyRPZK5bL/1fh437Eg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-1.0.4.tgz", + "integrity": "sha512-MLEU0qOD2uXlz24oINNtdLZQl8RgmMxSnRtKEGZGGetTJjlRwQJjk+VsJ4EREaUoiaTb8NJOcUiKtoAiWn9EBg==", "license": "MIT", "dependencies": { - "temporal-spec": "0.3.1" + "temporal-spec": "1.0.1", + "temporal-utils": "1.0.2" } }, "node_modules/temporal-spec": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/temporal-spec/-/temporal-spec-0.3.1.tgz", - "integrity": "sha512-B4TUhezh9knfSIMwt7RVggApDRJZo73uZdj8AacL2mZ8RP5KtLianh2MXxL06GN9ESYiIsiuoLQhgVfwe55Yhw==", - "license": "ISC" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/temporal-spec/-/temporal-spec-1.0.1.tgz", + "integrity": "sha512-wxVoanmDeavXie1vu2JaQ3WIc3JZnWAOYFBsJyATaVsXsycKYUflGsyBmrRSnoCpZJpwPyr38VpgSUlQ8CbFxg==", + "license": "Apache-2.0" + }, + "node_modules/temporal-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/temporal-utils/-/temporal-utils-1.0.2.tgz", + "integrity": "sha512-1B8Dl4KzrOvsNUlpoWGno2VLQlxroLjDgc5NBjVC9ax9ymdo+ezfyvhyjEMx+IVfhINr6CIG2gcnlP95iRrybQ==", + "license": "MIT" }, "node_modules/text-extensions": { "version": "1.9.0", @@ -13333,18 +13106,6 @@ "node": ">=14.14" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", @@ -13502,18 +13263,6 @@ "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "license": "MIT" }, - "node_modules/unicorn-magic": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.4.0.tgz", - "integrity": "sha512-wH590V9VNgYH9g3lH9wWjTrUoKsjLF6sGLjhR4sH1LWpLmCOH0Zf7PukhDA8BiS7KHe4oPNkcTHqYkj7SOGUOw==", - "license": "MIT", - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/unique-filename": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-5.0.0.tgz", @@ -13596,34 +13345,34 @@ } }, "node_modules/vscode-jsonrpc": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", - "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-9.0.2.tgz", + "integrity": "sha512-SbQSV9yRemARxeXw6LU5sS6Zq0e9/DgCCX5yelH263ZQWukbTk8EF8fjTrr1dziasf4GwlJbvTwFnTrnQFWZXQ==", "license": "MIT", "engines": { "node": ">=14.0.0" } }, "node_modules/vscode-languageserver": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", - "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-10.1.1.tgz", + "integrity": "sha512-/cG04Fiq99rEtoDrfPpv0k6NyUFlck5GNtZLQZv1rxkBkc/4FrJNvEKTN5k1Si3O1hRguP++ciYlX9cdjdYxFQ==", "license": "MIT", "dependencies": { - "vscode-languageserver-protocol": "3.17.5" + "vscode-languageserver-protocol": "3.18.3" }, "bin": { "installServerIntoExtension": "bin/installServerIntoExtension" } }, "node_modules/vscode-languageserver-protocol": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", - "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", + "version": "3.18.3", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.18.3.tgz", + "integrity": "sha512-DF49+WeV5py4zO5hhobp60jjsDSK0lAqA0OuKBLBvp423HPWQcCbhZz3JgyfIewsEz2f8U+X75xNIFHdiXZm2w==", "license": "MIT", "dependencies": { - "vscode-jsonrpc": "8.2.0", - "vscode-languageserver-types": "3.17.5" + "vscode-jsonrpc": "9.0.2", + "vscode-languageserver-types": "3.18.3" } }, "node_modules/vscode-languageserver-textdocument": { @@ -13633,9 +13382,9 @@ "license": "MIT" }, "node_modules/vscode-languageserver-types": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", - "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", + "version": "3.18.3", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.18.3.tgz", + "integrity": "sha512-XIlzJ7Qp/jzSI1ds7/FwPAWrPeTZA7pAtlW4hdJ1J6xXWJL6dR9QYnDhJOdLzdKhUQ5Mm6mvUMw+3DcOQQasPw==", "license": "MIT" }, "node_modules/walk-up-path": { @@ -13970,11 +13719,12 @@ "name": "@linzjs/topographic-system-schema", "version": "0.0.1", "dependencies": { - "@typespec/json-schema": "^1.11.0" + "@typespec/compiler": "^1.15.0", + "@typespec/json-schema": "^1.15.0", + "@typespec/versioning": "^0.85.0" }, "devDependencies": { - "@types/node": "^24.10.0", - "@typespec/compiler": "^1.11.0" + "@types/node": "^24.10.0" }, "engines": { "node": "^24.5.0" diff --git a/packages/schema/src/features/airport.tsp b/packages/schema/src/features/airport.tsp index f0cb2aa38..cc4723f56 100644 --- a/packages/schema/src/features/airport.tsp +++ b/packages/schema/src/features/airport.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("airport") @extension("additionalProperties", false) model airport { diff --git a/packages/schema/src/features/bridge_line.tsp b/packages/schema/src/features/bridge_line.tsp index 25d17c9e0..477eb7f67 100644 --- a/packages/schema/src/features/bridge_line.tsp +++ b/packages/schema/src/features/bridge_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("bridge_line") @extension("additionalProperties", false) model bridge_line { diff --git a/packages/schema/src/features/building.tsp b/packages/schema/src/features/building.tsp index 0e67c2187..1470c2672 100644 --- a/packages/schema/src/features/building.tsp +++ b/packages/schema/src/features/building.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("building") @extension("additionalProperties", false) model building { diff --git a/packages/schema/src/features/building_point.tsp b/packages/schema/src/features/building_point.tsp index 605541f66..506a74388 100644 --- a/packages/schema/src/features/building_point.tsp +++ b/packages/schema/src/features/building_point.tsp @@ -4,6 +4,8 @@ import "./building.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("building_point") @extension("additionalProperties", false) model building_point { diff --git a/packages/schema/src/features/coastline.tsp b/packages/schema/src/features/coastline.tsp index fc9a76749..d63724eb1 100644 --- a/packages/schema/src/features/coastline.tsp +++ b/packages/schema/src/features/coastline.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("coastline") @extension("additionalProperties", false) model coastline { diff --git a/packages/schema/src/features/common.tsp b/packages/schema/src/features/common.tsp index 8c794ec4a..aa73de4e1 100644 --- a/packages/schema/src/features/common.tsp +++ b/packages/schema/src/features/common.tsp @@ -1,5 +1,8 @@ import "@typespec/json-schema"; using TypeSpec.JsonSchema; + +namespace Topography; + /** GeoParquet 1.1 covering bbox struct. */ @extension("additionalProperties", false) model BBox { diff --git a/packages/schema/src/features/contour.tsp b/packages/schema/src/features/contour.tsp index 83088db6c..152835d29 100644 --- a/packages/schema/src/features/contour.tsp +++ b/packages/schema/src/features/contour.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("contour") @extension("additionalProperties", false) model contour { diff --git a/packages/schema/src/features/descriptive_text.tsp b/packages/schema/src/features/descriptive_text.tsp index 866a564d7..e3c960502 100644 --- a/packages/schema/src/features/descriptive_text.tsp +++ b/packages/schema/src/features/descriptive_text.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("descriptive_text") @extension("additionalProperties", false) model descriptive_text { diff --git a/packages/schema/src/features/fence_line.tsp b/packages/schema/src/features/fence_line.tsp index ca433f86b..da9d75ef8 100644 --- a/packages/schema/src/features/fence_line.tsp +++ b/packages/schema/src/features/fence_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("fence_line") @extension("additionalProperties", false) model fence_line { diff --git a/packages/schema/src/features/ferry_line.tsp b/packages/schema/src/features/ferry_line.tsp index 54d9d3832..12637b7cf 100644 --- a/packages/schema/src/features/ferry_line.tsp +++ b/packages/schema/src/features/ferry_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("ferry_line") @extension("additionalProperties", false) model ferry_line { diff --git a/packages/schema/src/features/geographic_name.tsp b/packages/schema/src/features/geographic_name.tsp index f48404801..74d4de124 100644 --- a/packages/schema/src/features/geographic_name.tsp +++ b/packages/schema/src/features/geographic_name.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("geographic_name") @extension("additionalProperties", false) model geographic_name { diff --git a/packages/schema/src/features/island.tsp b/packages/schema/src/features/island.tsp index 7b927ca0a..9ad35743a 100644 --- a/packages/schema/src/features/island.tsp +++ b/packages/schema/src/features/island.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("island") @extension("additionalProperties", false) model island { diff --git a/packages/schema/src/features/landcover.tsp b/packages/schema/src/features/landcover.tsp index 37b022725..4bc510493 100644 --- a/packages/schema/src/features/landcover.tsp +++ b/packages/schema/src/features/landcover.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("landcover") @extension("additionalProperties", false) model landcover { diff --git a/packages/schema/src/features/landcover_line.tsp b/packages/schema/src/features/landcover_line.tsp index 49e80c2df..3a3bec6f6 100644 --- a/packages/schema/src/features/landcover_line.tsp +++ b/packages/schema/src/features/landcover_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("landcover_line") @extension("additionalProperties", false) model landcover_line { diff --git a/packages/schema/src/features/landcover_point.tsp b/packages/schema/src/features/landcover_point.tsp index 62b026ab2..7d6cc4fe7 100644 --- a/packages/schema/src/features/landcover_point.tsp +++ b/packages/schema/src/features/landcover_point.tsp @@ -2,6 +2,8 @@ import "@typespec/json-schema"; import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("landcover_point") @oneOf union landcover_point { diff --git a/packages/schema/src/features/landuse.tsp b/packages/schema/src/features/landuse.tsp index 5760f334e..fe0270b54 100644 --- a/packages/schema/src/features/landuse.tsp +++ b/packages/schema/src/features/landuse.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("landuse") @extension("additionalProperties", false) model landuse { diff --git a/packages/schema/src/features/landuse_line.tsp b/packages/schema/src/features/landuse_line.tsp index 9f2caaa0a..2fd43fc37 100644 --- a/packages/schema/src/features/landuse_line.tsp +++ b/packages/schema/src/features/landuse_line.tsp @@ -4,6 +4,8 @@ import "./landuse.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("landuse_line") @extension("additionalProperties", false) model landuse_line { diff --git a/packages/schema/src/features/landuse_point.tsp b/packages/schema/src/features/landuse_point.tsp index ce576c566..78e8c9d33 100644 --- a/packages/schema/src/features/landuse_point.tsp +++ b/packages/schema/src/features/landuse_point.tsp @@ -4,6 +4,8 @@ import "./landuse.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("landuse_point") @extension("additionalProperties", false) model landuse_point { diff --git a/packages/schema/src/features/marine.tsp b/packages/schema/src/features/marine.tsp index 765b651f5..e7ccca98c 100644 --- a/packages/schema/src/features/marine.tsp +++ b/packages/schema/src/features/marine.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("marine") @extension("additionalProperties", false) model marine { diff --git a/packages/schema/src/features/marine_point.tsp b/packages/schema/src/features/marine_point.tsp index bb2b86b60..f95b6aea1 100644 --- a/packages/schema/src/features/marine_point.tsp +++ b/packages/schema/src/features/marine_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("marine_point") @extension("additionalProperties", false) model marine_point { diff --git a/packages/schema/src/features/next/airport.tsp b/packages/schema/src/features/next/airport.tsp deleted file mode 100644 index de271ab22..000000000 --- a/packages/schema/src/features/next/airport.tsp +++ /dev/null @@ -1,15 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/airport") -@extension("additionalProperties", false) -model airport { - ...TopographicFeature; - type: "airport"; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/bridge_line.tsp b/packages/schema/src/features/next/bridge_line.tsp deleted file mode 100644 index 7da164c53..000000000 --- a/packages/schema/src/features/next/bridge_line.tsp +++ /dev/null @@ -1,51 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/bridge_line") -@extension("additionalProperties", false) -model bridge_line { - ...TopographicFeature; - type: bridge_type | null; - subtype: bridge_subtype | null; - construction_type: construction_type | null; - status: status | null; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} - -enum bridge_type { - Cablecar: "cablecar", - Farm: "farm", - FootTraffic: "foot_traffic", - Train: "train", - Vehicle: "vehicle", -} - -enum bridge_subtype { - FootTraffic: "foot_traffic", - Train: "train", -} - -enum construction_type { - Suspension: "suspension", - Swing: "swing", - Trestle: "trestle", -} - -enum status { - Closed: "closed", - Dangerous: "dangerous", - Derelict: "derelict", - Disused: "disused", - Historic: "historic", - Locked: "locked", - Old: "old", - Private: "private", - Remains: "remains", - Ruins: "ruins", - UnderConstruction: "under_construction", -} diff --git a/packages/schema/src/features/next/building.tsp b/packages/schema/src/features/next/building.tsp deleted file mode 100644 index cc89c0e87..000000000 --- a/packages/schema/src/features/next/building.tsp +++ /dev/null @@ -1,63 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/building") -@extension("additionalProperties", false) -model building { - ...TopographicFeature; - type: "building"; - subtype: building_subtype | null; - status: building_status | null; - name: string | null; - theme: Theme.Buildings; - ...TopographicMetadata; - ...GeoParquet; -} - -enum building_subtype { - Abattoir: "abattoir", - Camp: "camp", - CementWorks: "cement_works", - Church: "church", - EnergyFacility: "energy_facility", - Factory: "factory", - FertiliserWorks: "fertiliser_works", - FireLookout: "fire_lookout", - ForestHeadquarters: "forest_headquarters", - GasCompound: "gas_compound", - Greenhouse: "greenhouse", - GunClub: "gun_club", - GunEmplacement: "gun_emplacement", - Hall: "hall", - Homestead: "homestead", - Hospital: "hospital", - Hut: "hut", - Lodge: "lodge", - Marae: "marae", - Mill: "mill", - Museum: "museum", - Observatory: "observatory", - Polytechnic: "polytechnic", - PowerGeneration: "power_generation", - Prison: "prison", - PrivateHut: "private_hut", - SaltWorks: "salt_works", - School: "school", - ShingleWorks: "shingle_works", - Shelter: "shelter", - Silo: "silo", - StampingBattery: "stamping_battery", - Substation: "substation", - SurfClub: "surf_club", - University: "university", - VisitorCentre: "visitor_centre", - WaterTreatmentPlant: "water_treatment_plant", -} - -enum building_status { - Derelict: "derelict", - Historic: "historic", - Private: "private", -} diff --git a/packages/schema/src/features/next/building_point.tsp b/packages/schema/src/features/next/building_point.tsp deleted file mode 100644 index 697a67515..000000000 --- a/packages/schema/src/features/next/building_point.tsp +++ /dev/null @@ -1,19 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -import "./building.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/building_point") -@extension("additionalProperties", false) -model building_point { - ...TopographicFeature; - type: "building"; - subtype: building_subtype | null; - status: building_status | null; - name: string | null; - orientation: float64 | null; - theme: Theme.Buildings; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/coastline.tsp b/packages/schema/src/features/next/coastline.tsp deleted file mode 100644 index 18eed9201..000000000 --- a/packages/schema/src/features/next/coastline.tsp +++ /dev/null @@ -1,15 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/coastline") -@extension("additionalProperties", false) -model coastline { - ...TopographicFeature; - type: "coastline" | "water_confluence" | "wharf"; - elevation: int32 | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/common.tsp b/packages/schema/src/features/next/common.tsp deleted file mode 100644 index 8c794ec4a..000000000 --- a/packages/schema/src/features/next/common.tsp +++ /dev/null @@ -1,97 +0,0 @@ -import "@typespec/json-schema"; -using TypeSpec.JsonSchema; -/** GeoParquet 1.1 covering bbox struct. */ -@extension("additionalProperties", false) -model BBox { - xmin: float32; - ymin: float32; - xmax: float32; - ymax: float32; -} -model GeoParquet { - /** GeoParquet 1.1 covering geometry struct. */ - @extension("not", #{ type: "null" }) - geometry: unknown; - - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} -model TopographicFeature { - /** UUIDv7 of the feature */ - id: string; - - created_at: utcDateTime; - updated_at: utcDateTime; - - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: uint32 | null; -} -model ProductFeature { - /** UUIDv7 of the feature */ - id: string; - - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: uint32 | null; -} - -model TopographicMetadata { - metadata: string | null; -} -@extension("additionalProperties", false) -model DataSource { - /** Name of the column in this table where the linked data gets copied to */ - table_column: string; - - /** Registered source for linked data */ - source: metadata_source; - - /** Name of the key column in source to use for linking */ - source_key_name: string; - - /** Value of the key column in source to use for linking. */ - source_key_value: uint32 | string; - - /** Name of the table in source that contains the linked data */ - source_table: string; - - /** Name of the column in the source where the linked data gets copied from */ - source_column: string; - - /** Timestamp when the source was last updated */ - source_updated_at: utcDateTime; - - /** Timestamp when this linked data was last imported */ - imported_at: utcDateTime; -} - -enum metadata_source { - NZGBGazetteer: "nzgb_gazetteer", - LINZAIMS: "linz_aims", -} - -enum composition_subtype { - Coral: "coral", - Limestone: "limestone", - Pumice: "pumice", - Rock: "rock", -} - -enum Theme { - Annotation: "annotation", - Buildings: "buildings", - Landcover: "landcover", - Landuse: "landuse", - MapSheets: "mapsheets", - Relief: "relief", - Structures: "structures", - Transport: "transport", - Utility: "utility", -} diff --git a/packages/schema/src/features/next/contour.tsp b/packages/schema/src/features/next/contour.tsp deleted file mode 100644 index 6e7c149ed..000000000 --- a/packages/schema/src/features/next/contour.tsp +++ /dev/null @@ -1,18 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/contour") -@extension("additionalProperties", false) -model contour { - ...TopographicFeature; - type: "contour"; - elevation: int32 | null; - definition: string | null; - designation: "supplementary" | null; - formation: "depression" | null; - theme: Theme.Relief; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/descriptive_text.tsp b/packages/schema/src/features/next/descriptive_text.tsp deleted file mode 100644 index a1f9e6c60..000000000 --- a/packages/schema/src/features/next/descriptive_text.tsp +++ /dev/null @@ -1,16 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/descriptive_text") -@extension("additionalProperties", false) -model descriptive_text { - ...TopographicFeature; - type: "descriptive_text"; - info_display: string | null; - size: float64 | null; - theme: Theme.Annotation; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/fence_line.tsp b/packages/schema/src/features/next/fence_line.tsp deleted file mode 100644 index da0597678..000000000 --- a/packages/schema/src/features/next/fence_line.tsp +++ /dev/null @@ -1,14 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/fence_line") -@extension("additionalProperties", false) -model fence_line { - ...TopographicFeature; - type: "fence"; - theme: Theme.Structures; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/ferry_line.tsp b/packages/schema/src/features/next/ferry_line.tsp deleted file mode 100644 index b87d9dc58..000000000 --- a/packages/schema/src/features/next/ferry_line.tsp +++ /dev/null @@ -1,16 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/ferry_line") -@extension("additionalProperties", false) -model ferry_line { - ...TopographicFeature; - type: "ferry_crossing"; - subtype: "vehicle" | "passenger" | "freight" | null; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/geographic_name.tsp b/packages/schema/src/features/next/geographic_name.tsp deleted file mode 100644 index b46296c72..000000000 --- a/packages/schema/src/features/next/geographic_name.tsp +++ /dev/null @@ -1,17 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/geographic_name") -@extension("additionalProperties", false) -model geographic_name { - ...TopographicFeature; - type: "geographic_name"; - name: string | null; - desc_code: string | null; - size: float64 | null; - theme: Theme.Annotation; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/island.tsp b/packages/schema/src/features/next/island.tsp deleted file mode 100644 index 8169230c2..000000000 --- a/packages/schema/src/features/next/island.tsp +++ /dev/null @@ -1,16 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/island") -@extension("additionalProperties", false) -model island { - ...TopographicFeature; - type: "island"; - name: string | null; - group_name: string | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/landcover.tsp b/packages/schema/src/features/next/landcover.tsp deleted file mode 100644 index a89f6459c..000000000 --- a/packages/schema/src/features/next/landcover.tsp +++ /dev/null @@ -1,26 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/landcover") -@extension("additionalProperties", false) -model landcover { - ...TopographicFeature; - type: landcover_type; - name: string | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} - -enum landcover_type { - Ice: "ice", - Moraine: "moraine", - MoraineWall: "moraine_wall", - Mud: "mud", - Sand: "sand", - Scree: "scree", - Shingle: "shingle", - Swamp: "swamp", -} diff --git a/packages/schema/src/features/next/landcover_line.tsp b/packages/schema/src/features/next/landcover_line.tsp deleted file mode 100644 index 4c32dfb6d..000000000 --- a/packages/schema/src/features/next/landcover_line.tsp +++ /dev/null @@ -1,14 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/landcover_line") -@extension("additionalProperties", false) -model landcover_line { - ...TopographicFeature; - type: "dredge_tailing"; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/landcover_point.tsp b/packages/schema/src/features/next/landcover_point.tsp deleted file mode 100644 index 9ce0400a7..000000000 --- a/packages/schema/src/features/next/landcover_point.tsp +++ /dev/null @@ -1,50 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -using TypeSpec.JsonSchema; - -@jsonSchema("next/landcover_point") -@oneOf -union landcover_point { - rock_outcrop: rock_outcrop, - other_landcover_points: landcover_point_core_types, -} - -// Not decorated with @jsonSchema so it does not get emitted standalone. -model LandcoverPointCommon { - name: string | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} - -@extension("additionalProperties", false) -model rock_outcrop { - ...TopographicFeature; - type: "rock_outcrop"; - orientation: float64; - elevation: int32; - subtype: rock_outcrop_subtype; - ...LandcoverPointCommon; -} - -@extension("additionalProperties", false) -model landcover_point_core_types { - ...TopographicFeature; - type: landcover_point_core_type; - orientation: null; - elevation: null; - subtype: null; - ...LandcoverPointCommon; -} - -enum landcover_point_core_type { - Cemetery: "cemetery", - Fumarole: "fumarole", - Swamp: "swamp", -} - -enum rock_outcrop_subtype { - SmallRockOutcrop: "small_rock_outcrop", - LargeRockOutcrop: "large_rock_outcrop", - LargeBoulder: "large_boulder", -} diff --git a/packages/schema/src/features/next/landuse.tsp b/packages/schema/src/features/next/landuse.tsp deleted file mode 100644 index 851f93c8e..000000000 --- a/packages/schema/src/features/next/landuse.tsp +++ /dev/null @@ -1,69 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/landuse") -@extension("additionalProperties", false) -model landuse { - ...TopographicFeature; - type: landuse_type; - subtype: landuse_subtype | null; - status: landuse_status | null; - name: string | null; - substance_extracted: substance_extracted | null; - theme: Theme.Landuse; - ...TopographicMetadata; - ...GeoParquet; -} - -enum landuse_type { - Cemetery: "cemetery", - Cycle_track: "cycle_track", - Dogtrack: "dog_track", - GolfCourse: "golf_course", - GravelPit: "gravel_pit", - Horsetrack: "horse_track", - Landfill: "landfill", - Mine: "mine", - Orchard: "orchard", - PumicePit: "pumice_pit", - Quarry: "quarry", - Racetrack: "racetrack", - RifleRange: "rifle_range", - Showground: "showground", - Sportsfield: "sportsfield", - Vineyard: "vineyard", - Vehicletrack: "vehicle_track", -} - -enum landuse_subtype { - Training: "training", - Opencast: "opencast", - Underground: "underground", -} - -enum landuse_status { - Dangerous: "dangerous", - Disused: "disused", - Old: "old", -} - -enum substance_extracted { - Bentonite: "bentonite", - Clay: "clay", - Coal: "coal", - Gold: "gold", - Gravel: "gravel", - Ironsand: "ironsand", - Lime: "lime", - Limestone: "limestone", - Metal: "metal", - Quartz: "quartz", - Scheelite: "scheelite", - Shingle: "shingle", - SilicaSand: "silica_sand", - Silver: "silver", - Stone: "stone", - Zeolite: "zeolite", -} diff --git a/packages/schema/src/features/next/landuse_line.tsp b/packages/schema/src/features/next/landuse_line.tsp deleted file mode 100644 index ce33e56f6..000000000 --- a/packages/schema/src/features/next/landuse_line.tsp +++ /dev/null @@ -1,17 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -import "./landuse.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/landuse_line") -@extension("additionalProperties", false) -model landuse_line { - ...TopographicFeature; - type: landuse_type; - subtype: landuse_subtype | null; - name: string | null; - theme: Theme.Landuse; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/landuse_point.tsp b/packages/schema/src/features/next/landuse_point.tsp deleted file mode 100644 index 27db3619e..000000000 --- a/packages/schema/src/features/next/landuse_point.tsp +++ /dev/null @@ -1,19 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -import "./landuse.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/landuse_point") -@extension("additionalProperties", false) -model landuse_point { - ...TopographicFeature; - type: landuse_type; - subtype: landuse_subtype | null; - status: landuse_status | null; - name: string | null; - substance_extracted: substance_extracted | null; - theme: Theme.Landuse; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/main.tsp b/packages/schema/src/features/next/main.tsp deleted file mode 100644 index 935a6c01f..000000000 --- a/packages/schema/src/features/next/main.tsp +++ /dev/null @@ -1,52 +0,0 @@ -import "./airport.tsp"; -import "./bridge_line.tsp"; -import "./building.tsp"; -import "./building_point.tsp"; -import "./coastline.tsp"; -import "./contour.tsp"; -import "./descriptive_text.tsp"; -import "./fence_line.tsp"; -import "./ferry_line.tsp"; -import "./geographic_name.tsp"; -import "./island.tsp"; -import "./landcover.tsp"; -import "./landcover_line.tsp"; -import "./landcover_point.tsp"; -import "./landuse.tsp"; -import "./landuse_line.tsp"; -import "./landuse_point.tsp"; -import "./marine.tsp"; -import "./marine_point.tsp"; -import "./nztopo50_carto_symbol.tsp"; -import "./nztopo50_carto_text.tsp"; -import "./nztopo50_coastline_island.tsp"; -import "./nztopo50_dms_grid.tsp"; -import "./nztopo50_grid.tsp"; -import "./nztopo50_ice_contour.tsp"; -import "./nztopo50_map_sheet.tsp"; -import "./nztopo50_sea_polygon.tsp"; -import "./nztopo50_rock_line.tsp"; -import "./place_point.tsp"; -import "./railway_line.tsp"; -import "./railway_point.tsp"; -import "./relief.tsp"; -import "./relief_line.tsp"; -import "./relief_point.tsp"; -import "./residential_area.tsp"; -import "./road_line.tsp"; -import "./runway.tsp"; -import "./structure.tsp"; -import "./structure_line.tsp"; -import "./structure_point.tsp"; -import "./track_line.tsp"; -import "./transport_point.tsp"; -import "./trig_point.tsp"; -import "./tunnel_line.tsp"; -import "./utility_line.tsp"; -import "./utility_point.tsp"; -import "./vegetation.tsp"; -import "./vegetation_line.tsp"; -import "./vegetation_point.tsp"; -import "./water.tsp"; -import "./water_line.tsp"; -import "./water_point.tsp"; diff --git a/packages/schema/src/features/next/marine.tsp b/packages/schema/src/features/next/marine.tsp deleted file mode 100644 index ea6d212d5..000000000 --- a/packages/schema/src/features/next/marine.tsp +++ /dev/null @@ -1,16 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/marine") -@extension("additionalProperties", false) -model marine { - ...TopographicFeature; - type: "mangrove" | "reef" | "rock" | "shoal"; - subtype: composition_subtype | null; - name: string | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/marine_point.tsp b/packages/schema/src/features/next/marine_point.tsp deleted file mode 100644 index d55778849..000000000 --- a/packages/schema/src/features/next/marine_point.tsp +++ /dev/null @@ -1,16 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/marine_point") -@extension("additionalProperties", false) -model marine_point { - ...TopographicFeature; - type: "rock"; - subtype: composition_subtype | null; - name: string | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/nztopo50_carto_symbol.tsp b/packages/schema/src/features/next/nztopo50_carto_symbol.tsp deleted file mode 100644 index 7065f3115..000000000 --- a/packages/schema/src/features/next/nztopo50_carto_symbol.tsp +++ /dev/null @@ -1,37 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/nztopo50_carto_symbol") -@extension("additionalProperties", false) -model nztopo50_carto_symbol { - ...ProductFeature; - created_at: utcDateTime; - updated_at: utcDateTime; - - /** - * id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or - * the road centreline it labels. - * - * Null where no feature was close enough to match. - */ - source_id: string | null; - - type: carto_symbol_type; - label: string | null; - - /** Label rotation in degrees clockwise from east. Null for symbols drawn unrotated. */ - orientation: int32 | null; - - ...GeoParquet; -} - -enum carto_symbol_type { - ContourNumber: "contour_number", - GolfCourse: "golf_course", - HighwayShield: "highway_shield", - MineOpencast: "mine_opencast", - MineTraining: "mine_training", - MineUnderground: "mine_underground", -} diff --git a/packages/schema/src/features/next/nztopo50_carto_text.tsp b/packages/schema/src/features/next/nztopo50_carto_text.tsp deleted file mode 100644 index 591752b19..000000000 --- a/packages/schema/src/features/next/nztopo50_carto_text.tsp +++ /dev/null @@ -1,96 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/nztopo50_carto_text") -@extension("additionalProperties", false) -model nztopo50_carto_text { - ...ProductFeature; - - /** id (UUID) of the example feature. */ - example_point_id: string | null; - - full_text: string | null; - text_bend: int32 | null; - text_char_spacing_distance: int32 | null; - text_colour: int32 | null; - text_font: carto_textfont | null; - text_height: float64 | null; - text_orientation: float64 | null; - text_placement: int32 | null; - text_size_type: int32 | null; - text_stretch_length: int32 | null; - text_string: string | null; - text_word_spacing_distance: int32 | null; - font: carto_font | null; - style: carto_style | null; - colour: carto_colour | null; - size: float64 | null; - placement: carto_placement | null; - offset: float64 | null; - textanchor: carto_textanchor | null; - labelanchor: float64 | null; - charplace: carto_charplace | null; - chardistance: float64 | null; - ...GeoParquet; -} - -/* the empty string is temporarily while new fields getting updated */ - -enum carto_font { - _: "", - NimbusSansLinz: "Nimbus Sans LINZ", -} - -enum carto_style { - _: "", - Italic: "Italic", - Narrow: "Narrow", - NarrowBold: "Narrow Bold", - NarrowItalic: "Narrow Italic", - Regular: "Regular", -} - -enum carto_colour { - _: "", - Black: "black", - ProcessBlue: "process_blue", - Red: "warm_red", -} - -enum carto_placement { - _: "", - AL: "AL", - BL: "BL", - OL: "OL", -} - -enum carto_textanchor { - _: "", - Centre: "centre", - Left: "left", - LeftWithSpace: "left ", // Note trailing space; not a typo. TODO: Need to fix source data to remove this. - Left062: "left 0.62", - Right: "right", -} - -enum carto_charplace { - _: "", - CharactersAtVertices: "CharactersAtVertices", - StretchCharacterSpacingToFit: "StretchCharacterSpacingToFit", - StretchWordSpacingToFit: "StretchWordSpacingToFit", -} - -/* - The following fonts are not used in the NZTopo50 product in the future. May be removed when new font set up. -*/ -enum carto_textfont { - ATTriumItalic: "ATTrium-Italic", - ATTriumMouCond: "ATTriumMou-Cond", - ATTriumMouCondBold: "ATTriumMou-CondBold", - ATTriumMouCondItalic: "ATTriumMou-CondItalic", - ATTriumMouItalic: "ATTriumMou-Italic", - ATTriumMouRegular: "ATTriumMou-Regular", - CourierBoldOblique: "Courier Bold Oblique", -} diff --git a/packages/schema/src/features/next/nztopo50_coastline_island.tsp b/packages/schema/src/features/next/nztopo50_coastline_island.tsp deleted file mode 100644 index 32b6cffce..000000000 --- a/packages/schema/src/features/next/nztopo50_coastline_island.tsp +++ /dev/null @@ -1,18 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -/** - * Derived polygon Union of coastline and island - */ -@jsonSchema("next/nztopo50_coastline_island") -@extension("additionalProperties", false) -model nztopo50_coastline_island { - ...TopographicFeature; - type: "coastline" | "island"; - elevation: int32 | null; - name: string | null; - group_name: string | null; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/nztopo50_dms_grid.tsp b/packages/schema/src/features/next/nztopo50_dms_grid.tsp deleted file mode 100644 index be7019b42..000000000 --- a/packages/schema/src/features/next/nztopo50_dms_grid.tsp +++ /dev/null @@ -1,5 +0,0 @@ -import "./nztopo50_grid.tsp"; -using TypeSpec.JsonSchema; - -@jsonSchema("next/nztopo50_dms_grid") -model nztopo50_dms_grid is nztopo50_grid; diff --git a/packages/schema/src/features/next/nztopo50_grid.tsp b/packages/schema/src/features/next/nztopo50_grid.tsp deleted file mode 100644 index 2d8515e19..000000000 --- a/packages/schema/src/features/next/nztopo50_grid.tsp +++ /dev/null @@ -1,18 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/nztopo50_grid") -@extension("additionalProperties", false) -model nztopo50_grid { - ...ProductFeature; - direction: grid_direction; - value: float64; - ...GeoParquet; -} - -enum grid_direction { - X: "x", - Y: "y", -} diff --git a/packages/schema/src/features/next/nztopo50_ice_contour.tsp b/packages/schema/src/features/next/nztopo50_ice_contour.tsp deleted file mode 100644 index a6d8d8217..000000000 --- a/packages/schema/src/features/next/nztopo50_ice_contour.tsp +++ /dev/null @@ -1,25 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/nztopo50_ice_contour") -@extension("additionalProperties", false) -model nztopo50_ice_contour { - ...TopographicFeature; - type: "contour_ice"; - elevation: int32 | null; - definition: string | null; - designation: "supplementary" | null; - formation: "depression" | null; - theme: Theme.Relief; - - /** UUID for the intersecting contour feature. */ - contour_id: string; - - /** UUID for the intersecting landcover feature. */ - landcover_id: string; - - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/nztopo50_map_sheet.tsp b/packages/schema/src/features/next/nztopo50_map_sheet.tsp deleted file mode 100644 index 774a8261c..000000000 --- a/packages/schema/src/features/next/nztopo50_map_sheet.tsp +++ /dev/null @@ -1,23 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/nztopo50_map_sheet") -@extension("additionalProperties", false) -model nztopo50_map_sheet { - ...ProductFeature; - type: "nztopo50_map_sheet"; - sheet_code: string; - sheet_name: string; - origin_x: float64; - origin_y: float64; - - /** id (UUID) of the example feature. */ - example_point_id: string; - - published_version: string; - published_at: utcDateTime; - updated_at: utcDateTime; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/nztopo50_rock_line.tsp b/packages/schema/src/features/next/nztopo50_rock_line.tsp deleted file mode 100644 index 5bcd47939..000000000 --- a/packages/schema/src/features/next/nztopo50_rock_line.tsp +++ /dev/null @@ -1,19 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/nztopo50_rock_line") -@extension("additionalProperties", false) -model nztopo50_rock_line { - ...TopographicFeature; - - /** UUID of the source `marine` rock polygon this boundary line was derived from. */ - marine_id: string; - - type: "rock"; - name: string | null; - subtype: composition_subtype | null; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/nztopo50_sea_polygon.tsp b/packages/schema/src/features/next/nztopo50_sea_polygon.tsp deleted file mode 100644 index e2753af39..000000000 --- a/packages/schema/src/features/next/nztopo50_sea_polygon.tsp +++ /dev/null @@ -1,24 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -/** - * Derived sea (moana) polygons for the water layer. - * - * The land polygons (coastline and island) are inverted and sliced by Web - * Mercator quadkey tiles so no single large polygon exists. - */ -@jsonSchema("next/nztopo50_sea_polygon") -@extension("additionalProperties", false) -model nztopo50_sea_polygon { - id: string; - type: "moana"; - - /** Web Mercator quadkey of the tile this sea polygon was sliced to. */ - quadkey: string; - - created_at: utcDateTime; - updated_at: utcDateTime; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/place_point.tsp b/packages/schema/src/features/next/place_point.tsp deleted file mode 100644 index 669951445..000000000 --- a/packages/schema/src/features/next/place_point.tsp +++ /dev/null @@ -1,24 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/place_point") -@extension("additionalProperties", false) -model place_point { - ...TopographicFeature; - type: place_type; - subtype: composition_subtype | null; - name: string | null; - theme: Theme.Landuse; - ...TopographicMetadata; - ...GeoParquet; -} - -enum place_type { - Cave: "cave", - Grave: "grave", - HistoricSite: "historic_site", - Monument: "monument", - Pa: "pa", -} diff --git a/packages/schema/src/features/next/railway_line.tsp b/packages/schema/src/features/next/railway_line.tsp deleted file mode 100644 index 41999829c..000000000 --- a/packages/schema/src/features/next/railway_line.tsp +++ /dev/null @@ -1,60 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -/** - * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. - * Where a railway line is located close to a road, the line held in the data and shown on the printed map - * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. - * - * Multiple sidings may be held in the data and shown on the printed maps as a single feature - * - * @example Reference Spec - * ![Reference Spec](https://docs.topo.linz.govt.nz/data-dictionary/reprspecs/railway_cl.gif) - * - * @example Railway line - * ![Railway Line](https://docs.topo.linz.govt.nz/data-dictionary/diagrams/railway_cl.gif) - * - * @example Aerial view - * ![Aerial View](https://docs.topo.linz.govt.nz/data-dictionary/airphotos/railway_cl.gif) - */ -@jsonSchema("next/railway_line") -@extension("additionalProperties", false) -model railway_line { - ...TopographicFeature; - type: "railway"; - subtype: railway_subtype | null; - track_type: railway_track_type | null; - vehicle_type: railway_vehicle_type | null; - status: railway_status | null; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} - -enum railway_subtype { - Siding: "siding", -} - -enum railway_track_type { - Single: "single", - Multiple: "multiple", -} - -enum railway_vehicle_type { - Train: "train", - Tram: "tram", - - /** - * A decommissioned railway line with adapted motorised golf carts, or rail bicycles designed for tourist use - */ - RailCart: "rail_cart", - - Cablecar: "cablecar", -} - -enum railway_status { - Disused: "disused", -} diff --git a/packages/schema/src/features/next/railway_point.tsp b/packages/schema/src/features/next/railway_point.tsp deleted file mode 100644 index b3ae73a6c..000000000 --- a/packages/schema/src/features/next/railway_point.tsp +++ /dev/null @@ -1,15 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/railway_point") -@extension("additionalProperties", false) -model railway_point { - ...TopographicFeature; - type: "station"; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/relief.tsp b/packages/schema/src/features/next/relief.tsp deleted file mode 100644 index 40f452f64..000000000 --- a/packages/schema/src/features/next/relief.tsp +++ /dev/null @@ -1,16 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/relief") -@extension("additionalProperties", false) -model relief { - ...TopographicFeature; - type: "waterfall" | "rapid"; - name: string | null; - height: float64 | null; - theme: Theme.Relief; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/relief_line.tsp b/packages/schema/src/features/next/relief_line.tsp deleted file mode 100644 index 651696ee2..000000000 --- a/packages/schema/src/features/next/relief_line.tsp +++ /dev/null @@ -1,33 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/relief_line") -@extension("additionalProperties", false) -model relief_line { - ...TopographicFeature; - type: relief_line_type; - subtype: relief_line_subtype | null; - name: string | null; - height: float64 | null; - theme: Theme.Relief; - ...TopographicMetadata; - ...GeoParquet; -} - -enum relief_line_type { - CliffEdge: "cliff_edge", - CuttingEdge: "cutting_edge", - Embankment: "embankment", - Rapid: "rapid", - SlipEdge: "slip_edge", - Waterfall: "waterfall", - WaterfallEdge: "waterfall_edge", - Seawall: "seawall", -} - -enum relief_line_subtype { - Causeway: "causeway", - Stopbank: "stopbank", -} diff --git a/packages/schema/src/features/next/relief_point.tsp b/packages/schema/src/features/next/relief_point.tsp deleted file mode 100644 index 68b4b6d03..000000000 --- a/packages/schema/src/features/next/relief_point.tsp +++ /dev/null @@ -1,25 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/relief_point") -@extension("additionalProperties", false) -model relief_point { - ...TopographicFeature; - type: relief_point_type; - name: string | null; - elevation: int32 | null; - height: float64 | null; - orientation: float64 | null; - theme: Theme.Relief; - ...TopographicMetadata; - ...GeoParquet; -} - -enum relief_point_type { - Height: "height", - Saddle: "saddle", - Sinkhole: "sinkhole", - Waterfall: "waterfall", -} diff --git a/packages/schema/src/features/next/residential_area.tsp b/packages/schema/src/features/next/residential_area.tsp deleted file mode 100644 index 48d2df41e..000000000 --- a/packages/schema/src/features/next/residential_area.tsp +++ /dev/null @@ -1,15 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/residential_area") -@extension("additionalProperties", false) -model residential_area { - ...TopographicFeature; - type: "residential_area"; - name: string | null; - theme: Theme.Landuse; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/road_line.tsp b/packages/schema/src/features/next/road_line.tsp deleted file mode 100644 index 600bf478e..000000000 --- a/packages/schema/src/features/next/road_line.tsp +++ /dev/null @@ -1,34 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/road_line") -@extension("additionalProperties", false) -model road_line { - ...TopographicFeature; - type: "road"; - hierarchy: string | null; - status: road_status | null; - name: string | null; - highway_number: string | null; - lane_count: int32 | null; - surface: road_surface | null; - way_count: "one_way" | null; - width_indicator: "w" | null; - road_access: "mp" | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} - -enum road_status { - UnderConstruction: "under_construction", - Closed: "closed", -} - -enum road_surface { - Metalled: "metalled", - Unmetalled: "unmetalled", - Sealed: "sealed", -} diff --git a/packages/schema/src/features/next/runway.tsp b/packages/schema/src/features/next/runway.tsp deleted file mode 100644 index 082214bcd..000000000 --- a/packages/schema/src/features/next/runway.tsp +++ /dev/null @@ -1,32 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/runway") -@extension("additionalProperties", false) -model runway { - ...TopographicFeature; - type: "runway"; - subtype: runway_subtype | null; - status: runway_status | null; - surface: runway_surface | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} - -enum runway_subtype { - Aerodrome: "aerodrome", - Airport: "airport", - Airstrip: "airstrip", -} - -enum runway_status { - Disused: "disused", -} - -enum runway_surface { - Grass: "grass", - Sealed: "sealed", -} diff --git a/packages/schema/src/features/next/structure.tsp b/packages/schema/src/features/next/structure.tsp deleted file mode 100644 index 3dd7764b3..000000000 --- a/packages/schema/src/features/next/structure.tsp +++ /dev/null @@ -1,78 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/structure") -@extension("additionalProperties", false) -model structure { - ...TopographicFeature; - type: structure_type; - subtype: structure_subtype | null; - lid_type: "covered" | null; - tank_type: structure_tank_type | null; - species: structure_species | null; - status: structure_status | null; - name: string | null; - theme: Theme.Structures; - ...TopographicMetadata; - ...GeoParquet; -} - -enum structure_type { - DryDock: "dry_dock", - FishFarm: "fish_farm", - MarineFarm: "marine_farm", - Reservoir: "reservoir", - Siphon: "siphon", - Tank: "tank", -} - -enum structure_subtype { - Building: "building", - Coal: "coal", - Concrete: "concrete", - Disused: "disused", - Fuel: "fuel", - Historic: "historic", - Jetty: "jetty", - Lake: "lake", - Land: "land", - Lighthouse: "lighthouse", - Lime: "lime", - Locked: "locked", - Plane: "plane", - PowerGeneration: "power_generation", - Rock: "rock", - Sea: "sea", - Ship: "ship", - SurgeChamber: "surge_chamber", - TunnelVentilation: "tunnel_ventilation", - Uncovered: "uncovered", - Water: "water", -} - -enum structure_tank_type { - Uncovered: "uncovered", - Water: "water", - SurgeChamber: "surge_chamber", -} - -enum structure_species { - Mussels: "mussels", - Salmon: "salmon", -} - -enum structure_status { - Closed: "closed", - Dangerous: "dangerous", - Derelict: "derelict", - Disused: "disused", - Historic: "historic", - Locked: "locked", - Old: "old", - Private: "private", - Remains: "remains", - Ruins: "ruins", - UnderConstruction: "under_construction", -} diff --git a/packages/schema/src/features/next/structure_line.tsp b/packages/schema/src/features/next/structure_line.tsp deleted file mode 100644 index db03b212b..000000000 --- a/packages/schema/src/features/next/structure_line.tsp +++ /dev/null @@ -1,40 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -import "./structure.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/structure_line") -@extension("additionalProperties", false) -model structure_line { - ...TopographicFeature; - type: structure_line_type; - subtype: structure_subtype | null; - species: structure_species | null; - status: structure_status | null; - name: string | null; - theme: Theme.Structures; - ...TopographicMetadata; - ...GeoParquet; -} - -enum structure_line_type { - Boatramp: "boatramp", - Boom: "boom", - Breakwater: "breakwater", - CablewayIndustrial: "cableway_industrial", - CablewayPeople: "cableway_people", - Dam: "dam", - Flume: "flume", - Ladder: "ladder", - MarineFarm: "marine_farm", - SkiLift: "ski_lift", - SkiTow: "ski_tow", - Slipway: "slipway", - SpillwayEdge: "spillway_edge", - Walkwire: "walkwire", - WaterRace: "water_race", - Weir: "weir", - Wharf: "wharf", - WharfEdge: "wharf_edge", -} diff --git a/packages/schema/src/features/next/structure_point.tsp b/packages/schema/src/features/next/structure_point.tsp deleted file mode 100644 index ce70f5557..000000000 --- a/packages/schema/src/features/next/structure_point.tsp +++ /dev/null @@ -1,46 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -import "./structure.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/structure_point") -@extension("additionalProperties", false) -model structure_point { - ...TopographicFeature; - type: structure_point_type; - subtype: structure_subtype | null; - tank_type: structure_tank_type | null; - status: structure_status | null; - name: string | null; - height: float64 | null; - orientation: float64 | null; - theme: Theme.Structures; - ...TopographicMetadata; - ...GeoParquet; -} - -enum structure_point_type { - Beacon: "beacon", - Bivouac: "bivouac", - Buoy: "buoy", - Chimney: "chimney", - Dredge: "dredge", - Flare: "flare", - Floodgate: "floodgate", - Gate: "gate", - Ladder: "ladder", - Lighthouse: "lighthouse", - Mast: "mast", - RadarDome: "radar_dome", - Redoubt: "redoubt", - SatelliteStation: "satellite_station", - Shaft: "shaft", - Siphon: "siphon", - Stockyard: "stockyard", - Tank: "tank", - Tower: "tower", - Well: "well", - Windmill: "windmill", - Wreck: "wreck", -} diff --git a/packages/schema/src/features/next/track_line.tsp b/packages/schema/src/features/next/track_line.tsp deleted file mode 100644 index 7e957a730..000000000 --- a/packages/schema/src/features/next/track_line.tsp +++ /dev/null @@ -1,35 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/track_line") -@extension("additionalProperties", false) -model track_line { - ...TopographicFeature; - type: "track"; - subtype: track_subtype | null; - track_type: track_type | null; - status: track_status | null; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} - -enum track_subtype { - CycleOnly: "cycle_only", - Foot: "foot", - Vehicle: "vehicle", -} - -enum track_type { - Connector: "connector", - Multiple: "multiple", - Route: "route", - Single: "single", -} - -enum track_status { - Closed: "closed", -} diff --git a/packages/schema/src/features/next/transport_point.tsp b/packages/schema/src/features/next/transport_point.tsp deleted file mode 100644 index cfdf76325..000000000 --- a/packages/schema/src/features/next/transport_point.tsp +++ /dev/null @@ -1,15 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/transport_point") -@extension("additionalProperties", false) -model transport_point { - ...TopographicFeature; - type: "ford" | "helipad"; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/trig_point.tsp b/packages/schema/src/features/next/trig_point.tsp deleted file mode 100644 index 36899a9de..000000000 --- a/packages/schema/src/features/next/trig_point.tsp +++ /dev/null @@ -1,18 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/trig_point") -@extension("additionalProperties", false) -model trig_point { - ...TopographicFeature; - type: "trig"; - trig_type: "beaconed" | null; - name: string | null; - code: string | null; - elevation: int32 | null; - theme: Theme.Relief; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/tunnel_line.tsp b/packages/schema/src/features/next/tunnel_line.tsp deleted file mode 100644 index 9c05ba722..000000000 --- a/packages/schema/src/features/next/tunnel_line.tsp +++ /dev/null @@ -1,41 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/tunnel_line") -@extension("additionalProperties", false) -model tunnel_line { - ...TopographicFeature; - type: tunnel_type; - subtype: "livestock" | null; - construction_type: tunnel_construction_type | null; - status: tunnel_status | null; - name: string | null; - theme: Theme.Transport; - ...TopographicMetadata; - ...GeoParquet; -} - -enum tunnel_construction_type { - Natural: "natural", - Manmade: "manmade", -} - -enum tunnel_type { - Cablecar: "cablecar", - FootTraffic: "foot_traffic", - Livestock: "livestock", - River: "river", - Train: "train", - Tram: "tram", - Vehicle: "vehicle", -} - -enum tunnel_status { - Closed: "closed", - Historic: "historic", - Disused: "disused", - Derelict: "derelict", - UnderConstruction: "under_construction", -} diff --git a/packages/schema/src/features/next/utility_line.tsp b/packages/schema/src/features/next/utility_line.tsp deleted file mode 100644 index 4652a1eb4..000000000 --- a/packages/schema/src/features/next/utility_line.tsp +++ /dev/null @@ -1,34 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/utility_line") -@extension("additionalProperties", false) -model utility_line { - ...TopographicFeature; - type: "pipeline" | "powerline" | "telephone"; - subtype: utility_subtype | null; - support_type: utility_supporttype | null; - status: string | null; - visibility: utility_visibility | null; - theme: Theme.Utility; - ...TopographicMetadata; - ...GeoParquet; -} - -enum utility_subtype { - Ironsand: "ironsand", - Sewage: "sewage", - Steam: "steam", - Water: "water", -} - -enum utility_supporttype { - Pole: "pole", - Pylon: "pylon", -} - -enum utility_visibility { - Underground: "underground", -} diff --git a/packages/schema/src/features/next/utility_point.tsp b/packages/schema/src/features/next/utility_point.tsp deleted file mode 100644 index 3bbfb2f6d..000000000 --- a/packages/schema/src/features/next/utility_point.tsp +++ /dev/null @@ -1,21 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/utility_point") -@extension("additionalProperties", false) -model utility_point { - ...TopographicFeature; - type: utility_point_type; - orientation: float64 | null; - theme: Theme.Utility; - ...TopographicMetadata; - ...GeoParquet; -} - -enum utility_point_type { - GasValve: "gas_valve", - GeoBore: "geo_bore", - Pylon: "pylon", -} diff --git a/packages/schema/src/features/next/vegetation.tsp b/packages/schema/src/features/next/vegetation.tsp deleted file mode 100644 index 8ac749cb3..000000000 --- a/packages/schema/src/features/next/vegetation.tsp +++ /dev/null @@ -1,20 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/vegetation") -@extension("additionalProperties", false) -model vegetation { - ...TopographicFeature; - type: "exotic" | "native" | "scattered_scrub" | "scrub"; - subtype: vegetation_subtype | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} - -enum vegetation_subtype { - Coniferous: "coniferous", - NonConiferous: "non-coniferous", -} diff --git a/packages/schema/src/features/next/vegetation_line.tsp b/packages/schema/src/features/next/vegetation_line.tsp deleted file mode 100644 index 0da3218d1..000000000 --- a/packages/schema/src/features/next/vegetation_line.tsp +++ /dev/null @@ -1,14 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/vegetation_line") -@extension("additionalProperties", false) -model vegetation_line { - ...TopographicFeature; - type: "shelter_belt"; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/vegetation_point.tsp b/packages/schema/src/features/next/vegetation_point.tsp deleted file mode 100644 index d5f8ddf15..000000000 --- a/packages/schema/src/features/next/vegetation_point.tsp +++ /dev/null @@ -1,14 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/vegetation_point") -@extension("additionalProperties", false) -model vegetation_point { - ...TopographicFeature; - type: "tree" | "scattered_scrub"; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/water.tsp b/packages/schema/src/features/next/water.tsp deleted file mode 100644 index b247b2235..000000000 --- a/packages/schema/src/features/next/water.tsp +++ /dev/null @@ -1,56 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/water") -@extension("additionalProperties", false) -model water { - ...TopographicFeature; - type: water_type; - subtype: water_subtype | null; - name: string | null; - group_name: string | null; - height: float64 | null; - elevation: int32 | null; - perennial: water_perennial | null; - temperature_indicator: water_temperature_indicator | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} - -enum water_type { - Canal: "canal", - Drain: "drain", - Lagoon: "lagoon", - Lake: "lake", - Pond: "pond", - River: "river", - Soakhole: "soakhole", - Spring: "spring", - Waterfall: "waterfall", -} - -enum water_subtype { - Evaporation: "evaporation", - HydroElectric: "hydro_electric", - IceSkating: "ice_skating", - Oil: "oil", - Oxidation: "oxidation", - Reservoir: "reservoir", - Settling: "settling", - Sewage: "sewage", - SewageTreatment: "sewage_treatment", - Sludge: "sludge", -} - -enum water_perennial { - Dry: "dry", - Seasonal: "seasonal", -} - -enum water_temperature_indicator { - Cold: "cold", - Hot: "hot", -} diff --git a/packages/schema/src/features/next/water_line.tsp b/packages/schema/src/features/next/water_line.tsp deleted file mode 100644 index abc21798b..000000000 --- a/packages/schema/src/features/next/water_line.tsp +++ /dev/null @@ -1,16 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -import "./water.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/water_line") -@extension("additionalProperties", false) -model water_line { - ...TopographicFeature; - type: water_type; - name: string | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/next/water_point.tsp b/packages/schema/src/features/next/water_point.tsp deleted file mode 100644 index f04cd350f..000000000 --- a/packages/schema/src/features/next/water_point.tsp +++ /dev/null @@ -1,19 +0,0 @@ -import "@typespec/json-schema"; -import "./common.tsp"; -import "./water.tsp"; - -using TypeSpec.JsonSchema; - -@jsonSchema("next/water_point") -@extension("additionalProperties", false) -model water_point { - ...TopographicFeature; - type: water_type; - name: string | null; - height: float64 | null; - orientation: float64 | null; - temperature_indicator: water_temperature_indicator | null; - theme: Theme.Landcover; - ...TopographicMetadata; - ...GeoParquet; -} diff --git a/packages/schema/src/features/nztopo50_carto_symbol.tsp b/packages/schema/src/features/nztopo50_carto_symbol.tsp index bb3440bec..37550a2d2 100644 --- a/packages/schema/src/features/nztopo50_carto_symbol.tsp +++ b/packages/schema/src/features/nztopo50_carto_symbol.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("nztopo50_carto_symbol") @extension("additionalProperties", false) model nztopo50_carto_symbol { diff --git a/packages/schema/src/features/nztopo50_carto_text.tsp b/packages/schema/src/features/nztopo50_carto_text.tsp index 9a6e203cb..d2a219d90 100644 --- a/packages/schema/src/features/nztopo50_carto_text.tsp +++ b/packages/schema/src/features/nztopo50_carto_text.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("nztopo50_carto_text") @extension("additionalProperties", false) model nztopo50_carto_text { diff --git a/packages/schema/src/features/nztopo50_coastline_island.tsp b/packages/schema/src/features/nztopo50_coastline_island.tsp index f46c102c7..4aef7e92c 100644 --- a/packages/schema/src/features/nztopo50_coastline_island.tsp +++ b/packages/schema/src/features/nztopo50_coastline_island.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + /** * Derived polygon Union of coastline and island */ diff --git a/packages/schema/src/features/nztopo50_dms_grid.tsp b/packages/schema/src/features/nztopo50_dms_grid.tsp index 9eebba9dc..24be98007 100644 --- a/packages/schema/src/features/nztopo50_dms_grid.tsp +++ b/packages/schema/src/features/nztopo50_dms_grid.tsp @@ -1,5 +1,7 @@ import "./nztopo50_grid.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("nztopo50_dms_grid") model nztopo50_dms_grid is nztopo50_grid; diff --git a/packages/schema/src/features/nztopo50_grid.tsp b/packages/schema/src/features/nztopo50_grid.tsp index 8339ffc64..ed8a722fd 100644 --- a/packages/schema/src/features/nztopo50_grid.tsp +++ b/packages/schema/src/features/nztopo50_grid.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("nztopo50_grid") @extension("additionalProperties", false) model nztopo50_grid { diff --git a/packages/schema/src/features/nztopo50_ice_contour.tsp b/packages/schema/src/features/nztopo50_ice_contour.tsp index f8a7ea7fb..d72f3eaaa 100644 --- a/packages/schema/src/features/nztopo50_ice_contour.tsp +++ b/packages/schema/src/features/nztopo50_ice_contour.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("nztopo50_ice_contour") @extension("additionalProperties", false) model nztopo50_ice_contour { diff --git a/packages/schema/src/features/nztopo50_map_sheet.tsp b/packages/schema/src/features/nztopo50_map_sheet.tsp index e89da3dc3..1506212ba 100644 --- a/packages/schema/src/features/nztopo50_map_sheet.tsp +++ b/packages/schema/src/features/nztopo50_map_sheet.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("nztopo50_map_sheet") @extension("additionalProperties", false) model nztopo50_map_sheet { diff --git a/packages/schema/src/features/nztopo50_rock_line.tsp b/packages/schema/src/features/nztopo50_rock_line.tsp index 02c4177a4..c0789ad8b 100644 --- a/packages/schema/src/features/nztopo50_rock_line.tsp +++ b/packages/schema/src/features/nztopo50_rock_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("nztopo50_rock_line") @extension("additionalProperties", false) model nztopo50_rock_line { diff --git a/packages/schema/src/features/nztopo50_sea_polygon.tsp b/packages/schema/src/features/nztopo50_sea_polygon.tsp index 911af82c5..ff6adde07 100644 --- a/packages/schema/src/features/nztopo50_sea_polygon.tsp +++ b/packages/schema/src/features/nztopo50_sea_polygon.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + /** * Derived sea (moana) polygons for the water layer. * diff --git a/packages/schema/src/features/place_point.tsp b/packages/schema/src/features/place_point.tsp index 938a586d4..743171bd4 100644 --- a/packages/schema/src/features/place_point.tsp +++ b/packages/schema/src/features/place_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("place_point") @extension("additionalProperties", false) model place_point { diff --git a/packages/schema/src/features/railway_line.tsp b/packages/schema/src/features/railway_line.tsp index 1eb32b414..c8fe188a2 100644 --- a/packages/schema/src/features/railway_line.tsp +++ b/packages/schema/src/features/railway_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + /** * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. * Where a railway line is located close to a road, the line held in the data and shown on the printed map diff --git a/packages/schema/src/features/railway_point.tsp b/packages/schema/src/features/railway_point.tsp index efcf8f9b2..5584c2a3b 100644 --- a/packages/schema/src/features/railway_point.tsp +++ b/packages/schema/src/features/railway_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("railway_point") @extension("additionalProperties", false) model railway_point { diff --git a/packages/schema/src/features/relief.tsp b/packages/schema/src/features/relief.tsp index 61bbb3db4..1d459b2a4 100644 --- a/packages/schema/src/features/relief.tsp +++ b/packages/schema/src/features/relief.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("relief") @extension("additionalProperties", false) model relief { diff --git a/packages/schema/src/features/relief_line.tsp b/packages/schema/src/features/relief_line.tsp index 3a0109568..b127860bd 100644 --- a/packages/schema/src/features/relief_line.tsp +++ b/packages/schema/src/features/relief_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("relief_line") @extension("additionalProperties", false) model relief_line { diff --git a/packages/schema/src/features/relief_point.tsp b/packages/schema/src/features/relief_point.tsp index bcdfdaeae..5a194f9c1 100644 --- a/packages/schema/src/features/relief_point.tsp +++ b/packages/schema/src/features/relief_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("relief_point") @extension("additionalProperties", false) model relief_point { diff --git a/packages/schema/src/features/residential_area.tsp b/packages/schema/src/features/residential_area.tsp index b22dcc4d9..37eef919d 100644 --- a/packages/schema/src/features/residential_area.tsp +++ b/packages/schema/src/features/residential_area.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("residential_area") @extension("additionalProperties", false) model residential_area { diff --git a/packages/schema/src/features/road_line.tsp b/packages/schema/src/features/road_line.tsp index 417e8926a..173c3675d 100644 --- a/packages/schema/src/features/road_line.tsp +++ b/packages/schema/src/features/road_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("road_line") @extension("additionalProperties", false) model road_line { diff --git a/packages/schema/src/features/runway.tsp b/packages/schema/src/features/runway.tsp index 27de98f11..1909652eb 100644 --- a/packages/schema/src/features/runway.tsp +++ b/packages/schema/src/features/runway.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("runway") @extension("additionalProperties", false) model runway { diff --git a/packages/schema/src/features/structure.tsp b/packages/schema/src/features/structure.tsp index ce2c8ca8a..e2b48ab03 100644 --- a/packages/schema/src/features/structure.tsp +++ b/packages/schema/src/features/structure.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("structure") @extension("additionalProperties", false) model structure { diff --git a/packages/schema/src/features/structure_line.tsp b/packages/schema/src/features/structure_line.tsp index 756b65ef8..70abbc046 100644 --- a/packages/schema/src/features/structure_line.tsp +++ b/packages/schema/src/features/structure_line.tsp @@ -4,6 +4,8 @@ import "./structure.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("structure_line") @extension("additionalProperties", false) model structure_line { diff --git a/packages/schema/src/features/structure_point.tsp b/packages/schema/src/features/structure_point.tsp index 48a4395d7..f84b479db 100644 --- a/packages/schema/src/features/structure_point.tsp +++ b/packages/schema/src/features/structure_point.tsp @@ -4,6 +4,8 @@ import "./structure.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("structure_point") @extension("additionalProperties", false) model structure_point { diff --git a/packages/schema/src/features/track_line.tsp b/packages/schema/src/features/track_line.tsp index 431357a42..e395696f5 100644 --- a/packages/schema/src/features/track_line.tsp +++ b/packages/schema/src/features/track_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("track_line") @extension("additionalProperties", false) model track_line { diff --git a/packages/schema/src/features/transport_point.tsp b/packages/schema/src/features/transport_point.tsp index d2131e25d..070f39a8c 100644 --- a/packages/schema/src/features/transport_point.tsp +++ b/packages/schema/src/features/transport_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("transport_point") @extension("additionalProperties", false) model transport_point { diff --git a/packages/schema/src/features/trig_point.tsp b/packages/schema/src/features/trig_point.tsp index b716e28c0..676e454ef 100644 --- a/packages/schema/src/features/trig_point.tsp +++ b/packages/schema/src/features/trig_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("trig_point") @extension("additionalProperties", false) model trig_point { diff --git a/packages/schema/src/features/tunnel_line.tsp b/packages/schema/src/features/tunnel_line.tsp index 77a1a1942..1dea67fd8 100644 --- a/packages/schema/src/features/tunnel_line.tsp +++ b/packages/schema/src/features/tunnel_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("tunnel_line") @extension("additionalProperties", false) model tunnel_line { diff --git a/packages/schema/src/features/utility_line.tsp b/packages/schema/src/features/utility_line.tsp index de4b041ae..7abdea5d2 100644 --- a/packages/schema/src/features/utility_line.tsp +++ b/packages/schema/src/features/utility_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("utility_line") @extension("additionalProperties", false) model utility_line { diff --git a/packages/schema/src/features/utility_point.tsp b/packages/schema/src/features/utility_point.tsp index 7733b0536..0ed6a0397 100644 --- a/packages/schema/src/features/utility_point.tsp +++ b/packages/schema/src/features/utility_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("utility_point") @extension("additionalProperties", false) model utility_point { diff --git a/packages/schema/src/features/vegetation.tsp b/packages/schema/src/features/vegetation.tsp index c47356fd5..2cdd2997f 100644 --- a/packages/schema/src/features/vegetation.tsp +++ b/packages/schema/src/features/vegetation.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("vegetation") @extension("additionalProperties", false) model vegetation { diff --git a/packages/schema/src/features/vegetation_line.tsp b/packages/schema/src/features/vegetation_line.tsp index 700cf9efb..140dcd2e2 100644 --- a/packages/schema/src/features/vegetation_line.tsp +++ b/packages/schema/src/features/vegetation_line.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("vegetation_line") @extension("additionalProperties", false) model vegetation_line { diff --git a/packages/schema/src/features/vegetation_point.tsp b/packages/schema/src/features/vegetation_point.tsp index fdd12484e..0a75b076a 100644 --- a/packages/schema/src/features/vegetation_point.tsp +++ b/packages/schema/src/features/vegetation_point.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("vegetation_point") @extension("additionalProperties", false) model vegetation_point { diff --git a/packages/schema/src/features/water.tsp b/packages/schema/src/features/water.tsp index cd303b061..a4ca3dec6 100644 --- a/packages/schema/src/features/water.tsp +++ b/packages/schema/src/features/water.tsp @@ -3,6 +3,8 @@ import "./common.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("water") @extension("additionalProperties", false) model water { diff --git a/packages/schema/src/features/water_line.tsp b/packages/schema/src/features/water_line.tsp index 0fd33a395..8abf76a9b 100644 --- a/packages/schema/src/features/water_line.tsp +++ b/packages/schema/src/features/water_line.tsp @@ -4,6 +4,8 @@ import "./water.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("water_line") @extension("additionalProperties", false) model water_line { diff --git a/packages/schema/src/features/water_point.tsp b/packages/schema/src/features/water_point.tsp index 388bca2ea..10a835075 100644 --- a/packages/schema/src/features/water_point.tsp +++ b/packages/schema/src/features/water_point.tsp @@ -4,6 +4,8 @@ import "./water.tsp"; using TypeSpec.JsonSchema; +namespace Topography; + @jsonSchema("water_point") @extension("additionalProperties", false) model water_point { diff --git a/packages/schema/src/main.tsp b/packages/schema/src/main.tsp index cfb888b5d..6f18a85e7 100644 --- a/packages/schema/src/main.tsp +++ b/packages/schema/src/main.tsp @@ -1,2 +1,4 @@ import "@typespec/json-schema"; +import "@typespec/versioning"; +import "./version.tsp"; import "./features/main.tsp"; diff --git a/packages/schema/src/version.tsp b/packages/schema/src/version.tsp new file mode 100644 index 000000000..55328364d --- /dev/null +++ b/packages/schema/src/version.tsp @@ -0,0 +1,11 @@ +import "@typespec/versioning"; + +using TypeSpec.Versioning; + +@versioned(Versions) +namespace Topography; + +enum Versions { + v0_3: "0.3", + v0_4: "0.4", +} From c48b983fc9548405d4b8d7a7cc0e99ded0710c45 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 16 Sep 2026 11:18:19 +1200 Subject: [PATCH 16/20] feat(schema): emit versioned JSON schemas into release=v{version} directory structure --- .github/workflows/push.yml | 2 +- .../src/kart_import/schema_check.py | 6 ++ packages/schema/README.md | 99 +++++++------------ packages/schema/package.json | 12 ++- packages/schema/src/next.tsp | 2 - packages/schema/src/types/index.ts | 2 + packages/schema/tsconfig.json | 5 +- packages/schema/tspconfig.next.yaml | 10 -- packages/schema/tspconfig.yaml | 8 +- packages/typespec-emitter/package.json | 9 +- packages/typespec-emitter/src/index.ts | 19 ++-- packages/typespec-emitter/src/json-schema.ts | 78 +++++++++++++++ packages/typespec-emitter/src/parquet.test.ts | 59 ++--------- packages/typespec-emitter/src/parquet.ts | 30 +----- packages/typespec-emitter/src/pydantic.ts | 5 +- packages/typespec-emitter/src/typescript.ts | 5 +- .../src/typespec-json-schema.d.ts | 7 ++ packages/typespec-emitter/tsconfig.json | 5 +- schema/{next => release=v0.3}/airport.json | 2 +- .../{next => release=v0.3}/bridge_line.json | 2 +- schema/{ => release=v0.3}/building.json | 2 +- schema/{ => release=v0.3}/building_point.json | 2 +- schema/{ => release=v0.3}/coastline.json | 2 +- schema/{ => release=v0.3}/contour.json | 2 +- .../descriptive_text.json | 2 +- schema/{ => release=v0.3}/fence_line.json | 2 +- schema/{next => release=v0.3}/ferry_line.json | 2 +- .../geographic_name.json | 2 +- schema/{ => release=v0.3}/island.json | 2 +- schema/{next => release=v0.3}/landcover.json | 2 +- .../landcover_line.json | 2 +- .../{ => release=v0.3}/landcover_point.json | 2 +- schema/{ => release=v0.3}/landuse.json | 2 +- schema/{ => release=v0.3}/landuse_line.json | 2 +- .../{next => release=v0.3}/landuse_point.json | 2 +- schema/{next => release=v0.3}/marine.json | 2 +- schema/{ => release=v0.3}/marine_point.json | 2 +- .../nztopo50_carto_symbol.json | 2 +- .../nztopo50_carto_text.json | 2 +- .../nztopo50_coastline_island.json | 2 +- .../{ => release=v0.3}/nztopo50_dms_grid.json | 2 +- schema/{ => release=v0.3}/nztopo50_grid.json | 2 +- .../nztopo50_ice_contour.json | 2 +- .../nztopo50_map_sheet.json | 2 +- .../nztopo50_rock_line.json | 2 +- .../nztopo50_sea_polygon.json | 2 +- schema/{ => release=v0.3}/place_point.json | 2 +- schema/{ => release=v0.3}/railway_line.json | 2 +- schema/{ => release=v0.3}/railway_point.json | 2 +- schema/{ => release=v0.3}/relief.json | 2 +- schema/{ => release=v0.3}/relief_line.json | 2 +- schema/{ => release=v0.3}/relief_point.json | 2 +- .../{ => release=v0.3}/residential_area.json | 2 +- schema/{ => release=v0.3}/road_line.json | 2 +- schema/{ => release=v0.3}/runway.json | 2 +- schema/{next => release=v0.3}/structure.json | 2 +- schema/{ => release=v0.3}/structure_line.json | 2 +- .../structure_point.json | 2 +- schema/{ => release=v0.3}/track_line.json | 2 +- .../{ => release=v0.3}/transport_point.json | 2 +- schema/{ => release=v0.3}/trig_point.json | 2 +- schema/{ => release=v0.3}/tunnel_line.json | 2 +- schema/{ => release=v0.3}/utility_line.json | 2 +- .../{next => release=v0.3}/utility_point.json | 2 +- schema/{next => release=v0.3}/vegetation.json | 2 +- .../vegetation_line.json | 2 +- .../{ => release=v0.3}/vegetation_point.json | 2 +- schema/{ => release=v0.3}/water.json | 2 +- schema/{ => release=v0.3}/water_line.json | 2 +- .../{next => release=v0.3}/water_point.json | 2 +- schema/{ => release=v0.4}/airport.json | 2 +- schema/{ => release=v0.4}/bridge_line.json | 2 +- schema/{next => release=v0.4}/building.json | 2 +- .../building_point.json | 2 +- schema/{next => release=v0.4}/coastline.json | 2 +- schema/{next => release=v0.4}/contour.json | 2 +- .../{ => release=v0.4}/descriptive_text.json | 2 +- schema/{next => release=v0.4}/fence_line.json | 2 +- schema/{ => release=v0.4}/ferry_line.json | 2 +- .../{ => release=v0.4}/geographic_name.json | 2 +- schema/{next => release=v0.4}/island.json | 2 +- schema/{ => release=v0.4}/landcover.json | 2 +- schema/{ => release=v0.4}/landcover_line.json | 2 +- .../landcover_point.json | 2 +- schema/{next => release=v0.4}/landuse.json | 2 +- .../{next => release=v0.4}/landuse_line.json | 2 +- schema/{ => release=v0.4}/landuse_point.json | 2 +- schema/{ => release=v0.4}/marine.json | 2 +- .../{next => release=v0.4}/marine_point.json | 2 +- .../nztopo50_carto_symbol.json | 2 +- .../nztopo50_carto_text.json | 2 +- .../nztopo50_coastline_island.json | 2 +- .../nztopo50_dms_grid.json | 2 +- .../{next => release=v0.4}/nztopo50_grid.json | 2 +- .../nztopo50_ice_contour.json | 2 +- .../nztopo50_map_sheet.json | 2 +- .../nztopo50_rock_line.json | 2 +- .../nztopo50_sea_polygon.json | 2 +- .../{next => release=v0.4}/place_point.json | 2 +- .../{next => release=v0.4}/railway_line.json | 2 +- .../{next => release=v0.4}/railway_point.json | 2 +- schema/{next => release=v0.4}/relief.json | 2 +- .../{next => release=v0.4}/relief_line.json | 2 +- .../{next => release=v0.4}/relief_point.json | 2 +- .../residential_area.json | 2 +- schema/{next => release=v0.4}/road_line.json | 2 +- schema/{next => release=v0.4}/runway.json | 2 +- schema/{ => release=v0.4}/structure.json | 2 +- .../structure_line.json | 2 +- .../{ => release=v0.4}/structure_point.json | 2 +- schema/{next => release=v0.4}/track_line.json | 2 +- .../transport_point.json | 2 +- schema/{next => release=v0.4}/trig_point.json | 2 +- .../{next => release=v0.4}/tunnel_line.json | 2 +- .../{next => release=v0.4}/utility_line.json | 2 +- schema/{ => release=v0.4}/utility_point.json | 2 +- schema/{ => release=v0.4}/vegetation.json | 2 +- .../{ => release=v0.4}/vegetation_line.json | 2 +- .../vegetation_point.json | 2 +- schema/{next => release=v0.4}/water.json | 2 +- schema/{next => release=v0.4}/water_line.json | 2 +- schema/{ => release=v0.4}/water_point.json | 2 +- 122 files changed, 279 insertions(+), 292 deletions(-) delete mode 100644 packages/schema/src/next.tsp delete mode 100644 packages/schema/tspconfig.next.yaml create mode 100644 packages/typespec-emitter/src/json-schema.ts create mode 100644 packages/typespec-emitter/src/typespec-json-schema.d.ts rename schema/{next => release=v0.3}/airport.json (98%) rename schema/{next => release=v0.3}/bridge_line.json (98%) rename schema/{ => release=v0.3}/building.json (99%) rename schema/{ => release=v0.3}/building_point.json (98%) rename schema/{ => release=v0.3}/coastline.json (98%) rename schema/{ => release=v0.3}/contour.json (98%) rename schema/{next => release=v0.3}/descriptive_text.json (98%) rename schema/{ => release=v0.3}/fence_line.json (98%) rename schema/{next => release=v0.3}/ferry_line.json (98%) rename schema/{next => release=v0.3}/geographic_name.json (98%) rename schema/{ => release=v0.3}/island.json (98%) rename schema/{next => release=v0.3}/landcover.json (98%) rename schema/{next => release=v0.3}/landcover_line.json (97%) rename schema/{ => release=v0.3}/landcover_point.json (99%) rename schema/{ => release=v0.3}/landuse.json (99%) rename schema/{ => release=v0.3}/landuse_line.json (98%) rename schema/{next => release=v0.3}/landuse_point.json (98%) rename schema/{next => release=v0.3}/marine.json (98%) rename schema/{ => release=v0.3}/marine_point.json (98%) rename schema/{next => release=v0.3}/nztopo50_carto_symbol.json (98%) rename schema/{ => release=v0.3}/nztopo50_carto_text.json (99%) rename schema/{next => release=v0.3}/nztopo50_coastline_island.json (97%) rename schema/{ => release=v0.3}/nztopo50_dms_grid.json (97%) rename schema/{ => release=v0.3}/nztopo50_grid.json (97%) rename schema/{next => release=v0.3}/nztopo50_ice_contour.json (98%) rename schema/{next => release=v0.3}/nztopo50_map_sheet.json (98%) rename schema/{ => release=v0.3}/nztopo50_rock_line.json (98%) rename schema/{next => release=v0.3}/nztopo50_sea_polygon.json (97%) rename schema/{ => release=v0.3}/place_point.json (98%) rename schema/{ => release=v0.3}/railway_line.json (98%) rename schema/{ => release=v0.3}/railway_point.json (98%) rename schema/{ => release=v0.3}/relief.json (98%) rename schema/{ => release=v0.3}/relief_line.json (98%) rename schema/{ => release=v0.3}/relief_point.json (98%) rename schema/{ => release=v0.3}/residential_area.json (97%) rename schema/{ => release=v0.3}/road_line.json (98%) rename schema/{ => release=v0.3}/runway.json (98%) rename schema/{next => release=v0.3}/structure.json (99%) rename schema/{ => release=v0.3}/structure_line.json (99%) rename schema/{next => release=v0.3}/structure_point.json (99%) rename schema/{ => release=v0.3}/track_line.json (98%) rename schema/{ => release=v0.3}/transport_point.json (98%) rename schema/{ => release=v0.3}/trig_point.json (98%) rename schema/{ => release=v0.3}/tunnel_line.json (98%) rename schema/{ => release=v0.3}/utility_line.json (98%) rename schema/{next => release=v0.3}/utility_point.json (98%) rename schema/{next => release=v0.3}/vegetation.json (98%) rename schema/{next => release=v0.3}/vegetation_line.json (97%) rename schema/{ => release=v0.3}/vegetation_point.json (97%) rename schema/{ => release=v0.3}/water.json (99%) rename schema/{ => release=v0.3}/water_line.json (98%) rename schema/{next => release=v0.3}/water_point.json (98%) rename schema/{ => release=v0.4}/airport.json (98%) rename schema/{ => release=v0.4}/bridge_line.json (98%) rename schema/{next => release=v0.4}/building.json (99%) rename schema/{next => release=v0.4}/building_point.json (98%) rename schema/{next => release=v0.4}/coastline.json (98%) rename schema/{next => release=v0.4}/contour.json (98%) rename schema/{ => release=v0.4}/descriptive_text.json (98%) rename schema/{next => release=v0.4}/fence_line.json (98%) rename schema/{ => release=v0.4}/ferry_line.json (98%) rename schema/{ => release=v0.4}/geographic_name.json (98%) rename schema/{next => release=v0.4}/island.json (98%) rename schema/{ => release=v0.4}/landcover.json (98%) rename schema/{ => release=v0.4}/landcover_line.json (97%) rename schema/{next => release=v0.4}/landcover_point.json (99%) rename schema/{next => release=v0.4}/landuse.json (99%) rename schema/{next => release=v0.4}/landuse_line.json (98%) rename schema/{ => release=v0.4}/landuse_point.json (98%) rename schema/{ => release=v0.4}/marine.json (98%) rename schema/{next => release=v0.4}/marine_point.json (98%) rename schema/{ => release=v0.4}/nztopo50_carto_symbol.json (98%) rename schema/{next => release=v0.4}/nztopo50_carto_text.json (99%) rename schema/{ => release=v0.4}/nztopo50_coastline_island.json (97%) rename schema/{next => release=v0.4}/nztopo50_dms_grid.json (97%) rename schema/{next => release=v0.4}/nztopo50_grid.json (97%) rename schema/{ => release=v0.4}/nztopo50_ice_contour.json (98%) rename schema/{ => release=v0.4}/nztopo50_map_sheet.json (98%) rename schema/{next => release=v0.4}/nztopo50_rock_line.json (98%) rename schema/{ => release=v0.4}/nztopo50_sea_polygon.json (97%) rename schema/{next => release=v0.4}/place_point.json (98%) rename schema/{next => release=v0.4}/railway_line.json (98%) rename schema/{next => release=v0.4}/railway_point.json (98%) rename schema/{next => release=v0.4}/relief.json (98%) rename schema/{next => release=v0.4}/relief_line.json (98%) rename schema/{next => release=v0.4}/relief_point.json (98%) rename schema/{next => release=v0.4}/residential_area.json (97%) rename schema/{next => release=v0.4}/road_line.json (98%) rename schema/{next => release=v0.4}/runway.json (98%) rename schema/{ => release=v0.4}/structure.json (99%) rename schema/{next => release=v0.4}/structure_line.json (99%) rename schema/{ => release=v0.4}/structure_point.json (99%) rename schema/{next => release=v0.4}/track_line.json (98%) rename schema/{next => release=v0.4}/transport_point.json (98%) rename schema/{next => release=v0.4}/trig_point.json (98%) rename schema/{next => release=v0.4}/tunnel_line.json (98%) rename schema/{next => release=v0.4}/utility_line.json (98%) rename schema/{ => release=v0.4}/utility_point.json (98%) rename schema/{ => release=v0.4}/vegetation.json (98%) rename schema/{ => release=v0.4}/vegetation_line.json (97%) rename schema/{next => release=v0.4}/vegetation_point.json (97%) rename schema/{next => release=v0.4}/water.json (99%) rename schema/{next => release=v0.4}/water_line.json (98%) rename schema/{ => release=v0.4}/water_point.json (98%) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a3724d01b..2258fc3f6 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -25,7 +25,7 @@ jobs: background: true # Remove existing schema files to ensure no dangling json schemas. - - run: rm -fv schema/*.json schema/next/*.json + - run: rm -rfv schema/release=* - run: npm ci diff --git a/packages/kart-import/src/kart_import/schema_check.py b/packages/kart-import/src/kart_import/schema_check.py index 296e39dfb..8b1280714 100644 --- a/packages/kart-import/src/kart_import/schema_check.py +++ b/packages/kart-import/src/kart_import/schema_check.py @@ -85,9 +85,15 @@ def schema_dir(schema_set: str | None = None) -> Path: base = env_schema_dir_override() root = Path(base) if base else REPO_ROOT / "schema" if schema_set == "next": + if (root / "release=v0.4").is_dir(): + return root / "release=v0.4" return root / "next" if schema_set == "current": + if (root / "release=v0.3").is_dir(): + return root / "release=v0.3" return root + if (root / schema_set).is_dir(): + return root / schema_set raise ValueError(f"Unknown schema_set {schema_set!r}; expected 'current' or 'next'") diff --git a/packages/schema/README.md b/packages/schema/README.md index dff98e4f6..3d351f4d8 100644 --- a/packages/schema/README.md +++ b/packages/schema/README.md @@ -1,80 +1,47 @@ # Topographic System Schema Changes -## Step 1 +## Versioning Model -Making a change to the schema - update / add to the require yml schema constructs under **src\features\*.tsp**. +Schema versions are managed via [`@typespec/versioning`](https://typespec.io/docs/libraries/versioning/reference). -Files are updated in **NEXT** until **manual** release process which will move the tsp and json files back into the main folder. +- Versions are defined in [`src/version.tsp`](file:///home/blacha/git/linz/topographic-system/packages/schema/src/version.tsp): + ```typespec + enum Versions { + v0_3: "0.3", + v0_4: "0.4", + } + ``` +- All feature definitions reside under [`src/features/`](file:///home/blacha/git/linz/topographic-system/packages/schema/src/features/) within `namespace Topography;`. +- Rather than copying files into separate folders for upcoming changes, use versioning decorators such as `@added(Versions.v0_4)` or `@madeOptional(Versions.v0_4)`. -**A)** copy the file(s) to change into the **src\features\next** folder +### Example -**B)** main.tsp - in next this just contains the local files - on release full file will need review (if new layer added or old ones deleted - likely to be rare). Ensure the moved file is added to **next/main.tsp** +```typespec +using TypeSpec.Versioning; -**C)** edit file as required. IMPORTANT - the schema link needs to point to next @jsonSchema("next/railway_line") +namespace Topography; -**D)** Review check +@jsonSchema("water") +model Water { + id: string; + name?: string; -**src\features\common.tsp** - contains the EMUMs for each field that uses them. Review if change is needed. THis now only contain widely common enums. + @added(Versions.v0_4) + new_attribute?: string; +} +``` -**src\features\main.tsp** - links the individual schema files - if removing or adding this file list need to be updated. References file under src\features. +## Compiling & Bundling -**Example element to review** +From the repository root or the `packages/schema` directory, run: -@jsonSchema("bridge_line") -> @jsonSchema("next\bridge_line") +```bash +npm --prefix packages/schema run bundle +``` -Check fields and related allow values. Enum typically in same schema file and lowercase.. +This command executes: -example -> use2: use2 - -## Step 2 - -Update the json files - This can be done by running the commands below - -create json [Note: should alway be run so nothing is missed] - -Run **Next** - -Assuming running from topographic-system folder - -format tsp files... - -> `npx tsp format "packages/schema/src/**/*.tsp"` - -or single file - -> `npx tsp format "packages/schema/src/**/place_point.tsp"` - -compile... - -> npx tsp compile ./packages/schema/src/next.tsp --config ./packages/schema/tspconfig.next.yaml - -Run Main - this is **when full release** is required - -linux - -> tsp compile ./packages/schema/src/features/main.tsp --config ./packages/schema/tspconfig.yaml - -If this does not run in your environment use npx (requires installation) - -> npx tsp compile ./packages/schema/src/features/main.tsp --config ./packages/schema/tspconfig.yaml - -depending on where you run this from, and how your tsp is installed; You may need to - -> npx tsp compile ./packages/schema/src/ -> or just tsp compile . (dot for current folder) should be enough. - -## JSON format - -Then move to the json output folder - topographic-system/schema/next or topographic-system/schema - -Then run **oxfmt** to reformat the json files - -Other ways of running - -> cd schema or cd schema/next - -> npx oxfmt . - -for help.. - -> npx oxfmt --help +1. `tsp compile .` using [`tspconfig.yaml`](file:///home/blacha/git/linz/topographic-system/packages/schema/tspconfig.yaml) and the custom emitter [`@linzjs/typespec-emitter`](file:///home/blacha/git/linz/topographic-system/packages/typespec-emitter). +2. Generates versioned JSON schemas for each release into `schema/release=v{version}/*.json` (e.g., `schema/release=v0.3/`, `schema/release=v0.4/`). +3. Generates TypeScript type definitions into [`src/types/index.ts`](file:///home/blacha/git/linz/topographic-system/packages/schema/src/types/index.ts). +4. Automatically formats the generated JSON schema files and TypeScript types with `oxfmt`. diff --git a/packages/schema/package.json b/packages/schema/package.json index 922206f76..18233bd5e 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -19,13 +19,15 @@ "scripts": { "check": "tsp format --check \"src/**/*.tsp\"", "format": "tsp format \"src/**/*.tsp\"", - "bundle": "tsp compile . && tsp compile src/next.tsp --config tspconfig.next.yaml && (cd ../../schema && oxfmt .) && oxfmt src" + "bundle": "tsp compile . && (cd ../../schema && oxfmt .) && oxfmt src" }, "devDependencies": { "@linzjs/typespec-emitter": "^0.1.0", - "@types/node": "^24.10.0", - "@typespec/compiler": "^1.11.0", - "@typespec/json-schema": "^1.11.0" + "@types/node": "^24.10.0" }, - "dependencies": {} + "dependencies": { + "@typespec/compiler": "^1.15.0", + "@typespec/json-schema": "^1.15.0", + "@typespec/versioning": "^0.85.0" + } } diff --git a/packages/schema/src/next.tsp b/packages/schema/src/next.tsp deleted file mode 100644 index 3bb97306a..000000000 --- a/packages/schema/src/next.tsp +++ /dev/null @@ -1,2 +0,0 @@ -import "@typespec/json-schema"; -import "./features/next/main.tsp"; diff --git a/packages/schema/src/types/index.ts b/packages/schema/src/types/index.ts index b2ee1f72f..88d65f87f 100644 --- a/packages/schema/src/types/index.ts +++ b/packages/schema/src/types/index.ts @@ -298,6 +298,8 @@ export type UtilityVisibility = 'underground'; export type VegetationSubtype = 'coniferous' | 'non-coniferous'; +export type Versions = '0.3' | '0.4'; + export type WaterPerennial = 'dry' | 'seasonal'; export type WaterSubtype = diff --git a/packages/schema/tsconfig.json b/packages/schema/tsconfig.json index e4aabe31e..c2eacb499 100644 --- a/packages/schema/tsconfig.json +++ b/packages/schema/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "rootDir": "./src", - "outDir": "./build/" - }, + "compilerOptions": { "rootDir": "./src", "outDir": "./build/" }, "include": ["src/"] } diff --git a/packages/schema/tspconfig.next.yaml b/packages/schema/tspconfig.next.yaml deleted file mode 100644 index 97d0eff2c..000000000 --- a/packages/schema/tspconfig.next.yaml +++ /dev/null @@ -1,10 +0,0 @@ -extends: ./tspconfig.yaml -emit: - - '@typespec/json-schema' - - '@linzjs/typespec-emitter' -options: - '@typespec/json-schema': - emitter-output-dir: '{project-root}/../../schema/next' - file-type: 'json' - '@linzjs/typespec-emitter': - typescript-output-file: '{project-root}/src/types/index.ts' diff --git a/packages/schema/tspconfig.yaml b/packages/schema/tspconfig.yaml index 3e775ae21..68bdd149a 100644 --- a/packages/schema/tspconfig.yaml +++ b/packages/schema/tspconfig.yaml @@ -1,6 +1,6 @@ emit: - - '@typespec/json-schema' + - '@linzjs/typespec-emitter' options: - '@typespec/json-schema': - emitter-output-dir: '{project-root}/../../schema' - file-type: 'json' + '@linzjs/typespec-emitter': + json-schema-output-dir: '{project-root}/../../schema' + typescript-output-file: '{project-root}/src/types/index.ts' diff --git a/packages/typespec-emitter/package.json b/packages/typespec-emitter/package.json index 8d336d747..dff73bc96 100644 --- a/packages/typespec-emitter/package.json +++ b/packages/typespec-emitter/package.json @@ -17,10 +17,13 @@ "test": "node --test \"src/**/*.test.ts\"" }, "dependencies": { - "@typespec/compiler": "^1.11.0", - "@typespec/json-schema": "^1.11.0" + "@typespec/asset-emitter": "^0.79.1", + "@typespec/compiler": "^1.15.0", + "@typespec/json-schema": "^1.15.0", + "@typespec/versioning": "^0.85.0" }, "devDependencies": { - "hyparquet": "^1.24.1" + "hyparquet": "^1.24.1", + "@types/node": "^24.10.0" } } diff --git a/packages/typespec-emitter/src/index.ts b/packages/typespec-emitter/src/index.ts index 674423562..e88c3a137 100644 --- a/packages/typespec-emitter/src/index.ts +++ b/packages/typespec-emitter/src/index.ts @@ -1,12 +1,14 @@ import { createTypeSpecLibrary } from '@typespec/compiler'; import type { EmitContext, JSONSchemaType, Model, Enum, Union } from '@typespec/compiler'; +import { emitJsonSchema } from './json-schema.ts'; import { emitParquetSchema } from './parquet.ts'; import { emitPydanticModels } from './pydantic.ts'; import { emitTypeScript } from './typescript.ts'; import { collectTypes } from './utils.ts'; export interface EmitterOptions { + 'json-schema-output-dir'?: string; 'typescript-output-file'?: string; 'parquet-output-dir'?: string; 'pydantic-output-file'?: string; @@ -15,6 +17,7 @@ export interface EmitterOptions { const EmitterOptionsSchema: JSONSchemaType = { type: 'object', properties: { + 'json-schema-output-dir': { type: 'string', nullable: true }, 'typescript-output-file': { type: 'string', nullable: true }, 'parquet-output-dir': { type: 'string', nullable: true }, 'pydantic-output-file': { type: 'string', nullable: true }, @@ -25,33 +28,37 @@ const EmitterOptionsSchema: JSONSchemaType = { export const $lib = createTypeSpecLibrary({ name: '@linzjs/typespec-emitter', diagnostics: {}, - emitter: { - options: EmitterOptionsSchema, - }, + emitter: { options: EmitterOptionsSchema }, }); export async function $onEmit(context: EmitContext) { const { program, options } = context; + // 1. Emit JSON Schema if configured + if (options['json-schema-output-dir']) { + const outputDir = options['json-schema-output-dir']; + await emitJsonSchema(context, outputDir); + } + const models = new Map(); const enums = new Map(); const unions = new Map(); collectTypes(program.getGlobalNamespaceType(), models, enums, unions); - // 1. Emit TypeScript Types if configured + // 2. Emit TypeScript Types if configured if (options['typescript-output-file']) { const outputFile = options['typescript-output-file']; await emitTypeScript(program, outputFile, models, enums, unions); } - // 2. Emit Parquet Schema if configured + // 3. Emit Parquet Schema if configured if (options['parquet-output-dir']) { const outputDir = options['parquet-output-dir']; await emitParquetSchema(program, outputDir, models); } - // 3. Emit Pydantic Models if configured + // 4. Emit Pydantic Models if configured if (options['pydantic-output-file']) { const outputFile = options['pydantic-output-file']; await emitPydanticModels(program, outputFile, models); diff --git a/packages/typespec-emitter/src/json-schema.ts b/packages/typespec-emitter/src/json-schema.ts new file mode 100644 index 000000000..810f1e2a0 --- /dev/null +++ b/packages/typespec-emitter/src/json-schema.ts @@ -0,0 +1,78 @@ +import { createAssetEmitter } from '@typespec/asset-emitter'; +import type { EmitContext, Type } from '@typespec/compiler'; +import { joinPaths } from '@typespec/compiler'; +import { unsafe_mutateSubgraphWithNamespace } from '@typespec/compiler/experimental'; +import { JsonSchemaEmitter, getId } from '@typespec/json-schema'; +import { getVersioningMutators } from '@typespec/versioning'; + +class VersionedJsonSchemaEmitter extends JsonSchemaEmitter { + override sourceFile(sourceFile: any) { + const result = super.sourceFile(sourceFile); + try { + const versionStr = (this.emitter.getOptions() as any).versionStr ?? ''; + const json = JSON.parse(result.contents); + if (json.$id) { + json.$id = `${json.$id}_v${versionStr}`; + } + return { contents: JSON.stringify(json, null, 2), path: result.path }; + } catch { + return result; + } + } +} + +export async function emitJsonSchema(context: EmitContext, outputDir: string): Promise { + const { program } = context; + const topoNs = program.getGlobalNamespaceType().namespaces.get('Topography'); + if (!topoNs) { + throw new Error('Could not find Topography namespace in program.'); + } + + const mutators = getVersioningMutators(program, topoNs); + if (!mutators || mutators.kind !== 'versioned') { + throw new Error('Topography namespace is not versioned.'); + } + + for (const snapshot of mutators.snapshots) { + const versionStr = String(snapshot.version.value ?? snapshot.version.name); + const versionOutputDir = joinPaths(outputDir, `release=v${versionStr}`); + + const { type: mutatedNs } = unsafe_mutateSubgraphWithNamespace(program, [snapshot.mutator], topoNs); + + const emitContext = { + ...context, + emitterOutputDir: versionOutputDir, + options: { ...context.options, 'file-type': 'json', versionStr }, + }; + + const emitter = createAssetEmitter(program, VersionedJsonSchemaEmitter, emitContext); + + const typesToEmit: Type[] = []; + if ('models' in mutatedNs && mutatedNs.models) { + for (const m of mutatedNs.models.values()) { + if (getId(program, m)) typesToEmit.push(m); + } + } + if ('unions' in mutatedNs && mutatedNs.unions) { + for (const u of mutatedNs.unions.values()) { + if (getId(program, u)) typesToEmit.push(u); + } + } + if ('enums' in mutatedNs && mutatedNs.enums) { + for (const e of mutatedNs.enums.values()) { + if (getId(program, e)) typesToEmit.push(e); + } + } + if ('scalars' in mutatedNs && mutatedNs.scalars) { + for (const s of mutatedNs.scalars.values()) { + if (getId(program, s)) typesToEmit.push(s); + } + } + + for (const item of typesToEmit) { + emitter.emitType(item); + } + + await emitter.writeOutput(); + } +} diff --git a/packages/typespec-emitter/src/parquet.test.ts b/packages/typespec-emitter/src/parquet.test.ts index 59472aa94..e6c71a063 100644 --- a/packages/typespec-emitter/src/parquet.test.ts +++ b/packages/typespec-emitter/src/parquet.test.ts @@ -10,10 +10,7 @@ import type { ParquetField } from './parquet.ts'; */ export function validateHyparquetSchema( hyparquetTree: { element: SchemaElement; children: { element: SchemaElement }[] }, - expectedSchema: { - name: string; - fields: ParquetField[]; - }, + expectedSchema: { name: string; fields: ParquetField[] }, ): void { assert.strictEqual( hyparquetTree.element.name, @@ -26,6 +23,7 @@ export function validateHyparquetSchema( for (const field of expectedSchema.fields) { const actual = hyparquetColumns.get(field.name); assert.ok(actual, `Column "${field.name}" missing in hyparquet schema`); + if (!actual) throw new Error(`Column "${field.name}" missing in hyparquet schema`); assert.strictEqual(actual.repetition_type, field.repetition_type, `Repetition mismatch for column "${field.name}"`); @@ -48,21 +46,9 @@ describe('Parquet Schema Emitter & Validator', () => { const mockHyparquetTree = { element: { name: 'railway_line', num_children: 2 }, children: [ + { element: { name: 'id', type: 'BYTE_ARRAY', repetition_type: 'REQUIRED', logical_type: { type: 'STRING' } } }, { - element: { - name: 'id', - type: 'BYTE_ARRAY', - repetition_type: 'REQUIRED', - logical_type: { type: 'STRING' }, - }, - }, - { - element: { - name: 'route', - type: 'BYTE_ARRAY', - repetition_type: 'OPTIONAL', - logical_type: { type: 'STRING' }, - }, + element: { name: 'route', type: 'BYTE_ARRAY', repetition_type: 'OPTIONAL', logical_type: { type: 'STRING' } }, }, ], }; @@ -71,18 +57,8 @@ describe('Parquet Schema Emitter & Validator', () => { type: 'message', name: 'railway_line', fields: [ - { - name: 'id', - repetition_type: 'REQUIRED' as const, - type: 'BYTE_ARRAY', - logical_type: 'STRING', - }, - { - name: 'route', - repetition_type: 'OPTIONAL' as const, - type: 'BYTE_ARRAY', - logical_type: 'STRING', - }, + { name: 'id', repetition_type: 'REQUIRED' as const, type: 'BYTE_ARRAY', logical_type: 'STRING' }, + { name: 'route', repetition_type: 'OPTIONAL' as const, type: 'BYTE_ARRAY', logical_type: 'STRING' }, ], }; @@ -93,14 +69,7 @@ describe('Parquet Schema Emitter & Validator', () => { const mockHyparquetTree = { element: { name: 'railway_line', num_children: 1 }, children: [ - { - element: { - name: 'id', - type: 'BYTE_ARRAY', - repetition_type: 'REQUIRED', - logical_type: { type: 'STRING' }, - }, - }, + { element: { name: 'id', type: 'BYTE_ARRAY', repetition_type: 'REQUIRED', logical_type: { type: 'STRING' } } }, ], }; @@ -108,18 +77,8 @@ describe('Parquet Schema Emitter & Validator', () => { type: 'message', name: 'railway_line', fields: [ - { - name: 'id', - repetition_type: 'REQUIRED' as const, - type: 'BYTE_ARRAY', - logical_type: 'STRING', - }, - { - name: 'route', - repetition_type: 'OPTIONAL' as const, - type: 'BYTE_ARRAY', - logical_type: 'STRING', - }, + { name: 'id', repetition_type: 'REQUIRED' as const, type: 'BYTE_ARRAY', logical_type: 'STRING' }, + { name: 'route', repetition_type: 'OPTIONAL' as const, type: 'BYTE_ARRAY', logical_type: 'STRING' }, ], }; diff --git a/packages/typespec-emitter/src/parquet.ts b/packages/typespec-emitter/src/parquet.ts index 61c1e53ff..ed0b2f45f 100644 --- a/packages/typespec-emitter/src/parquet.ts +++ b/packages/typespec-emitter/src/parquet.ts @@ -82,13 +82,7 @@ function getParquetFields(model: Model): ParquetField[] { name: fieldName, repetition_type: repetition, logical_type: 'LIST', - fields: [ - { - name: 'list', - repetition_type: 'REPEATED', - fields: [itemField], - }, - ], + fields: [{ name: 'list', repetition_type: 'REPEATED', fields: [itemField] }], }); } else if ( targetType.kind === 'Model' && @@ -96,17 +90,10 @@ function getParquetFields(model: Model): ParquetField[] { targetType.name !== 'Record' && targetType.properties.size > 0 ) { - fields.push({ - name: fieldName, - repetition_type: repetition, - fields: getParquetFields(targetType), - }); + fields.push({ name: fieldName, repetition_type: repetition, fields: getParquetFields(targetType) }); } else { const mapped = mapTypeSpecToParquet(targetType); - const field: ParquetField = { - name: fieldName, - repetition_type: repetition, - }; + const field: ParquetField = { name: fieldName, repetition_type: repetition }; if (mapped.type) field.type = mapped.type; if (mapped.logical_type) field.logical_type = mapped.logical_type; fields.push(field); @@ -121,15 +108,8 @@ export async function emitParquetSchema(program: Program, outputDir: string, mod continue; } const tableName = toSnakeCase(name); - const schema = { - type: 'message', - name: tableName, - fields: getParquetFields(model), - }; + const schema = { type: 'message', name: tableName, fields: getParquetFields(model) }; const schemaFile = resolvePath(outputDir, `${tableName}.json`); - await emitFile(program, { - path: schemaFile, - content: JSON.stringify(schema, null, 2) + '\n', - }); + await emitFile(program, { path: schemaFile, content: JSON.stringify(schema, null, 2) + '\n' }); } } diff --git a/packages/typespec-emitter/src/pydantic.ts b/packages/typespec-emitter/src/pydantic.ts index e92310b20..8e6c75733 100644 --- a/packages/typespec-emitter/src/pydantic.ts +++ b/packages/typespec-emitter/src/pydantic.ts @@ -13,8 +13,5 @@ export async function emitPydanticModels(program: Program, outputFile: string, m } code += `class ${toPascalCase(name)}:\n pass\n\n`; } - await emitFile(program, { - path: outputFile, - content: code, - }); + await emitFile(program, { path: outputFile, content: code }); } diff --git a/packages/typespec-emitter/src/typescript.ts b/packages/typespec-emitter/src/typescript.ts index c01c5b8aa..80f4551af 100644 --- a/packages/typespec-emitter/src/typescript.ts +++ b/packages/typespec-emitter/src/typescript.ts @@ -176,8 +176,5 @@ export async function emitTypeScript( code += '}\n\n'; } - await emitFile(program, { - path: outputFile, - content: code, - }); + await emitFile(program, { path: outputFile, content: code }); } diff --git a/packages/typespec-emitter/src/typespec-json-schema.d.ts b/packages/typespec-emitter/src/typespec-json-schema.d.ts new file mode 100644 index 000000000..00472d0d8 --- /dev/null +++ b/packages/typespec-emitter/src/typespec-json-schema.d.ts @@ -0,0 +1,7 @@ +import type { TypeEmitter } from '@typespec/asset-emitter'; + +declare module '@typespec/json-schema' { + export class JsonSchemaEmitter extends TypeEmitter { + sourceFile(sourceFile: any): any; + } +} diff --git a/packages/typespec-emitter/tsconfig.json b/packages/typespec-emitter/tsconfig.json index e4aabe31e..7100db621 100644 --- a/packages/typespec-emitter/tsconfig.json +++ b/packages/typespec-emitter/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "rootDir": "./src", - "outDir": "./build/" - }, + "compilerOptions": { "rootDir": "./src", "outDir": "./build/", "types": ["node"] }, "include": ["src/"] } diff --git a/schema/next/airport.json b/schema/release=v0.3/airport.json similarity index 98% rename from schema/next/airport.json rename to schema/release=v0.3/airport.json index def36f581..29d2f3046 100644 --- a/schema/next/airport.json +++ b/schema/release=v0.3/airport.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/airport", + "$id": "airport_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/bridge_line.json b/schema/release=v0.3/bridge_line.json similarity index 98% rename from schema/next/bridge_line.json rename to schema/release=v0.3/bridge_line.json index f40ed9d15..10ef51666 100644 --- a/schema/next/bridge_line.json +++ b/schema/release=v0.3/bridge_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/bridge_line", + "$id": "bridge_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/building.json b/schema/release=v0.3/building.json similarity index 99% rename from schema/building.json rename to schema/release=v0.3/building.json index 299de6099..254aeea2e 100644 --- a/schema/building.json +++ b/schema/release=v0.3/building.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "building", + "$id": "building_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/building_point.json b/schema/release=v0.3/building_point.json similarity index 98% rename from schema/building_point.json rename to schema/release=v0.3/building_point.json index d67e3323b..c49496e1c 100644 --- a/schema/building_point.json +++ b/schema/release=v0.3/building_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "building_point", + "$id": "building_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/coastline.json b/schema/release=v0.3/coastline.json similarity index 98% rename from schema/coastline.json rename to schema/release=v0.3/coastline.json index ddbf684ba..428cbac47 100644 --- a/schema/coastline.json +++ b/schema/release=v0.3/coastline.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "coastline", + "$id": "coastline_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/contour.json b/schema/release=v0.3/contour.json similarity index 98% rename from schema/contour.json rename to schema/release=v0.3/contour.json index 9764fdf73..8ff35c143 100644 --- a/schema/contour.json +++ b/schema/release=v0.3/contour.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "contour", + "$id": "contour_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/descriptive_text.json b/schema/release=v0.3/descriptive_text.json similarity index 98% rename from schema/next/descriptive_text.json rename to schema/release=v0.3/descriptive_text.json index 12d3ad563..3038d6e81 100644 --- a/schema/next/descriptive_text.json +++ b/schema/release=v0.3/descriptive_text.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/descriptive_text", + "$id": "descriptive_text_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/fence_line.json b/schema/release=v0.3/fence_line.json similarity index 98% rename from schema/fence_line.json rename to schema/release=v0.3/fence_line.json index 07f00dc7a..9a2ebeee1 100644 --- a/schema/fence_line.json +++ b/schema/release=v0.3/fence_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "fence_line", + "$id": "fence_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/ferry_line.json b/schema/release=v0.3/ferry_line.json similarity index 98% rename from schema/next/ferry_line.json rename to schema/release=v0.3/ferry_line.json index 753dab9e5..3a15f36e1 100644 --- a/schema/next/ferry_line.json +++ b/schema/release=v0.3/ferry_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/ferry_line", + "$id": "ferry_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/geographic_name.json b/schema/release=v0.3/geographic_name.json similarity index 98% rename from schema/next/geographic_name.json rename to schema/release=v0.3/geographic_name.json index ade96f640..e0deeec8e 100644 --- a/schema/next/geographic_name.json +++ b/schema/release=v0.3/geographic_name.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/geographic_name", + "$id": "geographic_name_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/island.json b/schema/release=v0.3/island.json similarity index 98% rename from schema/island.json rename to schema/release=v0.3/island.json index fc34b5077..a108f6923 100644 --- a/schema/island.json +++ b/schema/release=v0.3/island.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "island", + "$id": "island_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/landcover.json b/schema/release=v0.3/landcover.json similarity index 98% rename from schema/next/landcover.json rename to schema/release=v0.3/landcover.json index f6a8204f7..fb1ed6777 100644 --- a/schema/next/landcover.json +++ b/schema/release=v0.3/landcover.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/landcover", + "$id": "landcover_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/landcover_line.json b/schema/release=v0.3/landcover_line.json similarity index 97% rename from schema/next/landcover_line.json rename to schema/release=v0.3/landcover_line.json index 011b7bd49..855292ef6 100644 --- a/schema/next/landcover_line.json +++ b/schema/release=v0.3/landcover_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/landcover_line", + "$id": "landcover_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/landcover_point.json b/schema/release=v0.3/landcover_point.json similarity index 99% rename from schema/landcover_point.json rename to schema/release=v0.3/landcover_point.json index 3c538855b..fbe1a15db 100644 --- a/schema/landcover_point.json +++ b/schema/release=v0.3/landcover_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_point", + "$id": "landcover_point_v0.3", "oneOf": [{ "$ref": "#/$defs/rock_outcrop" }, { "$ref": "#/$defs/landcover_point_core_types" }], "$defs": { "rock_outcrop": { diff --git a/schema/landuse.json b/schema/release=v0.3/landuse.json similarity index 99% rename from schema/landuse.json rename to schema/release=v0.3/landuse.json index 99800b2a5..d6c3293af 100644 --- a/schema/landuse.json +++ b/schema/release=v0.3/landuse.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse", + "$id": "landuse_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/landuse_line.json b/schema/release=v0.3/landuse_line.json similarity index 98% rename from schema/landuse_line.json rename to schema/release=v0.3/landuse_line.json index c9249d1d0..9c1f3d175 100644 --- a/schema/landuse_line.json +++ b/schema/release=v0.3/landuse_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_line", + "$id": "landuse_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/landuse_point.json b/schema/release=v0.3/landuse_point.json similarity index 98% rename from schema/next/landuse_point.json rename to schema/release=v0.3/landuse_point.json index 5725e82e7..1af6e7592 100644 --- a/schema/next/landuse_point.json +++ b/schema/release=v0.3/landuse_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/landuse_point", + "$id": "landuse_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/marine.json b/schema/release=v0.3/marine.json similarity index 98% rename from schema/next/marine.json rename to schema/release=v0.3/marine.json index 0736ced5d..06a275109 100644 --- a/schema/next/marine.json +++ b/schema/release=v0.3/marine.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/marine", + "$id": "marine_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/marine_point.json b/schema/release=v0.3/marine_point.json similarity index 98% rename from schema/marine_point.json rename to schema/release=v0.3/marine_point.json index d58082509..be86a04ad 100644 --- a/schema/marine_point.json +++ b/schema/release=v0.3/marine_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "marine_point", + "$id": "marine_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_carto_symbol.json b/schema/release=v0.3/nztopo50_carto_symbol.json similarity index 98% rename from schema/next/nztopo50_carto_symbol.json rename to schema/release=v0.3/nztopo50_carto_symbol.json index ece26e2a1..ab27e4c63 100644 --- a/schema/next/nztopo50_carto_symbol.json +++ b/schema/release=v0.3/nztopo50_carto_symbol.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_carto_symbol", + "$id": "nztopo50_carto_symbol_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_carto_text.json b/schema/release=v0.3/nztopo50_carto_text.json similarity index 99% rename from schema/nztopo50_carto_text.json rename to schema/release=v0.3/nztopo50_carto_text.json index 0e00f2c79..5e6819da3 100644 --- a/schema/nztopo50_carto_text.json +++ b/schema/release=v0.3/nztopo50_carto_text.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_carto_text", + "$id": "nztopo50_carto_text_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_coastline_island.json b/schema/release=v0.3/nztopo50_coastline_island.json similarity index 97% rename from schema/next/nztopo50_coastline_island.json rename to schema/release=v0.3/nztopo50_coastline_island.json index 60b1729ba..139f0f061 100644 --- a/schema/next/nztopo50_coastline_island.json +++ b/schema/release=v0.3/nztopo50_coastline_island.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_coastline_island", + "$id": "nztopo50_coastline_island_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_dms_grid.json b/schema/release=v0.3/nztopo50_dms_grid.json similarity index 97% rename from schema/nztopo50_dms_grid.json rename to schema/release=v0.3/nztopo50_dms_grid.json index eaf8bcb60..673244f16 100644 --- a/schema/nztopo50_dms_grid.json +++ b/schema/release=v0.3/nztopo50_dms_grid.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_dms_grid", + "$id": "nztopo50_dms_grid_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_grid.json b/schema/release=v0.3/nztopo50_grid.json similarity index 97% rename from schema/nztopo50_grid.json rename to schema/release=v0.3/nztopo50_grid.json index 102cac884..78e574581 100644 --- a/schema/nztopo50_grid.json +++ b/schema/release=v0.3/nztopo50_grid.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_grid", + "$id": "nztopo50_grid_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_ice_contour.json b/schema/release=v0.3/nztopo50_ice_contour.json similarity index 98% rename from schema/next/nztopo50_ice_contour.json rename to schema/release=v0.3/nztopo50_ice_contour.json index 5605ad315..65f24080c 100644 --- a/schema/next/nztopo50_ice_contour.json +++ b/schema/release=v0.3/nztopo50_ice_contour.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_ice_contour", + "$id": "nztopo50_ice_contour_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_map_sheet.json b/schema/release=v0.3/nztopo50_map_sheet.json similarity index 98% rename from schema/next/nztopo50_map_sheet.json rename to schema/release=v0.3/nztopo50_map_sheet.json index ad35d4dd3..7203c18b4 100644 --- a/schema/next/nztopo50_map_sheet.json +++ b/schema/release=v0.3/nztopo50_map_sheet.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_map_sheet", + "$id": "nztopo50_map_sheet_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_rock_line.json b/schema/release=v0.3/nztopo50_rock_line.json similarity index 98% rename from schema/nztopo50_rock_line.json rename to schema/release=v0.3/nztopo50_rock_line.json index b66c4ad03..179e7a6c0 100644 --- a/schema/nztopo50_rock_line.json +++ b/schema/release=v0.3/nztopo50_rock_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_rock_line", + "$id": "nztopo50_rock_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_sea_polygon.json b/schema/release=v0.3/nztopo50_sea_polygon.json similarity index 97% rename from schema/next/nztopo50_sea_polygon.json rename to schema/release=v0.3/nztopo50_sea_polygon.json index e739d63f7..0e4ec1ce8 100644 --- a/schema/next/nztopo50_sea_polygon.json +++ b/schema/release=v0.3/nztopo50_sea_polygon.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_sea_polygon", + "$id": "nztopo50_sea_polygon_v0.3", "type": "object", "properties": { "id": { "type": "string" }, diff --git a/schema/place_point.json b/schema/release=v0.3/place_point.json similarity index 98% rename from schema/place_point.json rename to schema/release=v0.3/place_point.json index 4a14e041e..3433c68f9 100644 --- a/schema/place_point.json +++ b/schema/release=v0.3/place_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "place_point", + "$id": "place_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/railway_line.json b/schema/release=v0.3/railway_line.json similarity index 98% rename from schema/railway_line.json rename to schema/release=v0.3/railway_line.json index 7e5678dd9..c88935eab 100644 --- a/schema/railway_line.json +++ b/schema/release=v0.3/railway_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "railway_line", + "$id": "railway_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/railway_point.json b/schema/release=v0.3/railway_point.json similarity index 98% rename from schema/railway_point.json rename to schema/release=v0.3/railway_point.json index 9174437ea..ac1604ecd 100644 --- a/schema/railway_point.json +++ b/schema/release=v0.3/railway_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "railway_point", + "$id": "railway_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/relief.json b/schema/release=v0.3/relief.json similarity index 98% rename from schema/relief.json rename to schema/release=v0.3/relief.json index 3f53dfb3b..226ad1e55 100644 --- a/schema/relief.json +++ b/schema/release=v0.3/relief.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief", + "$id": "relief_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/relief_line.json b/schema/release=v0.3/relief_line.json similarity index 98% rename from schema/relief_line.json rename to schema/release=v0.3/relief_line.json index 7c7d8bc50..5a19ba22d 100644 --- a/schema/relief_line.json +++ b/schema/release=v0.3/relief_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_line", + "$id": "relief_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/relief_point.json b/schema/release=v0.3/relief_point.json similarity index 98% rename from schema/relief_point.json rename to schema/release=v0.3/relief_point.json index bb15b8471..43a443992 100644 --- a/schema/relief_point.json +++ b/schema/release=v0.3/relief_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_point", + "$id": "relief_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/residential_area.json b/schema/release=v0.3/residential_area.json similarity index 97% rename from schema/residential_area.json rename to schema/release=v0.3/residential_area.json index 2ab506410..1bf93fc53 100644 --- a/schema/residential_area.json +++ b/schema/release=v0.3/residential_area.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "residential_area", + "$id": "residential_area_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/road_line.json b/schema/release=v0.3/road_line.json similarity index 98% rename from schema/road_line.json rename to schema/release=v0.3/road_line.json index c2b15da08..45a699b9e 100644 --- a/schema/road_line.json +++ b/schema/release=v0.3/road_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "road_line", + "$id": "road_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/runway.json b/schema/release=v0.3/runway.json similarity index 98% rename from schema/runway.json rename to schema/release=v0.3/runway.json index ff6bf0989..bd6607e35 100644 --- a/schema/runway.json +++ b/schema/release=v0.3/runway.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "runway", + "$id": "runway_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/structure.json b/schema/release=v0.3/structure.json similarity index 99% rename from schema/next/structure.json rename to schema/release=v0.3/structure.json index 720763c12..6df10de6b 100644 --- a/schema/next/structure.json +++ b/schema/release=v0.3/structure.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/structure", + "$id": "structure_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/structure_line.json b/schema/release=v0.3/structure_line.json similarity index 99% rename from schema/structure_line.json rename to schema/release=v0.3/structure_line.json index 31fa4ad38..dfb0d6900 100644 --- a/schema/structure_line.json +++ b/schema/release=v0.3/structure_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_line", + "$id": "structure_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/structure_point.json b/schema/release=v0.3/structure_point.json similarity index 99% rename from schema/next/structure_point.json rename to schema/release=v0.3/structure_point.json index 510666a1f..2799d0e90 100644 --- a/schema/next/structure_point.json +++ b/schema/release=v0.3/structure_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/structure_point", + "$id": "structure_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/track_line.json b/schema/release=v0.3/track_line.json similarity index 98% rename from schema/track_line.json rename to schema/release=v0.3/track_line.json index 167acabd7..06800ca6d 100644 --- a/schema/track_line.json +++ b/schema/release=v0.3/track_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "track_line", + "$id": "track_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/transport_point.json b/schema/release=v0.3/transport_point.json similarity index 98% rename from schema/transport_point.json rename to schema/release=v0.3/transport_point.json index 41060826b..c9302c16f 100644 --- a/schema/transport_point.json +++ b/schema/release=v0.3/transport_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "transport_point", + "$id": "transport_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/trig_point.json b/schema/release=v0.3/trig_point.json similarity index 98% rename from schema/trig_point.json rename to schema/release=v0.3/trig_point.json index bfd1387b3..ce8607c0e 100644 --- a/schema/trig_point.json +++ b/schema/release=v0.3/trig_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "trig_point", + "$id": "trig_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/tunnel_line.json b/schema/release=v0.3/tunnel_line.json similarity index 98% rename from schema/tunnel_line.json rename to schema/release=v0.3/tunnel_line.json index 8053d97ec..84fa68336 100644 --- a/schema/tunnel_line.json +++ b/schema/release=v0.3/tunnel_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "tunnel_line", + "$id": "tunnel_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/utility_line.json b/schema/release=v0.3/utility_line.json similarity index 98% rename from schema/utility_line.json rename to schema/release=v0.3/utility_line.json index a011f688b..163675f1c 100644 --- a/schema/utility_line.json +++ b/schema/release=v0.3/utility_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "utility_line", + "$id": "utility_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/utility_point.json b/schema/release=v0.3/utility_point.json similarity index 98% rename from schema/next/utility_point.json rename to schema/release=v0.3/utility_point.json index 6d2dd4655..75d191c23 100644 --- a/schema/next/utility_point.json +++ b/schema/release=v0.3/utility_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/utility_point", + "$id": "utility_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/vegetation.json b/schema/release=v0.3/vegetation.json similarity index 98% rename from schema/next/vegetation.json rename to schema/release=v0.3/vegetation.json index 2d51876a7..099c899bf 100644 --- a/schema/next/vegetation.json +++ b/schema/release=v0.3/vegetation.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/vegetation", + "$id": "vegetation_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/vegetation_line.json b/schema/release=v0.3/vegetation_line.json similarity index 97% rename from schema/next/vegetation_line.json rename to schema/release=v0.3/vegetation_line.json index 53b173658..9fb15c621 100644 --- a/schema/next/vegetation_line.json +++ b/schema/release=v0.3/vegetation_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/vegetation_line", + "$id": "vegetation_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/vegetation_point.json b/schema/release=v0.3/vegetation_point.json similarity index 97% rename from schema/vegetation_point.json rename to schema/release=v0.3/vegetation_point.json index e88ec27bd..9646b4339 100644 --- a/schema/vegetation_point.json +++ b/schema/release=v0.3/vegetation_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_point", + "$id": "vegetation_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/water.json b/schema/release=v0.3/water.json similarity index 99% rename from schema/water.json rename to schema/release=v0.3/water.json index 62fa2b8c3..e161f2771 100644 --- a/schema/water.json +++ b/schema/release=v0.3/water.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water", + "$id": "water_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/water_line.json b/schema/release=v0.3/water_line.json similarity index 98% rename from schema/water_line.json rename to schema/release=v0.3/water_line.json index b4ca572ff..1356818dd 100644 --- a/schema/water_line.json +++ b/schema/release=v0.3/water_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_line", + "$id": "water_line_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/water_point.json b/schema/release=v0.3/water_point.json similarity index 98% rename from schema/next/water_point.json rename to schema/release=v0.3/water_point.json index f65666cf6..82a300d76 100644 --- a/schema/next/water_point.json +++ b/schema/release=v0.3/water_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/water_point", + "$id": "water_point_v0.3", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/airport.json b/schema/release=v0.4/airport.json similarity index 98% rename from schema/airport.json rename to schema/release=v0.4/airport.json index 6fe9867f7..0715c83c4 100644 --- a/schema/airport.json +++ b/schema/release=v0.4/airport.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "airport", + "$id": "airport_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/bridge_line.json b/schema/release=v0.4/bridge_line.json similarity index 98% rename from schema/bridge_line.json rename to schema/release=v0.4/bridge_line.json index ab2f16dca..171b45582 100644 --- a/schema/bridge_line.json +++ b/schema/release=v0.4/bridge_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "bridge_line", + "$id": "bridge_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/building.json b/schema/release=v0.4/building.json similarity index 99% rename from schema/next/building.json rename to schema/release=v0.4/building.json index 5c11e89ea..a38a238b5 100644 --- a/schema/next/building.json +++ b/schema/release=v0.4/building.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/building", + "$id": "building_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/building_point.json b/schema/release=v0.4/building_point.json similarity index 98% rename from schema/next/building_point.json rename to schema/release=v0.4/building_point.json index 3f0514e14..3ab6772ce 100644 --- a/schema/next/building_point.json +++ b/schema/release=v0.4/building_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/building_point", + "$id": "building_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/coastline.json b/schema/release=v0.4/coastline.json similarity index 98% rename from schema/next/coastline.json rename to schema/release=v0.4/coastline.json index 17c3f4599..beab88ccf 100644 --- a/schema/next/coastline.json +++ b/schema/release=v0.4/coastline.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/coastline", + "$id": "coastline_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/contour.json b/schema/release=v0.4/contour.json similarity index 98% rename from schema/next/contour.json rename to schema/release=v0.4/contour.json index 92a7c2510..efb9c9a17 100644 --- a/schema/next/contour.json +++ b/schema/release=v0.4/contour.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/contour", + "$id": "contour_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/descriptive_text.json b/schema/release=v0.4/descriptive_text.json similarity index 98% rename from schema/descriptive_text.json rename to schema/release=v0.4/descriptive_text.json index 9f52d3132..6c21648d4 100644 --- a/schema/descriptive_text.json +++ b/schema/release=v0.4/descriptive_text.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "descriptive_text", + "$id": "descriptive_text_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/fence_line.json b/schema/release=v0.4/fence_line.json similarity index 98% rename from schema/next/fence_line.json rename to schema/release=v0.4/fence_line.json index bf02859d3..99c7b7dea 100644 --- a/schema/next/fence_line.json +++ b/schema/release=v0.4/fence_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/fence_line", + "$id": "fence_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/ferry_line.json b/schema/release=v0.4/ferry_line.json similarity index 98% rename from schema/ferry_line.json rename to schema/release=v0.4/ferry_line.json index 7d50113cf..11b186643 100644 --- a/schema/ferry_line.json +++ b/schema/release=v0.4/ferry_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "ferry_line", + "$id": "ferry_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/geographic_name.json b/schema/release=v0.4/geographic_name.json similarity index 98% rename from schema/geographic_name.json rename to schema/release=v0.4/geographic_name.json index a83d44082..88836900b 100644 --- a/schema/geographic_name.json +++ b/schema/release=v0.4/geographic_name.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "geographic_name", + "$id": "geographic_name_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/island.json b/schema/release=v0.4/island.json similarity index 98% rename from schema/next/island.json rename to schema/release=v0.4/island.json index aa347cbeb..67fa59c84 100644 --- a/schema/next/island.json +++ b/schema/release=v0.4/island.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/island", + "$id": "island_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/landcover.json b/schema/release=v0.4/landcover.json similarity index 98% rename from schema/landcover.json rename to schema/release=v0.4/landcover.json index d48f9940a..37e579eea 100644 --- a/schema/landcover.json +++ b/schema/release=v0.4/landcover.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover", + "$id": "landcover_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/landcover_line.json b/schema/release=v0.4/landcover_line.json similarity index 97% rename from schema/landcover_line.json rename to schema/release=v0.4/landcover_line.json index 74266f5d3..7e35e9536 100644 --- a/schema/landcover_line.json +++ b/schema/release=v0.4/landcover_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_line", + "$id": "landcover_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/landcover_point.json b/schema/release=v0.4/landcover_point.json similarity index 99% rename from schema/next/landcover_point.json rename to schema/release=v0.4/landcover_point.json index 2e63a98a7..bd3da4a24 100644 --- a/schema/next/landcover_point.json +++ b/schema/release=v0.4/landcover_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/landcover_point", + "$id": "landcover_point_v0.4", "oneOf": [{ "$ref": "#/$defs/rock_outcrop" }, { "$ref": "#/$defs/landcover_point_core_types" }], "$defs": { "rock_outcrop": { diff --git a/schema/next/landuse.json b/schema/release=v0.4/landuse.json similarity index 99% rename from schema/next/landuse.json rename to schema/release=v0.4/landuse.json index f1ca15d56..85150278a 100644 --- a/schema/next/landuse.json +++ b/schema/release=v0.4/landuse.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/landuse", + "$id": "landuse_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/landuse_line.json b/schema/release=v0.4/landuse_line.json similarity index 98% rename from schema/next/landuse_line.json rename to schema/release=v0.4/landuse_line.json index 9295e5850..423d55682 100644 --- a/schema/next/landuse_line.json +++ b/schema/release=v0.4/landuse_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/landuse_line", + "$id": "landuse_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/landuse_point.json b/schema/release=v0.4/landuse_point.json similarity index 98% rename from schema/landuse_point.json rename to schema/release=v0.4/landuse_point.json index dd5db5169..16319c194 100644 --- a/schema/landuse_point.json +++ b/schema/release=v0.4/landuse_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_point", + "$id": "landuse_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/marine.json b/schema/release=v0.4/marine.json similarity index 98% rename from schema/marine.json rename to schema/release=v0.4/marine.json index 50a8b8d31..5ec9d8f5e 100644 --- a/schema/marine.json +++ b/schema/release=v0.4/marine.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "marine", + "$id": "marine_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/marine_point.json b/schema/release=v0.4/marine_point.json similarity index 98% rename from schema/next/marine_point.json rename to schema/release=v0.4/marine_point.json index 0181ce11b..b1c513331 100644 --- a/schema/next/marine_point.json +++ b/schema/release=v0.4/marine_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/marine_point", + "$id": "marine_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_carto_symbol.json b/schema/release=v0.4/nztopo50_carto_symbol.json similarity index 98% rename from schema/nztopo50_carto_symbol.json rename to schema/release=v0.4/nztopo50_carto_symbol.json index 949858e75..7eb9c5c3f 100644 --- a/schema/nztopo50_carto_symbol.json +++ b/schema/release=v0.4/nztopo50_carto_symbol.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_carto_symbol", + "$id": "nztopo50_carto_symbol_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_carto_text.json b/schema/release=v0.4/nztopo50_carto_text.json similarity index 99% rename from schema/next/nztopo50_carto_text.json rename to schema/release=v0.4/nztopo50_carto_text.json index a98df760f..c84bc2a32 100644 --- a/schema/next/nztopo50_carto_text.json +++ b/schema/release=v0.4/nztopo50_carto_text.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_carto_text", + "$id": "nztopo50_carto_text_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_coastline_island.json b/schema/release=v0.4/nztopo50_coastline_island.json similarity index 97% rename from schema/nztopo50_coastline_island.json rename to schema/release=v0.4/nztopo50_coastline_island.json index 5a6e7ecc0..c116cf7ea 100644 --- a/schema/nztopo50_coastline_island.json +++ b/schema/release=v0.4/nztopo50_coastline_island.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_coastline_island", + "$id": "nztopo50_coastline_island_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_dms_grid.json b/schema/release=v0.4/nztopo50_dms_grid.json similarity index 97% rename from schema/next/nztopo50_dms_grid.json rename to schema/release=v0.4/nztopo50_dms_grid.json index 387a6caf9..f1fe24390 100644 --- a/schema/next/nztopo50_dms_grid.json +++ b/schema/release=v0.4/nztopo50_dms_grid.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_dms_grid", + "$id": "nztopo50_dms_grid_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_grid.json b/schema/release=v0.4/nztopo50_grid.json similarity index 97% rename from schema/next/nztopo50_grid.json rename to schema/release=v0.4/nztopo50_grid.json index 35a17a1f8..85366821d 100644 --- a/schema/next/nztopo50_grid.json +++ b/schema/release=v0.4/nztopo50_grid.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_grid", + "$id": "nztopo50_grid_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_ice_contour.json b/schema/release=v0.4/nztopo50_ice_contour.json similarity index 98% rename from schema/nztopo50_ice_contour.json rename to schema/release=v0.4/nztopo50_ice_contour.json index a7f4f90df..94fd7a2ac 100644 --- a/schema/nztopo50_ice_contour.json +++ b/schema/release=v0.4/nztopo50_ice_contour.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_ice_contour", + "$id": "nztopo50_ice_contour_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_map_sheet.json b/schema/release=v0.4/nztopo50_map_sheet.json similarity index 98% rename from schema/nztopo50_map_sheet.json rename to schema/release=v0.4/nztopo50_map_sheet.json index 24a1e0e69..6052e1d78 100644 --- a/schema/nztopo50_map_sheet.json +++ b/schema/release=v0.4/nztopo50_map_sheet.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_map_sheet", + "$id": "nztopo50_map_sheet_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/nztopo50_rock_line.json b/schema/release=v0.4/nztopo50_rock_line.json similarity index 98% rename from schema/next/nztopo50_rock_line.json rename to schema/release=v0.4/nztopo50_rock_line.json index ac0f1c827..2184e908c 100644 --- a/schema/next/nztopo50_rock_line.json +++ b/schema/release=v0.4/nztopo50_rock_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/nztopo50_rock_line", + "$id": "nztopo50_rock_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/nztopo50_sea_polygon.json b/schema/release=v0.4/nztopo50_sea_polygon.json similarity index 97% rename from schema/nztopo50_sea_polygon.json rename to schema/release=v0.4/nztopo50_sea_polygon.json index 750bdfa0d..2e53e293c 100644 --- a/schema/nztopo50_sea_polygon.json +++ b/schema/release=v0.4/nztopo50_sea_polygon.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_sea_polygon", + "$id": "nztopo50_sea_polygon_v0.4", "type": "object", "properties": { "id": { "type": "string" }, diff --git a/schema/next/place_point.json b/schema/release=v0.4/place_point.json similarity index 98% rename from schema/next/place_point.json rename to schema/release=v0.4/place_point.json index 8bbf4a93a..bed94db71 100644 --- a/schema/next/place_point.json +++ b/schema/release=v0.4/place_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/place_point", + "$id": "place_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/railway_line.json b/schema/release=v0.4/railway_line.json similarity index 98% rename from schema/next/railway_line.json rename to schema/release=v0.4/railway_line.json index 64a0a5be1..88d852f73 100644 --- a/schema/next/railway_line.json +++ b/schema/release=v0.4/railway_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/railway_line", + "$id": "railway_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/railway_point.json b/schema/release=v0.4/railway_point.json similarity index 98% rename from schema/next/railway_point.json rename to schema/release=v0.4/railway_point.json index f58a838e1..8fe707ed3 100644 --- a/schema/next/railway_point.json +++ b/schema/release=v0.4/railway_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/railway_point", + "$id": "railway_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/relief.json b/schema/release=v0.4/relief.json similarity index 98% rename from schema/next/relief.json rename to schema/release=v0.4/relief.json index a82c613db..2069a104e 100644 --- a/schema/next/relief.json +++ b/schema/release=v0.4/relief.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/relief", + "$id": "relief_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/relief_line.json b/schema/release=v0.4/relief_line.json similarity index 98% rename from schema/next/relief_line.json rename to schema/release=v0.4/relief_line.json index 2c94ad68a..27ca61c01 100644 --- a/schema/next/relief_line.json +++ b/schema/release=v0.4/relief_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/relief_line", + "$id": "relief_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/relief_point.json b/schema/release=v0.4/relief_point.json similarity index 98% rename from schema/next/relief_point.json rename to schema/release=v0.4/relief_point.json index 7e3830cc7..aa8763f62 100644 --- a/schema/next/relief_point.json +++ b/schema/release=v0.4/relief_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/relief_point", + "$id": "relief_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/residential_area.json b/schema/release=v0.4/residential_area.json similarity index 97% rename from schema/next/residential_area.json rename to schema/release=v0.4/residential_area.json index 112a8db42..12e9505f1 100644 --- a/schema/next/residential_area.json +++ b/schema/release=v0.4/residential_area.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/residential_area", + "$id": "residential_area_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/road_line.json b/schema/release=v0.4/road_line.json similarity index 98% rename from schema/next/road_line.json rename to schema/release=v0.4/road_line.json index 83df48eee..418c4c4e3 100644 --- a/schema/next/road_line.json +++ b/schema/release=v0.4/road_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/road_line", + "$id": "road_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/runway.json b/schema/release=v0.4/runway.json similarity index 98% rename from schema/next/runway.json rename to schema/release=v0.4/runway.json index 23327ccb8..5e4a77300 100644 --- a/schema/next/runway.json +++ b/schema/release=v0.4/runway.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/runway", + "$id": "runway_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/structure.json b/schema/release=v0.4/structure.json similarity index 99% rename from schema/structure.json rename to schema/release=v0.4/structure.json index e000e1935..463d2b578 100644 --- a/schema/structure.json +++ b/schema/release=v0.4/structure.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure", + "$id": "structure_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/structure_line.json b/schema/release=v0.4/structure_line.json similarity index 99% rename from schema/next/structure_line.json rename to schema/release=v0.4/structure_line.json index 415d361bb..e19b270a6 100644 --- a/schema/next/structure_line.json +++ b/schema/release=v0.4/structure_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/structure_line", + "$id": "structure_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/structure_point.json b/schema/release=v0.4/structure_point.json similarity index 99% rename from schema/structure_point.json rename to schema/release=v0.4/structure_point.json index d39baa5af..58cca21a4 100644 --- a/schema/structure_point.json +++ b/schema/release=v0.4/structure_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_point", + "$id": "structure_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/track_line.json b/schema/release=v0.4/track_line.json similarity index 98% rename from schema/next/track_line.json rename to schema/release=v0.4/track_line.json index b673a3dc3..0e9215440 100644 --- a/schema/next/track_line.json +++ b/schema/release=v0.4/track_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/track_line", + "$id": "track_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/transport_point.json b/schema/release=v0.4/transport_point.json similarity index 98% rename from schema/next/transport_point.json rename to schema/release=v0.4/transport_point.json index 5d3d7feb0..b33013272 100644 --- a/schema/next/transport_point.json +++ b/schema/release=v0.4/transport_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/transport_point", + "$id": "transport_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/trig_point.json b/schema/release=v0.4/trig_point.json similarity index 98% rename from schema/next/trig_point.json rename to schema/release=v0.4/trig_point.json index d791f7498..5f3093b0f 100644 --- a/schema/next/trig_point.json +++ b/schema/release=v0.4/trig_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/trig_point", + "$id": "trig_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/tunnel_line.json b/schema/release=v0.4/tunnel_line.json similarity index 98% rename from schema/next/tunnel_line.json rename to schema/release=v0.4/tunnel_line.json index 276dfd339..649104c32 100644 --- a/schema/next/tunnel_line.json +++ b/schema/release=v0.4/tunnel_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/tunnel_line", + "$id": "tunnel_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/utility_line.json b/schema/release=v0.4/utility_line.json similarity index 98% rename from schema/next/utility_line.json rename to schema/release=v0.4/utility_line.json index 55d32c8a4..9c4013597 100644 --- a/schema/next/utility_line.json +++ b/schema/release=v0.4/utility_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/utility_line", + "$id": "utility_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/utility_point.json b/schema/release=v0.4/utility_point.json similarity index 98% rename from schema/utility_point.json rename to schema/release=v0.4/utility_point.json index 9ebbc58ca..82710f42b 100644 --- a/schema/utility_point.json +++ b/schema/release=v0.4/utility_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "utility_point", + "$id": "utility_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/vegetation.json b/schema/release=v0.4/vegetation.json similarity index 98% rename from schema/vegetation.json rename to schema/release=v0.4/vegetation.json index 52e0a52fc..4287976b9 100644 --- a/schema/vegetation.json +++ b/schema/release=v0.4/vegetation.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation", + "$id": "vegetation_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/vegetation_line.json b/schema/release=v0.4/vegetation_line.json similarity index 97% rename from schema/vegetation_line.json rename to schema/release=v0.4/vegetation_line.json index fb4a6a15e..d751dee07 100644 --- a/schema/vegetation_line.json +++ b/schema/release=v0.4/vegetation_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_line", + "$id": "vegetation_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/vegetation_point.json b/schema/release=v0.4/vegetation_point.json similarity index 97% rename from schema/next/vegetation_point.json rename to schema/release=v0.4/vegetation_point.json index b7f5f727c..61e9d081b 100644 --- a/schema/next/vegetation_point.json +++ b/schema/release=v0.4/vegetation_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/vegetation_point", + "$id": "vegetation_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/water.json b/schema/release=v0.4/water.json similarity index 99% rename from schema/next/water.json rename to schema/release=v0.4/water.json index 237df6ef9..d2c42adba 100644 --- a/schema/next/water.json +++ b/schema/release=v0.4/water.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/water", + "$id": "water_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/next/water_line.json b/schema/release=v0.4/water_line.json similarity index 98% rename from schema/next/water_line.json rename to schema/release=v0.4/water_line.json index fca38df61..d3365fce5 100644 --- a/schema/next/water_line.json +++ b/schema/release=v0.4/water_line.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "next/water_line", + "$id": "water_line_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, diff --git a/schema/water_point.json b/schema/release=v0.4/water_point.json similarity index 98% rename from schema/water_point.json rename to schema/release=v0.4/water_point.json index efd66bcdf..07b990d78 100644 --- a/schema/water_point.json +++ b/schema/release=v0.4/water_point.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_point", + "$id": "water_point_v0.4", "type": "object", "properties": { "id": { "type": "string", "description": "UUIDv7 of the feature" }, From 005615d285f8fcdeeeca6d1f2e056f239591ab8a Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 16 Sep 2026 11:29:17 +1200 Subject: [PATCH 17/20] feat(schema): export versioned Parquet schemas and subfolder TypeScript types --- packages/schema/package.json | 12 + packages/schema/src/features/airport.tsp | 11 + .../schema/src/features/landuse_point.tsp | 1 + packages/schema/src/features/water.tsp | 1 + packages/schema/src/types/index.ts | 1625 +--------------- packages/schema/src/types/v0.3/index.ts | 1631 +++++++++++++++++ packages/schema/src/types/v0.4/index.ts | 1631 +++++++++++++++++ packages/schema/tspconfig.yaml | 3 +- packages/typespec-emitter/src/index.ts | 10 +- packages/typespec-emitter/src/parquet.ts | 124 +- packages/typespec-emitter/src/typescript.ts | 73 +- schema/release=v0.3/airport.json | 5 +- schema/release=v0.3/airport.parquet.json | 24 + schema/release=v0.3/bridge_line.parquet.json | 28 + schema/release=v0.3/building.parquet.json | 27 + .../release=v0.3/building_point.parquet.json | 28 + schema/release=v0.3/coastline.parquet.json | 25 + schema/release=v0.3/contour.parquet.json | 28 + .../descriptive_text.parquet.json | 26 + schema/release=v0.3/fence_line.parquet.json | 24 + schema/release=v0.3/ferry_line.parquet.json | 26 + .../release=v0.3/geographic_name.parquet.json | 27 + schema/release=v0.3/island.parquet.json | 26 + schema/release=v0.3/landcover.parquet.json | 25 + .../release=v0.3/landcover_line.parquet.json | 24 + .../release=v0.3/landcover_point.parquet.json | 28 + schema/release=v0.3/landuse.parquet.json | 28 + schema/release=v0.3/landuse_line.parquet.json | 26 + schema/release=v0.3/landuse_point.json | 1 + .../release=v0.3/landuse_point.parquet.json | 28 + schema/release=v0.3/marine.parquet.json | 26 + schema/release=v0.3/marine_point.parquet.json | 26 + .../nztopo50_carto_symbol.parquet.json | 25 + .../nztopo50_carto_text.parquet.json | 42 + .../nztopo50_coastline_island.parquet.json | 25 + .../nztopo50_dms_grid.parquet.json | 21 + .../release=v0.3/nztopo50_grid.parquet.json | 21 + .../nztopo50_ice_contour.parquet.json | 30 + .../nztopo50_map_sheet.parquet.json | 28 + .../nztopo50_rock_line.parquet.json | 26 + .../nztopo50_sea_polygon.parquet.json | 22 + schema/release=v0.3/place_point.parquet.json | 26 + schema/release=v0.3/railway_line.parquet.json | 29 + .../release=v0.3/railway_point.parquet.json | 25 + schema/release=v0.3/relief.parquet.json | 26 + schema/release=v0.3/relief_line.parquet.json | 27 + schema/release=v0.3/relief_point.parquet.json | 28 + .../residential_area.parquet.json | 25 + schema/release=v0.3/road_line.parquet.json | 33 + schema/release=v0.3/runway.parquet.json | 27 + schema/release=v0.3/structure.parquet.json | 30 + .../release=v0.3/structure_line.parquet.json | 28 + .../release=v0.3/structure_point.parquet.json | 30 + schema/release=v0.3/track_line.parquet.json | 28 + .../release=v0.3/transport_point.parquet.json | 25 + schema/release=v0.3/trig_point.parquet.json | 28 + schema/release=v0.3/tunnel_line.parquet.json | 28 + schema/release=v0.3/utility_line.parquet.json | 28 + .../release=v0.3/utility_point.parquet.json | 25 + schema/release=v0.3/vegetation.parquet.json | 25 + .../release=v0.3/vegetation_line.parquet.json | 24 + .../vegetation_point.parquet.json | 24 + schema/release=v0.3/water.json | 1 + schema/release=v0.3/water.parquet.json | 31 + schema/release=v0.3/water_line.parquet.json | 25 + schema/release=v0.3/water_point.parquet.json | 28 + schema/release=v0.4/airport.json | 5 +- schema/release=v0.4/airport.parquet.json | 24 + schema/release=v0.4/bridge_line.parquet.json | 28 + schema/release=v0.4/building.parquet.json | 27 + .../release=v0.4/building_point.parquet.json | 28 + schema/release=v0.4/coastline.parquet.json | 25 + schema/release=v0.4/contour.parquet.json | 28 + .../descriptive_text.parquet.json | 26 + schema/release=v0.4/fence_line.parquet.json | 24 + schema/release=v0.4/ferry_line.parquet.json | 26 + .../release=v0.4/geographic_name.parquet.json | 27 + schema/release=v0.4/island.parquet.json | 26 + schema/release=v0.4/landcover.parquet.json | 25 + .../release=v0.4/landcover_line.parquet.json | 24 + .../release=v0.4/landcover_point.parquet.json | 28 + schema/release=v0.4/landuse.parquet.json | 28 + schema/release=v0.4/landuse_line.parquet.json | 26 + schema/release=v0.4/landuse_point.json | 1 + .../release=v0.4/landuse_point.parquet.json | 28 + schema/release=v0.4/marine.parquet.json | 26 + schema/release=v0.4/marine_point.parquet.json | 26 + .../nztopo50_carto_symbol.parquet.json | 25 + .../nztopo50_carto_text.parquet.json | 42 + .../nztopo50_coastline_island.parquet.json | 25 + .../nztopo50_dms_grid.parquet.json | 21 + .../release=v0.4/nztopo50_grid.parquet.json | 21 + .../nztopo50_ice_contour.parquet.json | 30 + .../nztopo50_map_sheet.parquet.json | 28 + .../nztopo50_rock_line.parquet.json | 26 + .../nztopo50_sea_polygon.parquet.json | 22 + schema/release=v0.4/place_point.parquet.json | 26 + schema/release=v0.4/railway_line.parquet.json | 29 + .../release=v0.4/railway_point.parquet.json | 25 + schema/release=v0.4/relief.parquet.json | 26 + schema/release=v0.4/relief_line.parquet.json | 27 + schema/release=v0.4/relief_point.parquet.json | 28 + .../residential_area.parquet.json | 25 + schema/release=v0.4/road_line.parquet.json | 33 + schema/release=v0.4/runway.parquet.json | 27 + schema/release=v0.4/structure.parquet.json | 30 + .../release=v0.4/structure_line.parquet.json | 28 + .../release=v0.4/structure_point.parquet.json | 30 + schema/release=v0.4/track_line.parquet.json | 28 + .../release=v0.4/transport_point.parquet.json | 25 + schema/release=v0.4/trig_point.parquet.json | 28 + schema/release=v0.4/tunnel_line.parquet.json | 28 + schema/release=v0.4/utility_line.parquet.json | 28 + .../release=v0.4/utility_point.parquet.json | 25 + schema/release=v0.4/vegetation.parquet.json | 25 + .../release=v0.4/vegetation_line.parquet.json | 24 + .../vegetation_point.parquet.json | 24 + schema/release=v0.4/water.json | 1 + schema/release=v0.4/water.parquet.json | 31 + schema/release=v0.4/water_line.parquet.json | 25 + schema/release=v0.4/water_point.parquet.json | 28 + 121 files changed, 6278 insertions(+), 1644 deletions(-) create mode 100644 packages/schema/src/types/v0.3/index.ts create mode 100644 packages/schema/src/types/v0.4/index.ts create mode 100644 schema/release=v0.3/airport.parquet.json create mode 100644 schema/release=v0.3/bridge_line.parquet.json create mode 100644 schema/release=v0.3/building.parquet.json create mode 100644 schema/release=v0.3/building_point.parquet.json create mode 100644 schema/release=v0.3/coastline.parquet.json create mode 100644 schema/release=v0.3/contour.parquet.json create mode 100644 schema/release=v0.3/descriptive_text.parquet.json create mode 100644 schema/release=v0.3/fence_line.parquet.json create mode 100644 schema/release=v0.3/ferry_line.parquet.json create mode 100644 schema/release=v0.3/geographic_name.parquet.json create mode 100644 schema/release=v0.3/island.parquet.json create mode 100644 schema/release=v0.3/landcover.parquet.json create mode 100644 schema/release=v0.3/landcover_line.parquet.json create mode 100644 schema/release=v0.3/landcover_point.parquet.json create mode 100644 schema/release=v0.3/landuse.parquet.json create mode 100644 schema/release=v0.3/landuse_line.parquet.json create mode 100644 schema/release=v0.3/landuse_point.parquet.json create mode 100644 schema/release=v0.3/marine.parquet.json create mode 100644 schema/release=v0.3/marine_point.parquet.json create mode 100644 schema/release=v0.3/nztopo50_carto_symbol.parquet.json create mode 100644 schema/release=v0.3/nztopo50_carto_text.parquet.json create mode 100644 schema/release=v0.3/nztopo50_coastline_island.parquet.json create mode 100644 schema/release=v0.3/nztopo50_dms_grid.parquet.json create mode 100644 schema/release=v0.3/nztopo50_grid.parquet.json create mode 100644 schema/release=v0.3/nztopo50_ice_contour.parquet.json create mode 100644 schema/release=v0.3/nztopo50_map_sheet.parquet.json create mode 100644 schema/release=v0.3/nztopo50_rock_line.parquet.json create mode 100644 schema/release=v0.3/nztopo50_sea_polygon.parquet.json create mode 100644 schema/release=v0.3/place_point.parquet.json create mode 100644 schema/release=v0.3/railway_line.parquet.json create mode 100644 schema/release=v0.3/railway_point.parquet.json create mode 100644 schema/release=v0.3/relief.parquet.json create mode 100644 schema/release=v0.3/relief_line.parquet.json create mode 100644 schema/release=v0.3/relief_point.parquet.json create mode 100644 schema/release=v0.3/residential_area.parquet.json create mode 100644 schema/release=v0.3/road_line.parquet.json create mode 100644 schema/release=v0.3/runway.parquet.json create mode 100644 schema/release=v0.3/structure.parquet.json create mode 100644 schema/release=v0.3/structure_line.parquet.json create mode 100644 schema/release=v0.3/structure_point.parquet.json create mode 100644 schema/release=v0.3/track_line.parquet.json create mode 100644 schema/release=v0.3/transport_point.parquet.json create mode 100644 schema/release=v0.3/trig_point.parquet.json create mode 100644 schema/release=v0.3/tunnel_line.parquet.json create mode 100644 schema/release=v0.3/utility_line.parquet.json create mode 100644 schema/release=v0.3/utility_point.parquet.json create mode 100644 schema/release=v0.3/vegetation.parquet.json create mode 100644 schema/release=v0.3/vegetation_line.parquet.json create mode 100644 schema/release=v0.3/vegetation_point.parquet.json create mode 100644 schema/release=v0.3/water.parquet.json create mode 100644 schema/release=v0.3/water_line.parquet.json create mode 100644 schema/release=v0.3/water_point.parquet.json create mode 100644 schema/release=v0.4/airport.parquet.json create mode 100644 schema/release=v0.4/bridge_line.parquet.json create mode 100644 schema/release=v0.4/building.parquet.json create mode 100644 schema/release=v0.4/building_point.parquet.json create mode 100644 schema/release=v0.4/coastline.parquet.json create mode 100644 schema/release=v0.4/contour.parquet.json create mode 100644 schema/release=v0.4/descriptive_text.parquet.json create mode 100644 schema/release=v0.4/fence_line.parquet.json create mode 100644 schema/release=v0.4/ferry_line.parquet.json create mode 100644 schema/release=v0.4/geographic_name.parquet.json create mode 100644 schema/release=v0.4/island.parquet.json create mode 100644 schema/release=v0.4/landcover.parquet.json create mode 100644 schema/release=v0.4/landcover_line.parquet.json create mode 100644 schema/release=v0.4/landcover_point.parquet.json create mode 100644 schema/release=v0.4/landuse.parquet.json create mode 100644 schema/release=v0.4/landuse_line.parquet.json create mode 100644 schema/release=v0.4/landuse_point.parquet.json create mode 100644 schema/release=v0.4/marine.parquet.json create mode 100644 schema/release=v0.4/marine_point.parquet.json create mode 100644 schema/release=v0.4/nztopo50_carto_symbol.parquet.json create mode 100644 schema/release=v0.4/nztopo50_carto_text.parquet.json create mode 100644 schema/release=v0.4/nztopo50_coastline_island.parquet.json create mode 100644 schema/release=v0.4/nztopo50_dms_grid.parquet.json create mode 100644 schema/release=v0.4/nztopo50_grid.parquet.json create mode 100644 schema/release=v0.4/nztopo50_ice_contour.parquet.json create mode 100644 schema/release=v0.4/nztopo50_map_sheet.parquet.json create mode 100644 schema/release=v0.4/nztopo50_rock_line.parquet.json create mode 100644 schema/release=v0.4/nztopo50_sea_polygon.parquet.json create mode 100644 schema/release=v0.4/place_point.parquet.json create mode 100644 schema/release=v0.4/railway_line.parquet.json create mode 100644 schema/release=v0.4/railway_point.parquet.json create mode 100644 schema/release=v0.4/relief.parquet.json create mode 100644 schema/release=v0.4/relief_line.parquet.json create mode 100644 schema/release=v0.4/relief_point.parquet.json create mode 100644 schema/release=v0.4/residential_area.parquet.json create mode 100644 schema/release=v0.4/road_line.parquet.json create mode 100644 schema/release=v0.4/runway.parquet.json create mode 100644 schema/release=v0.4/structure.parquet.json create mode 100644 schema/release=v0.4/structure_line.parquet.json create mode 100644 schema/release=v0.4/structure_point.parquet.json create mode 100644 schema/release=v0.4/track_line.parquet.json create mode 100644 schema/release=v0.4/transport_point.parquet.json create mode 100644 schema/release=v0.4/trig_point.parquet.json create mode 100644 schema/release=v0.4/tunnel_line.parquet.json create mode 100644 schema/release=v0.4/utility_line.parquet.json create mode 100644 schema/release=v0.4/utility_point.parquet.json create mode 100644 schema/release=v0.4/vegetation.parquet.json create mode 100644 schema/release=v0.4/vegetation_line.parquet.json create mode 100644 schema/release=v0.4/vegetation_point.parquet.json create mode 100644 schema/release=v0.4/water.parquet.json create mode 100644 schema/release=v0.4/water_line.parquet.json create mode 100644 schema/release=v0.4/water_point.parquet.json diff --git a/packages/schema/package.json b/packages/schema/package.json index 18233bd5e..56b216b2d 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -11,6 +11,18 @@ "typespec": "./src/main.tsp", "types": "./src/types/index.ts", "default": "./src/types/index.ts" + }, + "./v0.3": { + "types": "./src/types/v0.3/index.ts", + "default": "./src/types/v0.3/index.ts" + }, + "./v0.4": { + "types": "./src/types/v0.4/index.ts", + "default": "./src/types/v0.4/index.ts" + }, + "./*": { + "types": "./src/types/*/index.ts", + "default": "./src/types/*/index.ts" } }, "engines": { diff --git a/packages/schema/src/features/airport.tsp b/packages/schema/src/features/airport.tsp index cc4723f56..4720d6cbe 100644 --- a/packages/schema/src/features/airport.tsp +++ b/packages/schema/src/features/airport.tsp @@ -1,15 +1,26 @@ import "@typespec/json-schema"; +import "@typespec/versioning"; import "./common.tsp"; +import "../version.tsp"; using TypeSpec.JsonSchema; +using TypeSpec.Versioning; namespace Topography; +/** + * A facility where aircraft can take off and land; + * usually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo + */ @jsonSchema("airport") @extension("additionalProperties", false) +@summary("NZ Topography Airport") model airport { ...TopographicFeature; + + @removed(Versions.v0_3) type: "airport"; + name: string | null; theme: Theme.Transport; ...TopographicMetadata; diff --git a/packages/schema/src/features/landuse_point.tsp b/packages/schema/src/features/landuse_point.tsp index 78e8c9d33..7e0eda438 100644 --- a/packages/schema/src/features/landuse_point.tsp +++ b/packages/schema/src/features/landuse_point.tsp @@ -8,6 +8,7 @@ namespace Topography; @jsonSchema("landuse_point") @extension("additionalProperties", false) +@summary("NZ Topography Land Use Point") model landuse_point { ...TopographicFeature; type: landuse_type; diff --git a/packages/schema/src/features/water.tsp b/packages/schema/src/features/water.tsp index a4ca3dec6..50b14e5d7 100644 --- a/packages/schema/src/features/water.tsp +++ b/packages/schema/src/features/water.tsp @@ -7,6 +7,7 @@ namespace Topography; @jsonSchema("water") @extension("additionalProperties", false) +@summary("NZ Topography Water") model water { ...TopographicFeature; type: water_type; diff --git a/packages/schema/src/types/index.ts b/packages/schema/src/types/index.ts index 88d65f87f..11044c882 100644 --- a/packages/schema/src/types/index.ts +++ b/packages/schema/src/types/index.ts @@ -1,1628 +1,11 @@ /** * This file was automatically generated by the TypeSpec TypeScript emitter. * Do not edit this file manually. - */ - -export type BridgeSubtype = 'foot_traffic' | 'train'; - -export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; - -export type BuildingStatus = 'derelict' | 'historic' | 'private'; - -export type BuildingSubtype = - | 'abattoir' - | 'camp' - | 'cement_works' - | 'church' - | 'energy_facility' - | 'factory' - | 'fertiliser_works' - | 'fire_lookout' - | 'forest_headquarters' - | 'gas_compound' - | 'greenhouse' - | 'gun_club' - | 'gun_emplacement' - | 'hall' - | 'homestead' - | 'hospital' - | 'hut' - | 'lodge' - | 'marae' - | 'mill' - | 'museum' - | 'observatory' - | 'polytechnic' - | 'power_generation' - | 'prison' - | 'private_hut' - | 'salt_works' - | 'school' - | 'shingle_works' - | 'shelter' - | 'silo' - | 'stamping_battery' - | 'substation' - | 'surf_club' - | 'university' - | 'visitor_centre' - | 'water_treatment_plant'; - -export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; - -export type CartoColour = '' | 'black' | 'process_blue' | 'warm_red'; - -export type CartoFont = '' | 'Nimbus Sans LINZ'; - -export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; - -export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; - -export type CartoSymbolType = - | 'contour_number' - | 'golf_course' - | 'highway_shield' - | 'mine_opencast' - | 'mine_training' - | 'mine_underground'; - -export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; - -export type CartoTextfont = - | 'ATTrium-Italic' - | 'ATTriumMou-Cond' - | 'ATTriumMou-CondBold' - | 'ATTriumMou-CondItalic' - | 'ATTriumMou-Italic' - | 'ATTriumMou-Regular' - | 'Courier Bold Oblique'; - -export type CompositionSubtype = 'coral' | 'limestone' | 'pumice' | 'rock'; - -export type ConstructionType = 'suspension' | 'swing' | 'trestle'; - -export type GridDirection = 'x' | 'y'; - -export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; - -export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; - -export type LanduseStatus = 'dangerous' | 'disused' | 'old'; - -export type LanduseSubtype = 'training' | 'opencast' | 'underground'; - -export type LanduseType = - | 'cemetery' - | 'cycle_track' - | 'dog_track' - | 'golf_course' - | 'gravel_pit' - | 'horse_track' - | 'landfill' - | 'mine' - | 'orchard' - | 'pumice_pit' - | 'quarry' - | 'racetrack' - | 'rifle_range' - | 'showground' - | 'sportsfield' - | 'vineyard' - | 'vehicle_track'; - -export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; - -export type PlaceType = 'cave' | 'grave' | 'historic_site' | 'monument' | 'pa'; - -export type RailwayStatus = 'disused'; - -export type RailwaySubtype = 'siding'; - -export type RailwayTrackType = 'single' | 'multiple'; - -export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; - -export type ReliefLineSubtype = 'causeway' | 'stopbank'; - -export type ReliefLineType = - | 'cliff_edge' - | 'cutting_edge' - | 'embankment' - | 'rapid' - | 'slip_edge' - | 'waterfall' - | 'waterfall_edge' - | 'seawall'; - -export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; - -export type RoadStatus = 'under_construction' | 'closed'; - -export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; - -export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; - -export type RunwayStatus = 'disused'; - -export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; - -export type RunwaySurface = 'grass' | 'sealed'; - -export type Status = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureLineType = - | 'boatramp' - | 'boom' - | 'breakwater' - | 'cableway_industrial' - | 'cableway_people' - | 'dam' - | 'flume' - | 'ladder' - | 'marine_farm' - | 'ski_lift' - | 'ski_tow' - | 'slipway' - | 'spillway_edge' - | 'walkwire' - | 'water_race' - | 'weir' - | 'wharf' - | 'wharf_edge'; - -export type StructurePointType = - | 'beacon' - | 'bivouac' - | 'buoy' - | 'chimney' - | 'dredge' - | 'flare' - | 'floodgate' - | 'gate' - | 'ladder' - | 'lighthouse' - | 'mast' - | 'radar_dome' - | 'redoubt' - | 'satellite_station' - | 'shaft' - | 'siphon' - | 'stockyard' - | 'tank' - | 'tower' - | 'well' - | 'windmill' - | 'wreck'; - -export type StructureSpecies = 'mussels' | 'salmon'; - -export type StructureStatus = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureSubtype = - | 'building' - | 'coal' - | 'concrete' - | 'disused' - | 'fuel' - | 'historic' - | 'jetty' - | 'lake' - | 'land' - | 'lighthouse' - | 'lime' - | 'locked' - | 'plane' - | 'power_generation' - | 'rock' - | 'sea' - | 'ship' - | 'surge_chamber' - | 'tunnel_ventilation' - | 'uncovered' - | 'water'; - -export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; - -export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; - -export type SubstanceExtracted = - | 'bentonite' - | 'clay' - | 'coal' - | 'gold' - | 'gravel' - | 'ironsand' - | 'lime' - | 'limestone' - | 'metal' - | 'quartz' - | 'scheelite' - | 'shingle' - | 'silica_sand' - | 'silver' - | 'stone' - | 'zeolite'; - -export type Theme = - | 'annotation' - | 'buildings' - | 'landcover' - | 'landuse' - | 'mapsheets' - | 'relief' - | 'structures' - | 'transport' - | 'utility'; - -export type TrackStatus = 'closed'; - -export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; - -export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; - -export type TunnelConstructionType = 'natural' | 'manmade'; - -export type TunnelStatus = 'closed' | 'historic' | 'disused' | 'derelict' | 'under_construction'; - -export type TunnelType = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; - -export type UtilityPointType = 'gas_valve' | 'geo_bore' | 'pylon'; - -export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; - -export type UtilitySupporttype = 'pole' | 'pylon'; - -export type UtilityVisibility = 'underground'; - -export type VegetationSubtype = 'coniferous' | 'non-coniferous'; - -export type Versions = '0.3' | '0.4'; - -export type WaterPerennial = 'dry' | 'seasonal'; - -export type WaterSubtype = - | 'evaporation' - | 'hydro_electric' - | 'ice_skating' - | 'oil' - | 'oxidation' - | 'reservoir' - | 'settling' - | 'sewage' - | 'sewage_treatment' - | 'sludge'; - -export type WaterTemperatureIndicator = 'cold' | 'hot'; - -export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; - -export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; - -export interface Airport { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'airport'; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * GeoParquet 1.1 covering bbox struct. - */ -export interface BBox { - xmin: number; - ymin: number; - xmax: number; - ymax: number; -} - -export interface BridgeLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: BridgeType | null; - subtype: BridgeSubtype | null; - construction_type: ConstructionType | null; - status: Status | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Building { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - theme: 'buildings'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface BuildingPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - orientation: number | null; - theme: 'buildings'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Coastline { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'coastline' | 'water_confluence' | 'wharf'; - elevation: number | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Contour { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'contour'; - elevation: number | null; - definition: string | null; - designation: 'supplementary' | null; - formation: 'depression' | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface DataSource { - /** Name of the column in this table where the linked data gets copied to */ - table_column: string; - /** Registered source for linked data */ - source: MetadataSource; - /** Name of the key column in source to use for linking */ - source_key_name: string; - /** Value of the key column in source to use for linking. */ - source_key_value: number | string; - /** Name of the table in source that contains the linked data */ - source_table: string; - /** Name of the column in the source where the linked data gets copied from */ - source_column: string; - /** Timestamp when the source was last updated */ - source_updated_at: string; - /** Timestamp when this linked data was last imported */ - imported_at: string; -} - -export interface DescriptiveText { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'descriptive_text'; - info_display: string | null; - size: number | null; - theme: 'annotation'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FenceLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'fence'; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FerryLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ferry_crossing'; - subtype: 'vehicle' | 'passenger' | 'freight' | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeographicName { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'geographic_name'; - name: string | null; - desc_code: string | null; - size: number | null; - theme: 'annotation'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeoParquet { - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Island { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'island'; - name: string | null; - group_name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landcover { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverType; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'dredge_tailing'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverPointCoreTypes { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverPointCoreType; - orientation: null; - elevation: null; - subtype: null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverPointCommon { - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landuse { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LanduseLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandusePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Marine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'mangrove' | 'reef' | 'rock' | 'shoal'; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface MarinePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock'; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50CartoSymbol { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - created_at: string; - updated_at: string; - /** - * id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or - * the road centreline it labels. - * - * Null where no feature was close enough to match. - */ - source_id: string | null; - type: CartoSymbolType; - label: string | null; - /** Label rotation in degrees clockwise from east. Null for symbols drawn unrotated. */ - orientation: number | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50CartoText { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - /** id (UUID) of the example feature. */ - example_point_id: string | null; - full_text: string | null; - text_bend: number | null; - text_char_spacing_distance: number | null; - text_colour: number | null; - text_font: CartoTextfont | null; - text_height: number | null; - text_orientation: number | null; - text_placement: number | null; - text_size_type: number | null; - text_stretch_length: number | null; - text_string: string | null; - text_word_spacing_distance: number | null; - font: CartoFont | null; - style: CartoStyle | null; - colour: CartoColour | null; - size: number | null; - placement: CartoPlacement | null; - offset: number | null; - textanchor: CartoTextanchor | null; - labelanchor: number | null; - charplace: CartoCharplace | null; - chardistance: number | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * Derived polygon Union of coastline and island - */ -export interface Nztopo50CoastlineIsland { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'coastline' | 'island'; - elevation: number | null; - name: string | null; - group_name: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50DmsGrid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50Grid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50IceContour { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'contour_ice'; - elevation: number | null; - definition: string | null; - designation: 'supplementary' | null; - formation: 'depression' | null; - theme: 'relief'; - /** UUID for the intersecting contour feature. */ - contour_id: string; - /** UUID for the intersecting landcover feature. */ - landcover_id: string; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50MapSheet { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'nztopo50_map_sheet'; - sheet_code: string; - sheet_name: string; - origin_x: number; - origin_y: number; - /** id (UUID) of the example feature. */ - example_point_id: string; - published_version: string; - published_at: string; - updated_at: string; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50RockLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - /** UUID of the source `marine` rock polygon this boundary line was derived from. */ - marine_id: string; - type: 'rock'; - name: string | null; - subtype: CompositionSubtype | null; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * Derived sea (moana) polygons for the water layer. - * - * The land polygons (coastline and island) are inverted and sliced by Web - * Mercator quadkey tiles so no single large polygon exists. - */ -export interface Nztopo50SeaPolygon { - id: string; - type: 'moana'; - /** Web Mercator quadkey of the tile this sea polygon was sliced to. */ - quadkey: string; - created_at: string; - updated_at: string; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface PlacePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: PlaceType; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ProductFeature { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -/** - * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. - * Where a railway line is located close to a road, the line held in the data and shown on the printed map - * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. * - * Multiple sidings may be held in the data and shown on the printed maps as a single feature + * Points to the latest schema version (v0.4). */ -export interface RailwayLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'railway'; - subtype: RailwaySubtype | null; - track_type: RailwayTrackType | null; - vehicle_type: RailwayVehicleType | null; - status: RailwayStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RailwayPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'station'; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Relief { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'waterfall' | 'rapid'; - name: string | null; - height: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefLineType; - subtype: ReliefLineSubtype | null; - name: string | null; - height: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefPointType; - name: string | null; - elevation: number | null; - height: number | null; - orientation: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ResidentialArea { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'residential_area'; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RoadLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'road'; - hierarchy: string | null; - status: RoadStatus | null; - name: string | null; - highway_number: string | null; - lane_count: number | null; - surface: RoadSurface | null; - way_count: 'one_way' | null; - width_indicator: 'w' | null; - road_access: 'mp' | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RockOutcrop { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock_outcrop'; - orientation: number; - elevation: number; - subtype: RockOutcropSubtype; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Runway { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'runway'; - subtype: RunwaySubtype | null; - status: RunwayStatus | null; - surface: RunwaySurface | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Structure { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureType; - subtype: StructureSubtype | null; - lid_type: 'covered' | null; - tank_type: StructureTankType | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructureLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureLineType; - subtype: StructureSubtype | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructurePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructurePointType; - subtype: StructureSubtype | null; - tank_type: StructureTankType | null; - status: StructureStatus | null; - name: string | null; - height: number | null; - orientation: number | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TopographicFeature { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -export interface TopographicMetadata { - metadata: string | null; -} - -export interface TrackLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'track'; - subtype: TrackSubtype | null; - track_type: TrackType | null; - status: TrackStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TransportPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ford' | 'helipad'; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TrigPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'trig'; - trig_type: 'beaconed' | null; - name: string | null; - code: string | null; - elevation: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TunnelLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: TunnelType; - subtype: 'livestock' | null; - construction_type: TunnelConstructionType | null; - status: TunnelStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'pipeline' | 'powerline' | 'telephone'; - subtype: UtilitySubtype | null; - support_type: UtilitySupporttype | null; - status: string | null; - visibility: UtilityVisibility | null; - theme: 'utility'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: UtilityPointType; - orientation: number | null; - theme: 'utility'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Vegetation { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; - subtype: VegetationSubtype | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'shelter_belt'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'tree' | 'scattered_scrub'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Water { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - subtype: WaterSubtype | null; - name: string | null; - group_name: string | null; - height: number | null; - elevation: number | null; - perennial: WaterPerennial | null; - temperature_indicator: WaterTemperatureIndicator | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} -export interface WaterLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} +export * from './v0.4/index.ts'; -export interface WaterPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - name: string | null; - height: number | null; - orientation: number | null; - temperature_indicator: WaterTemperatureIndicator | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} +export * as v0_3 from './v0.3/index.ts'; +export * as v0_4 from './v0.4/index.ts'; diff --git a/packages/schema/src/types/v0.3/index.ts b/packages/schema/src/types/v0.3/index.ts new file mode 100644 index 000000000..de691ad32 --- /dev/null +++ b/packages/schema/src/types/v0.3/index.ts @@ -0,0 +1,1631 @@ +/** + * This file was automatically generated by the TypeSpec TypeScript emitter. + * Do not edit this file manually. + */ + +export type BridgeSubtype = 'foot_traffic' | 'train'; + +export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; + +export type BuildingStatus = 'derelict' | 'historic' | 'private'; + +export type BuildingSubtype = + | 'abattoir' + | 'camp' + | 'cement_works' + | 'church' + | 'energy_facility' + | 'factory' + | 'fertiliser_works' + | 'fire_lookout' + | 'forest_headquarters' + | 'gas_compound' + | 'greenhouse' + | 'gun_club' + | 'gun_emplacement' + | 'hall' + | 'homestead' + | 'hospital' + | 'hut' + | 'lodge' + | 'marae' + | 'mill' + | 'museum' + | 'observatory' + | 'polytechnic' + | 'power_generation' + | 'prison' + | 'private_hut' + | 'salt_works' + | 'school' + | 'shingle_works' + | 'shelter' + | 'silo' + | 'stamping_battery' + | 'substation' + | 'surf_club' + | 'university' + | 'visitor_centre' + | 'water_treatment_plant'; + +export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; + +export type CartoColour = '' | 'black' | 'process_blue' | 'warm_red'; + +export type CartoFont = '' | 'Nimbus Sans LINZ'; + +export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; + +export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; + +export type CartoSymbolType = + | 'contour_number' + | 'golf_course' + | 'highway_shield' + | 'mine_opencast' + | 'mine_training' + | 'mine_underground'; + +export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; + +export type CartoTextfont = + | 'ATTrium-Italic' + | 'ATTriumMou-Cond' + | 'ATTriumMou-CondBold' + | 'ATTriumMou-CondItalic' + | 'ATTriumMou-Italic' + | 'ATTriumMou-Regular' + | 'Courier Bold Oblique'; + +export type CompositionSubtype = 'coral' | 'limestone' | 'pumice' | 'rock'; + +export type ConstructionType = 'suspension' | 'swing' | 'trestle'; + +export type GridDirection = 'x' | 'y'; + +export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; + +export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; + +export type LanduseStatus = 'dangerous' | 'disused' | 'old'; + +export type LanduseSubtype = 'training' | 'opencast' | 'underground'; + +export type LanduseType = + | 'cemetery' + | 'cycle_track' + | 'dog_track' + | 'golf_course' + | 'gravel_pit' + | 'horse_track' + | 'landfill' + | 'mine' + | 'orchard' + | 'pumice_pit' + | 'quarry' + | 'racetrack' + | 'rifle_range' + | 'showground' + | 'sportsfield' + | 'vineyard' + | 'vehicle_track'; + +export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; + +export type PlaceType = 'cave' | 'grave' | 'historic_site' | 'monument' | 'pa'; + +export type RailwayStatus = 'disused'; + +export type RailwaySubtype = 'siding'; + +export type RailwayTrackType = 'single' | 'multiple'; + +export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; + +export type ReliefLineSubtype = 'causeway' | 'stopbank'; + +export type ReliefLineType = + | 'cliff_edge' + | 'cutting_edge' + | 'embankment' + | 'rapid' + | 'slip_edge' + | 'waterfall' + | 'waterfall_edge' + | 'seawall'; + +export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; + +export type RoadStatus = 'under_construction' | 'closed'; + +export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; + +export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; + +export type RunwayStatus = 'disused'; + +export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; + +export type RunwaySurface = 'grass' | 'sealed'; + +export type Status = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureLineType = + | 'boatramp' + | 'boom' + | 'breakwater' + | 'cableway_industrial' + | 'cableway_people' + | 'dam' + | 'flume' + | 'ladder' + | 'marine_farm' + | 'ski_lift' + | 'ski_tow' + | 'slipway' + | 'spillway_edge' + | 'walkwire' + | 'water_race' + | 'weir' + | 'wharf' + | 'wharf_edge'; + +export type StructurePointType = + | 'beacon' + | 'bivouac' + | 'buoy' + | 'chimney' + | 'dredge' + | 'flare' + | 'floodgate' + | 'gate' + | 'ladder' + | 'lighthouse' + | 'mast' + | 'radar_dome' + | 'redoubt' + | 'satellite_station' + | 'shaft' + | 'siphon' + | 'stockyard' + | 'tank' + | 'tower' + | 'well' + | 'windmill' + | 'wreck'; + +export type StructureSpecies = 'mussels' | 'salmon'; + +export type StructureStatus = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureSubtype = + | 'building' + | 'coal' + | 'concrete' + | 'disused' + | 'fuel' + | 'historic' + | 'jetty' + | 'lake' + | 'land' + | 'lighthouse' + | 'lime' + | 'locked' + | 'plane' + | 'power_generation' + | 'rock' + | 'sea' + | 'ship' + | 'surge_chamber' + | 'tunnel_ventilation' + | 'uncovered' + | 'water'; + +export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; + +export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; + +export type SubstanceExtracted = + | 'bentonite' + | 'clay' + | 'coal' + | 'gold' + | 'gravel' + | 'ironsand' + | 'lime' + | 'limestone' + | 'metal' + | 'quartz' + | 'scheelite' + | 'shingle' + | 'silica_sand' + | 'silver' + | 'stone' + | 'zeolite'; + +export type Theme = + | 'annotation' + | 'buildings' + | 'landcover' + | 'landuse' + | 'mapsheets' + | 'relief' + | 'structures' + | 'transport' + | 'utility'; + +export type TrackStatus = 'closed'; + +export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; + +export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; + +export type TunnelConstructionType = 'natural' | 'manmade'; + +export type TunnelStatus = 'closed' | 'historic' | 'disused' | 'derelict' | 'under_construction'; + +export type TunnelType = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; + +export type UtilityPointType = 'gas_valve' | 'geo_bore' | 'pylon'; + +export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; + +export type UtilitySupporttype = 'pole' | 'pylon'; + +export type UtilityVisibility = 'underground'; + +export type VegetationSubtype = 'coniferous' | 'non-coniferous'; + +export type Versions = '0.3' | '0.4'; + +export type WaterPerennial = 'dry' | 'seasonal'; + +export type WaterSubtype = + | 'evaporation' + | 'hydro_electric' + | 'ice_skating' + | 'oil' + | 'oxidation' + | 'reservoir' + | 'settling' + | 'sewage' + | 'sewage_treatment' + | 'sludge'; + +export type WaterTemperatureIndicator = 'cold' | 'hot'; + +export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; + +export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; + +/** + * A facility where aircraft can take off and land; + * usually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo + */ +export interface Airport { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * GeoParquet 1.1 covering bbox struct. + */ +export interface BBox { + xmin: number; + ymin: number; + xmax: number; + ymax: number; +} + +export interface BridgeLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: BridgeType | null; + subtype: BridgeSubtype | null; + construction_type: ConstructionType | null; + status: Status | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Building { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + theme: 'buildings'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface BuildingPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + orientation: number | null; + theme: 'buildings'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Coastline { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'coastline' | 'water_confluence' | 'wharf'; + elevation: number | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Contour { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'contour'; + elevation: number | null; + definition: string | null; + designation: 'supplementary' | null; + formation: 'depression' | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface DataSource { + /** Name of the column in this table where the linked data gets copied to */ + table_column: string; + /** Registered source for linked data */ + source: MetadataSource; + /** Name of the key column in source to use for linking */ + source_key_name: string; + /** Value of the key column in source to use for linking. */ + source_key_value: number | string; + /** Name of the table in source that contains the linked data */ + source_table: string; + /** Name of the column in the source where the linked data gets copied from */ + source_column: string; + /** Timestamp when the source was last updated */ + source_updated_at: string; + /** Timestamp when this linked data was last imported */ + imported_at: string; +} + +export interface DescriptiveText { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'descriptive_text'; + info_display: string | null; + size: number | null; + theme: 'annotation'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FenceLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'fence'; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FerryLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ferry_crossing'; + subtype: 'vehicle' | 'passenger' | 'freight' | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeographicName { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'geographic_name'; + name: string | null; + desc_code: string | null; + size: number | null; + theme: 'annotation'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeoParquet { + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Island { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'island'; + name: string | null; + group_name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landcover { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverType; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'dredge_tailing'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverPointCoreTypes { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverPointCoreType; + orientation: null; + elevation: null; + subtype: null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverPointCommon { + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landuse { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LanduseLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandusePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Marine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'mangrove' | 'reef' | 'rock' | 'shoal'; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface MarinePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock'; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50CartoSymbol { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + created_at: string; + updated_at: string; + /** + * id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or + * the road centreline it labels. + * + * Null where no feature was close enough to match. + */ + source_id: string | null; + type: CartoSymbolType; + label: string | null; + /** Label rotation in degrees clockwise from east. Null for symbols drawn unrotated. */ + orientation: number | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50CartoText { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + /** id (UUID) of the example feature. */ + example_point_id: string | null; + full_text: string | null; + text_bend: number | null; + text_char_spacing_distance: number | null; + text_colour: number | null; + text_font: CartoTextfont | null; + text_height: number | null; + text_orientation: number | null; + text_placement: number | null; + text_size_type: number | null; + text_stretch_length: number | null; + text_string: string | null; + text_word_spacing_distance: number | null; + font: CartoFont | null; + style: CartoStyle | null; + colour: CartoColour | null; + size: number | null; + placement: CartoPlacement | null; + offset: number | null; + textanchor: CartoTextanchor | null; + labelanchor: number | null; + charplace: CartoCharplace | null; + chardistance: number | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * Derived polygon Union of coastline and island + */ +export interface Nztopo50CoastlineIsland { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'coastline' | 'island'; + elevation: number | null; + name: string | null; + group_name: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50DmsGrid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50Grid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50IceContour { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'contour_ice'; + elevation: number | null; + definition: string | null; + designation: 'supplementary' | null; + formation: 'depression' | null; + theme: 'relief'; + /** UUID for the intersecting contour feature. */ + contour_id: string; + /** UUID for the intersecting landcover feature. */ + landcover_id: string; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50MapSheet { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'nztopo50_map_sheet'; + sheet_code: string; + sheet_name: string; + origin_x: number; + origin_y: number; + /** id (UUID) of the example feature. */ + example_point_id: string; + published_version: string; + published_at: string; + updated_at: string; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50RockLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + /** UUID of the source `marine` rock polygon this boundary line was derived from. */ + marine_id: string; + type: 'rock'; + name: string | null; + subtype: CompositionSubtype | null; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * Derived sea (moana) polygons for the water layer. + * + * The land polygons (coastline and island) are inverted and sliced by Web + * Mercator quadkey tiles so no single large polygon exists. + */ +export interface Nztopo50SeaPolygon { + id: string; + type: 'moana'; + /** Web Mercator quadkey of the tile this sea polygon was sliced to. */ + quadkey: string; + created_at: string; + updated_at: string; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface PlacePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: PlaceType; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ProductFeature { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +/** + * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. + * Where a railway line is located close to a road, the line held in the data and shown on the printed map + * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. + * + * Multiple sidings may be held in the data and shown on the printed maps as a single feature + */ +export interface RailwayLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'railway'; + subtype: RailwaySubtype | null; + track_type: RailwayTrackType | null; + vehicle_type: RailwayVehicleType | null; + status: RailwayStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RailwayPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'station'; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Relief { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'waterfall' | 'rapid'; + name: string | null; + height: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefLineType; + subtype: ReliefLineSubtype | null; + name: string | null; + height: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefPointType; + name: string | null; + elevation: number | null; + height: number | null; + orientation: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ResidentialArea { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'residential_area'; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RoadLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'road'; + hierarchy: string | null; + status: RoadStatus | null; + name: string | null; + highway_number: string | null; + lane_count: number | null; + surface: RoadSurface | null; + way_count: 'one_way' | null; + width_indicator: 'w' | null; + road_access: 'mp' | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RockOutcrop { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock_outcrop'; + orientation: number; + elevation: number; + subtype: RockOutcropSubtype; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Runway { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'runway'; + subtype: RunwaySubtype | null; + status: RunwayStatus | null; + surface: RunwaySurface | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Structure { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureType; + subtype: StructureSubtype | null; + lid_type: 'covered' | null; + tank_type: StructureTankType | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructureLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureLineType; + subtype: StructureSubtype | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructurePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructurePointType; + subtype: StructureSubtype | null; + tank_type: StructureTankType | null; + status: StructureStatus | null; + name: string | null; + height: number | null; + orientation: number | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TopographicFeature { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +export interface TopographicMetadata { + metadata: string | null; +} + +export interface TrackLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'track'; + subtype: TrackSubtype | null; + track_type: TrackType | null; + status: TrackStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TransportPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ford' | 'helipad'; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TrigPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'trig'; + trig_type: 'beaconed' | null; + name: string | null; + code: string | null; + elevation: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TunnelLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: TunnelType; + subtype: 'livestock' | null; + construction_type: TunnelConstructionType | null; + status: TunnelStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'pipeline' | 'powerline' | 'telephone'; + subtype: UtilitySubtype | null; + support_type: UtilitySupporttype | null; + status: string | null; + visibility: UtilityVisibility | null; + theme: 'utility'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: UtilityPointType; + orientation: number | null; + theme: 'utility'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Vegetation { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; + subtype: VegetationSubtype | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'shelter_belt'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'tree' | 'scattered_scrub'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Water { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + subtype: WaterSubtype | null; + name: string | null; + group_name: string | null; + height: number | null; + elevation: number | null; + perennial: WaterPerennial | null; + temperature_indicator: WaterTemperatureIndicator | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + name: string | null; + height: number | null; + orientation: number | null; + temperature_indicator: WaterTemperatureIndicator | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} diff --git a/packages/schema/src/types/v0.4/index.ts b/packages/schema/src/types/v0.4/index.ts new file mode 100644 index 000000000..de691ad32 --- /dev/null +++ b/packages/schema/src/types/v0.4/index.ts @@ -0,0 +1,1631 @@ +/** + * This file was automatically generated by the TypeSpec TypeScript emitter. + * Do not edit this file manually. + */ + +export type BridgeSubtype = 'foot_traffic' | 'train'; + +export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; + +export type BuildingStatus = 'derelict' | 'historic' | 'private'; + +export type BuildingSubtype = + | 'abattoir' + | 'camp' + | 'cement_works' + | 'church' + | 'energy_facility' + | 'factory' + | 'fertiliser_works' + | 'fire_lookout' + | 'forest_headquarters' + | 'gas_compound' + | 'greenhouse' + | 'gun_club' + | 'gun_emplacement' + | 'hall' + | 'homestead' + | 'hospital' + | 'hut' + | 'lodge' + | 'marae' + | 'mill' + | 'museum' + | 'observatory' + | 'polytechnic' + | 'power_generation' + | 'prison' + | 'private_hut' + | 'salt_works' + | 'school' + | 'shingle_works' + | 'shelter' + | 'silo' + | 'stamping_battery' + | 'substation' + | 'surf_club' + | 'university' + | 'visitor_centre' + | 'water_treatment_plant'; + +export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; + +export type CartoColour = '' | 'black' | 'process_blue' | 'warm_red'; + +export type CartoFont = '' | 'Nimbus Sans LINZ'; + +export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; + +export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; + +export type CartoSymbolType = + | 'contour_number' + | 'golf_course' + | 'highway_shield' + | 'mine_opencast' + | 'mine_training' + | 'mine_underground'; + +export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; + +export type CartoTextfont = + | 'ATTrium-Italic' + | 'ATTriumMou-Cond' + | 'ATTriumMou-CondBold' + | 'ATTriumMou-CondItalic' + | 'ATTriumMou-Italic' + | 'ATTriumMou-Regular' + | 'Courier Bold Oblique'; + +export type CompositionSubtype = 'coral' | 'limestone' | 'pumice' | 'rock'; + +export type ConstructionType = 'suspension' | 'swing' | 'trestle'; + +export type GridDirection = 'x' | 'y'; + +export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; + +export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; + +export type LanduseStatus = 'dangerous' | 'disused' | 'old'; + +export type LanduseSubtype = 'training' | 'opencast' | 'underground'; + +export type LanduseType = + | 'cemetery' + | 'cycle_track' + | 'dog_track' + | 'golf_course' + | 'gravel_pit' + | 'horse_track' + | 'landfill' + | 'mine' + | 'orchard' + | 'pumice_pit' + | 'quarry' + | 'racetrack' + | 'rifle_range' + | 'showground' + | 'sportsfield' + | 'vineyard' + | 'vehicle_track'; + +export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; + +export type PlaceType = 'cave' | 'grave' | 'historic_site' | 'monument' | 'pa'; + +export type RailwayStatus = 'disused'; + +export type RailwaySubtype = 'siding'; + +export type RailwayTrackType = 'single' | 'multiple'; + +export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; + +export type ReliefLineSubtype = 'causeway' | 'stopbank'; + +export type ReliefLineType = + | 'cliff_edge' + | 'cutting_edge' + | 'embankment' + | 'rapid' + | 'slip_edge' + | 'waterfall' + | 'waterfall_edge' + | 'seawall'; + +export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; + +export type RoadStatus = 'under_construction' | 'closed'; + +export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; + +export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; + +export type RunwayStatus = 'disused'; + +export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; + +export type RunwaySurface = 'grass' | 'sealed'; + +export type Status = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureLineType = + | 'boatramp' + | 'boom' + | 'breakwater' + | 'cableway_industrial' + | 'cableway_people' + | 'dam' + | 'flume' + | 'ladder' + | 'marine_farm' + | 'ski_lift' + | 'ski_tow' + | 'slipway' + | 'spillway_edge' + | 'walkwire' + | 'water_race' + | 'weir' + | 'wharf' + | 'wharf_edge'; + +export type StructurePointType = + | 'beacon' + | 'bivouac' + | 'buoy' + | 'chimney' + | 'dredge' + | 'flare' + | 'floodgate' + | 'gate' + | 'ladder' + | 'lighthouse' + | 'mast' + | 'radar_dome' + | 'redoubt' + | 'satellite_station' + | 'shaft' + | 'siphon' + | 'stockyard' + | 'tank' + | 'tower' + | 'well' + | 'windmill' + | 'wreck'; + +export type StructureSpecies = 'mussels' | 'salmon'; + +export type StructureStatus = + | 'closed' + | 'dangerous' + | 'derelict' + | 'disused' + | 'historic' + | 'locked' + | 'old' + | 'private' + | 'remains' + | 'ruins' + | 'under_construction'; + +export type StructureSubtype = + | 'building' + | 'coal' + | 'concrete' + | 'disused' + | 'fuel' + | 'historic' + | 'jetty' + | 'lake' + | 'land' + | 'lighthouse' + | 'lime' + | 'locked' + | 'plane' + | 'power_generation' + | 'rock' + | 'sea' + | 'ship' + | 'surge_chamber' + | 'tunnel_ventilation' + | 'uncovered' + | 'water'; + +export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; + +export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; + +export type SubstanceExtracted = + | 'bentonite' + | 'clay' + | 'coal' + | 'gold' + | 'gravel' + | 'ironsand' + | 'lime' + | 'limestone' + | 'metal' + | 'quartz' + | 'scheelite' + | 'shingle' + | 'silica_sand' + | 'silver' + | 'stone' + | 'zeolite'; + +export type Theme = + | 'annotation' + | 'buildings' + | 'landcover' + | 'landuse' + | 'mapsheets' + | 'relief' + | 'structures' + | 'transport' + | 'utility'; + +export type TrackStatus = 'closed'; + +export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; + +export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; + +export type TunnelConstructionType = 'natural' | 'manmade'; + +export type TunnelStatus = 'closed' | 'historic' | 'disused' | 'derelict' | 'under_construction'; + +export type TunnelType = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; + +export type UtilityPointType = 'gas_valve' | 'geo_bore' | 'pylon'; + +export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; + +export type UtilitySupporttype = 'pole' | 'pylon'; + +export type UtilityVisibility = 'underground'; + +export type VegetationSubtype = 'coniferous' | 'non-coniferous'; + +export type Versions = '0.3' | '0.4'; + +export type WaterPerennial = 'dry' | 'seasonal'; + +export type WaterSubtype = + | 'evaporation' + | 'hydro_electric' + | 'ice_skating' + | 'oil' + | 'oxidation' + | 'reservoir' + | 'settling' + | 'sewage' + | 'sewage_treatment' + | 'sludge'; + +export type WaterTemperatureIndicator = 'cold' | 'hot'; + +export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; + +export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; + +/** + * A facility where aircraft can take off and land; + * usually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo + */ +export interface Airport { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * GeoParquet 1.1 covering bbox struct. + */ +export interface BBox { + xmin: number; + ymin: number; + xmax: number; + ymax: number; +} + +export interface BridgeLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: BridgeType | null; + subtype: BridgeSubtype | null; + construction_type: ConstructionType | null; + status: Status | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Building { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + theme: 'buildings'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface BuildingPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'building'; + subtype: BuildingSubtype | null; + status: BuildingStatus | null; + name: string | null; + orientation: number | null; + theme: 'buildings'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Coastline { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'coastline' | 'water_confluence' | 'wharf'; + elevation: number | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Contour { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'contour'; + elevation: number | null; + definition: string | null; + designation: 'supplementary' | null; + formation: 'depression' | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface DataSource { + /** Name of the column in this table where the linked data gets copied to */ + table_column: string; + /** Registered source for linked data */ + source: MetadataSource; + /** Name of the key column in source to use for linking */ + source_key_name: string; + /** Value of the key column in source to use for linking. */ + source_key_value: number | string; + /** Name of the table in source that contains the linked data */ + source_table: string; + /** Name of the column in the source where the linked data gets copied from */ + source_column: string; + /** Timestamp when the source was last updated */ + source_updated_at: string; + /** Timestamp when this linked data was last imported */ + imported_at: string; +} + +export interface DescriptiveText { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'descriptive_text'; + info_display: string | null; + size: number | null; + theme: 'annotation'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FenceLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'fence'; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface FerryLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ferry_crossing'; + subtype: 'vehicle' | 'passenger' | 'freight' | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeographicName { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'geographic_name'; + name: string | null; + desc_code: string | null; + size: number | null; + theme: 'annotation'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface GeoParquet { + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Island { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'island'; + name: string | null; + group_name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landcover { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverType; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'dredge_tailing'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverPointCoreTypes { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LandcoverPointCoreType; + orientation: null; + elevation: null; + subtype: null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandcoverPointCommon { + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Landuse { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LanduseLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface LandusePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: LanduseType; + subtype: LanduseSubtype | null; + status: LanduseStatus | null; + name: string | null; + substance_extracted: SubstanceExtracted | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Marine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'mangrove' | 'reef' | 'rock' | 'shoal'; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface MarinePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock'; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50CartoSymbol { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + created_at: string; + updated_at: string; + /** + * id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or + * the road centreline it labels. + * + * Null where no feature was close enough to match. + */ + source_id: string | null; + type: CartoSymbolType; + label: string | null; + /** Label rotation in degrees clockwise from east. Null for symbols drawn unrotated. */ + orientation: number | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50CartoText { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + /** id (UUID) of the example feature. */ + example_point_id: string | null; + full_text: string | null; + text_bend: number | null; + text_char_spacing_distance: number | null; + text_colour: number | null; + text_font: CartoTextfont | null; + text_height: number | null; + text_orientation: number | null; + text_placement: number | null; + text_size_type: number | null; + text_stretch_length: number | null; + text_string: string | null; + text_word_spacing_distance: number | null; + font: CartoFont | null; + style: CartoStyle | null; + colour: CartoColour | null; + size: number | null; + placement: CartoPlacement | null; + offset: number | null; + textanchor: CartoTextanchor | null; + labelanchor: number | null; + charplace: CartoCharplace | null; + chardistance: number | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * Derived polygon Union of coastline and island + */ +export interface Nztopo50CoastlineIsland { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'coastline' | 'island'; + elevation: number | null; + name: string | null; + group_name: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50DmsGrid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50Grid { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + direction: GridDirection; + value: number; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50IceContour { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'contour_ice'; + elevation: number | null; + definition: string | null; + designation: 'supplementary' | null; + formation: 'depression' | null; + theme: 'relief'; + /** UUID for the intersecting contour feature. */ + contour_id: string; + /** UUID for the intersecting landcover feature. */ + landcover_id: string; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50MapSheet { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'nztopo50_map_sheet'; + sheet_code: string; + sheet_name: string; + origin_x: number; + origin_y: number; + /** id (UUID) of the example feature. */ + example_point_id: string; + published_version: string; + published_at: string; + updated_at: string; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Nztopo50RockLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + /** UUID of the source `marine` rock polygon this boundary line was derived from. */ + marine_id: string; + type: 'rock'; + name: string | null; + subtype: CompositionSubtype | null; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +/** + * Derived sea (moana) polygons for the water layer. + * + * The land polygons (coastline and island) are inverted and sliced by Web + * Mercator quadkey tiles so no single large polygon exists. + */ +export interface Nztopo50SeaPolygon { + id: string; + type: 'moana'; + /** Web Mercator quadkey of the tile this sea polygon was sliced to. */ + quadkey: string; + created_at: string; + updated_at: string; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface PlacePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: PlaceType; + subtype: CompositionSubtype | null; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ProductFeature { + /** UUIDv7 of the feature */ + id: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +/** + * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. + * Where a railway line is located close to a road, the line held in the data and shown on the printed map + * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. + * + * Multiple sidings may be held in the data and shown on the printed maps as a single feature + */ +export interface RailwayLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'railway'; + subtype: RailwaySubtype | null; + track_type: RailwayTrackType | null; + vehicle_type: RailwayVehicleType | null; + status: RailwayStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RailwayPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'station'; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Relief { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'waterfall' | 'rapid'; + name: string | null; + height: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefLineType; + subtype: ReliefLineSubtype | null; + name: string | null; + height: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ReliefPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: ReliefPointType; + name: string | null; + elevation: number | null; + height: number | null; + orientation: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface ResidentialArea { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'residential_area'; + name: string | null; + theme: 'landuse'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RoadLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'road'; + hierarchy: string | null; + status: RoadStatus | null; + name: string | null; + highway_number: string | null; + lane_count: number | null; + surface: RoadSurface | null; + way_count: 'one_way' | null; + width_indicator: 'w' | null; + road_access: 'mp' | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface RockOutcrop { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'rock_outcrop'; + orientation: number; + elevation: number; + subtype: RockOutcropSubtype; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Runway { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'runway'; + subtype: RunwaySubtype | null; + status: RunwayStatus | null; + surface: RunwaySurface | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Structure { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureType; + subtype: StructureSubtype | null; + lid_type: 'covered' | null; + tank_type: StructureTankType | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructureLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructureLineType; + subtype: StructureSubtype | null; + species: StructureSpecies | null; + status: StructureStatus | null; + name: string | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface StructurePoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: StructurePointType; + subtype: StructureSubtype | null; + tank_type: StructureTankType | null; + status: StructureStatus | null; + name: string | null; + height: number | null; + orientation: number | null; + theme: 'structures'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TopographicFeature { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; +} + +export interface TopographicMetadata { + metadata: string | null; +} + +export interface TrackLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'track'; + subtype: TrackSubtype | null; + track_type: TrackType | null; + status: TrackStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TransportPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'ford' | 'helipad'; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TrigPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'trig'; + trig_type: 'beaconed' | null; + name: string | null; + code: string | null; + elevation: number | null; + theme: 'relief'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface TunnelLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: TunnelType; + subtype: 'livestock' | null; + construction_type: TunnelConstructionType | null; + status: TunnelStatus | null; + name: string | null; + theme: 'transport'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'pipeline' | 'powerline' | 'telephone'; + subtype: UtilitySubtype | null; + support_type: UtilitySupporttype | null; + status: string | null; + visibility: UtilityVisibility | null; + theme: 'utility'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface UtilityPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: UtilityPointType; + orientation: number | null; + theme: 'utility'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Vegetation { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; + subtype: VegetationSubtype | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'shelter_belt'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface VegetationPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: 'tree' | 'scattered_scrub'; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface Water { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + subtype: WaterSubtype | null; + name: string | null; + group_name: string | null; + height: number | null; + elevation: number | null; + perennial: WaterPerennial | null; + temperature_indicator: WaterTemperatureIndicator | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterLine { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + name: string | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} + +export interface WaterPoint { + /** UUIDv7 of the feature */ + id: string; + created_at: string; + updated_at: string; + /** + * Reference topo50 feature ID. + * + * Will be null if the feature is new and has not been published in a Topo50 edition. + */ + t50_fid: number | null; + type: WaterType; + name: string | null; + height: number | null; + orientation: number | null; + temperature_indicator: WaterTemperatureIndicator | null; + theme: 'landcover'; + metadata: string | null; + /** GeoParquet 1.1 covering geometry struct. */ + geometry: unknown; + /** GeoParquet 1.1 covering bbox struct. */ + bbox?: BBox; +} diff --git a/packages/schema/tspconfig.yaml b/packages/schema/tspconfig.yaml index 68bdd149a..63f6caacd 100644 --- a/packages/schema/tspconfig.yaml +++ b/packages/schema/tspconfig.yaml @@ -3,4 +3,5 @@ emit: options: '@linzjs/typespec-emitter': json-schema-output-dir: '{project-root}/../../schema' - typescript-output-file: '{project-root}/src/types/index.ts' + parquet-output-dir: '{project-root}/../../schema' + typescript-output-dir: '{project-root}/src/types' diff --git a/packages/typespec-emitter/src/index.ts b/packages/typespec-emitter/src/index.ts index e88c3a137..4c8ed8bd6 100644 --- a/packages/typespec-emitter/src/index.ts +++ b/packages/typespec-emitter/src/index.ts @@ -10,6 +10,7 @@ import { collectTypes } from './utils.ts'; export interface EmitterOptions { 'json-schema-output-dir'?: string; 'typescript-output-file'?: string; + 'typescript-output-dir'?: string; 'parquet-output-dir'?: string; 'pydantic-output-file'?: string; } @@ -19,6 +20,7 @@ const EmitterOptionsSchema: JSONSchemaType = { properties: { 'json-schema-output-dir': { type: 'string', nullable: true }, 'typescript-output-file': { type: 'string', nullable: true }, + 'typescript-output-dir': { type: 'string', nullable: true }, 'parquet-output-dir': { type: 'string', nullable: true }, 'pydantic-output-file': { type: 'string', nullable: true }, }, @@ -47,15 +49,15 @@ export async function $onEmit(context: EmitContext) { collectTypes(program.getGlobalNamespaceType(), models, enums, unions); // 2. Emit TypeScript Types if configured - if (options['typescript-output-file']) { - const outputFile = options['typescript-output-file']; - await emitTypeScript(program, outputFile, models, enums, unions); + const tsOutput = options['typescript-output-dir'] ?? options['typescript-output-file']; + if (tsOutput) { + await emitTypeScript(context, tsOutput, models, enums, unions); } // 3. Emit Parquet Schema if configured if (options['parquet-output-dir']) { const outputDir = options['parquet-output-dir']; - await emitParquetSchema(program, outputDir, models); + await emitParquetSchema(context, outputDir, models); } // 4. Emit Pydantic Models if configured diff --git a/packages/typespec-emitter/src/parquet.ts b/packages/typespec-emitter/src/parquet.ts index ed0b2f45f..8cc3b707c 100644 --- a/packages/typespec-emitter/src/parquet.ts +++ b/packages/typespec-emitter/src/parquet.ts @@ -1,6 +1,8 @@ -import { emitFile, resolvePath } from '@typespec/compiler'; -import type { Model, Program, Type } from '@typespec/compiler'; -import { isJsonSchemaDeclaration } from '@typespec/json-schema'; +import { emitFile, joinPaths, resolvePath } from '@typespec/compiler'; +import type { EmitContext, Model, Type, Union } from '@typespec/compiler'; +import { unsafe_mutateSubgraphWithNamespace } from '@typespec/compiler/experimental'; +import { getId, isJsonSchemaDeclaration } from '@typespec/json-schema'; +import { getVersioningMutators } from '@typespec/versioning'; import { toSnakeCase, unwrapNullableType } from './utils.ts'; @@ -11,21 +13,31 @@ export interface ParquetField { logical_type?: string; fields?: ParquetField[]; } + function mapTypeSpecToParquet(type: Type): { type?: string; logical_type?: string } { switch (type.kind) { case 'Scalar': switch (type.name) { case 'boolean': return { type: 'BOOLEAN' }; + case 'int8': + case 'uint8': + case 'int16': + case 'uint16': case 'int32': + case 'uint32': + case 'integer': return { type: 'INT32' }; case 'int64': + case 'uint64': return { type: 'INT64' }; case 'float32': return { type: 'FLOAT' }; case 'float64': + case 'numeric': return { type: 'DOUBLE' }; case 'string': + case 'url': return { type: 'BYTE_ARRAY', logical_type: 'STRING' }; case 'bytes': return { type: 'BYTE_ARRAY' }; @@ -39,19 +51,26 @@ function mapTypeSpecToParquet(type: Type): { type?: string; logical_type?: strin } break; case 'Enum': + case 'String': return { type: 'BYTE_ARRAY', logical_type: 'STRING' }; + case 'Intrinsic': + if (type.name === 'null') { + return {}; + } + return { type: 'BYTE_ARRAY' }; } return { type: 'BYTE_ARRAY', logical_type: 'STRING' }; // fallback } -function getParquetFields(model: Model): ParquetField[] { +export function getParquetFields(model: Model): ParquetField[] { const fields: ParquetField[] = []; for (const prop of model.properties.values()) { const fieldName = toSnakeCase(prop.name); // Check nullability/optionality const unwrapped = unwrapNullableType(prop.type); - const isOptional = prop.optional || unwrapped.optional; + const isExplicitNull = unwrapped.type.kind === 'Intrinsic' && unwrapped.type.name === 'null'; + const isOptional = prop.optional || unwrapped.optional || isExplicitNull; const repetition = isOptional ? 'OPTIONAL' : 'REQUIRED'; const targetType = unwrapped.type; @@ -102,14 +121,105 @@ function getParquetFields(model: Model): ParquetField[] { return fields; } -export async function emitParquetSchema(program: Program, outputDir: string, models: Map) { +export function getParquetFieldsForUnion(union: Union): ParquetField[] { + const fieldsMap = new Map(); + const variantModels: Model[] = []; + + for (const variant of union.variants.values()) { + const unwrapped = unwrapNullableType(variant.type); + if (unwrapped.type.kind === 'Model') { + variantModels.push(unwrapped.type); + } + } + + if (variantModels.length === 0) { + return []; + } + + const propVariantCount = new Map(); + + for (const model of variantModels) { + const fields = getParquetFields(model); + for (const f of fields) { + propVariantCount.set(f.name, (propVariantCount.get(f.name) ?? 0) + 1); + const existing = fieldsMap.get(f.name); + if (!existing) { + fieldsMap.set(f.name, { ...f }); + } else { + if (!existing.type && f.type) { + existing.type = f.type; + existing.logical_type = f.logical_type; + } + if (f.repetition_type === 'OPTIONAL' || existing.repetition_type === 'OPTIONAL') { + existing.repetition_type = 'OPTIONAL'; + } + } + } + } + + for (const [name, count] of propVariantCount.entries()) { + if (count < variantModels.length) { + const field = fieldsMap.get(name); + if (field) { + field.repetition_type = 'OPTIONAL'; + } + } + } + + return Array.from(fieldsMap.values()).filter((f) => Boolean(f.type || f.fields)); +} + +export async function emitParquetSchema( + context: EmitContext, + outputDir: string, + unversionedModels?: Map, +): Promise { + const { program } = context; + const topoNs = program.getGlobalNamespaceType().namespaces.get('Topography'); + + if (topoNs) { + const mutators = getVersioningMutators(program, topoNs); + if (mutators && mutators.kind === 'versioned') { + for (const snapshot of mutators.snapshots) { + const versionStr = String(snapshot.version.value ?? snapshot.version.name); + const versionOutputDir = joinPaths(outputDir, `release=v${versionStr}`); + + const { type: mutatedNs } = unsafe_mutateSubgraphWithNamespace(program, [snapshot.mutator], topoNs); + + const typesToEmit: Array<{ name: string; type: Model | Union }> = []; + if ('models' in mutatedNs && mutatedNs.models) { + for (const m of mutatedNs.models.values()) { + const id = getId(program, m); + if (id) typesToEmit.push({ name: id, type: m }); + } + } + if ('unions' in mutatedNs && mutatedNs.unions) { + for (const u of mutatedNs.unions.values()) { + const id = getId(program, u); + if (id) typesToEmit.push({ name: id, type: u }); + } + } + + for (const item of typesToEmit) { + const fields = item.type.kind === 'Union' ? getParquetFieldsForUnion(item.type) : getParquetFields(item.type); + const schema = { type: 'message', name: item.name, fields }; + const schemaFile = resolvePath(versionOutputDir, `${item.name}.parquet.json`); + await emitFile(program, { path: schemaFile, content: JSON.stringify(schema, null, 2) + '\n' }); + } + } + return; + } + } + + // Unversioned fallback + const models = unversionedModels ?? new Map(); for (const [name, model] of models.entries()) { if (!isJsonSchemaDeclaration(program, model)) { continue; } const tableName = toSnakeCase(name); const schema = { type: 'message', name: tableName, fields: getParquetFields(model) }; - const schemaFile = resolvePath(outputDir, `${tableName}.json`); + const schemaFile = resolvePath(outputDir, `${tableName}.parquet.json`); await emitFile(program, { path: schemaFile, content: JSON.stringify(schema, null, 2) + '\n' }); } } diff --git a/packages/typespec-emitter/src/typescript.ts b/packages/typespec-emitter/src/typescript.ts index 80f4551af..b8ddcdd7f 100644 --- a/packages/typespec-emitter/src/typescript.ts +++ b/packages/typespec-emitter/src/typescript.ts @@ -1,19 +1,20 @@ -import { emitFile, getDoc } from '@typespec/compiler'; -import type { Enum, Model, Program, Type, Union } from '@typespec/compiler'; +import { emitFile, getDirectoryPath, getDoc, joinPaths } from '@typespec/compiler'; +import type { EmitContext, Enum, Model, Program, Type, Union } from '@typespec/compiler'; +import { unsafe_mutateSubgraphWithNamespace } from '@typespec/compiler/experimental'; +import { getVersioningMutators } from '@typespec/versioning'; -import { toPascalCase } from './utils.ts'; +import { collectTypes, toPascalCase } from './utils.ts'; function formatPropName(name: string): string { return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name) ? name : JSON.stringify(name); } -export async function emitTypeScript( +export function generateTypeScriptCode( program: Program, - outputFile: string, models: Map, enums: Map, unions: Map, -) { +): string { function getJSDocComment(type: Type): string { const doc = getDoc(program, type); if (!doc) return ''; @@ -176,5 +177,63 @@ export async function emitTypeScript( code += '}\n\n'; } - await emitFile(program, { path: outputFile, content: code }); + return code; +} + +export async function emitTypeScript( + context: EmitContext, + outputTarget: string, + unversionedModels?: Map, + unversionedEnums?: Map, + unversionedUnions?: Map, +): Promise { + const { program } = context; + const topoNs = program.getGlobalNamespaceType().namespaces.get('Topography'); + + if (topoNs) { + const mutators = getVersioningMutators(program, topoNs); + if (mutators && mutators.kind === 'versioned') { + const outputDir = outputTarget.endsWith('.ts') ? getDirectoryPath(outputTarget) : outputTarget; + const versionList: string[] = []; + + for (const snapshot of mutators.snapshots) { + const versionStr = String(snapshot.version.value ?? snapshot.version.name); + versionList.push(versionStr); + const versionSubdir = joinPaths(outputDir, `v${versionStr}`); + const versionFile = joinPaths(versionSubdir, 'index.ts'); + + const { type: mutatedNs } = unsafe_mutateSubgraphWithNamespace(program, [snapshot.mutator], topoNs); + + const snapshotModels = new Map(); + const snapshotEnums = new Map(); + const snapshotUnions = new Map(); + + collectTypes(mutatedNs as any, snapshotModels, snapshotEnums, snapshotUnions); + + const code = generateTypeScriptCode(program, snapshotModels, snapshotEnums, snapshotUnions); + await emitFile(program, { path: versionFile, content: code }); + } + + const latestVersionStr = versionList[versionList.length - 1]; + let indexCode = `/**\n * This file was automatically generated by the TypeSpec TypeScript emitter.\n * Do not edit this file manually.\n *\n * Points to the latest schema version (v${latestVersionStr}).\n */\n\n`; + indexCode += `export * from './v${latestVersionStr}/index.ts';\n\n`; + for (const v of versionList) { + const identifier = `v${v.replace(/[^a-zA-Z0-9_$]/g, '_')}`; + indexCode += `export * as ${identifier} from './v${v}/index.ts';\n`; + } + + const mainIndexFile = joinPaths(outputDir, 'index.ts'); + await emitFile(program, { path: mainIndexFile, content: indexCode }); + return; + } + } + + // Unversioned fallback + const models = unversionedModels ?? new Map(); + const enums = unversionedEnums ?? new Map(); + const unions = unversionedUnions ?? new Map(); + + const code = generateTypeScriptCode(program, models, enums, unions); + const targetFile = outputTarget.endsWith('.ts') ? outputTarget : joinPaths(outputTarget, 'index.ts'); + await emitFile(program, { path: targetFile, content: code }); } diff --git a/schema/release=v0.3/airport.json b/schema/release=v0.3/airport.json index 29d2f3046..fc0217ee0 100644 --- a/schema/release=v0.3/airport.json +++ b/schema/release=v0.3/airport.json @@ -10,14 +10,15 @@ "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." }, - "type": { "type": "string", "const": "airport" }, "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "theme": { "type": "string", "const": "transport" }, "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], + "required": ["id", "created_at", "updated_at", "t50_fid", "name", "theme", "metadata", "geometry"], + "description": "A facility where aircraft can take off and land;\nusually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo", + "title": "NZ Topography Airport", "additionalProperties": false, "$defs": { "BBox": { diff --git a/schema/release=v0.3/airport.parquet.json b/schema/release=v0.3/airport.parquet.json new file mode 100644 index 000000000..62d50f1d4 --- /dev/null +++ b/schema/release=v0.3/airport.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "airport", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/bridge_line.parquet.json b/schema/release=v0.3/bridge_line.parquet.json new file mode 100644 index 000000000..0aee465dd --- /dev/null +++ b/schema/release=v0.3/bridge_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "bridge_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/building.parquet.json b/schema/release=v0.3/building.parquet.json new file mode 100644 index 000000000..83addd3ba --- /dev/null +++ b/schema/release=v0.3/building.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "building", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/building_point.parquet.json b/schema/release=v0.3/building_point.parquet.json new file mode 100644 index 000000000..96a538ddc --- /dev/null +++ b/schema/release=v0.3/building_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "building_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/coastline.parquet.json b/schema/release=v0.3/coastline.parquet.json new file mode 100644 index 000000000..336c565e1 --- /dev/null +++ b/schema/release=v0.3/coastline.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "coastline", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/contour.parquet.json b/schema/release=v0.3/contour.parquet.json new file mode 100644 index 000000000..464cf67df --- /dev/null +++ b/schema/release=v0.3/contour.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "contour", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/descriptive_text.parquet.json b/schema/release=v0.3/descriptive_text.parquet.json new file mode 100644 index 000000000..2e3d29323 --- /dev/null +++ b/schema/release=v0.3/descriptive_text.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "descriptive_text", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "info_display", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/fence_line.parquet.json b/schema/release=v0.3/fence_line.parquet.json new file mode 100644 index 000000000..25bbfa17e --- /dev/null +++ b/schema/release=v0.3/fence_line.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "fence_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/ferry_line.parquet.json b/schema/release=v0.3/ferry_line.parquet.json new file mode 100644 index 000000000..5e59913a1 --- /dev/null +++ b/schema/release=v0.3/ferry_line.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "ferry_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/geographic_name.parquet.json b/schema/release=v0.3/geographic_name.parquet.json new file mode 100644 index 000000000..b996866a8 --- /dev/null +++ b/schema/release=v0.3/geographic_name.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "geographic_name", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "desc_code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/island.parquet.json b/schema/release=v0.3/island.parquet.json new file mode 100644 index 000000000..f64e5896c --- /dev/null +++ b/schema/release=v0.3/island.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "island", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/landcover.parquet.json b/schema/release=v0.3/landcover.parquet.json new file mode 100644 index 000000000..aa3235ee6 --- /dev/null +++ b/schema/release=v0.3/landcover.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "landcover", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/landcover_line.parquet.json b/schema/release=v0.3/landcover_line.parquet.json new file mode 100644 index 000000000..bdfd1e3bb --- /dev/null +++ b/schema/release=v0.3/landcover_line.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "landcover_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/landcover_point.parquet.json b/schema/release=v0.3/landcover_point.parquet.json new file mode 100644 index 000000000..9459ba2a4 --- /dev/null +++ b/schema/release=v0.3/landcover_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "landcover_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/landuse.parquet.json b/schema/release=v0.3/landuse.parquet.json new file mode 100644 index 000000000..f413fa257 --- /dev/null +++ b/schema/release=v0.3/landuse.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "landuse", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/landuse_line.parquet.json b/schema/release=v0.3/landuse_line.parquet.json new file mode 100644 index 000000000..225a868ca --- /dev/null +++ b/schema/release=v0.3/landuse_line.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "landuse_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/landuse_point.json b/schema/release=v0.3/landuse_point.json index 1af6e7592..8e0800324 100644 --- a/schema/release=v0.3/landuse_point.json +++ b/schema/release=v0.3/landuse_point.json @@ -34,6 +34,7 @@ "metadata", "geometry" ], + "title": "NZ Topography Land Use Point", "additionalProperties": false, "$defs": { "landuse_type": { diff --git a/schema/release=v0.3/landuse_point.parquet.json b/schema/release=v0.3/landuse_point.parquet.json new file mode 100644 index 000000000..76a955d23 --- /dev/null +++ b/schema/release=v0.3/landuse_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "landuse_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/marine.parquet.json b/schema/release=v0.3/marine.parquet.json new file mode 100644 index 000000000..22f161db5 --- /dev/null +++ b/schema/release=v0.3/marine.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "marine", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/marine_point.parquet.json b/schema/release=v0.3/marine_point.parquet.json new file mode 100644 index 000000000..3fb333cee --- /dev/null +++ b/schema/release=v0.3/marine_point.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "marine_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_carto_symbol.parquet.json b/schema/release=v0.3/nztopo50_carto_symbol.parquet.json new file mode 100644 index 000000000..03bfb1091 --- /dev/null +++ b/schema/release=v0.3/nztopo50_carto_symbol.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "nztopo50_carto_symbol", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "source_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "label", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_carto_text.parquet.json b/schema/release=v0.3/nztopo50_carto_text.parquet.json new file mode 100644 index 000000000..416dca944 --- /dev/null +++ b/schema/release=v0.3/nztopo50_carto_text.parquet.json @@ -0,0 +1,42 @@ +{ + "type": "message", + "name": "nztopo50_carto_text", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "example_point_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "full_text", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "text_bend", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_char_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_colour", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "text_height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "text_orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "text_placement", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_size_type", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_stretch_length", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_string", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "text_word_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "style", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "colour", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "placement", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "offset", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "textanchor", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "labelanchor", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "charplace", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "chardistance", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_coastline_island.parquet.json b/schema/release=v0.3/nztopo50_coastline_island.parquet.json new file mode 100644 index 000000000..1184d4f14 --- /dev/null +++ b/schema/release=v0.3/nztopo50_coastline_island.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "nztopo50_coastline_island", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_dms_grid.parquet.json b/schema/release=v0.3/nztopo50_dms_grid.parquet.json new file mode 100644 index 000000000..7b2907580 --- /dev/null +++ b/schema/release=v0.3/nztopo50_dms_grid.parquet.json @@ -0,0 +1,21 @@ +{ + "type": "message", + "name": "nztopo50_dms_grid", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_grid.parquet.json b/schema/release=v0.3/nztopo50_grid.parquet.json new file mode 100644 index 000000000..6103b1042 --- /dev/null +++ b/schema/release=v0.3/nztopo50_grid.parquet.json @@ -0,0 +1,21 @@ +{ + "type": "message", + "name": "nztopo50_grid", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_ice_contour.parquet.json b/schema/release=v0.3/nztopo50_ice_contour.parquet.json new file mode 100644 index 000000000..3f9fab290 --- /dev/null +++ b/schema/release=v0.3/nztopo50_ice_contour.parquet.json @@ -0,0 +1,30 @@ +{ + "type": "message", + "name": "nztopo50_ice_contour", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "contour_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "landcover_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_map_sheet.parquet.json b/schema/release=v0.3/nztopo50_map_sheet.parquet.json new file mode 100644 index 000000000..286b103d8 --- /dev/null +++ b/schema/release=v0.3/nztopo50_map_sheet.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "nztopo50_map_sheet", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "sheet_code", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "sheet_name", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "origin_x", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "origin_y", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "example_point_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "published_version", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "published_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_rock_line.parquet.json b/schema/release=v0.3/nztopo50_rock_line.parquet.json new file mode 100644 index 000000000..e0d221d9f --- /dev/null +++ b/schema/release=v0.3/nztopo50_rock_line.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "nztopo50_rock_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "marine_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/nztopo50_sea_polygon.parquet.json b/schema/release=v0.3/nztopo50_sea_polygon.parquet.json new file mode 100644 index 000000000..157864f73 --- /dev/null +++ b/schema/release=v0.3/nztopo50_sea_polygon.parquet.json @@ -0,0 +1,22 @@ +{ + "type": "message", + "name": "nztopo50_sea_polygon", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "quadkey", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/place_point.parquet.json b/schema/release=v0.3/place_point.parquet.json new file mode 100644 index 000000000..ad0eddb59 --- /dev/null +++ b/schema/release=v0.3/place_point.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "place_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/railway_line.parquet.json b/schema/release=v0.3/railway_line.parquet.json new file mode 100644 index 000000000..513e8ffc9 --- /dev/null +++ b/schema/release=v0.3/railway_line.parquet.json @@ -0,0 +1,29 @@ +{ + "type": "message", + "name": "railway_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "vehicle_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/railway_point.parquet.json b/schema/release=v0.3/railway_point.parquet.json new file mode 100644 index 000000000..ccdf033bd --- /dev/null +++ b/schema/release=v0.3/railway_point.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "railway_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/relief.parquet.json b/schema/release=v0.3/relief.parquet.json new file mode 100644 index 000000000..0d2b7baaa --- /dev/null +++ b/schema/release=v0.3/relief.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "relief", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/relief_line.parquet.json b/schema/release=v0.3/relief_line.parquet.json new file mode 100644 index 000000000..1976a59ea --- /dev/null +++ b/schema/release=v0.3/relief_line.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "relief_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/relief_point.parquet.json b/schema/release=v0.3/relief_point.parquet.json new file mode 100644 index 000000000..f2712d0b3 --- /dev/null +++ b/schema/release=v0.3/relief_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "relief_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/residential_area.parquet.json b/schema/release=v0.3/residential_area.parquet.json new file mode 100644 index 000000000..434c99e2a --- /dev/null +++ b/schema/release=v0.3/residential_area.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "residential_area", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/road_line.parquet.json b/schema/release=v0.3/road_line.parquet.json new file mode 100644 index 000000000..69b50e2c3 --- /dev/null +++ b/schema/release=v0.3/road_line.parquet.json @@ -0,0 +1,33 @@ +{ + "type": "message", + "name": "road_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "hierarchy", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "highway_number", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "lane_count", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "way_count", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "width_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "road_access", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/runway.parquet.json b/schema/release=v0.3/runway.parquet.json new file mode 100644 index 000000000..daa1c08be --- /dev/null +++ b/schema/release=v0.3/runway.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "runway", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/structure.parquet.json b/schema/release=v0.3/structure.parquet.json new file mode 100644 index 000000000..b71bca859 --- /dev/null +++ b/schema/release=v0.3/structure.parquet.json @@ -0,0 +1,30 @@ +{ + "type": "message", + "name": "structure", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "lid_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/structure_line.parquet.json b/schema/release=v0.3/structure_line.parquet.json new file mode 100644 index 000000000..4036420fc --- /dev/null +++ b/schema/release=v0.3/structure_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "structure_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/structure_point.parquet.json b/schema/release=v0.3/structure_point.parquet.json new file mode 100644 index 000000000..cea66890e --- /dev/null +++ b/schema/release=v0.3/structure_point.parquet.json @@ -0,0 +1,30 @@ +{ + "type": "message", + "name": "structure_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/track_line.parquet.json b/schema/release=v0.3/track_line.parquet.json new file mode 100644 index 000000000..3b2fb1135 --- /dev/null +++ b/schema/release=v0.3/track_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "track_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/transport_point.parquet.json b/schema/release=v0.3/transport_point.parquet.json new file mode 100644 index 000000000..9d848e704 --- /dev/null +++ b/schema/release=v0.3/transport_point.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "transport_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/trig_point.parquet.json b/schema/release=v0.3/trig_point.parquet.json new file mode 100644 index 000000000..842881d93 --- /dev/null +++ b/schema/release=v0.3/trig_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "trig_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "trig_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/tunnel_line.parquet.json b/schema/release=v0.3/tunnel_line.parquet.json new file mode 100644 index 000000000..65a217622 --- /dev/null +++ b/schema/release=v0.3/tunnel_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "tunnel_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/utility_line.parquet.json b/schema/release=v0.3/utility_line.parquet.json new file mode 100644 index 000000000..5eaf2f34d --- /dev/null +++ b/schema/release=v0.3/utility_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "utility_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "support_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "visibility", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/utility_point.parquet.json b/schema/release=v0.3/utility_point.parquet.json new file mode 100644 index 000000000..bfc3fd6d0 --- /dev/null +++ b/schema/release=v0.3/utility_point.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "utility_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/vegetation.parquet.json b/schema/release=v0.3/vegetation.parquet.json new file mode 100644 index 000000000..e29085d3c --- /dev/null +++ b/schema/release=v0.3/vegetation.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "vegetation", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/vegetation_line.parquet.json b/schema/release=v0.3/vegetation_line.parquet.json new file mode 100644 index 000000000..3fd3f5ad4 --- /dev/null +++ b/schema/release=v0.3/vegetation_line.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "vegetation_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/vegetation_point.parquet.json b/schema/release=v0.3/vegetation_point.parquet.json new file mode 100644 index 000000000..259f38cdb --- /dev/null +++ b/schema/release=v0.3/vegetation_point.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "vegetation_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/water.json b/schema/release=v0.3/water.json index e161f2771..3a174313e 100644 --- a/schema/release=v0.3/water.json +++ b/schema/release=v0.3/water.json @@ -42,6 +42,7 @@ "metadata", "geometry" ], + "title": "NZ Topography Water", "additionalProperties": false, "$defs": { "water_type": { diff --git a/schema/release=v0.3/water.parquet.json b/schema/release=v0.3/water.parquet.json new file mode 100644 index 000000000..7e0e70aa8 --- /dev/null +++ b/schema/release=v0.3/water.parquet.json @@ -0,0 +1,31 @@ +{ + "type": "message", + "name": "water", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "perennial", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/water_line.parquet.json b/schema/release=v0.3/water_line.parquet.json new file mode 100644 index 000000000..8640d9fe1 --- /dev/null +++ b/schema/release=v0.3/water_line.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "water_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.3/water_point.parquet.json b/schema/release=v0.3/water_point.parquet.json new file mode 100644 index 000000000..a47e0a88f --- /dev/null +++ b/schema/release=v0.3/water_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "water_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/airport.json b/schema/release=v0.4/airport.json index 0715c83c4..eb4348d9c 100644 --- a/schema/release=v0.4/airport.json +++ b/schema/release=v0.4/airport.json @@ -10,14 +10,15 @@ "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." }, - "type": { "type": "string", "const": "airport" }, "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "theme": { "type": "string", "const": "transport" }, "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], + "required": ["id", "created_at", "updated_at", "t50_fid", "name", "theme", "metadata", "geometry"], + "description": "A facility where aircraft can take off and land;\nusually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo", + "title": "NZ Topography Airport", "additionalProperties": false, "$defs": { "BBox": { diff --git a/schema/release=v0.4/airport.parquet.json b/schema/release=v0.4/airport.parquet.json new file mode 100644 index 000000000..62d50f1d4 --- /dev/null +++ b/schema/release=v0.4/airport.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "airport", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/bridge_line.parquet.json b/schema/release=v0.4/bridge_line.parquet.json new file mode 100644 index 000000000..0aee465dd --- /dev/null +++ b/schema/release=v0.4/bridge_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "bridge_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/building.parquet.json b/schema/release=v0.4/building.parquet.json new file mode 100644 index 000000000..83addd3ba --- /dev/null +++ b/schema/release=v0.4/building.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "building", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/building_point.parquet.json b/schema/release=v0.4/building_point.parquet.json new file mode 100644 index 000000000..96a538ddc --- /dev/null +++ b/schema/release=v0.4/building_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "building_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/coastline.parquet.json b/schema/release=v0.4/coastline.parquet.json new file mode 100644 index 000000000..336c565e1 --- /dev/null +++ b/schema/release=v0.4/coastline.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "coastline", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/contour.parquet.json b/schema/release=v0.4/contour.parquet.json new file mode 100644 index 000000000..464cf67df --- /dev/null +++ b/schema/release=v0.4/contour.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "contour", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/descriptive_text.parquet.json b/schema/release=v0.4/descriptive_text.parquet.json new file mode 100644 index 000000000..2e3d29323 --- /dev/null +++ b/schema/release=v0.4/descriptive_text.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "descriptive_text", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "info_display", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/fence_line.parquet.json b/schema/release=v0.4/fence_line.parquet.json new file mode 100644 index 000000000..25bbfa17e --- /dev/null +++ b/schema/release=v0.4/fence_line.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "fence_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/ferry_line.parquet.json b/schema/release=v0.4/ferry_line.parquet.json new file mode 100644 index 000000000..5e59913a1 --- /dev/null +++ b/schema/release=v0.4/ferry_line.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "ferry_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/geographic_name.parquet.json b/schema/release=v0.4/geographic_name.parquet.json new file mode 100644 index 000000000..b996866a8 --- /dev/null +++ b/schema/release=v0.4/geographic_name.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "geographic_name", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "desc_code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/island.parquet.json b/schema/release=v0.4/island.parquet.json new file mode 100644 index 000000000..f64e5896c --- /dev/null +++ b/schema/release=v0.4/island.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "island", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/landcover.parquet.json b/schema/release=v0.4/landcover.parquet.json new file mode 100644 index 000000000..aa3235ee6 --- /dev/null +++ b/schema/release=v0.4/landcover.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "landcover", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/landcover_line.parquet.json b/schema/release=v0.4/landcover_line.parquet.json new file mode 100644 index 000000000..bdfd1e3bb --- /dev/null +++ b/schema/release=v0.4/landcover_line.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "landcover_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/landcover_point.parquet.json b/schema/release=v0.4/landcover_point.parquet.json new file mode 100644 index 000000000..9459ba2a4 --- /dev/null +++ b/schema/release=v0.4/landcover_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "landcover_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/landuse.parquet.json b/schema/release=v0.4/landuse.parquet.json new file mode 100644 index 000000000..f413fa257 --- /dev/null +++ b/schema/release=v0.4/landuse.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "landuse", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/landuse_line.parquet.json b/schema/release=v0.4/landuse_line.parquet.json new file mode 100644 index 000000000..225a868ca --- /dev/null +++ b/schema/release=v0.4/landuse_line.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "landuse_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/landuse_point.json b/schema/release=v0.4/landuse_point.json index 16319c194..04a456ded 100644 --- a/schema/release=v0.4/landuse_point.json +++ b/schema/release=v0.4/landuse_point.json @@ -34,6 +34,7 @@ "metadata", "geometry" ], + "title": "NZ Topography Land Use Point", "additionalProperties": false, "$defs": { "landuse_type": { diff --git a/schema/release=v0.4/landuse_point.parquet.json b/schema/release=v0.4/landuse_point.parquet.json new file mode 100644 index 000000000..76a955d23 --- /dev/null +++ b/schema/release=v0.4/landuse_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "landuse_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/marine.parquet.json b/schema/release=v0.4/marine.parquet.json new file mode 100644 index 000000000..22f161db5 --- /dev/null +++ b/schema/release=v0.4/marine.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "marine", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/marine_point.parquet.json b/schema/release=v0.4/marine_point.parquet.json new file mode 100644 index 000000000..3fb333cee --- /dev/null +++ b/schema/release=v0.4/marine_point.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "marine_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_carto_symbol.parquet.json b/schema/release=v0.4/nztopo50_carto_symbol.parquet.json new file mode 100644 index 000000000..03bfb1091 --- /dev/null +++ b/schema/release=v0.4/nztopo50_carto_symbol.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "nztopo50_carto_symbol", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "source_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "label", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_carto_text.parquet.json b/schema/release=v0.4/nztopo50_carto_text.parquet.json new file mode 100644 index 000000000..416dca944 --- /dev/null +++ b/schema/release=v0.4/nztopo50_carto_text.parquet.json @@ -0,0 +1,42 @@ +{ + "type": "message", + "name": "nztopo50_carto_text", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "example_point_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "full_text", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "text_bend", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_char_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_colour", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "text_height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "text_orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "text_placement", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_size_type", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_stretch_length", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "text_string", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "text_word_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "style", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "colour", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "placement", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "offset", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "textanchor", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "labelanchor", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "charplace", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "chardistance", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_coastline_island.parquet.json b/schema/release=v0.4/nztopo50_coastline_island.parquet.json new file mode 100644 index 000000000..1184d4f14 --- /dev/null +++ b/schema/release=v0.4/nztopo50_coastline_island.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "nztopo50_coastline_island", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_dms_grid.parquet.json b/schema/release=v0.4/nztopo50_dms_grid.parquet.json new file mode 100644 index 000000000..7b2907580 --- /dev/null +++ b/schema/release=v0.4/nztopo50_dms_grid.parquet.json @@ -0,0 +1,21 @@ +{ + "type": "message", + "name": "nztopo50_dms_grid", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_grid.parquet.json b/schema/release=v0.4/nztopo50_grid.parquet.json new file mode 100644 index 000000000..6103b1042 --- /dev/null +++ b/schema/release=v0.4/nztopo50_grid.parquet.json @@ -0,0 +1,21 @@ +{ + "type": "message", + "name": "nztopo50_grid", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_ice_contour.parquet.json b/schema/release=v0.4/nztopo50_ice_contour.parquet.json new file mode 100644 index 000000000..3f9fab290 --- /dev/null +++ b/schema/release=v0.4/nztopo50_ice_contour.parquet.json @@ -0,0 +1,30 @@ +{ + "type": "message", + "name": "nztopo50_ice_contour", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "contour_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "landcover_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_map_sheet.parquet.json b/schema/release=v0.4/nztopo50_map_sheet.parquet.json new file mode 100644 index 000000000..286b103d8 --- /dev/null +++ b/schema/release=v0.4/nztopo50_map_sheet.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "nztopo50_map_sheet", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "sheet_code", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "sheet_name", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "origin_x", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "origin_y", "repetition_type": "REQUIRED", "type": "DOUBLE" }, + { "name": "example_point_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "published_version", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "published_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_rock_line.parquet.json b/schema/release=v0.4/nztopo50_rock_line.parquet.json new file mode 100644 index 000000000..e0d221d9f --- /dev/null +++ b/schema/release=v0.4/nztopo50_rock_line.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "nztopo50_rock_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "marine_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/nztopo50_sea_polygon.parquet.json b/schema/release=v0.4/nztopo50_sea_polygon.parquet.json new file mode 100644 index 000000000..157864f73 --- /dev/null +++ b/schema/release=v0.4/nztopo50_sea_polygon.parquet.json @@ -0,0 +1,22 @@ +{ + "type": "message", + "name": "nztopo50_sea_polygon", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "quadkey", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/place_point.parquet.json b/schema/release=v0.4/place_point.parquet.json new file mode 100644 index 000000000..ad0eddb59 --- /dev/null +++ b/schema/release=v0.4/place_point.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "place_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/railway_line.parquet.json b/schema/release=v0.4/railway_line.parquet.json new file mode 100644 index 000000000..513e8ffc9 --- /dev/null +++ b/schema/release=v0.4/railway_line.parquet.json @@ -0,0 +1,29 @@ +{ + "type": "message", + "name": "railway_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "vehicle_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/railway_point.parquet.json b/schema/release=v0.4/railway_point.parquet.json new file mode 100644 index 000000000..ccdf033bd --- /dev/null +++ b/schema/release=v0.4/railway_point.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "railway_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/relief.parquet.json b/schema/release=v0.4/relief.parquet.json new file mode 100644 index 000000000..0d2b7baaa --- /dev/null +++ b/schema/release=v0.4/relief.parquet.json @@ -0,0 +1,26 @@ +{ + "type": "message", + "name": "relief", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/relief_line.parquet.json b/schema/release=v0.4/relief_line.parquet.json new file mode 100644 index 000000000..1976a59ea --- /dev/null +++ b/schema/release=v0.4/relief_line.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "relief_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/relief_point.parquet.json b/schema/release=v0.4/relief_point.parquet.json new file mode 100644 index 000000000..f2712d0b3 --- /dev/null +++ b/schema/release=v0.4/relief_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "relief_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/residential_area.parquet.json b/schema/release=v0.4/residential_area.parquet.json new file mode 100644 index 000000000..434c99e2a --- /dev/null +++ b/schema/release=v0.4/residential_area.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "residential_area", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/road_line.parquet.json b/schema/release=v0.4/road_line.parquet.json new file mode 100644 index 000000000..69b50e2c3 --- /dev/null +++ b/schema/release=v0.4/road_line.parquet.json @@ -0,0 +1,33 @@ +{ + "type": "message", + "name": "road_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "hierarchy", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "highway_number", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "lane_count", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "way_count", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "width_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "road_access", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/runway.parquet.json b/schema/release=v0.4/runway.parquet.json new file mode 100644 index 000000000..daa1c08be --- /dev/null +++ b/schema/release=v0.4/runway.parquet.json @@ -0,0 +1,27 @@ +{ + "type": "message", + "name": "runway", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/structure.parquet.json b/schema/release=v0.4/structure.parquet.json new file mode 100644 index 000000000..b71bca859 --- /dev/null +++ b/schema/release=v0.4/structure.parquet.json @@ -0,0 +1,30 @@ +{ + "type": "message", + "name": "structure", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "lid_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/structure_line.parquet.json b/schema/release=v0.4/structure_line.parquet.json new file mode 100644 index 000000000..4036420fc --- /dev/null +++ b/schema/release=v0.4/structure_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "structure_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/structure_point.parquet.json b/schema/release=v0.4/structure_point.parquet.json new file mode 100644 index 000000000..cea66890e --- /dev/null +++ b/schema/release=v0.4/structure_point.parquet.json @@ -0,0 +1,30 @@ +{ + "type": "message", + "name": "structure_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/track_line.parquet.json b/schema/release=v0.4/track_line.parquet.json new file mode 100644 index 000000000..3b2fb1135 --- /dev/null +++ b/schema/release=v0.4/track_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "track_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/transport_point.parquet.json b/schema/release=v0.4/transport_point.parquet.json new file mode 100644 index 000000000..9d848e704 --- /dev/null +++ b/schema/release=v0.4/transport_point.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "transport_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/trig_point.parquet.json b/schema/release=v0.4/trig_point.parquet.json new file mode 100644 index 000000000..842881d93 --- /dev/null +++ b/schema/release=v0.4/trig_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "trig_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "trig_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/tunnel_line.parquet.json b/schema/release=v0.4/tunnel_line.parquet.json new file mode 100644 index 000000000..65a217622 --- /dev/null +++ b/schema/release=v0.4/tunnel_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "tunnel_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/utility_line.parquet.json b/schema/release=v0.4/utility_line.parquet.json new file mode 100644 index 000000000..5eaf2f34d --- /dev/null +++ b/schema/release=v0.4/utility_line.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "utility_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "support_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "visibility", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/utility_point.parquet.json b/schema/release=v0.4/utility_point.parquet.json new file mode 100644 index 000000000..bfc3fd6d0 --- /dev/null +++ b/schema/release=v0.4/utility_point.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "utility_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/vegetation.parquet.json b/schema/release=v0.4/vegetation.parquet.json new file mode 100644 index 000000000..e29085d3c --- /dev/null +++ b/schema/release=v0.4/vegetation.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "vegetation", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/vegetation_line.parquet.json b/schema/release=v0.4/vegetation_line.parquet.json new file mode 100644 index 000000000..3fd3f5ad4 --- /dev/null +++ b/schema/release=v0.4/vegetation_line.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "vegetation_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/vegetation_point.parquet.json b/schema/release=v0.4/vegetation_point.parquet.json new file mode 100644 index 000000000..259f38cdb --- /dev/null +++ b/schema/release=v0.4/vegetation_point.parquet.json @@ -0,0 +1,24 @@ +{ + "type": "message", + "name": "vegetation_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/water.json b/schema/release=v0.4/water.json index d2c42adba..29c6b3654 100644 --- a/schema/release=v0.4/water.json +++ b/schema/release=v0.4/water.json @@ -42,6 +42,7 @@ "metadata", "geometry" ], + "title": "NZ Topography Water", "additionalProperties": false, "$defs": { "water_type": { diff --git a/schema/release=v0.4/water.parquet.json b/schema/release=v0.4/water.parquet.json new file mode 100644 index 000000000..7e0e70aa8 --- /dev/null +++ b/schema/release=v0.4/water.parquet.json @@ -0,0 +1,31 @@ +{ + "type": "message", + "name": "water", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "perennial", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/water_line.parquet.json b/schema/release=v0.4/water_line.parquet.json new file mode 100644 index 000000000..8640d9fe1 --- /dev/null +++ b/schema/release=v0.4/water_line.parquet.json @@ -0,0 +1,25 @@ +{ + "type": "message", + "name": "water_line", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} diff --git a/schema/release=v0.4/water_point.parquet.json b/schema/release=v0.4/water_point.parquet.json new file mode 100644 index 000000000..a47e0a88f --- /dev/null +++ b/schema/release=v0.4/water_point.parquet.json @@ -0,0 +1,28 @@ +{ + "type": "message", + "name": "water_point", + "fields": [ + { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, + { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, + { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, + { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, + { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, + { + "name": "bbox", + "repetition_type": "OPTIONAL", + "fields": [ + { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, + { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } + ] + } + ] +} From cc1701bc2375696f9d40ce06f50f23866c6bade9 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 16 Sep 2026 13:20:10 +1200 Subject: [PATCH 18/20] refactor: remove schemas from github --- .gitignore | 4 +- packages/schema/src/features/airport.tsp | 3 - packages/schema/src/types/index.ts | 11 - packages/schema/src/types/v0.3/index.ts | 1631 ----------------- packages/schema/src/types/v0.4/index.ts | 1631 ----------------- schema/release=v0.3/airport.json | 37 - schema/release=v0.3/airport.parquet.json | 24 - schema/release=v0.3/bridge_line.json | 71 - schema/release=v0.3/bridge_line.parquet.json | 28 - schema/release=v0.3/building.json | 93 - schema/release=v0.3/building.parquet.json | 27 - schema/release=v0.3/building_point.json | 95 - .../release=v0.3/building_point.parquet.json | 28 - schema/release=v0.3/coastline.json | 44 - schema/release=v0.3/coastline.parquet.json | 25 - schema/release=v0.3/contour.json | 54 - schema/release=v0.3/contour.parquet.json | 28 - schema/release=v0.3/descriptive_text.json | 48 - .../descriptive_text.parquet.json | 26 - schema/release=v0.3/fence_line.json | 35 - schema/release=v0.3/fence_line.parquet.json | 24 - schema/release=v0.3/ferry_line.json | 44 - schema/release=v0.3/ferry_line.parquet.json | 26 - schema/release=v0.3/geographic_name.json | 50 - .../release=v0.3/geographic_name.parquet.json | 27 - schema/release=v0.3/island.json | 48 - schema/release=v0.3/island.parquet.json | 26 - schema/release=v0.3/landcover.json | 40 - schema/release=v0.3/landcover.parquet.json | 25 - schema/release=v0.3/landcover_line.json | 35 - .../release=v0.3/landcover_line.parquet.json | 24 - schema/release=v0.3/landcover_point.json | 93 - .../release=v0.3/landcover_point.parquet.json | 28 - schema/release=v0.3/landuse.json | 97 - schema/release=v0.3/landuse.parquet.json | 28 - schema/release=v0.3/landuse_line.json | 60 - schema/release=v0.3/landuse_line.parquet.json | 26 - schema/release=v0.3/landuse_point.json | 98 - .../release=v0.3/landuse_point.parquet.json | 28 - schema/release=v0.3/marine.json | 45 - schema/release=v0.3/marine.parquet.json | 26 - schema/release=v0.3/marine_point.json | 38 - schema/release=v0.3/marine_point.parquet.json | 26 - .../release=v0.3/nztopo50_carto_symbol.json | 46 - .../nztopo50_carto_symbol.parquet.json | 25 - schema/release=v0.3/nztopo50_carto_text.json | 118 -- .../nztopo50_carto_text.parquet.json | 42 - .../nztopo50_coastline_island.json | 44 - .../nztopo50_coastline_island.parquet.json | 25 - schema/release=v0.3/nztopo50_dms_grid.json | 33 - .../nztopo50_dms_grid.parquet.json | 21 - schema/release=v0.3/nztopo50_grid.json | 33 - .../release=v0.3/nztopo50_grid.parquet.json | 21 - schema/release=v0.3/nztopo50_ice_contour.json | 58 - .../nztopo50_ice_contour.parquet.json | 30 - schema/release=v0.3/nztopo50_map_sheet.json | 52 - .../nztopo50_map_sheet.parquet.json | 28 - schema/release=v0.3/nztopo50_rock_line.json | 52 - .../nztopo50_rock_line.parquet.json | 26 - schema/release=v0.3/nztopo50_sea_polygon.json | 31 - .../nztopo50_sea_polygon.parquet.json | 22 - schema/release=v0.3/place_point.json | 39 - schema/release=v0.3/place_point.parquet.json | 26 - schema/release=v0.3/railway_line.json | 59 - schema/release=v0.3/railway_line.parquet.json | 29 - schema/release=v0.3/railway_point.json | 36 - .../release=v0.3/railway_point.parquet.json | 25 - schema/release=v0.3/relief.json | 42 - schema/release=v0.3/relief.parquet.json | 26 - schema/release=v0.3/relief_line.json | 64 - schema/release=v0.3/relief_line.parquet.json | 27 - schema/release=v0.3/relief_point.json | 55 - schema/release=v0.3/relief_point.parquet.json | 28 - schema/release=v0.3/residential_area.json | 36 - .../residential_area.parquet.json | 25 - schema/release=v0.3/road_line.json | 66 - schema/release=v0.3/road_line.parquet.json | 33 - schema/release=v0.3/runway.json | 53 - schema/release=v0.3/runway.parquet.json | 27 - schema/release=v0.3/structure.json | 104 -- schema/release=v0.3/structure.parquet.json | 30 - schema/release=v0.3/structure_line.json | 118 -- .../release=v0.3/structure_line.parquet.json | 28 - schema/release=v0.3/structure_point.json | 126 -- .../release=v0.3/structure_point.parquet.json | 30 - schema/release=v0.3/track_line.json | 55 - schema/release=v0.3/track_line.parquet.json | 28 - schema/release=v0.3/transport_point.json | 41 - .../release=v0.3/transport_point.parquet.json | 25 - schema/release=v0.3/trig_point.json | 54 - schema/release=v0.3/trig_point.parquet.json | 28 - schema/release=v0.3/tunnel_line.json | 58 - schema/release=v0.3/tunnel_line.parquet.json | 28 - schema/release=v0.3/utility_line.json | 61 - schema/release=v0.3/utility_line.parquet.json | 28 - schema/release=v0.3/utility_point.json | 37 - .../release=v0.3/utility_point.parquet.json | 25 - schema/release=v0.3/vegetation.json | 44 - schema/release=v0.3/vegetation.parquet.json | 25 - schema/release=v0.3/vegetation_line.json | 35 - .../release=v0.3/vegetation_line.parquet.json | 24 - schema/release=v0.3/vegetation_point.json | 40 - .../vegetation_point.parquet.json | 24 - schema/release=v0.3/water.json | 82 - schema/release=v0.3/water.parquet.json | 31 - schema/release=v0.3/water_line.json | 40 - schema/release=v0.3/water_line.parquet.json | 25 - schema/release=v0.3/water_point.json | 57 - schema/release=v0.3/water_point.parquet.json | 28 - schema/release=v0.4/airport.json | 37 - schema/release=v0.4/airport.parquet.json | 24 - schema/release=v0.4/bridge_line.json | 71 - schema/release=v0.4/bridge_line.parquet.json | 28 - schema/release=v0.4/building.json | 93 - schema/release=v0.4/building.parquet.json | 27 - schema/release=v0.4/building_point.json | 95 - .../release=v0.4/building_point.parquet.json | 28 - schema/release=v0.4/coastline.json | 44 - schema/release=v0.4/coastline.parquet.json | 25 - schema/release=v0.4/contour.json | 54 - schema/release=v0.4/contour.parquet.json | 28 - schema/release=v0.4/descriptive_text.json | 48 - .../descriptive_text.parquet.json | 26 - schema/release=v0.4/fence_line.json | 35 - schema/release=v0.4/fence_line.parquet.json | 24 - schema/release=v0.4/ferry_line.json | 44 - schema/release=v0.4/ferry_line.parquet.json | 26 - schema/release=v0.4/geographic_name.json | 50 - .../release=v0.4/geographic_name.parquet.json | 27 - schema/release=v0.4/island.json | 48 - schema/release=v0.4/island.parquet.json | 26 - schema/release=v0.4/landcover.json | 40 - schema/release=v0.4/landcover.parquet.json | 25 - schema/release=v0.4/landcover_line.json | 35 - .../release=v0.4/landcover_line.parquet.json | 24 - schema/release=v0.4/landcover_point.json | 93 - .../release=v0.4/landcover_point.parquet.json | 28 - schema/release=v0.4/landuse.json | 97 - schema/release=v0.4/landuse.parquet.json | 28 - schema/release=v0.4/landuse_line.json | 60 - schema/release=v0.4/landuse_line.parquet.json | 26 - schema/release=v0.4/landuse_point.json | 98 - .../release=v0.4/landuse_point.parquet.json | 28 - schema/release=v0.4/marine.json | 45 - schema/release=v0.4/marine.parquet.json | 26 - schema/release=v0.4/marine_point.json | 38 - schema/release=v0.4/marine_point.parquet.json | 26 - .../release=v0.4/nztopo50_carto_symbol.json | 46 - .../nztopo50_carto_symbol.parquet.json | 25 - schema/release=v0.4/nztopo50_carto_text.json | 118 -- .../nztopo50_carto_text.parquet.json | 42 - .../nztopo50_coastline_island.json | 44 - .../nztopo50_coastline_island.parquet.json | 25 - schema/release=v0.4/nztopo50_dms_grid.json | 33 - .../nztopo50_dms_grid.parquet.json | 21 - schema/release=v0.4/nztopo50_grid.json | 33 - .../release=v0.4/nztopo50_grid.parquet.json | 21 - schema/release=v0.4/nztopo50_ice_contour.json | 58 - .../nztopo50_ice_contour.parquet.json | 30 - schema/release=v0.4/nztopo50_map_sheet.json | 52 - .../nztopo50_map_sheet.parquet.json | 28 - schema/release=v0.4/nztopo50_rock_line.json | 52 - .../nztopo50_rock_line.parquet.json | 26 - schema/release=v0.4/nztopo50_sea_polygon.json | 31 - .../nztopo50_sea_polygon.parquet.json | 22 - schema/release=v0.4/place_point.json | 39 - schema/release=v0.4/place_point.parquet.json | 26 - schema/release=v0.4/railway_line.json | 59 - schema/release=v0.4/railway_line.parquet.json | 29 - schema/release=v0.4/railway_point.json | 36 - .../release=v0.4/railway_point.parquet.json | 25 - schema/release=v0.4/relief.json | 42 - schema/release=v0.4/relief.parquet.json | 26 - schema/release=v0.4/relief_line.json | 64 - schema/release=v0.4/relief_line.parquet.json | 27 - schema/release=v0.4/relief_point.json | 55 - schema/release=v0.4/relief_point.parquet.json | 28 - schema/release=v0.4/residential_area.json | 36 - .../residential_area.parquet.json | 25 - schema/release=v0.4/road_line.json | 66 - schema/release=v0.4/road_line.parquet.json | 33 - schema/release=v0.4/runway.json | 53 - schema/release=v0.4/runway.parquet.json | 27 - schema/release=v0.4/structure.json | 104 -- schema/release=v0.4/structure.parquet.json | 30 - schema/release=v0.4/structure_line.json | 118 -- .../release=v0.4/structure_line.parquet.json | 28 - schema/release=v0.4/structure_point.json | 126 -- .../release=v0.4/structure_point.parquet.json | 30 - schema/release=v0.4/track_line.json | 55 - schema/release=v0.4/track_line.parquet.json | 28 - schema/release=v0.4/transport_point.json | 41 - .../release=v0.4/transport_point.parquet.json | 25 - schema/release=v0.4/trig_point.json | 54 - schema/release=v0.4/trig_point.parquet.json | 28 - schema/release=v0.4/tunnel_line.json | 58 - schema/release=v0.4/tunnel_line.parquet.json | 28 - schema/release=v0.4/utility_line.json | 61 - schema/release=v0.4/utility_line.parquet.json | 28 - schema/release=v0.4/utility_point.json | 37 - .../release=v0.4/utility_point.parquet.json | 25 - schema/release=v0.4/vegetation.json | 44 - schema/release=v0.4/vegetation.parquet.json | 25 - schema/release=v0.4/vegetation_line.json | 35 - .../release=v0.4/vegetation_line.parquet.json | 24 - schema/release=v0.4/vegetation_point.json | 40 - .../vegetation_point.parquet.json | 24 - schema/release=v0.4/water.json | 82 - schema/release=v0.4/water.parquet.json | 31 - schema/release=v0.4/water_line.json | 40 - schema/release=v0.4/water_line.parquet.json | 25 - schema/release=v0.4/water_point.json | 57 - schema/release=v0.4/water_point.parquet.json | 28 - 213 files changed, 3 insertions(+), 12051 deletions(-) delete mode 100644 packages/schema/src/types/index.ts delete mode 100644 packages/schema/src/types/v0.3/index.ts delete mode 100644 packages/schema/src/types/v0.4/index.ts delete mode 100644 schema/release=v0.3/airport.json delete mode 100644 schema/release=v0.3/airport.parquet.json delete mode 100644 schema/release=v0.3/bridge_line.json delete mode 100644 schema/release=v0.3/bridge_line.parquet.json delete mode 100644 schema/release=v0.3/building.json delete mode 100644 schema/release=v0.3/building.parquet.json delete mode 100644 schema/release=v0.3/building_point.json delete mode 100644 schema/release=v0.3/building_point.parquet.json delete mode 100644 schema/release=v0.3/coastline.json delete mode 100644 schema/release=v0.3/coastline.parquet.json delete mode 100644 schema/release=v0.3/contour.json delete mode 100644 schema/release=v0.3/contour.parquet.json delete mode 100644 schema/release=v0.3/descriptive_text.json delete mode 100644 schema/release=v0.3/descriptive_text.parquet.json delete mode 100644 schema/release=v0.3/fence_line.json delete mode 100644 schema/release=v0.3/fence_line.parquet.json delete mode 100644 schema/release=v0.3/ferry_line.json delete mode 100644 schema/release=v0.3/ferry_line.parquet.json delete mode 100644 schema/release=v0.3/geographic_name.json delete mode 100644 schema/release=v0.3/geographic_name.parquet.json delete mode 100644 schema/release=v0.3/island.json delete mode 100644 schema/release=v0.3/island.parquet.json delete mode 100644 schema/release=v0.3/landcover.json delete mode 100644 schema/release=v0.3/landcover.parquet.json delete mode 100644 schema/release=v0.3/landcover_line.json delete mode 100644 schema/release=v0.3/landcover_line.parquet.json delete mode 100644 schema/release=v0.3/landcover_point.json delete mode 100644 schema/release=v0.3/landcover_point.parquet.json delete mode 100644 schema/release=v0.3/landuse.json delete mode 100644 schema/release=v0.3/landuse.parquet.json delete mode 100644 schema/release=v0.3/landuse_line.json delete mode 100644 schema/release=v0.3/landuse_line.parquet.json delete mode 100644 schema/release=v0.3/landuse_point.json delete mode 100644 schema/release=v0.3/landuse_point.parquet.json delete mode 100644 schema/release=v0.3/marine.json delete mode 100644 schema/release=v0.3/marine.parquet.json delete mode 100644 schema/release=v0.3/marine_point.json delete mode 100644 schema/release=v0.3/marine_point.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_carto_symbol.json delete mode 100644 schema/release=v0.3/nztopo50_carto_symbol.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_carto_text.json delete mode 100644 schema/release=v0.3/nztopo50_carto_text.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_coastline_island.json delete mode 100644 schema/release=v0.3/nztopo50_coastline_island.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_dms_grid.json delete mode 100644 schema/release=v0.3/nztopo50_dms_grid.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_grid.json delete mode 100644 schema/release=v0.3/nztopo50_grid.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_ice_contour.json delete mode 100644 schema/release=v0.3/nztopo50_ice_contour.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_map_sheet.json delete mode 100644 schema/release=v0.3/nztopo50_map_sheet.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_rock_line.json delete mode 100644 schema/release=v0.3/nztopo50_rock_line.parquet.json delete mode 100644 schema/release=v0.3/nztopo50_sea_polygon.json delete mode 100644 schema/release=v0.3/nztopo50_sea_polygon.parquet.json delete mode 100644 schema/release=v0.3/place_point.json delete mode 100644 schema/release=v0.3/place_point.parquet.json delete mode 100644 schema/release=v0.3/railway_line.json delete mode 100644 schema/release=v0.3/railway_line.parquet.json delete mode 100644 schema/release=v0.3/railway_point.json delete mode 100644 schema/release=v0.3/railway_point.parquet.json delete mode 100644 schema/release=v0.3/relief.json delete mode 100644 schema/release=v0.3/relief.parquet.json delete mode 100644 schema/release=v0.3/relief_line.json delete mode 100644 schema/release=v0.3/relief_line.parquet.json delete mode 100644 schema/release=v0.3/relief_point.json delete mode 100644 schema/release=v0.3/relief_point.parquet.json delete mode 100644 schema/release=v0.3/residential_area.json delete mode 100644 schema/release=v0.3/residential_area.parquet.json delete mode 100644 schema/release=v0.3/road_line.json delete mode 100644 schema/release=v0.3/road_line.parquet.json delete mode 100644 schema/release=v0.3/runway.json delete mode 100644 schema/release=v0.3/runway.parquet.json delete mode 100644 schema/release=v0.3/structure.json delete mode 100644 schema/release=v0.3/structure.parquet.json delete mode 100644 schema/release=v0.3/structure_line.json delete mode 100644 schema/release=v0.3/structure_line.parquet.json delete mode 100644 schema/release=v0.3/structure_point.json delete mode 100644 schema/release=v0.3/structure_point.parquet.json delete mode 100644 schema/release=v0.3/track_line.json delete mode 100644 schema/release=v0.3/track_line.parquet.json delete mode 100644 schema/release=v0.3/transport_point.json delete mode 100644 schema/release=v0.3/transport_point.parquet.json delete mode 100644 schema/release=v0.3/trig_point.json delete mode 100644 schema/release=v0.3/trig_point.parquet.json delete mode 100644 schema/release=v0.3/tunnel_line.json delete mode 100644 schema/release=v0.3/tunnel_line.parquet.json delete mode 100644 schema/release=v0.3/utility_line.json delete mode 100644 schema/release=v0.3/utility_line.parquet.json delete mode 100644 schema/release=v0.3/utility_point.json delete mode 100644 schema/release=v0.3/utility_point.parquet.json delete mode 100644 schema/release=v0.3/vegetation.json delete mode 100644 schema/release=v0.3/vegetation.parquet.json delete mode 100644 schema/release=v0.3/vegetation_line.json delete mode 100644 schema/release=v0.3/vegetation_line.parquet.json delete mode 100644 schema/release=v0.3/vegetation_point.json delete mode 100644 schema/release=v0.3/vegetation_point.parquet.json delete mode 100644 schema/release=v0.3/water.json delete mode 100644 schema/release=v0.3/water.parquet.json delete mode 100644 schema/release=v0.3/water_line.json delete mode 100644 schema/release=v0.3/water_line.parquet.json delete mode 100644 schema/release=v0.3/water_point.json delete mode 100644 schema/release=v0.3/water_point.parquet.json delete mode 100644 schema/release=v0.4/airport.json delete mode 100644 schema/release=v0.4/airport.parquet.json delete mode 100644 schema/release=v0.4/bridge_line.json delete mode 100644 schema/release=v0.4/bridge_line.parquet.json delete mode 100644 schema/release=v0.4/building.json delete mode 100644 schema/release=v0.4/building.parquet.json delete mode 100644 schema/release=v0.4/building_point.json delete mode 100644 schema/release=v0.4/building_point.parquet.json delete mode 100644 schema/release=v0.4/coastline.json delete mode 100644 schema/release=v0.4/coastline.parquet.json delete mode 100644 schema/release=v0.4/contour.json delete mode 100644 schema/release=v0.4/contour.parquet.json delete mode 100644 schema/release=v0.4/descriptive_text.json delete mode 100644 schema/release=v0.4/descriptive_text.parquet.json delete mode 100644 schema/release=v0.4/fence_line.json delete mode 100644 schema/release=v0.4/fence_line.parquet.json delete mode 100644 schema/release=v0.4/ferry_line.json delete mode 100644 schema/release=v0.4/ferry_line.parquet.json delete mode 100644 schema/release=v0.4/geographic_name.json delete mode 100644 schema/release=v0.4/geographic_name.parquet.json delete mode 100644 schema/release=v0.4/island.json delete mode 100644 schema/release=v0.4/island.parquet.json delete mode 100644 schema/release=v0.4/landcover.json delete mode 100644 schema/release=v0.4/landcover.parquet.json delete mode 100644 schema/release=v0.4/landcover_line.json delete mode 100644 schema/release=v0.4/landcover_line.parquet.json delete mode 100644 schema/release=v0.4/landcover_point.json delete mode 100644 schema/release=v0.4/landcover_point.parquet.json delete mode 100644 schema/release=v0.4/landuse.json delete mode 100644 schema/release=v0.4/landuse.parquet.json delete mode 100644 schema/release=v0.4/landuse_line.json delete mode 100644 schema/release=v0.4/landuse_line.parquet.json delete mode 100644 schema/release=v0.4/landuse_point.json delete mode 100644 schema/release=v0.4/landuse_point.parquet.json delete mode 100644 schema/release=v0.4/marine.json delete mode 100644 schema/release=v0.4/marine.parquet.json delete mode 100644 schema/release=v0.4/marine_point.json delete mode 100644 schema/release=v0.4/marine_point.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_carto_symbol.json delete mode 100644 schema/release=v0.4/nztopo50_carto_symbol.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_carto_text.json delete mode 100644 schema/release=v0.4/nztopo50_carto_text.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_coastline_island.json delete mode 100644 schema/release=v0.4/nztopo50_coastline_island.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_dms_grid.json delete mode 100644 schema/release=v0.4/nztopo50_dms_grid.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_grid.json delete mode 100644 schema/release=v0.4/nztopo50_grid.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_ice_contour.json delete mode 100644 schema/release=v0.4/nztopo50_ice_contour.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_map_sheet.json delete mode 100644 schema/release=v0.4/nztopo50_map_sheet.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_rock_line.json delete mode 100644 schema/release=v0.4/nztopo50_rock_line.parquet.json delete mode 100644 schema/release=v0.4/nztopo50_sea_polygon.json delete mode 100644 schema/release=v0.4/nztopo50_sea_polygon.parquet.json delete mode 100644 schema/release=v0.4/place_point.json delete mode 100644 schema/release=v0.4/place_point.parquet.json delete mode 100644 schema/release=v0.4/railway_line.json delete mode 100644 schema/release=v0.4/railway_line.parquet.json delete mode 100644 schema/release=v0.4/railway_point.json delete mode 100644 schema/release=v0.4/railway_point.parquet.json delete mode 100644 schema/release=v0.4/relief.json delete mode 100644 schema/release=v0.4/relief.parquet.json delete mode 100644 schema/release=v0.4/relief_line.json delete mode 100644 schema/release=v0.4/relief_line.parquet.json delete mode 100644 schema/release=v0.4/relief_point.json delete mode 100644 schema/release=v0.4/relief_point.parquet.json delete mode 100644 schema/release=v0.4/residential_area.json delete mode 100644 schema/release=v0.4/residential_area.parquet.json delete mode 100644 schema/release=v0.4/road_line.json delete mode 100644 schema/release=v0.4/road_line.parquet.json delete mode 100644 schema/release=v0.4/runway.json delete mode 100644 schema/release=v0.4/runway.parquet.json delete mode 100644 schema/release=v0.4/structure.json delete mode 100644 schema/release=v0.4/structure.parquet.json delete mode 100644 schema/release=v0.4/structure_line.json delete mode 100644 schema/release=v0.4/structure_line.parquet.json delete mode 100644 schema/release=v0.4/structure_point.json delete mode 100644 schema/release=v0.4/structure_point.parquet.json delete mode 100644 schema/release=v0.4/track_line.json delete mode 100644 schema/release=v0.4/track_line.parquet.json delete mode 100644 schema/release=v0.4/transport_point.json delete mode 100644 schema/release=v0.4/transport_point.parquet.json delete mode 100644 schema/release=v0.4/trig_point.json delete mode 100644 schema/release=v0.4/trig_point.parquet.json delete mode 100644 schema/release=v0.4/tunnel_line.json delete mode 100644 schema/release=v0.4/tunnel_line.parquet.json delete mode 100644 schema/release=v0.4/utility_line.json delete mode 100644 schema/release=v0.4/utility_line.parquet.json delete mode 100644 schema/release=v0.4/utility_point.json delete mode 100644 schema/release=v0.4/utility_point.parquet.json delete mode 100644 schema/release=v0.4/vegetation.json delete mode 100644 schema/release=v0.4/vegetation.parquet.json delete mode 100644 schema/release=v0.4/vegetation_line.json delete mode 100644 schema/release=v0.4/vegetation_line.parquet.json delete mode 100644 schema/release=v0.4/vegetation_point.json delete mode 100644 schema/release=v0.4/vegetation_point.parquet.json delete mode 100644 schema/release=v0.4/water.json delete mode 100644 schema/release=v0.4/water.parquet.json delete mode 100644 schema/release=v0.4/water_line.json delete mode 100644 schema/release=v0.4/water_line.parquet.json delete mode 100644 schema/release=v0.4/water_point.json delete mode 100644 schema/release=v0.4/water_point.parquet.json diff --git a/.gitignore b/.gitignore index 38fcd8801..1f44f1f03 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,6 @@ target/ .cache/ .uv/ .uv-python/ -.vscode/ \ No newline at end of file +.vscode/ +schema/ +packages/schema/src/types/ \ No newline at end of file diff --git a/packages/schema/src/features/airport.tsp b/packages/schema/src/features/airport.tsp index 4720d6cbe..be2662a99 100644 --- a/packages/schema/src/features/airport.tsp +++ b/packages/schema/src/features/airport.tsp @@ -17,10 +17,7 @@ namespace Topography; @summary("NZ Topography Airport") model airport { ...TopographicFeature; - - @removed(Versions.v0_3) type: "airport"; - name: string | null; theme: Theme.Transport; ...TopographicMetadata; diff --git a/packages/schema/src/types/index.ts b/packages/schema/src/types/index.ts deleted file mode 100644 index 11044c882..000000000 --- a/packages/schema/src/types/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was automatically generated by the TypeSpec TypeScript emitter. - * Do not edit this file manually. - * - * Points to the latest schema version (v0.4). - */ - -export * from './v0.4/index.ts'; - -export * as v0_3 from './v0.3/index.ts'; -export * as v0_4 from './v0.4/index.ts'; diff --git a/packages/schema/src/types/v0.3/index.ts b/packages/schema/src/types/v0.3/index.ts deleted file mode 100644 index de691ad32..000000000 --- a/packages/schema/src/types/v0.3/index.ts +++ /dev/null @@ -1,1631 +0,0 @@ -/** - * This file was automatically generated by the TypeSpec TypeScript emitter. - * Do not edit this file manually. - */ - -export type BridgeSubtype = 'foot_traffic' | 'train'; - -export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; - -export type BuildingStatus = 'derelict' | 'historic' | 'private'; - -export type BuildingSubtype = - | 'abattoir' - | 'camp' - | 'cement_works' - | 'church' - | 'energy_facility' - | 'factory' - | 'fertiliser_works' - | 'fire_lookout' - | 'forest_headquarters' - | 'gas_compound' - | 'greenhouse' - | 'gun_club' - | 'gun_emplacement' - | 'hall' - | 'homestead' - | 'hospital' - | 'hut' - | 'lodge' - | 'marae' - | 'mill' - | 'museum' - | 'observatory' - | 'polytechnic' - | 'power_generation' - | 'prison' - | 'private_hut' - | 'salt_works' - | 'school' - | 'shingle_works' - | 'shelter' - | 'silo' - | 'stamping_battery' - | 'substation' - | 'surf_club' - | 'university' - | 'visitor_centre' - | 'water_treatment_plant'; - -export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; - -export type CartoColour = '' | 'black' | 'process_blue' | 'warm_red'; - -export type CartoFont = '' | 'Nimbus Sans LINZ'; - -export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; - -export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; - -export type CartoSymbolType = - | 'contour_number' - | 'golf_course' - | 'highway_shield' - | 'mine_opencast' - | 'mine_training' - | 'mine_underground'; - -export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; - -export type CartoTextfont = - | 'ATTrium-Italic' - | 'ATTriumMou-Cond' - | 'ATTriumMou-CondBold' - | 'ATTriumMou-CondItalic' - | 'ATTriumMou-Italic' - | 'ATTriumMou-Regular' - | 'Courier Bold Oblique'; - -export type CompositionSubtype = 'coral' | 'limestone' | 'pumice' | 'rock'; - -export type ConstructionType = 'suspension' | 'swing' | 'trestle'; - -export type GridDirection = 'x' | 'y'; - -export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; - -export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; - -export type LanduseStatus = 'dangerous' | 'disused' | 'old'; - -export type LanduseSubtype = 'training' | 'opencast' | 'underground'; - -export type LanduseType = - | 'cemetery' - | 'cycle_track' - | 'dog_track' - | 'golf_course' - | 'gravel_pit' - | 'horse_track' - | 'landfill' - | 'mine' - | 'orchard' - | 'pumice_pit' - | 'quarry' - | 'racetrack' - | 'rifle_range' - | 'showground' - | 'sportsfield' - | 'vineyard' - | 'vehicle_track'; - -export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; - -export type PlaceType = 'cave' | 'grave' | 'historic_site' | 'monument' | 'pa'; - -export type RailwayStatus = 'disused'; - -export type RailwaySubtype = 'siding'; - -export type RailwayTrackType = 'single' | 'multiple'; - -export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; - -export type ReliefLineSubtype = 'causeway' | 'stopbank'; - -export type ReliefLineType = - | 'cliff_edge' - | 'cutting_edge' - | 'embankment' - | 'rapid' - | 'slip_edge' - | 'waterfall' - | 'waterfall_edge' - | 'seawall'; - -export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; - -export type RoadStatus = 'under_construction' | 'closed'; - -export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; - -export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; - -export type RunwayStatus = 'disused'; - -export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; - -export type RunwaySurface = 'grass' | 'sealed'; - -export type Status = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureLineType = - | 'boatramp' - | 'boom' - | 'breakwater' - | 'cableway_industrial' - | 'cableway_people' - | 'dam' - | 'flume' - | 'ladder' - | 'marine_farm' - | 'ski_lift' - | 'ski_tow' - | 'slipway' - | 'spillway_edge' - | 'walkwire' - | 'water_race' - | 'weir' - | 'wharf' - | 'wharf_edge'; - -export type StructurePointType = - | 'beacon' - | 'bivouac' - | 'buoy' - | 'chimney' - | 'dredge' - | 'flare' - | 'floodgate' - | 'gate' - | 'ladder' - | 'lighthouse' - | 'mast' - | 'radar_dome' - | 'redoubt' - | 'satellite_station' - | 'shaft' - | 'siphon' - | 'stockyard' - | 'tank' - | 'tower' - | 'well' - | 'windmill' - | 'wreck'; - -export type StructureSpecies = 'mussels' | 'salmon'; - -export type StructureStatus = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureSubtype = - | 'building' - | 'coal' - | 'concrete' - | 'disused' - | 'fuel' - | 'historic' - | 'jetty' - | 'lake' - | 'land' - | 'lighthouse' - | 'lime' - | 'locked' - | 'plane' - | 'power_generation' - | 'rock' - | 'sea' - | 'ship' - | 'surge_chamber' - | 'tunnel_ventilation' - | 'uncovered' - | 'water'; - -export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; - -export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; - -export type SubstanceExtracted = - | 'bentonite' - | 'clay' - | 'coal' - | 'gold' - | 'gravel' - | 'ironsand' - | 'lime' - | 'limestone' - | 'metal' - | 'quartz' - | 'scheelite' - | 'shingle' - | 'silica_sand' - | 'silver' - | 'stone' - | 'zeolite'; - -export type Theme = - | 'annotation' - | 'buildings' - | 'landcover' - | 'landuse' - | 'mapsheets' - | 'relief' - | 'structures' - | 'transport' - | 'utility'; - -export type TrackStatus = 'closed'; - -export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; - -export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; - -export type TunnelConstructionType = 'natural' | 'manmade'; - -export type TunnelStatus = 'closed' | 'historic' | 'disused' | 'derelict' | 'under_construction'; - -export type TunnelType = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; - -export type UtilityPointType = 'gas_valve' | 'geo_bore' | 'pylon'; - -export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; - -export type UtilitySupporttype = 'pole' | 'pylon'; - -export type UtilityVisibility = 'underground'; - -export type VegetationSubtype = 'coniferous' | 'non-coniferous'; - -export type Versions = '0.3' | '0.4'; - -export type WaterPerennial = 'dry' | 'seasonal'; - -export type WaterSubtype = - | 'evaporation' - | 'hydro_electric' - | 'ice_skating' - | 'oil' - | 'oxidation' - | 'reservoir' - | 'settling' - | 'sewage' - | 'sewage_treatment' - | 'sludge'; - -export type WaterTemperatureIndicator = 'cold' | 'hot'; - -export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; - -export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; - -/** - * A facility where aircraft can take off and land; - * usually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo - */ -export interface Airport { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * GeoParquet 1.1 covering bbox struct. - */ -export interface BBox { - xmin: number; - ymin: number; - xmax: number; - ymax: number; -} - -export interface BridgeLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: BridgeType | null; - subtype: BridgeSubtype | null; - construction_type: ConstructionType | null; - status: Status | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Building { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - theme: 'buildings'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface BuildingPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - orientation: number | null; - theme: 'buildings'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Coastline { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'coastline' | 'water_confluence' | 'wharf'; - elevation: number | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Contour { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'contour'; - elevation: number | null; - definition: string | null; - designation: 'supplementary' | null; - formation: 'depression' | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface DataSource { - /** Name of the column in this table where the linked data gets copied to */ - table_column: string; - /** Registered source for linked data */ - source: MetadataSource; - /** Name of the key column in source to use for linking */ - source_key_name: string; - /** Value of the key column in source to use for linking. */ - source_key_value: number | string; - /** Name of the table in source that contains the linked data */ - source_table: string; - /** Name of the column in the source where the linked data gets copied from */ - source_column: string; - /** Timestamp when the source was last updated */ - source_updated_at: string; - /** Timestamp when this linked data was last imported */ - imported_at: string; -} - -export interface DescriptiveText { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'descriptive_text'; - info_display: string | null; - size: number | null; - theme: 'annotation'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FenceLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'fence'; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FerryLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ferry_crossing'; - subtype: 'vehicle' | 'passenger' | 'freight' | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeographicName { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'geographic_name'; - name: string | null; - desc_code: string | null; - size: number | null; - theme: 'annotation'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeoParquet { - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Island { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'island'; - name: string | null; - group_name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landcover { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverType; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'dredge_tailing'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverPointCoreTypes { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverPointCoreType; - orientation: null; - elevation: null; - subtype: null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverPointCommon { - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landuse { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LanduseLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandusePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Marine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'mangrove' | 'reef' | 'rock' | 'shoal'; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface MarinePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock'; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50CartoSymbol { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - created_at: string; - updated_at: string; - /** - * id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or - * the road centreline it labels. - * - * Null where no feature was close enough to match. - */ - source_id: string | null; - type: CartoSymbolType; - label: string | null; - /** Label rotation in degrees clockwise from east. Null for symbols drawn unrotated. */ - orientation: number | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50CartoText { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - /** id (UUID) of the example feature. */ - example_point_id: string | null; - full_text: string | null; - text_bend: number | null; - text_char_spacing_distance: number | null; - text_colour: number | null; - text_font: CartoTextfont | null; - text_height: number | null; - text_orientation: number | null; - text_placement: number | null; - text_size_type: number | null; - text_stretch_length: number | null; - text_string: string | null; - text_word_spacing_distance: number | null; - font: CartoFont | null; - style: CartoStyle | null; - colour: CartoColour | null; - size: number | null; - placement: CartoPlacement | null; - offset: number | null; - textanchor: CartoTextanchor | null; - labelanchor: number | null; - charplace: CartoCharplace | null; - chardistance: number | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * Derived polygon Union of coastline and island - */ -export interface Nztopo50CoastlineIsland { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'coastline' | 'island'; - elevation: number | null; - name: string | null; - group_name: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50DmsGrid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50Grid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50IceContour { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'contour_ice'; - elevation: number | null; - definition: string | null; - designation: 'supplementary' | null; - formation: 'depression' | null; - theme: 'relief'; - /** UUID for the intersecting contour feature. */ - contour_id: string; - /** UUID for the intersecting landcover feature. */ - landcover_id: string; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50MapSheet { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'nztopo50_map_sheet'; - sheet_code: string; - sheet_name: string; - origin_x: number; - origin_y: number; - /** id (UUID) of the example feature. */ - example_point_id: string; - published_version: string; - published_at: string; - updated_at: string; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50RockLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - /** UUID of the source `marine` rock polygon this boundary line was derived from. */ - marine_id: string; - type: 'rock'; - name: string | null; - subtype: CompositionSubtype | null; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * Derived sea (moana) polygons for the water layer. - * - * The land polygons (coastline and island) are inverted and sliced by Web - * Mercator quadkey tiles so no single large polygon exists. - */ -export interface Nztopo50SeaPolygon { - id: string; - type: 'moana'; - /** Web Mercator quadkey of the tile this sea polygon was sliced to. */ - quadkey: string; - created_at: string; - updated_at: string; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface PlacePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: PlaceType; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ProductFeature { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -/** - * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. - * Where a railway line is located close to a road, the line held in the data and shown on the printed map - * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. - * - * Multiple sidings may be held in the data and shown on the printed maps as a single feature - */ -export interface RailwayLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'railway'; - subtype: RailwaySubtype | null; - track_type: RailwayTrackType | null; - vehicle_type: RailwayVehicleType | null; - status: RailwayStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RailwayPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'station'; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Relief { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'waterfall' | 'rapid'; - name: string | null; - height: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefLineType; - subtype: ReliefLineSubtype | null; - name: string | null; - height: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefPointType; - name: string | null; - elevation: number | null; - height: number | null; - orientation: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ResidentialArea { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'residential_area'; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RoadLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'road'; - hierarchy: string | null; - status: RoadStatus | null; - name: string | null; - highway_number: string | null; - lane_count: number | null; - surface: RoadSurface | null; - way_count: 'one_way' | null; - width_indicator: 'w' | null; - road_access: 'mp' | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RockOutcrop { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock_outcrop'; - orientation: number; - elevation: number; - subtype: RockOutcropSubtype; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Runway { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'runway'; - subtype: RunwaySubtype | null; - status: RunwayStatus | null; - surface: RunwaySurface | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Structure { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureType; - subtype: StructureSubtype | null; - lid_type: 'covered' | null; - tank_type: StructureTankType | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructureLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureLineType; - subtype: StructureSubtype | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructurePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructurePointType; - subtype: StructureSubtype | null; - tank_type: StructureTankType | null; - status: StructureStatus | null; - name: string | null; - height: number | null; - orientation: number | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TopographicFeature { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -export interface TopographicMetadata { - metadata: string | null; -} - -export interface TrackLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'track'; - subtype: TrackSubtype | null; - track_type: TrackType | null; - status: TrackStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TransportPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ford' | 'helipad'; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TrigPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'trig'; - trig_type: 'beaconed' | null; - name: string | null; - code: string | null; - elevation: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TunnelLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: TunnelType; - subtype: 'livestock' | null; - construction_type: TunnelConstructionType | null; - status: TunnelStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'pipeline' | 'powerline' | 'telephone'; - subtype: UtilitySubtype | null; - support_type: UtilitySupporttype | null; - status: string | null; - visibility: UtilityVisibility | null; - theme: 'utility'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: UtilityPointType; - orientation: number | null; - theme: 'utility'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Vegetation { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; - subtype: VegetationSubtype | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'shelter_belt'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'tree' | 'scattered_scrub'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Water { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - subtype: WaterSubtype | null; - name: string | null; - group_name: string | null; - height: number | null; - elevation: number | null; - perennial: WaterPerennial | null; - temperature_indicator: WaterTemperatureIndicator | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface WaterLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface WaterPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - name: string | null; - height: number | null; - orientation: number | null; - temperature_indicator: WaterTemperatureIndicator | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} diff --git a/packages/schema/src/types/v0.4/index.ts b/packages/schema/src/types/v0.4/index.ts deleted file mode 100644 index de691ad32..000000000 --- a/packages/schema/src/types/v0.4/index.ts +++ /dev/null @@ -1,1631 +0,0 @@ -/** - * This file was automatically generated by the TypeSpec TypeScript emitter. - * Do not edit this file manually. - */ - -export type BridgeSubtype = 'foot_traffic' | 'train'; - -export type BridgeType = 'cablecar' | 'farm' | 'foot_traffic' | 'train' | 'vehicle'; - -export type BuildingStatus = 'derelict' | 'historic' | 'private'; - -export type BuildingSubtype = - | 'abattoir' - | 'camp' - | 'cement_works' - | 'church' - | 'energy_facility' - | 'factory' - | 'fertiliser_works' - | 'fire_lookout' - | 'forest_headquarters' - | 'gas_compound' - | 'greenhouse' - | 'gun_club' - | 'gun_emplacement' - | 'hall' - | 'homestead' - | 'hospital' - | 'hut' - | 'lodge' - | 'marae' - | 'mill' - | 'museum' - | 'observatory' - | 'polytechnic' - | 'power_generation' - | 'prison' - | 'private_hut' - | 'salt_works' - | 'school' - | 'shingle_works' - | 'shelter' - | 'silo' - | 'stamping_battery' - | 'substation' - | 'surf_club' - | 'university' - | 'visitor_centre' - | 'water_treatment_plant'; - -export type CartoCharplace = '' | 'CharactersAtVertices' | 'StretchCharacterSpacingToFit' | 'StretchWordSpacingToFit'; - -export type CartoColour = '' | 'black' | 'process_blue' | 'warm_red'; - -export type CartoFont = '' | 'Nimbus Sans LINZ'; - -export type CartoPlacement = '' | 'AL' | 'BL' | 'OL'; - -export type CartoStyle = '' | 'Italic' | 'Narrow' | 'Narrow Bold' | 'Narrow Italic' | 'Regular'; - -export type CartoSymbolType = - | 'contour_number' - | 'golf_course' - | 'highway_shield' - | 'mine_opencast' - | 'mine_training' - | 'mine_underground'; - -export type CartoTextanchor = '' | 'centre' | 'left' | 'left ' | 'left 0.62' | 'right'; - -export type CartoTextfont = - | 'ATTrium-Italic' - | 'ATTriumMou-Cond' - | 'ATTriumMou-CondBold' - | 'ATTriumMou-CondItalic' - | 'ATTriumMou-Italic' - | 'ATTriumMou-Regular' - | 'Courier Bold Oblique'; - -export type CompositionSubtype = 'coral' | 'limestone' | 'pumice' | 'rock'; - -export type ConstructionType = 'suspension' | 'swing' | 'trestle'; - -export type GridDirection = 'x' | 'y'; - -export type LandcoverPointCoreType = 'cemetery' | 'fumarole' | 'swamp'; - -export type LandcoverType = 'ice' | 'moraine' | 'moraine_wall' | 'mud' | 'sand' | 'scree' | 'shingle' | 'swamp'; - -export type LanduseStatus = 'dangerous' | 'disused' | 'old'; - -export type LanduseSubtype = 'training' | 'opencast' | 'underground'; - -export type LanduseType = - | 'cemetery' - | 'cycle_track' - | 'dog_track' - | 'golf_course' - | 'gravel_pit' - | 'horse_track' - | 'landfill' - | 'mine' - | 'orchard' - | 'pumice_pit' - | 'quarry' - | 'racetrack' - | 'rifle_range' - | 'showground' - | 'sportsfield' - | 'vineyard' - | 'vehicle_track'; - -export type MetadataSource = 'nzgb_gazetteer' | 'linz_aims'; - -export type PlaceType = 'cave' | 'grave' | 'historic_site' | 'monument' | 'pa'; - -export type RailwayStatus = 'disused'; - -export type RailwaySubtype = 'siding'; - -export type RailwayTrackType = 'single' | 'multiple'; - -export type RailwayVehicleType = 'train' | 'tram' | 'rail_cart' | 'cablecar'; - -export type ReliefLineSubtype = 'causeway' | 'stopbank'; - -export type ReliefLineType = - | 'cliff_edge' - | 'cutting_edge' - | 'embankment' - | 'rapid' - | 'slip_edge' - | 'waterfall' - | 'waterfall_edge' - | 'seawall'; - -export type ReliefPointType = 'height' | 'saddle' | 'sinkhole' | 'waterfall'; - -export type RoadStatus = 'under_construction' | 'closed'; - -export type RoadSurface = 'metalled' | 'unmetalled' | 'sealed'; - -export type RockOutcropSubtype = 'small_rock_outcrop' | 'large_rock_outcrop' | 'large_boulder'; - -export type RunwayStatus = 'disused'; - -export type RunwaySubtype = 'aerodrome' | 'airport' | 'airstrip'; - -export type RunwaySurface = 'grass' | 'sealed'; - -export type Status = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureLineType = - | 'boatramp' - | 'boom' - | 'breakwater' - | 'cableway_industrial' - | 'cableway_people' - | 'dam' - | 'flume' - | 'ladder' - | 'marine_farm' - | 'ski_lift' - | 'ski_tow' - | 'slipway' - | 'spillway_edge' - | 'walkwire' - | 'water_race' - | 'weir' - | 'wharf' - | 'wharf_edge'; - -export type StructurePointType = - | 'beacon' - | 'bivouac' - | 'buoy' - | 'chimney' - | 'dredge' - | 'flare' - | 'floodgate' - | 'gate' - | 'ladder' - | 'lighthouse' - | 'mast' - | 'radar_dome' - | 'redoubt' - | 'satellite_station' - | 'shaft' - | 'siphon' - | 'stockyard' - | 'tank' - | 'tower' - | 'well' - | 'windmill' - | 'wreck'; - -export type StructureSpecies = 'mussels' | 'salmon'; - -export type StructureStatus = - | 'closed' - | 'dangerous' - | 'derelict' - | 'disused' - | 'historic' - | 'locked' - | 'old' - | 'private' - | 'remains' - | 'ruins' - | 'under_construction'; - -export type StructureSubtype = - | 'building' - | 'coal' - | 'concrete' - | 'disused' - | 'fuel' - | 'historic' - | 'jetty' - | 'lake' - | 'land' - | 'lighthouse' - | 'lime' - | 'locked' - | 'plane' - | 'power_generation' - | 'rock' - | 'sea' - | 'ship' - | 'surge_chamber' - | 'tunnel_ventilation' - | 'uncovered' - | 'water'; - -export type StructureTankType = 'uncovered' | 'water' | 'surge_chamber'; - -export type StructureType = 'dry_dock' | 'fish_farm' | 'marine_farm' | 'reservoir' | 'siphon' | 'tank'; - -export type SubstanceExtracted = - | 'bentonite' - | 'clay' - | 'coal' - | 'gold' - | 'gravel' - | 'ironsand' - | 'lime' - | 'limestone' - | 'metal' - | 'quartz' - | 'scheelite' - | 'shingle' - | 'silica_sand' - | 'silver' - | 'stone' - | 'zeolite'; - -export type Theme = - | 'annotation' - | 'buildings' - | 'landcover' - | 'landuse' - | 'mapsheets' - | 'relief' - | 'structures' - | 'transport' - | 'utility'; - -export type TrackStatus = 'closed'; - -export type TrackSubtype = 'cycle_only' | 'foot' | 'vehicle'; - -export type TrackType = 'connector' | 'multiple' | 'route' | 'single'; - -export type TunnelConstructionType = 'natural' | 'manmade'; - -export type TunnelStatus = 'closed' | 'historic' | 'disused' | 'derelict' | 'under_construction'; - -export type TunnelType = 'cablecar' | 'foot_traffic' | 'livestock' | 'river' | 'train' | 'tram' | 'vehicle'; - -export type UtilityPointType = 'gas_valve' | 'geo_bore' | 'pylon'; - -export type UtilitySubtype = 'ironsand' | 'sewage' | 'steam' | 'water'; - -export type UtilitySupporttype = 'pole' | 'pylon'; - -export type UtilityVisibility = 'underground'; - -export type VegetationSubtype = 'coniferous' | 'non-coniferous'; - -export type Versions = '0.3' | '0.4'; - -export type WaterPerennial = 'dry' | 'seasonal'; - -export type WaterSubtype = - | 'evaporation' - | 'hydro_electric' - | 'ice_skating' - | 'oil' - | 'oxidation' - | 'reservoir' - | 'settling' - | 'sewage' - | 'sewage_treatment' - | 'sludge'; - -export type WaterTemperatureIndicator = 'cold' | 'hot'; - -export type WaterType = 'canal' | 'drain' | 'lagoon' | 'lake' | 'pond' | 'river' | 'soakhole' | 'spring' | 'waterfall'; - -export type LandcoverPoint = RockOutcrop | LandcoverPointCoreTypes; - -/** - * A facility where aircraft can take off and land; - * usually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo - */ -export interface Airport { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * GeoParquet 1.1 covering bbox struct. - */ -export interface BBox { - xmin: number; - ymin: number; - xmax: number; - ymax: number; -} - -export interface BridgeLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: BridgeType | null; - subtype: BridgeSubtype | null; - construction_type: ConstructionType | null; - status: Status | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Building { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - theme: 'buildings'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface BuildingPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'building'; - subtype: BuildingSubtype | null; - status: BuildingStatus | null; - name: string | null; - orientation: number | null; - theme: 'buildings'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Coastline { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'coastline' | 'water_confluence' | 'wharf'; - elevation: number | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Contour { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'contour'; - elevation: number | null; - definition: string | null; - designation: 'supplementary' | null; - formation: 'depression' | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface DataSource { - /** Name of the column in this table where the linked data gets copied to */ - table_column: string; - /** Registered source for linked data */ - source: MetadataSource; - /** Name of the key column in source to use for linking */ - source_key_name: string; - /** Value of the key column in source to use for linking. */ - source_key_value: number | string; - /** Name of the table in source that contains the linked data */ - source_table: string; - /** Name of the column in the source where the linked data gets copied from */ - source_column: string; - /** Timestamp when the source was last updated */ - source_updated_at: string; - /** Timestamp when this linked data was last imported */ - imported_at: string; -} - -export interface DescriptiveText { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'descriptive_text'; - info_display: string | null; - size: number | null; - theme: 'annotation'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FenceLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'fence'; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface FerryLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ferry_crossing'; - subtype: 'vehicle' | 'passenger' | 'freight' | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeographicName { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'geographic_name'; - name: string | null; - desc_code: string | null; - size: number | null; - theme: 'annotation'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface GeoParquet { - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Island { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'island'; - name: string | null; - group_name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landcover { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverType; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'dredge_tailing'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverPointCoreTypes { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LandcoverPointCoreType; - orientation: null; - elevation: null; - subtype: null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandcoverPointCommon { - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Landuse { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LanduseLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface LandusePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: LanduseType; - subtype: LanduseSubtype | null; - status: LanduseStatus | null; - name: string | null; - substance_extracted: SubstanceExtracted | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Marine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'mangrove' | 'reef' | 'rock' | 'shoal'; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface MarinePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock'; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50CartoSymbol { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - created_at: string; - updated_at: string; - /** - * id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or - * the road centreline it labels. - * - * Null where no feature was close enough to match. - */ - source_id: string | null; - type: CartoSymbolType; - label: string | null; - /** Label rotation in degrees clockwise from east. Null for symbols drawn unrotated. */ - orientation: number | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50CartoText { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - /** id (UUID) of the example feature. */ - example_point_id: string | null; - full_text: string | null; - text_bend: number | null; - text_char_spacing_distance: number | null; - text_colour: number | null; - text_font: CartoTextfont | null; - text_height: number | null; - text_orientation: number | null; - text_placement: number | null; - text_size_type: number | null; - text_stretch_length: number | null; - text_string: string | null; - text_word_spacing_distance: number | null; - font: CartoFont | null; - style: CartoStyle | null; - colour: CartoColour | null; - size: number | null; - placement: CartoPlacement | null; - offset: number | null; - textanchor: CartoTextanchor | null; - labelanchor: number | null; - charplace: CartoCharplace | null; - chardistance: number | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * Derived polygon Union of coastline and island - */ -export interface Nztopo50CoastlineIsland { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'coastline' | 'island'; - elevation: number | null; - name: string | null; - group_name: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50DmsGrid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50Grid { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - direction: GridDirection; - value: number; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50IceContour { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'contour_ice'; - elevation: number | null; - definition: string | null; - designation: 'supplementary' | null; - formation: 'depression' | null; - theme: 'relief'; - /** UUID for the intersecting contour feature. */ - contour_id: string; - /** UUID for the intersecting landcover feature. */ - landcover_id: string; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50MapSheet { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'nztopo50_map_sheet'; - sheet_code: string; - sheet_name: string; - origin_x: number; - origin_y: number; - /** id (UUID) of the example feature. */ - example_point_id: string; - published_version: string; - published_at: string; - updated_at: string; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Nztopo50RockLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - /** UUID of the source `marine` rock polygon this boundary line was derived from. */ - marine_id: string; - type: 'rock'; - name: string | null; - subtype: CompositionSubtype | null; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -/** - * Derived sea (moana) polygons for the water layer. - * - * The land polygons (coastline and island) are inverted and sliced by Web - * Mercator quadkey tiles so no single large polygon exists. - */ -export interface Nztopo50SeaPolygon { - id: string; - type: 'moana'; - /** Web Mercator quadkey of the tile this sea polygon was sliced to. */ - quadkey: string; - created_at: string; - updated_at: string; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface PlacePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: PlaceType; - subtype: CompositionSubtype | null; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ProductFeature { - /** UUIDv7 of the feature */ - id: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -/** - * All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps. - * Where a railway line is located close to a road, the line held in the data and shown on the printed map - * may be offset from the road sufficient that the two symbols are recognisable at 1:50,000. - * - * Multiple sidings may be held in the data and shown on the printed maps as a single feature - */ -export interface RailwayLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'railway'; - subtype: RailwaySubtype | null; - track_type: RailwayTrackType | null; - vehicle_type: RailwayVehicleType | null; - status: RailwayStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RailwayPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'station'; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Relief { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'waterfall' | 'rapid'; - name: string | null; - height: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefLineType; - subtype: ReliefLineSubtype | null; - name: string | null; - height: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ReliefPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: ReliefPointType; - name: string | null; - elevation: number | null; - height: number | null; - orientation: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface ResidentialArea { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'residential_area'; - name: string | null; - theme: 'landuse'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RoadLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'road'; - hierarchy: string | null; - status: RoadStatus | null; - name: string | null; - highway_number: string | null; - lane_count: number | null; - surface: RoadSurface | null; - way_count: 'one_way' | null; - width_indicator: 'w' | null; - road_access: 'mp' | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface RockOutcrop { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'rock_outcrop'; - orientation: number; - elevation: number; - subtype: RockOutcropSubtype; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Runway { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'runway'; - subtype: RunwaySubtype | null; - status: RunwayStatus | null; - surface: RunwaySurface | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Structure { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureType; - subtype: StructureSubtype | null; - lid_type: 'covered' | null; - tank_type: StructureTankType | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructureLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructureLineType; - subtype: StructureSubtype | null; - species: StructureSpecies | null; - status: StructureStatus | null; - name: string | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface StructurePoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: StructurePointType; - subtype: StructureSubtype | null; - tank_type: StructureTankType | null; - status: StructureStatus | null; - name: string | null; - height: number | null; - orientation: number | null; - theme: 'structures'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TopographicFeature { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; -} - -export interface TopographicMetadata { - metadata: string | null; -} - -export interface TrackLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'track'; - subtype: TrackSubtype | null; - track_type: TrackType | null; - status: TrackStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TransportPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'ford' | 'helipad'; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TrigPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'trig'; - trig_type: 'beaconed' | null; - name: string | null; - code: string | null; - elevation: number | null; - theme: 'relief'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface TunnelLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: TunnelType; - subtype: 'livestock' | null; - construction_type: TunnelConstructionType | null; - status: TunnelStatus | null; - name: string | null; - theme: 'transport'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'pipeline' | 'powerline' | 'telephone'; - subtype: UtilitySubtype | null; - support_type: UtilitySupporttype | null; - status: string | null; - visibility: UtilityVisibility | null; - theme: 'utility'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface UtilityPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: UtilityPointType; - orientation: number | null; - theme: 'utility'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Vegetation { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'exotic' | 'native' | 'scattered_scrub' | 'scrub'; - subtype: VegetationSubtype | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'shelter_belt'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface VegetationPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: 'tree' | 'scattered_scrub'; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface Water { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - subtype: WaterSubtype | null; - name: string | null; - group_name: string | null; - height: number | null; - elevation: number | null; - perennial: WaterPerennial | null; - temperature_indicator: WaterTemperatureIndicator | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface WaterLine { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - name: string | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} - -export interface WaterPoint { - /** UUIDv7 of the feature */ - id: string; - created_at: string; - updated_at: string; - /** - * Reference topo50 feature ID. - * - * Will be null if the feature is new and has not been published in a Topo50 edition. - */ - t50_fid: number | null; - type: WaterType; - name: string | null; - height: number | null; - orientation: number | null; - temperature_indicator: WaterTemperatureIndicator | null; - theme: 'landcover'; - metadata: string | null; - /** GeoParquet 1.1 covering geometry struct. */ - geometry: unknown; - /** GeoParquet 1.1 covering bbox struct. */ - bbox?: BBox; -} diff --git a/schema/release=v0.3/airport.json b/schema/release=v0.3/airport.json deleted file mode 100644 index fc0217ee0..000000000 --- a/schema/release=v0.3/airport.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "airport_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "name", "theme", "metadata", "geometry"], - "description": "A facility where aircraft can take off and land;\nusually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo", - "title": "NZ Topography Airport", - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/airport.parquet.json b/schema/release=v0.3/airport.parquet.json deleted file mode 100644 index 62d50f1d4..000000000 --- a/schema/release=v0.3/airport.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "airport", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/bridge_line.json b/schema/release=v0.3/bridge_line.json deleted file mode 100644 index 10ef51666..000000000 --- a/schema/release=v0.3/bridge_line.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "bridge_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "anyOf": [{ "$ref": "#/$defs/bridge_type" }, { "type": "null" }] }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/bridge_subtype" }, { "type": "null" }] }, - "construction_type": { "anyOf": [{ "$ref": "#/$defs/construction_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "construction_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "bridge_type": { "type": "string", "enum": ["cablecar", "farm", "foot_traffic", "train", "vehicle"] }, - "bridge_subtype": { "type": "string", "enum": ["foot_traffic", "train"] }, - "construction_type": { "type": "string", "enum": ["suspension", "swing", "trestle"] }, - "status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/bridge_line.parquet.json b/schema/release=v0.3/bridge_line.parquet.json deleted file mode 100644 index 0aee465dd..000000000 --- a/schema/release=v0.3/bridge_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "bridge_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/building.json b/schema/release=v0.3/building.json deleted file mode 100644 index 254aeea2e..000000000 --- a/schema/release=v0.3/building.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "building_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "building" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/building_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/building_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "buildings" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "building_subtype": { - "type": "string", - "enum": [ - "abattoir", - "camp", - "cement_works", - "church", - "energy_facility", - "factory", - "fertiliser_works", - "fire_lookout", - "forest_headquarters", - "gas_compound", - "greenhouse", - "gun_club", - "gun_emplacement", - "hall", - "homestead", - "hospital", - "hut", - "lodge", - "marae", - "mill", - "museum", - "observatory", - "polytechnic", - "power_generation", - "prison", - "private_hut", - "salt_works", - "school", - "shingle_works", - "shelter", - "silo", - "stamping_battery", - "substation", - "surf_club", - "university", - "visitor_centre", - "water_treatment_plant" - ] - }, - "building_status": { "type": "string", "enum": ["derelict", "historic", "private"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/building.parquet.json b/schema/release=v0.3/building.parquet.json deleted file mode 100644 index 83addd3ba..000000000 --- a/schema/release=v0.3/building.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "building", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/building_point.json b/schema/release=v0.3/building_point.json deleted file mode 100644 index c49496e1c..000000000 --- a/schema/release=v0.3/building_point.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "building_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "building" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/building_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/building_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "buildings" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "orientation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "building_subtype": { - "type": "string", - "enum": [ - "abattoir", - "camp", - "cement_works", - "church", - "energy_facility", - "factory", - "fertiliser_works", - "fire_lookout", - "forest_headquarters", - "gas_compound", - "greenhouse", - "gun_club", - "gun_emplacement", - "hall", - "homestead", - "hospital", - "hut", - "lodge", - "marae", - "mill", - "museum", - "observatory", - "polytechnic", - "power_generation", - "prison", - "private_hut", - "salt_works", - "school", - "shingle_works", - "shelter", - "silo", - "stamping_battery", - "substation", - "surf_club", - "university", - "visitor_centre", - "water_treatment_plant" - ] - }, - "building_status": { "type": "string", "enum": ["derelict", "historic", "private"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/building_point.parquet.json b/schema/release=v0.3/building_point.parquet.json deleted file mode 100644 index 96a538ddc..000000000 --- a/schema/release=v0.3/building_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "building_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/coastline.json b/schema/release=v0.3/coastline.json deleted file mode 100644 index 428cbac47..000000000 --- a/schema/release=v0.3/coastline.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "coastline_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "coastline" }, - { "type": "string", "const": "water_confluence" }, - { "type": "string", "const": "wharf" } - ] - }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "elevation", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/coastline.parquet.json b/schema/release=v0.3/coastline.parquet.json deleted file mode 100644 index 336c565e1..000000000 --- a/schema/release=v0.3/coastline.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "coastline", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/contour.json b/schema/release=v0.3/contour.json deleted file mode 100644 index 8ff35c143..000000000 --- a/schema/release=v0.3/contour.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "contour_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "contour" }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "definition": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "designation": { "anyOf": [{ "type": "string", "const": "supplementary" }, { "type": "null" }] }, - "formation": { "anyOf": [{ "type": "string", "const": "depression" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "elevation", - "definition", - "designation", - "formation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/contour.parquet.json b/schema/release=v0.3/contour.parquet.json deleted file mode 100644 index 464cf67df..000000000 --- a/schema/release=v0.3/contour.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "contour", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/descriptive_text.json b/schema/release=v0.3/descriptive_text.json deleted file mode 100644 index 3038d6e81..000000000 --- a/schema/release=v0.3/descriptive_text.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "descriptive_text_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "descriptive_text" }, - "info_display": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "size": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "annotation" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "info_display", - "size", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/descriptive_text.parquet.json b/schema/release=v0.3/descriptive_text.parquet.json deleted file mode 100644 index 2e3d29323..000000000 --- a/schema/release=v0.3/descriptive_text.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "descriptive_text", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "info_display", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/fence_line.json b/schema/release=v0.3/fence_line.json deleted file mode 100644 index 9a2ebeee1..000000000 --- a/schema/release=v0.3/fence_line.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "fence_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "fence" }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/fence_line.parquet.json b/schema/release=v0.3/fence_line.parquet.json deleted file mode 100644 index 25bbfa17e..000000000 --- a/schema/release=v0.3/fence_line.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "fence_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/ferry_line.json b/schema/release=v0.3/ferry_line.json deleted file mode 100644 index 3a15f36e1..000000000 --- a/schema/release=v0.3/ferry_line.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "ferry_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "ferry_crossing" }, - "subtype": { - "anyOf": [ - { "type": "string", "const": "vehicle" }, - { "type": "string", "const": "passenger" }, - { "type": "string", "const": "freight" }, - { "type": "null" } - ] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/ferry_line.parquet.json b/schema/release=v0.3/ferry_line.parquet.json deleted file mode 100644 index 5e59913a1..000000000 --- a/schema/release=v0.3/ferry_line.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "ferry_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/geographic_name.json b/schema/release=v0.3/geographic_name.json deleted file mode 100644 index e0deeec8e..000000000 --- a/schema/release=v0.3/geographic_name.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "geographic_name_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "geographic_name" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "desc_code": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "size": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "annotation" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "desc_code", - "size", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/geographic_name.parquet.json b/schema/release=v0.3/geographic_name.parquet.json deleted file mode 100644 index b996866a8..000000000 --- a/schema/release=v0.3/geographic_name.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "geographic_name", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "desc_code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/island.json b/schema/release=v0.3/island.json deleted file mode 100644 index a108f6923..000000000 --- a/schema/release=v0.3/island.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "island_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "island" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "group_name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "group_name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/island.parquet.json b/schema/release=v0.3/island.parquet.json deleted file mode 100644 index f64e5896c..000000000 --- a/schema/release=v0.3/island.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "island", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/landcover.json b/schema/release=v0.3/landcover.json deleted file mode 100644 index fb1ed6777..000000000 --- a/schema/release=v0.3/landcover.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landcover_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "landcover_type": { - "type": "string", - "enum": ["ice", "moraine", "moraine_wall", "mud", "sand", "scree", "shingle", "swamp"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/landcover.parquet.json b/schema/release=v0.3/landcover.parquet.json deleted file mode 100644 index aa3235ee6..000000000 --- a/schema/release=v0.3/landcover.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "landcover", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/landcover_line.json b/schema/release=v0.3/landcover_line.json deleted file mode 100644 index 855292ef6..000000000 --- a/schema/release=v0.3/landcover_line.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "dredge_tailing" }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/landcover_line.parquet.json b/schema/release=v0.3/landcover_line.parquet.json deleted file mode 100644 index bdfd1e3bb..000000000 --- a/schema/release=v0.3/landcover_line.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "landcover_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/landcover_point.json b/schema/release=v0.3/landcover_point.json deleted file mode 100644 index fbe1a15db..000000000 --- a/schema/release=v0.3/landcover_point.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_point_v0.3", - "oneOf": [{ "$ref": "#/$defs/rock_outcrop" }, { "$ref": "#/$defs/landcover_point_core_types" }], - "$defs": { - "rock_outcrop": { - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "rock_outcrop" }, - "orientation": { "type": "number" }, - "elevation": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, - "subtype": { "$ref": "#/$defs/rock_outcrop_subtype" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "orientation", - "elevation", - "subtype", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false - }, - "landcover_point_core_types": { - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landcover_point_core_type" }, - "orientation": { "type": "null" }, - "elevation": { "type": "null" }, - "subtype": { "type": "null" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "orientation", - "elevation", - "subtype", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false - }, - "rock_outcrop_subtype": { "type": "string", "enum": ["small_rock_outcrop", "large_rock_outcrop", "large_boulder"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - }, - "landcover_point_core_type": { "type": "string", "enum": ["cemetery", "fumarole", "swamp"] } - } -} diff --git a/schema/release=v0.3/landcover_point.parquet.json b/schema/release=v0.3/landcover_point.parquet.json deleted file mode 100644 index 9459ba2a4..000000000 --- a/schema/release=v0.3/landcover_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "landcover_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/landuse.json b/schema/release=v0.3/landuse.json deleted file mode 100644 index d6c3293af..000000000 --- a/schema/release=v0.3/landuse.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landuse_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/landuse_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/landuse_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "substance_extracted": { "anyOf": [{ "$ref": "#/$defs/substance_extracted" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "substance_extracted", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "landuse_type": { - "type": "string", - "enum": [ - "cemetery", - "cycle_track", - "dog_track", - "golf_course", - "gravel_pit", - "horse_track", - "landfill", - "mine", - "orchard", - "pumice_pit", - "quarry", - "racetrack", - "rifle_range", - "showground", - "sportsfield", - "vineyard", - "vehicle_track" - ] - }, - "landuse_subtype": { "type": "string", "enum": ["training", "opencast", "underground"] }, - "landuse_status": { "type": "string", "enum": ["dangerous", "disused", "old"] }, - "substance_extracted": { - "type": "string", - "enum": [ - "bentonite", - "clay", - "coal", - "gold", - "gravel", - "ironsand", - "lime", - "limestone", - "metal", - "quartz", - "scheelite", - "shingle", - "silica_sand", - "silver", - "stone", - "zeolite" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/landuse.parquet.json b/schema/release=v0.3/landuse.parquet.json deleted file mode 100644 index f413fa257..000000000 --- a/schema/release=v0.3/landuse.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "landuse", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/landuse_line.json b/schema/release=v0.3/landuse_line.json deleted file mode 100644 index 9c1f3d175..000000000 --- a/schema/release=v0.3/landuse_line.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landuse_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/landuse_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "landuse_type": { - "type": "string", - "enum": [ - "cemetery", - "cycle_track", - "dog_track", - "golf_course", - "gravel_pit", - "horse_track", - "landfill", - "mine", - "orchard", - "pumice_pit", - "quarry", - "racetrack", - "rifle_range", - "showground", - "sportsfield", - "vineyard", - "vehicle_track" - ] - }, - "landuse_subtype": { "type": "string", "enum": ["training", "opencast", "underground"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/landuse_line.parquet.json b/schema/release=v0.3/landuse_line.parquet.json deleted file mode 100644 index 225a868ca..000000000 --- a/schema/release=v0.3/landuse_line.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "landuse_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/landuse_point.json b/schema/release=v0.3/landuse_point.json deleted file mode 100644 index 8e0800324..000000000 --- a/schema/release=v0.3/landuse_point.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landuse_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/landuse_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/landuse_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "substance_extracted": { "anyOf": [{ "$ref": "#/$defs/substance_extracted" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "substance_extracted", - "theme", - "metadata", - "geometry" - ], - "title": "NZ Topography Land Use Point", - "additionalProperties": false, - "$defs": { - "landuse_type": { - "type": "string", - "enum": [ - "cemetery", - "cycle_track", - "dog_track", - "golf_course", - "gravel_pit", - "horse_track", - "landfill", - "mine", - "orchard", - "pumice_pit", - "quarry", - "racetrack", - "rifle_range", - "showground", - "sportsfield", - "vineyard", - "vehicle_track" - ] - }, - "landuse_subtype": { "type": "string", "enum": ["training", "opencast", "underground"] }, - "landuse_status": { "type": "string", "enum": ["dangerous", "disused", "old"] }, - "substance_extracted": { - "type": "string", - "enum": [ - "bentonite", - "clay", - "coal", - "gold", - "gravel", - "ironsand", - "lime", - "limestone", - "metal", - "quartz", - "scheelite", - "shingle", - "silica_sand", - "silver", - "stone", - "zeolite" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/landuse_point.parquet.json b/schema/release=v0.3/landuse_point.parquet.json deleted file mode 100644 index 76a955d23..000000000 --- a/schema/release=v0.3/landuse_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "landuse_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/marine.json b/schema/release=v0.3/marine.json deleted file mode 100644 index 06a275109..000000000 --- a/schema/release=v0.3/marine.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "marine_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "mangrove" }, - { "type": "string", "const": "reef" }, - { "type": "string", "const": "rock" }, - { "type": "string", "const": "shoal" } - ] - }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/marine.parquet.json b/schema/release=v0.3/marine.parquet.json deleted file mode 100644 index 22f161db5..000000000 --- a/schema/release=v0.3/marine.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "marine", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/marine_point.json b/schema/release=v0.3/marine_point.json deleted file mode 100644 index be86a04ad..000000000 --- a/schema/release=v0.3/marine_point.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "marine_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "rock" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/marine_point.parquet.json b/schema/release=v0.3/marine_point.parquet.json deleted file mode 100644 index 3fb333cee..000000000 --- a/schema/release=v0.3/marine_point.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "marine_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_carto_symbol.json b/schema/release=v0.3/nztopo50_carto_symbol.json deleted file mode 100644 index ab27e4c63..000000000 --- a/schema/release=v0.3/nztopo50_carto_symbol.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_carto_symbol_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "source_id": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "description": "id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or\nthe road centreline it labels.\n\nNull where no feature was close enough to match." - }, - "type": { "$ref": "#/$defs/carto_symbol_type" }, - "label": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "orientation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }], - "description": "Label rotation in degrees clockwise from east. Null for symbols drawn unrotated." - }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "t50_fid", "created_at", "updated_at", "source_id", "type", "label", "orientation", "geometry"], - "additionalProperties": false, - "$defs": { - "carto_symbol_type": { - "type": "string", - "enum": ["contour_number", "golf_course", "highway_shield", "mine_opencast", "mine_training", "mine_underground"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_carto_symbol.parquet.json b/schema/release=v0.3/nztopo50_carto_symbol.parquet.json deleted file mode 100644 index 03bfb1091..000000000 --- a/schema/release=v0.3/nztopo50_carto_symbol.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_carto_symbol", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "source_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "label", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_carto_text.json b/schema/release=v0.3/nztopo50_carto_text.json deleted file mode 100644 index 5e6819da3..000000000 --- a/schema/release=v0.3/nztopo50_carto_text.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_carto_text_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "example_point_id": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "description": "id (UUID) of the example feature." - }, - "full_text": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "text_bend": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_char_spacing_distance": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_colour": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_font": { "anyOf": [{ "$ref": "#/$defs/carto_textfont" }, { "type": "null" }] }, - "text_height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "text_orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "text_placement": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_size_type": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_stretch_length": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_string": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "text_word_spacing_distance": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "font": { "anyOf": [{ "$ref": "#/$defs/carto_font" }, { "type": "null" }] }, - "style": { "anyOf": [{ "$ref": "#/$defs/carto_style" }, { "type": "null" }] }, - "colour": { "anyOf": [{ "$ref": "#/$defs/carto_colour" }, { "type": "null" }] }, - "size": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "placement": { "anyOf": [{ "$ref": "#/$defs/carto_placement" }, { "type": "null" }] }, - "offset": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "textanchor": { "anyOf": [{ "$ref": "#/$defs/carto_textanchor" }, { "type": "null" }] }, - "labelanchor": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "charplace": { "anyOf": [{ "$ref": "#/$defs/carto_charplace" }, { "type": "null" }] }, - "chardistance": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "t50_fid", - "example_point_id", - "full_text", - "text_bend", - "text_char_spacing_distance", - "text_colour", - "text_font", - "text_height", - "text_orientation", - "text_placement", - "text_size_type", - "text_stretch_length", - "text_string", - "text_word_spacing_distance", - "font", - "style", - "colour", - "size", - "placement", - "offset", - "textanchor", - "labelanchor", - "charplace", - "chardistance", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "carto_textfont": { - "type": "string", - "enum": [ - "ATTrium-Italic", - "ATTriumMou-Cond", - "ATTriumMou-CondBold", - "ATTriumMou-CondItalic", - "ATTriumMou-Italic", - "ATTriumMou-Regular", - "Courier Bold Oblique" - ] - }, - "carto_font": { "type": "string", "enum": ["", "Nimbus Sans LINZ"] }, - "carto_style": { "type": "string", "enum": ["", "Italic", "Narrow", "Narrow Bold", "Narrow Italic", "Regular"] }, - "carto_colour": { "type": "string", "enum": ["", "black", "process_blue", "warm_red"] }, - "carto_placement": { "type": "string", "enum": ["", "AL", "BL", "OL"] }, - "carto_textanchor": { "type": "string", "enum": ["", "centre", "left", "left ", "left 0.62", "right"] }, - "carto_charplace": { - "type": "string", - "enum": ["", "CharactersAtVertices", "StretchCharacterSpacingToFit", "StretchWordSpacingToFit"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_carto_text.parquet.json b/schema/release=v0.3/nztopo50_carto_text.parquet.json deleted file mode 100644 index 416dca944..000000000 --- a/schema/release=v0.3/nztopo50_carto_text.parquet.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_carto_text", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "example_point_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "full_text", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "text_bend", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_char_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_colour", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "text_height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "text_orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "text_placement", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_size_type", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_stretch_length", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_string", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "text_word_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "style", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "colour", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "placement", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "offset", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "textanchor", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "labelanchor", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "charplace", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "chardistance", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_coastline_island.json b/schema/release=v0.3/nztopo50_coastline_island.json deleted file mode 100644 index 139f0f061..000000000 --- a/schema/release=v0.3/nztopo50_coastline_island.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_coastline_island_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "coastline" }, - { "type": "string", "const": "island" } - ] - }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "group_name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "elevation", "name", "group_name", "geometry"], - "description": "Derived polygon Union of coastline and island", - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_coastline_island.parquet.json b/schema/release=v0.3/nztopo50_coastline_island.parquet.json deleted file mode 100644 index 1184d4f14..000000000 --- a/schema/release=v0.3/nztopo50_coastline_island.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_coastline_island", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_dms_grid.json b/schema/release=v0.3/nztopo50_dms_grid.json deleted file mode 100644 index 673244f16..000000000 --- a/schema/release=v0.3/nztopo50_dms_grid.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_dms_grid_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "direction": { "$ref": "#/$defs/grid_direction" }, - "value": { "type": "number" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "t50_fid", "direction", "value", "geometry"], - "additionalProperties": false, - "$defs": { - "grid_direction": { "type": "string", "enum": ["x", "y"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_dms_grid.parquet.json b/schema/release=v0.3/nztopo50_dms_grid.parquet.json deleted file mode 100644 index 7b2907580..000000000 --- a/schema/release=v0.3/nztopo50_dms_grid.parquet.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_dms_grid", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_grid.json b/schema/release=v0.3/nztopo50_grid.json deleted file mode 100644 index 78e574581..000000000 --- a/schema/release=v0.3/nztopo50_grid.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_grid_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "direction": { "$ref": "#/$defs/grid_direction" }, - "value": { "type": "number" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "t50_fid", "direction", "value", "geometry"], - "additionalProperties": false, - "$defs": { - "grid_direction": { "type": "string", "enum": ["x", "y"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_grid.parquet.json b/schema/release=v0.3/nztopo50_grid.parquet.json deleted file mode 100644 index 6103b1042..000000000 --- a/schema/release=v0.3/nztopo50_grid.parquet.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_grid", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_ice_contour.json b/schema/release=v0.3/nztopo50_ice_contour.json deleted file mode 100644 index 65f24080c..000000000 --- a/schema/release=v0.3/nztopo50_ice_contour.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_ice_contour_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "contour_ice" }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "definition": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "designation": { "anyOf": [{ "type": "string", "const": "supplementary" }, { "type": "null" }] }, - "formation": { "anyOf": [{ "type": "string", "const": "depression" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "contour_id": { "type": "string", "description": "UUID for the intersecting contour feature." }, - "landcover_id": { "type": "string", "description": "UUID for the intersecting landcover feature." }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "elevation", - "definition", - "designation", - "formation", - "theme", - "contour_id", - "landcover_id", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_ice_contour.parquet.json b/schema/release=v0.3/nztopo50_ice_contour.parquet.json deleted file mode 100644 index 3f9fab290..000000000 --- a/schema/release=v0.3/nztopo50_ice_contour.parquet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_ice_contour", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "contour_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "landcover_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_map_sheet.json b/schema/release=v0.3/nztopo50_map_sheet.json deleted file mode 100644 index 7203c18b4..000000000 --- a/schema/release=v0.3/nztopo50_map_sheet.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_map_sheet_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "nztopo50_map_sheet" }, - "sheet_code": { "type": "string" }, - "sheet_name": { "type": "string" }, - "origin_x": { "type": "number" }, - "origin_y": { "type": "number" }, - "example_point_id": { "type": "string", "description": "id (UUID) of the example feature." }, - "published_version": { "type": "string" }, - "published_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "t50_fid", - "type", - "sheet_code", - "sheet_name", - "origin_x", - "origin_y", - "example_point_id", - "published_version", - "published_at", - "updated_at", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_map_sheet.parquet.json b/schema/release=v0.3/nztopo50_map_sheet.parquet.json deleted file mode 100644 index 286b103d8..000000000 --- a/schema/release=v0.3/nztopo50_map_sheet.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_map_sheet", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "sheet_code", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "sheet_name", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "origin_x", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "origin_y", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "example_point_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "published_version", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "published_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_rock_line.json b/schema/release=v0.3/nztopo50_rock_line.json deleted file mode 100644 index 179e7a6c0..000000000 --- a/schema/release=v0.3/nztopo50_rock_line.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_rock_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "marine_id": { - "type": "string", - "description": "UUID of the source `marine` rock polygon this boundary line was derived from." - }, - "type": { "type": "string", "const": "rock" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "marine_id", - "type", - "name", - "subtype", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_rock_line.parquet.json b/schema/release=v0.3/nztopo50_rock_line.parquet.json deleted file mode 100644 index e0d221d9f..000000000 --- a/schema/release=v0.3/nztopo50_rock_line.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_rock_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "marine_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/nztopo50_sea_polygon.json b/schema/release=v0.3/nztopo50_sea_polygon.json deleted file mode 100644 index 0e4ec1ce8..000000000 --- a/schema/release=v0.3/nztopo50_sea_polygon.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_sea_polygon_v0.3", - "type": "object", - "properties": { - "id": { "type": "string" }, - "type": { "type": "string", "const": "moana" }, - "quadkey": { "type": "string", "description": "Web Mercator quadkey of the tile this sea polygon was sliced to." }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "type", "quadkey", "created_at", "updated_at", "geometry"], - "description": "Derived sea (moana) polygons for the water layer.\n\nThe land polygons (coastline and island) are inverted and sliced by Web\nMercator quadkey tiles so no single large polygon exists.", - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/nztopo50_sea_polygon.parquet.json b/schema/release=v0.3/nztopo50_sea_polygon.parquet.json deleted file mode 100644 index 157864f73..000000000 --- a/schema/release=v0.3/nztopo50_sea_polygon.parquet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_sea_polygon", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "quadkey", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/place_point.json b/schema/release=v0.3/place_point.json deleted file mode 100644 index 3433c68f9..000000000 --- a/schema/release=v0.3/place_point.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "place_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/place_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "place_type": { "type": "string", "enum": ["cave", "grave", "historic_site", "monument", "pa"] }, - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/place_point.parquet.json b/schema/release=v0.3/place_point.parquet.json deleted file mode 100644 index ad0eddb59..000000000 --- a/schema/release=v0.3/place_point.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "place_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/railway_line.json b/schema/release=v0.3/railway_line.json deleted file mode 100644 index c88935eab..000000000 --- a/schema/release=v0.3/railway_line.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "railway_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "railway" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/railway_subtype" }, { "type": "null" }] }, - "track_type": { "anyOf": [{ "$ref": "#/$defs/railway_track_type" }, { "type": "null" }] }, - "vehicle_type": { "anyOf": [{ "$ref": "#/$defs/railway_vehicle_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/railway_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "track_type", - "vehicle_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "description": "All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps.\nWhere a railway line is located close to a road, the line held in the data and shown on the printed map\nmay be offset from the road sufficient that the two symbols are recognisable at 1:50,000.\n\nMultiple sidings may be held in the data and shown on the printed maps as a single feature", - "additionalProperties": false, - "$defs": { - "railway_subtype": { "type": "string", "enum": ["siding"] }, - "railway_track_type": { "type": "string", "enum": ["single", "multiple"] }, - "railway_vehicle_type": { "type": "string", "enum": ["train", "tram", "rail_cart", "cablecar"] }, - "railway_status": { "type": "string", "enum": ["disused"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/railway_line.parquet.json b/schema/release=v0.3/railway_line.parquet.json deleted file mode 100644 index 513e8ffc9..000000000 --- a/schema/release=v0.3/railway_line.parquet.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "type": "message", - "name": "railway_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "vehicle_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/railway_point.json b/schema/release=v0.3/railway_point.json deleted file mode 100644 index ac1604ecd..000000000 --- a/schema/release=v0.3/railway_point.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "railway_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "station" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/railway_point.parquet.json b/schema/release=v0.3/railway_point.parquet.json deleted file mode 100644 index ccdf033bd..000000000 --- a/schema/release=v0.3/railway_point.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "railway_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/relief.json b/schema/release=v0.3/relief.json deleted file mode 100644 index 226ad1e55..000000000 --- a/schema/release=v0.3/relief.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "waterfall" }, - { "type": "string", "const": "rapid" } - ] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "height", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/relief.parquet.json b/schema/release=v0.3/relief.parquet.json deleted file mode 100644 index 0d2b7baaa..000000000 --- a/schema/release=v0.3/relief.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "relief", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/relief_line.json b/schema/release=v0.3/relief_line.json deleted file mode 100644 index 5a19ba22d..000000000 --- a/schema/release=v0.3/relief_line.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/relief_line_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/relief_line_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "name", - "height", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "relief_line_type": { - "type": "string", - "enum": [ - "cliff_edge", - "cutting_edge", - "embankment", - "rapid", - "slip_edge", - "waterfall", - "waterfall_edge", - "seawall" - ] - }, - "relief_line_subtype": { "type": "string", "enum": ["causeway", "stopbank"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/relief_line.parquet.json b/schema/release=v0.3/relief_line.parquet.json deleted file mode 100644 index 1976a59ea..000000000 --- a/schema/release=v0.3/relief_line.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "relief_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/relief_point.json b/schema/release=v0.3/relief_point.json deleted file mode 100644 index 43a443992..000000000 --- a/schema/release=v0.3/relief_point.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/relief_point_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "elevation", - "height", - "orientation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "relief_point_type": { "type": "string", "enum": ["height", "saddle", "sinkhole", "waterfall"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/relief_point.parquet.json b/schema/release=v0.3/relief_point.parquet.json deleted file mode 100644 index f2712d0b3..000000000 --- a/schema/release=v0.3/relief_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "relief_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/residential_area.json b/schema/release=v0.3/residential_area.json deleted file mode 100644 index 1bf93fc53..000000000 --- a/schema/release=v0.3/residential_area.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "residential_area_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "residential_area" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/residential_area.parquet.json b/schema/release=v0.3/residential_area.parquet.json deleted file mode 100644 index 434c99e2a..000000000 --- a/schema/release=v0.3/residential_area.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "residential_area", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/road_line.json b/schema/release=v0.3/road_line.json deleted file mode 100644 index 45a699b9e..000000000 --- a/schema/release=v0.3/road_line.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "road_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "road" }, - "hierarchy": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/road_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "highway_number": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "lane_count": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "surface": { "anyOf": [{ "$ref": "#/$defs/road_surface" }, { "type": "null" }] }, - "way_count": { "anyOf": [{ "type": "string", "const": "one_way" }, { "type": "null" }] }, - "width_indicator": { "anyOf": [{ "type": "string", "const": "w" }, { "type": "null" }] }, - "road_access": { "anyOf": [{ "type": "string", "const": "mp" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "hierarchy", - "status", - "name", - "highway_number", - "lane_count", - "surface", - "way_count", - "width_indicator", - "road_access", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "road_status": { "type": "string", "enum": ["under_construction", "closed"] }, - "road_surface": { "type": "string", "enum": ["metalled", "unmetalled", "sealed"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/road_line.parquet.json b/schema/release=v0.3/road_line.parquet.json deleted file mode 100644 index 69b50e2c3..000000000 --- a/schema/release=v0.3/road_line.parquet.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "type": "message", - "name": "road_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "hierarchy", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "highway_number", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "lane_count", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "way_count", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "width_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "road_access", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/runway.json b/schema/release=v0.3/runway.json deleted file mode 100644 index bd6607e35..000000000 --- a/schema/release=v0.3/runway.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "runway_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "runway" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/runway_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/runway_status" }, { "type": "null" }] }, - "surface": { "anyOf": [{ "$ref": "#/$defs/runway_surface" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "surface", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "runway_subtype": { "type": "string", "enum": ["aerodrome", "airport", "airstrip"] }, - "runway_status": { "type": "string", "enum": ["disused"] }, - "runway_surface": { "type": "string", "enum": ["grass", "sealed"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/runway.parquet.json b/schema/release=v0.3/runway.parquet.json deleted file mode 100644 index daa1c08be..000000000 --- a/schema/release=v0.3/runway.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "runway", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/structure.json b/schema/release=v0.3/structure.json deleted file mode 100644 index 6df10de6b..000000000 --- a/schema/release=v0.3/structure.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/structure_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/structure_subtype" }, { "type": "null" }] }, - "lid_type": { "anyOf": [{ "type": "string", "const": "covered" }, { "type": "null" }] }, - "tank_type": { "anyOf": [{ "$ref": "#/$defs/structure_tank_type" }, { "type": "null" }] }, - "species": { "anyOf": [{ "$ref": "#/$defs/structure_species" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/structure_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "lid_type", - "tank_type", - "species", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "structure_type": { - "type": "string", - "enum": ["dry_dock", "fish_farm", "marine_farm", "reservoir", "siphon", "tank"] - }, - "structure_subtype": { - "type": "string", - "enum": [ - "building", - "coal", - "concrete", - "disused", - "fuel", - "historic", - "jetty", - "lake", - "land", - "lighthouse", - "lime", - "locked", - "plane", - "power_generation", - "rock", - "sea", - "ship", - "surge_chamber", - "tunnel_ventilation", - "uncovered", - "water" - ] - }, - "structure_tank_type": { "type": "string", "enum": ["uncovered", "water", "surge_chamber"] }, - "structure_species": { "type": "string", "enum": ["mussels", "salmon"] }, - "structure_status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/structure.parquet.json b/schema/release=v0.3/structure.parquet.json deleted file mode 100644 index b71bca859..000000000 --- a/schema/release=v0.3/structure.parquet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "message", - "name": "structure", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "lid_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/structure_line.json b/schema/release=v0.3/structure_line.json deleted file mode 100644 index dfb0d6900..000000000 --- a/schema/release=v0.3/structure_line.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/structure_line_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/structure_subtype" }, { "type": "null" }] }, - "species": { "anyOf": [{ "$ref": "#/$defs/structure_species" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/structure_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "species", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "structure_line_type": { - "type": "string", - "enum": [ - "boatramp", - "boom", - "breakwater", - "cableway_industrial", - "cableway_people", - "dam", - "flume", - "ladder", - "marine_farm", - "ski_lift", - "ski_tow", - "slipway", - "spillway_edge", - "walkwire", - "water_race", - "weir", - "wharf", - "wharf_edge" - ] - }, - "structure_subtype": { - "type": "string", - "enum": [ - "building", - "coal", - "concrete", - "disused", - "fuel", - "historic", - "jetty", - "lake", - "land", - "lighthouse", - "lime", - "locked", - "plane", - "power_generation", - "rock", - "sea", - "ship", - "surge_chamber", - "tunnel_ventilation", - "uncovered", - "water" - ] - }, - "structure_species": { "type": "string", "enum": ["mussels", "salmon"] }, - "structure_status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/structure_line.parquet.json b/schema/release=v0.3/structure_line.parquet.json deleted file mode 100644 index 4036420fc..000000000 --- a/schema/release=v0.3/structure_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "structure_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/structure_point.json b/schema/release=v0.3/structure_point.json deleted file mode 100644 index 2799d0e90..000000000 --- a/schema/release=v0.3/structure_point.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/structure_point_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/structure_subtype" }, { "type": "null" }] }, - "tank_type": { "anyOf": [{ "$ref": "#/$defs/structure_tank_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/structure_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "tank_type", - "status", - "name", - "height", - "orientation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "structure_point_type": { - "type": "string", - "enum": [ - "beacon", - "bivouac", - "buoy", - "chimney", - "dredge", - "flare", - "floodgate", - "gate", - "ladder", - "lighthouse", - "mast", - "radar_dome", - "redoubt", - "satellite_station", - "shaft", - "siphon", - "stockyard", - "tank", - "tower", - "well", - "windmill", - "wreck" - ] - }, - "structure_subtype": { - "type": "string", - "enum": [ - "building", - "coal", - "concrete", - "disused", - "fuel", - "historic", - "jetty", - "lake", - "land", - "lighthouse", - "lime", - "locked", - "plane", - "power_generation", - "rock", - "sea", - "ship", - "surge_chamber", - "tunnel_ventilation", - "uncovered", - "water" - ] - }, - "structure_tank_type": { "type": "string", "enum": ["uncovered", "water", "surge_chamber"] }, - "structure_status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/structure_point.parquet.json b/schema/release=v0.3/structure_point.parquet.json deleted file mode 100644 index cea66890e..000000000 --- a/schema/release=v0.3/structure_point.parquet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "message", - "name": "structure_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/track_line.json b/schema/release=v0.3/track_line.json deleted file mode 100644 index 06800ca6d..000000000 --- a/schema/release=v0.3/track_line.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "track_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "track" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/track_subtype" }, { "type": "null" }] }, - "track_type": { "anyOf": [{ "$ref": "#/$defs/track_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/track_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "track_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "track_subtype": { "type": "string", "enum": ["cycle_only", "foot", "vehicle"] }, - "track_type": { "type": "string", "enum": ["connector", "multiple", "route", "single"] }, - "track_status": { "type": "string", "enum": ["closed"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/track_line.parquet.json b/schema/release=v0.3/track_line.parquet.json deleted file mode 100644 index 3b2fb1135..000000000 --- a/schema/release=v0.3/track_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "track_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/transport_point.json b/schema/release=v0.3/transport_point.json deleted file mode 100644 index c9302c16f..000000000 --- a/schema/release=v0.3/transport_point.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "transport_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "ford" }, - { "type": "string", "const": "helipad" } - ] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/transport_point.parquet.json b/schema/release=v0.3/transport_point.parquet.json deleted file mode 100644 index 9d848e704..000000000 --- a/schema/release=v0.3/transport_point.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "transport_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/trig_point.json b/schema/release=v0.3/trig_point.json deleted file mode 100644 index ce8607c0e..000000000 --- a/schema/release=v0.3/trig_point.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "trig_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "trig" }, - "trig_type": { "anyOf": [{ "type": "string", "const": "beaconed" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "code": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "trig_type", - "name", - "code", - "elevation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/trig_point.parquet.json b/schema/release=v0.3/trig_point.parquet.json deleted file mode 100644 index 842881d93..000000000 --- a/schema/release=v0.3/trig_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "trig_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "trig_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/tunnel_line.json b/schema/release=v0.3/tunnel_line.json deleted file mode 100644 index 84fa68336..000000000 --- a/schema/release=v0.3/tunnel_line.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "tunnel_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/tunnel_type" }, - "subtype": { "anyOf": [{ "type": "string", "const": "livestock" }, { "type": "null" }] }, - "construction_type": { "anyOf": [{ "$ref": "#/$defs/tunnel_construction_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/tunnel_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "construction_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "tunnel_type": { - "type": "string", - "enum": ["cablecar", "foot_traffic", "livestock", "river", "train", "tram", "vehicle"] - }, - "tunnel_construction_type": { "type": "string", "enum": ["natural", "manmade"] }, - "tunnel_status": { "type": "string", "enum": ["closed", "historic", "disused", "derelict", "under_construction"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/tunnel_line.parquet.json b/schema/release=v0.3/tunnel_line.parquet.json deleted file mode 100644 index 65a217622..000000000 --- a/schema/release=v0.3/tunnel_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "tunnel_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/utility_line.json b/schema/release=v0.3/utility_line.json deleted file mode 100644 index 163675f1c..000000000 --- a/schema/release=v0.3/utility_line.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "utility_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "pipeline" }, - { "type": "string", "const": "powerline" }, - { "type": "string", "const": "telephone" } - ] - }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/utility_subtype" }, { "type": "null" }] }, - "support_type": { "anyOf": [{ "$ref": "#/$defs/utility_supporttype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "visibility": { "anyOf": [{ "$ref": "#/$defs/utility_visibility" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "utility" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "support_type", - "status", - "visibility", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "utility_subtype": { "type": "string", "enum": ["ironsand", "sewage", "steam", "water"] }, - "utility_supporttype": { "type": "string", "enum": ["pole", "pylon"] }, - "utility_visibility": { "type": "string", "enum": ["underground"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/utility_line.parquet.json b/schema/release=v0.3/utility_line.parquet.json deleted file mode 100644 index 5eaf2f34d..000000000 --- a/schema/release=v0.3/utility_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "utility_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "support_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "visibility", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/utility_point.json b/schema/release=v0.3/utility_point.json deleted file mode 100644 index 75d191c23..000000000 --- a/schema/release=v0.3/utility_point.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "utility_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/utility_point_type" }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "utility" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "orientation", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "utility_point_type": { "type": "string", "enum": ["gas_valve", "geo_bore", "pylon"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/utility_point.parquet.json b/schema/release=v0.3/utility_point.parquet.json deleted file mode 100644 index bfc3fd6d0..000000000 --- a/schema/release=v0.3/utility_point.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "utility_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/vegetation.json b/schema/release=v0.3/vegetation.json deleted file mode 100644 index 099c899bf..000000000 --- a/schema/release=v0.3/vegetation.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "exotic" }, - { "type": "string", "const": "native" }, - { "type": "string", "const": "scattered_scrub" }, - { "type": "string", "const": "scrub" } - ] - }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/vegetation_subtype" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "vegetation_subtype": { "type": "string", "enum": ["coniferous", "non-coniferous"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/vegetation.parquet.json b/schema/release=v0.3/vegetation.parquet.json deleted file mode 100644 index e29085d3c..000000000 --- a/schema/release=v0.3/vegetation.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "vegetation", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/vegetation_line.json b/schema/release=v0.3/vegetation_line.json deleted file mode 100644 index 9fb15c621..000000000 --- a/schema/release=v0.3/vegetation_line.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "shelter_belt" }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/vegetation_line.parquet.json b/schema/release=v0.3/vegetation_line.parquet.json deleted file mode 100644 index 3fd3f5ad4..000000000 --- a/schema/release=v0.3/vegetation_line.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "vegetation_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/vegetation_point.json b/schema/release=v0.3/vegetation_point.json deleted file mode 100644 index 9646b4339..000000000 --- a/schema/release=v0.3/vegetation_point.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "tree" }, - { "type": "string", "const": "scattered_scrub" } - ] - }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/vegetation_point.parquet.json b/schema/release=v0.3/vegetation_point.parquet.json deleted file mode 100644 index 259f38cdb..000000000 --- a/schema/release=v0.3/vegetation_point.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "vegetation_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/water.json b/schema/release=v0.3/water.json deleted file mode 100644 index 3a174313e..000000000 --- a/schema/release=v0.3/water.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/water_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/water_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "group_name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "perennial": { "anyOf": [{ "$ref": "#/$defs/water_perennial" }, { "type": "null" }] }, - "temperature_indicator": { "anyOf": [{ "$ref": "#/$defs/water_temperature_indicator" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "name", - "group_name", - "height", - "elevation", - "perennial", - "temperature_indicator", - "theme", - "metadata", - "geometry" - ], - "title": "NZ Topography Water", - "additionalProperties": false, - "$defs": { - "water_type": { - "type": "string", - "enum": ["canal", "drain", "lagoon", "lake", "pond", "river", "soakhole", "spring", "waterfall"] - }, - "water_subtype": { - "type": "string", - "enum": [ - "evaporation", - "hydro_electric", - "ice_skating", - "oil", - "oxidation", - "reservoir", - "settling", - "sewage", - "sewage_treatment", - "sludge" - ] - }, - "water_perennial": { "type": "string", "enum": ["dry", "seasonal"] }, - "water_temperature_indicator": { "type": "string", "enum": ["cold", "hot"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/water.parquet.json b/schema/release=v0.3/water.parquet.json deleted file mode 100644 index 7e0e70aa8..000000000 --- a/schema/release=v0.3/water.parquet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "type": "message", - "name": "water", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "perennial", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/water_line.json b/schema/release=v0.3/water_line.json deleted file mode 100644 index 1356818dd..000000000 --- a/schema/release=v0.3/water_line.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_line_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/water_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "water_type": { - "type": "string", - "enum": ["canal", "drain", "lagoon", "lake", "pond", "river", "soakhole", "spring", "waterfall"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/water_line.parquet.json b/schema/release=v0.3/water_line.parquet.json deleted file mode 100644 index 8640d9fe1..000000000 --- a/schema/release=v0.3/water_line.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "water_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.3/water_point.json b/schema/release=v0.3/water_point.json deleted file mode 100644 index 82a300d76..000000000 --- a/schema/release=v0.3/water_point.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_point_v0.3", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/water_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "temperature_indicator": { "anyOf": [{ "$ref": "#/$defs/water_temperature_indicator" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "height", - "orientation", - "temperature_indicator", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "water_type": { - "type": "string", - "enum": ["canal", "drain", "lagoon", "lake", "pond", "river", "soakhole", "spring", "waterfall"] - }, - "water_temperature_indicator": { "type": "string", "enum": ["cold", "hot"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.3/water_point.parquet.json b/schema/release=v0.3/water_point.parquet.json deleted file mode 100644 index a47e0a88f..000000000 --- a/schema/release=v0.3/water_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "water_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/airport.json b/schema/release=v0.4/airport.json deleted file mode 100644 index eb4348d9c..000000000 --- a/schema/release=v0.4/airport.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "airport_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "name", "theme", "metadata", "geometry"], - "description": "A facility where aircraft can take off and land;\nusually consists of hard-surfaced landing strips, a control tower, hangars and accommodation for passengers and cargo", - "title": "NZ Topography Airport", - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/airport.parquet.json b/schema/release=v0.4/airport.parquet.json deleted file mode 100644 index 62d50f1d4..000000000 --- a/schema/release=v0.4/airport.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "airport", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/bridge_line.json b/schema/release=v0.4/bridge_line.json deleted file mode 100644 index 171b45582..000000000 --- a/schema/release=v0.4/bridge_line.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "bridge_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "anyOf": [{ "$ref": "#/$defs/bridge_type" }, { "type": "null" }] }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/bridge_subtype" }, { "type": "null" }] }, - "construction_type": { "anyOf": [{ "$ref": "#/$defs/construction_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "construction_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "bridge_type": { "type": "string", "enum": ["cablecar", "farm", "foot_traffic", "train", "vehicle"] }, - "bridge_subtype": { "type": "string", "enum": ["foot_traffic", "train"] }, - "construction_type": { "type": "string", "enum": ["suspension", "swing", "trestle"] }, - "status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/bridge_line.parquet.json b/schema/release=v0.4/bridge_line.parquet.json deleted file mode 100644 index 0aee465dd..000000000 --- a/schema/release=v0.4/bridge_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "bridge_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/building.json b/schema/release=v0.4/building.json deleted file mode 100644 index a38a238b5..000000000 --- a/schema/release=v0.4/building.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "building_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "building" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/building_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/building_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "buildings" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "building_subtype": { - "type": "string", - "enum": [ - "abattoir", - "camp", - "cement_works", - "church", - "energy_facility", - "factory", - "fertiliser_works", - "fire_lookout", - "forest_headquarters", - "gas_compound", - "greenhouse", - "gun_club", - "gun_emplacement", - "hall", - "homestead", - "hospital", - "hut", - "lodge", - "marae", - "mill", - "museum", - "observatory", - "polytechnic", - "power_generation", - "prison", - "private_hut", - "salt_works", - "school", - "shingle_works", - "shelter", - "silo", - "stamping_battery", - "substation", - "surf_club", - "university", - "visitor_centre", - "water_treatment_plant" - ] - }, - "building_status": { "type": "string", "enum": ["derelict", "historic", "private"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/building.parquet.json b/schema/release=v0.4/building.parquet.json deleted file mode 100644 index 83addd3ba..000000000 --- a/schema/release=v0.4/building.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "building", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/building_point.json b/schema/release=v0.4/building_point.json deleted file mode 100644 index 3ab6772ce..000000000 --- a/schema/release=v0.4/building_point.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "building_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "building" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/building_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/building_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "buildings" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "orientation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "building_subtype": { - "type": "string", - "enum": [ - "abattoir", - "camp", - "cement_works", - "church", - "energy_facility", - "factory", - "fertiliser_works", - "fire_lookout", - "forest_headquarters", - "gas_compound", - "greenhouse", - "gun_club", - "gun_emplacement", - "hall", - "homestead", - "hospital", - "hut", - "lodge", - "marae", - "mill", - "museum", - "observatory", - "polytechnic", - "power_generation", - "prison", - "private_hut", - "salt_works", - "school", - "shingle_works", - "shelter", - "silo", - "stamping_battery", - "substation", - "surf_club", - "university", - "visitor_centre", - "water_treatment_plant" - ] - }, - "building_status": { "type": "string", "enum": ["derelict", "historic", "private"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/building_point.parquet.json b/schema/release=v0.4/building_point.parquet.json deleted file mode 100644 index 96a538ddc..000000000 --- a/schema/release=v0.4/building_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "building_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/coastline.json b/schema/release=v0.4/coastline.json deleted file mode 100644 index beab88ccf..000000000 --- a/schema/release=v0.4/coastline.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "coastline_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "coastline" }, - { "type": "string", "const": "water_confluence" }, - { "type": "string", "const": "wharf" } - ] - }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "elevation", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/coastline.parquet.json b/schema/release=v0.4/coastline.parquet.json deleted file mode 100644 index 336c565e1..000000000 --- a/schema/release=v0.4/coastline.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "coastline", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/contour.json b/schema/release=v0.4/contour.json deleted file mode 100644 index efb9c9a17..000000000 --- a/schema/release=v0.4/contour.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "contour_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "contour" }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "definition": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "designation": { "anyOf": [{ "type": "string", "const": "supplementary" }, { "type": "null" }] }, - "formation": { "anyOf": [{ "type": "string", "const": "depression" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "elevation", - "definition", - "designation", - "formation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/contour.parquet.json b/schema/release=v0.4/contour.parquet.json deleted file mode 100644 index 464cf67df..000000000 --- a/schema/release=v0.4/contour.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "contour", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/descriptive_text.json b/schema/release=v0.4/descriptive_text.json deleted file mode 100644 index 6c21648d4..000000000 --- a/schema/release=v0.4/descriptive_text.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "descriptive_text_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "descriptive_text" }, - "info_display": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "size": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "annotation" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "info_display", - "size", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/descriptive_text.parquet.json b/schema/release=v0.4/descriptive_text.parquet.json deleted file mode 100644 index 2e3d29323..000000000 --- a/schema/release=v0.4/descriptive_text.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "descriptive_text", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "info_display", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/fence_line.json b/schema/release=v0.4/fence_line.json deleted file mode 100644 index 99c7b7dea..000000000 --- a/schema/release=v0.4/fence_line.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "fence_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "fence" }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/fence_line.parquet.json b/schema/release=v0.4/fence_line.parquet.json deleted file mode 100644 index 25bbfa17e..000000000 --- a/schema/release=v0.4/fence_line.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "fence_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/ferry_line.json b/schema/release=v0.4/ferry_line.json deleted file mode 100644 index 11b186643..000000000 --- a/schema/release=v0.4/ferry_line.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "ferry_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "ferry_crossing" }, - "subtype": { - "anyOf": [ - { "type": "string", "const": "vehicle" }, - { "type": "string", "const": "passenger" }, - { "type": "string", "const": "freight" }, - { "type": "null" } - ] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/ferry_line.parquet.json b/schema/release=v0.4/ferry_line.parquet.json deleted file mode 100644 index 5e59913a1..000000000 --- a/schema/release=v0.4/ferry_line.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "ferry_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/geographic_name.json b/schema/release=v0.4/geographic_name.json deleted file mode 100644 index 88836900b..000000000 --- a/schema/release=v0.4/geographic_name.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "geographic_name_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "geographic_name" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "desc_code": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "size": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "annotation" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "desc_code", - "size", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/geographic_name.parquet.json b/schema/release=v0.4/geographic_name.parquet.json deleted file mode 100644 index b996866a8..000000000 --- a/schema/release=v0.4/geographic_name.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "geographic_name", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "desc_code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/island.json b/schema/release=v0.4/island.json deleted file mode 100644 index 67fa59c84..000000000 --- a/schema/release=v0.4/island.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "island_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "island" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "group_name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "group_name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/island.parquet.json b/schema/release=v0.4/island.parquet.json deleted file mode 100644 index f64e5896c..000000000 --- a/schema/release=v0.4/island.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "island", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/landcover.json b/schema/release=v0.4/landcover.json deleted file mode 100644 index 37e579eea..000000000 --- a/schema/release=v0.4/landcover.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landcover_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "landcover_type": { - "type": "string", - "enum": ["ice", "moraine", "moraine_wall", "mud", "sand", "scree", "shingle", "swamp"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/landcover.parquet.json b/schema/release=v0.4/landcover.parquet.json deleted file mode 100644 index aa3235ee6..000000000 --- a/schema/release=v0.4/landcover.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "landcover", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/landcover_line.json b/schema/release=v0.4/landcover_line.json deleted file mode 100644 index 7e35e9536..000000000 --- a/schema/release=v0.4/landcover_line.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "dredge_tailing" }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/landcover_line.parquet.json b/schema/release=v0.4/landcover_line.parquet.json deleted file mode 100644 index bdfd1e3bb..000000000 --- a/schema/release=v0.4/landcover_line.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "landcover_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/landcover_point.json b/schema/release=v0.4/landcover_point.json deleted file mode 100644 index bd3da4a24..000000000 --- a/schema/release=v0.4/landcover_point.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landcover_point_v0.4", - "oneOf": [{ "$ref": "#/$defs/rock_outcrop" }, { "$ref": "#/$defs/landcover_point_core_types" }], - "$defs": { - "rock_outcrop": { - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "rock_outcrop" }, - "orientation": { "type": "number" }, - "elevation": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, - "subtype": { "$ref": "#/$defs/rock_outcrop_subtype" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "orientation", - "elevation", - "subtype", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false - }, - "landcover_point_core_types": { - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landcover_point_core_type" }, - "orientation": { "type": "null" }, - "elevation": { "type": "null" }, - "subtype": { "type": "null" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "orientation", - "elevation", - "subtype", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false - }, - "rock_outcrop_subtype": { "type": "string", "enum": ["small_rock_outcrop", "large_rock_outcrop", "large_boulder"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - }, - "landcover_point_core_type": { "type": "string", "enum": ["cemetery", "fumarole", "swamp"] } - } -} diff --git a/schema/release=v0.4/landcover_point.parquet.json b/schema/release=v0.4/landcover_point.parquet.json deleted file mode 100644 index 9459ba2a4..000000000 --- a/schema/release=v0.4/landcover_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "landcover_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/landuse.json b/schema/release=v0.4/landuse.json deleted file mode 100644 index 85150278a..000000000 --- a/schema/release=v0.4/landuse.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landuse_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/landuse_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/landuse_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "substance_extracted": { "anyOf": [{ "$ref": "#/$defs/substance_extracted" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "substance_extracted", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "landuse_type": { - "type": "string", - "enum": [ - "cemetery", - "cycle_track", - "dog_track", - "golf_course", - "gravel_pit", - "horse_track", - "landfill", - "mine", - "orchard", - "pumice_pit", - "quarry", - "racetrack", - "rifle_range", - "showground", - "sportsfield", - "vineyard", - "vehicle_track" - ] - }, - "landuse_subtype": { "type": "string", "enum": ["training", "opencast", "underground"] }, - "landuse_status": { "type": "string", "enum": ["dangerous", "disused", "old"] }, - "substance_extracted": { - "type": "string", - "enum": [ - "bentonite", - "clay", - "coal", - "gold", - "gravel", - "ironsand", - "lime", - "limestone", - "metal", - "quartz", - "scheelite", - "shingle", - "silica_sand", - "silver", - "stone", - "zeolite" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/landuse.parquet.json b/schema/release=v0.4/landuse.parquet.json deleted file mode 100644 index f413fa257..000000000 --- a/schema/release=v0.4/landuse.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "landuse", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/landuse_line.json b/schema/release=v0.4/landuse_line.json deleted file mode 100644 index 423d55682..000000000 --- a/schema/release=v0.4/landuse_line.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landuse_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/landuse_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "landuse_type": { - "type": "string", - "enum": [ - "cemetery", - "cycle_track", - "dog_track", - "golf_course", - "gravel_pit", - "horse_track", - "landfill", - "mine", - "orchard", - "pumice_pit", - "quarry", - "racetrack", - "rifle_range", - "showground", - "sportsfield", - "vineyard", - "vehicle_track" - ] - }, - "landuse_subtype": { "type": "string", "enum": ["training", "opencast", "underground"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/landuse_line.parquet.json b/schema/release=v0.4/landuse_line.parquet.json deleted file mode 100644 index 225a868ca..000000000 --- a/schema/release=v0.4/landuse_line.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "landuse_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/landuse_point.json b/schema/release=v0.4/landuse_point.json deleted file mode 100644 index 04a456ded..000000000 --- a/schema/release=v0.4/landuse_point.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "landuse_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/landuse_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/landuse_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/landuse_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "substance_extracted": { "anyOf": [{ "$ref": "#/$defs/substance_extracted" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "name", - "substance_extracted", - "theme", - "metadata", - "geometry" - ], - "title": "NZ Topography Land Use Point", - "additionalProperties": false, - "$defs": { - "landuse_type": { - "type": "string", - "enum": [ - "cemetery", - "cycle_track", - "dog_track", - "golf_course", - "gravel_pit", - "horse_track", - "landfill", - "mine", - "orchard", - "pumice_pit", - "quarry", - "racetrack", - "rifle_range", - "showground", - "sportsfield", - "vineyard", - "vehicle_track" - ] - }, - "landuse_subtype": { "type": "string", "enum": ["training", "opencast", "underground"] }, - "landuse_status": { "type": "string", "enum": ["dangerous", "disused", "old"] }, - "substance_extracted": { - "type": "string", - "enum": [ - "bentonite", - "clay", - "coal", - "gold", - "gravel", - "ironsand", - "lime", - "limestone", - "metal", - "quartz", - "scheelite", - "shingle", - "silica_sand", - "silver", - "stone", - "zeolite" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/landuse_point.parquet.json b/schema/release=v0.4/landuse_point.parquet.json deleted file mode 100644 index 76a955d23..000000000 --- a/schema/release=v0.4/landuse_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "landuse_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "substance_extracted", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/marine.json b/schema/release=v0.4/marine.json deleted file mode 100644 index 5ec9d8f5e..000000000 --- a/schema/release=v0.4/marine.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "marine_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "mangrove" }, - { "type": "string", "const": "reef" }, - { "type": "string", "const": "rock" }, - { "type": "string", "const": "shoal" } - ] - }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/marine.parquet.json b/schema/release=v0.4/marine.parquet.json deleted file mode 100644 index 22f161db5..000000000 --- a/schema/release=v0.4/marine.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "marine", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/marine_point.json b/schema/release=v0.4/marine_point.json deleted file mode 100644 index b1c513331..000000000 --- a/schema/release=v0.4/marine_point.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "marine_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "rock" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/marine_point.parquet.json b/schema/release=v0.4/marine_point.parquet.json deleted file mode 100644 index 3fb333cee..000000000 --- a/schema/release=v0.4/marine_point.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "marine_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_carto_symbol.json b/schema/release=v0.4/nztopo50_carto_symbol.json deleted file mode 100644 index 7eb9c5c3f..000000000 --- a/schema/release=v0.4/nztopo50_carto_symbol.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_carto_symbol_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "source_id": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "description": "id (UUID) of the feature this symbol annotates: the landuse polygon it sits within, or\nthe road centreline it labels.\n\nNull where no feature was close enough to match." - }, - "type": { "$ref": "#/$defs/carto_symbol_type" }, - "label": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "orientation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }], - "description": "Label rotation in degrees clockwise from east. Null for symbols drawn unrotated." - }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "t50_fid", "created_at", "updated_at", "source_id", "type", "label", "orientation", "geometry"], - "additionalProperties": false, - "$defs": { - "carto_symbol_type": { - "type": "string", - "enum": ["contour_number", "golf_course", "highway_shield", "mine_opencast", "mine_training", "mine_underground"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_carto_symbol.parquet.json b/schema/release=v0.4/nztopo50_carto_symbol.parquet.json deleted file mode 100644 index 03bfb1091..000000000 --- a/schema/release=v0.4/nztopo50_carto_symbol.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_carto_symbol", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "source_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "label", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_carto_text.json b/schema/release=v0.4/nztopo50_carto_text.json deleted file mode 100644 index c84bc2a32..000000000 --- a/schema/release=v0.4/nztopo50_carto_text.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_carto_text_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "example_point_id": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "description": "id (UUID) of the example feature." - }, - "full_text": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "text_bend": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_char_spacing_distance": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_colour": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_font": { "anyOf": [{ "$ref": "#/$defs/carto_textfont" }, { "type": "null" }] }, - "text_height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "text_orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "text_placement": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_size_type": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_stretch_length": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "text_string": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "text_word_spacing_distance": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "font": { "anyOf": [{ "$ref": "#/$defs/carto_font" }, { "type": "null" }] }, - "style": { "anyOf": [{ "$ref": "#/$defs/carto_style" }, { "type": "null" }] }, - "colour": { "anyOf": [{ "$ref": "#/$defs/carto_colour" }, { "type": "null" }] }, - "size": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "placement": { "anyOf": [{ "$ref": "#/$defs/carto_placement" }, { "type": "null" }] }, - "offset": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "textanchor": { "anyOf": [{ "$ref": "#/$defs/carto_textanchor" }, { "type": "null" }] }, - "labelanchor": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "charplace": { "anyOf": [{ "$ref": "#/$defs/carto_charplace" }, { "type": "null" }] }, - "chardistance": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "t50_fid", - "example_point_id", - "full_text", - "text_bend", - "text_char_spacing_distance", - "text_colour", - "text_font", - "text_height", - "text_orientation", - "text_placement", - "text_size_type", - "text_stretch_length", - "text_string", - "text_word_spacing_distance", - "font", - "style", - "colour", - "size", - "placement", - "offset", - "textanchor", - "labelanchor", - "charplace", - "chardistance", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "carto_textfont": { - "type": "string", - "enum": [ - "ATTrium-Italic", - "ATTriumMou-Cond", - "ATTriumMou-CondBold", - "ATTriumMou-CondItalic", - "ATTriumMou-Italic", - "ATTriumMou-Regular", - "Courier Bold Oblique" - ] - }, - "carto_font": { "type": "string", "enum": ["", "Nimbus Sans LINZ"] }, - "carto_style": { "type": "string", "enum": ["", "Italic", "Narrow", "Narrow Bold", "Narrow Italic", "Regular"] }, - "carto_colour": { "type": "string", "enum": ["", "black", "process_blue", "warm_red"] }, - "carto_placement": { "type": "string", "enum": ["", "AL", "BL", "OL"] }, - "carto_textanchor": { "type": "string", "enum": ["", "centre", "left", "left ", "left 0.62", "right"] }, - "carto_charplace": { - "type": "string", - "enum": ["", "CharactersAtVertices", "StretchCharacterSpacingToFit", "StretchWordSpacingToFit"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_carto_text.parquet.json b/schema/release=v0.4/nztopo50_carto_text.parquet.json deleted file mode 100644 index 416dca944..000000000 --- a/schema/release=v0.4/nztopo50_carto_text.parquet.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_carto_text", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "example_point_id", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "full_text", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "text_bend", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_char_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_colour", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "text_height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "text_orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "text_placement", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_size_type", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_stretch_length", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "text_string", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "text_word_spacing_distance", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "font", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "style", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "colour", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "size", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "placement", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "offset", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "textanchor", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "labelanchor", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "charplace", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "chardistance", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_coastline_island.json b/schema/release=v0.4/nztopo50_coastline_island.json deleted file mode 100644 index c116cf7ea..000000000 --- a/schema/release=v0.4/nztopo50_coastline_island.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_coastline_island_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "coastline" }, - { "type": "string", "const": "island" } - ] - }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "group_name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "elevation", "name", "group_name", "geometry"], - "description": "Derived polygon Union of coastline and island", - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_coastline_island.parquet.json b/schema/release=v0.4/nztopo50_coastline_island.parquet.json deleted file mode 100644 index 1184d4f14..000000000 --- a/schema/release=v0.4/nztopo50_coastline_island.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_coastline_island", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_dms_grid.json b/schema/release=v0.4/nztopo50_dms_grid.json deleted file mode 100644 index f1fe24390..000000000 --- a/schema/release=v0.4/nztopo50_dms_grid.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_dms_grid_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "direction": { "$ref": "#/$defs/grid_direction" }, - "value": { "type": "number" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "t50_fid", "direction", "value", "geometry"], - "additionalProperties": false, - "$defs": { - "grid_direction": { "type": "string", "enum": ["x", "y"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_dms_grid.parquet.json b/schema/release=v0.4/nztopo50_dms_grid.parquet.json deleted file mode 100644 index 7b2907580..000000000 --- a/schema/release=v0.4/nztopo50_dms_grid.parquet.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_dms_grid", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_grid.json b/schema/release=v0.4/nztopo50_grid.json deleted file mode 100644 index 85366821d..000000000 --- a/schema/release=v0.4/nztopo50_grid.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_grid_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "direction": { "$ref": "#/$defs/grid_direction" }, - "value": { "type": "number" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "t50_fid", "direction", "value", "geometry"], - "additionalProperties": false, - "$defs": { - "grid_direction": { "type": "string", "enum": ["x", "y"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_grid.parquet.json b/schema/release=v0.4/nztopo50_grid.parquet.json deleted file mode 100644 index 6103b1042..000000000 --- a/schema/release=v0.4/nztopo50_grid.parquet.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_grid", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "direction", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "value", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_ice_contour.json b/schema/release=v0.4/nztopo50_ice_contour.json deleted file mode 100644 index 94fd7a2ac..000000000 --- a/schema/release=v0.4/nztopo50_ice_contour.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_ice_contour_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "contour_ice" }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "definition": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "designation": { "anyOf": [{ "type": "string", "const": "supplementary" }, { "type": "null" }] }, - "formation": { "anyOf": [{ "type": "string", "const": "depression" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "contour_id": { "type": "string", "description": "UUID for the intersecting contour feature." }, - "landcover_id": { "type": "string", "description": "UUID for the intersecting landcover feature." }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "elevation", - "definition", - "designation", - "formation", - "theme", - "contour_id", - "landcover_id", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_ice_contour.parquet.json b/schema/release=v0.4/nztopo50_ice_contour.parquet.json deleted file mode 100644 index 3f9fab290..000000000 --- a/schema/release=v0.4/nztopo50_ice_contour.parquet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_ice_contour", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "definition", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "designation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "formation", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "contour_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "landcover_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_map_sheet.json b/schema/release=v0.4/nztopo50_map_sheet.json deleted file mode 100644 index 6052e1d78..000000000 --- a/schema/release=v0.4/nztopo50_map_sheet.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_map_sheet_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "nztopo50_map_sheet" }, - "sheet_code": { "type": "string" }, - "sheet_name": { "type": "string" }, - "origin_x": { "type": "number" }, - "origin_y": { "type": "number" }, - "example_point_id": { "type": "string", "description": "id (UUID) of the example feature." }, - "published_version": { "type": "string" }, - "published_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "t50_fid", - "type", - "sheet_code", - "sheet_name", - "origin_x", - "origin_y", - "example_point_id", - "published_version", - "published_at", - "updated_at", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_map_sheet.parquet.json b/schema/release=v0.4/nztopo50_map_sheet.parquet.json deleted file mode 100644 index 286b103d8..000000000 --- a/schema/release=v0.4/nztopo50_map_sheet.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_map_sheet", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "sheet_code", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "sheet_name", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "origin_x", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "origin_y", "repetition_type": "REQUIRED", "type": "DOUBLE" }, - { "name": "example_point_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "published_version", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "published_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_rock_line.json b/schema/release=v0.4/nztopo50_rock_line.json deleted file mode 100644 index 2184e908c..000000000 --- a/schema/release=v0.4/nztopo50_rock_line.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_rock_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "marine_id": { - "type": "string", - "description": "UUID of the source `marine` rock polygon this boundary line was derived from." - }, - "type": { "type": "string", "const": "rock" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "marine_id", - "type", - "name", - "subtype", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_rock_line.parquet.json b/schema/release=v0.4/nztopo50_rock_line.parquet.json deleted file mode 100644 index e0d221d9f..000000000 --- a/schema/release=v0.4/nztopo50_rock_line.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_rock_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "marine_id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/nztopo50_sea_polygon.json b/schema/release=v0.4/nztopo50_sea_polygon.json deleted file mode 100644 index 2e53e293c..000000000 --- a/schema/release=v0.4/nztopo50_sea_polygon.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "nztopo50_sea_polygon_v0.4", - "type": "object", - "properties": { - "id": { "type": "string" }, - "type": { "type": "string", "const": "moana" }, - "quadkey": { "type": "string", "description": "Web Mercator quadkey of the tile this sea polygon was sliced to." }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "type", "quadkey", "created_at", "updated_at", "geometry"], - "description": "Derived sea (moana) polygons for the water layer.\n\nThe land polygons (coastline and island) are inverted and sliced by Web\nMercator quadkey tiles so no single large polygon exists.", - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/nztopo50_sea_polygon.parquet.json b/schema/release=v0.4/nztopo50_sea_polygon.parquet.json deleted file mode 100644 index 157864f73..000000000 --- a/schema/release=v0.4/nztopo50_sea_polygon.parquet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "type": "message", - "name": "nztopo50_sea_polygon", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "quadkey", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/place_point.json b/schema/release=v0.4/place_point.json deleted file mode 100644 index bed94db71..000000000 --- a/schema/release=v0.4/place_point.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "place_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/place_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/composition_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "place_type": { "type": "string", "enum": ["cave", "grave", "historic_site", "monument", "pa"] }, - "composition_subtype": { "type": "string", "enum": ["coral", "limestone", "pumice", "rock"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/place_point.parquet.json b/schema/release=v0.4/place_point.parquet.json deleted file mode 100644 index ad0eddb59..000000000 --- a/schema/release=v0.4/place_point.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "place_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/railway_line.json b/schema/release=v0.4/railway_line.json deleted file mode 100644 index 88d852f73..000000000 --- a/schema/release=v0.4/railway_line.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "railway_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "railway" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/railway_subtype" }, { "type": "null" }] }, - "track_type": { "anyOf": [{ "$ref": "#/$defs/railway_track_type" }, { "type": "null" }] }, - "vehicle_type": { "anyOf": [{ "$ref": "#/$defs/railway_vehicle_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/railway_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "track_type", - "vehicle_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "description": "All mainline railway lines are held in the Topo50 data and shown on the Topo50 printed maps.\nWhere a railway line is located close to a road, the line held in the data and shown on the printed map\nmay be offset from the road sufficient that the two symbols are recognisable at 1:50,000.\n\nMultiple sidings may be held in the data and shown on the printed maps as a single feature", - "additionalProperties": false, - "$defs": { - "railway_subtype": { "type": "string", "enum": ["siding"] }, - "railway_track_type": { "type": "string", "enum": ["single", "multiple"] }, - "railway_vehicle_type": { "type": "string", "enum": ["train", "tram", "rail_cart", "cablecar"] }, - "railway_status": { "type": "string", "enum": ["disused"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/railway_line.parquet.json b/schema/release=v0.4/railway_line.parquet.json deleted file mode 100644 index 513e8ffc9..000000000 --- a/schema/release=v0.4/railway_line.parquet.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "type": "message", - "name": "railway_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "vehicle_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/railway_point.json b/schema/release=v0.4/railway_point.json deleted file mode 100644 index 8fe707ed3..000000000 --- a/schema/release=v0.4/railway_point.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "railway_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "station" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/railway_point.parquet.json b/schema/release=v0.4/railway_point.parquet.json deleted file mode 100644 index ccdf033bd..000000000 --- a/schema/release=v0.4/railway_point.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "railway_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/relief.json b/schema/release=v0.4/relief.json deleted file mode 100644 index 2069a104e..000000000 --- a/schema/release=v0.4/relief.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "waterfall" }, - { "type": "string", "const": "rapid" } - ] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "height", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/relief.parquet.json b/schema/release=v0.4/relief.parquet.json deleted file mode 100644 index 0d2b7baaa..000000000 --- a/schema/release=v0.4/relief.parquet.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "type": "message", - "name": "relief", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/relief_line.json b/schema/release=v0.4/relief_line.json deleted file mode 100644 index 27ca61c01..000000000 --- a/schema/release=v0.4/relief_line.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/relief_line_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/relief_line_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "name", - "height", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "relief_line_type": { - "type": "string", - "enum": [ - "cliff_edge", - "cutting_edge", - "embankment", - "rapid", - "slip_edge", - "waterfall", - "waterfall_edge", - "seawall" - ] - }, - "relief_line_subtype": { "type": "string", "enum": ["causeway", "stopbank"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/relief_line.parquet.json b/schema/release=v0.4/relief_line.parquet.json deleted file mode 100644 index 1976a59ea..000000000 --- a/schema/release=v0.4/relief_line.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "relief_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/relief_point.json b/schema/release=v0.4/relief_point.json deleted file mode 100644 index aa8763f62..000000000 --- a/schema/release=v0.4/relief_point.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "relief_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/relief_point_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "elevation", - "height", - "orientation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "relief_point_type": { "type": "string", "enum": ["height", "saddle", "sinkhole", "waterfall"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/relief_point.parquet.json b/schema/release=v0.4/relief_point.parquet.json deleted file mode 100644 index f2712d0b3..000000000 --- a/schema/release=v0.4/relief_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "relief_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/residential_area.json b/schema/release=v0.4/residential_area.json deleted file mode 100644 index 12e9505f1..000000000 --- a/schema/release=v0.4/residential_area.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "residential_area_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "residential_area" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landuse" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/residential_area.parquet.json b/schema/release=v0.4/residential_area.parquet.json deleted file mode 100644 index 434c99e2a..000000000 --- a/schema/release=v0.4/residential_area.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "residential_area", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/road_line.json b/schema/release=v0.4/road_line.json deleted file mode 100644 index 418c4c4e3..000000000 --- a/schema/release=v0.4/road_line.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "road_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "road" }, - "hierarchy": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/road_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "highway_number": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "lane_count": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "surface": { "anyOf": [{ "$ref": "#/$defs/road_surface" }, { "type": "null" }] }, - "way_count": { "anyOf": [{ "type": "string", "const": "one_way" }, { "type": "null" }] }, - "width_indicator": { "anyOf": [{ "type": "string", "const": "w" }, { "type": "null" }] }, - "road_access": { "anyOf": [{ "type": "string", "const": "mp" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "hierarchy", - "status", - "name", - "highway_number", - "lane_count", - "surface", - "way_count", - "width_indicator", - "road_access", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "road_status": { "type": "string", "enum": ["under_construction", "closed"] }, - "road_surface": { "type": "string", "enum": ["metalled", "unmetalled", "sealed"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/road_line.parquet.json b/schema/release=v0.4/road_line.parquet.json deleted file mode 100644 index 69b50e2c3..000000000 --- a/schema/release=v0.4/road_line.parquet.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "type": "message", - "name": "road_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "hierarchy", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "highway_number", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "lane_count", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "way_count", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "width_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "road_access", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/runway.json b/schema/release=v0.4/runway.json deleted file mode 100644 index 5e4a77300..000000000 --- a/schema/release=v0.4/runway.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "runway_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "runway" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/runway_subtype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/runway_status" }, { "type": "null" }] }, - "surface": { "anyOf": [{ "$ref": "#/$defs/runway_surface" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "status", - "surface", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "runway_subtype": { "type": "string", "enum": ["aerodrome", "airport", "airstrip"] }, - "runway_status": { "type": "string", "enum": ["disused"] }, - "runway_surface": { "type": "string", "enum": ["grass", "sealed"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/runway.parquet.json b/schema/release=v0.4/runway.parquet.json deleted file mode 100644 index daa1c08be..000000000 --- a/schema/release=v0.4/runway.parquet.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "type": "message", - "name": "runway", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "surface", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/structure.json b/schema/release=v0.4/structure.json deleted file mode 100644 index 463d2b578..000000000 --- a/schema/release=v0.4/structure.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/structure_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/structure_subtype" }, { "type": "null" }] }, - "lid_type": { "anyOf": [{ "type": "string", "const": "covered" }, { "type": "null" }] }, - "tank_type": { "anyOf": [{ "$ref": "#/$defs/structure_tank_type" }, { "type": "null" }] }, - "species": { "anyOf": [{ "$ref": "#/$defs/structure_species" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/structure_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "lid_type", - "tank_type", - "species", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "structure_type": { - "type": "string", - "enum": ["dry_dock", "fish_farm", "marine_farm", "reservoir", "siphon", "tank"] - }, - "structure_subtype": { - "type": "string", - "enum": [ - "building", - "coal", - "concrete", - "disused", - "fuel", - "historic", - "jetty", - "lake", - "land", - "lighthouse", - "lime", - "locked", - "plane", - "power_generation", - "rock", - "sea", - "ship", - "surge_chamber", - "tunnel_ventilation", - "uncovered", - "water" - ] - }, - "structure_tank_type": { "type": "string", "enum": ["uncovered", "water", "surge_chamber"] }, - "structure_species": { "type": "string", "enum": ["mussels", "salmon"] }, - "structure_status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/structure.parquet.json b/schema/release=v0.4/structure.parquet.json deleted file mode 100644 index b71bca859..000000000 --- a/schema/release=v0.4/structure.parquet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "message", - "name": "structure", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "lid_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/structure_line.json b/schema/release=v0.4/structure_line.json deleted file mode 100644 index e19b270a6..000000000 --- a/schema/release=v0.4/structure_line.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/structure_line_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/structure_subtype" }, { "type": "null" }] }, - "species": { "anyOf": [{ "$ref": "#/$defs/structure_species" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/structure_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "species", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "structure_line_type": { - "type": "string", - "enum": [ - "boatramp", - "boom", - "breakwater", - "cableway_industrial", - "cableway_people", - "dam", - "flume", - "ladder", - "marine_farm", - "ski_lift", - "ski_tow", - "slipway", - "spillway_edge", - "walkwire", - "water_race", - "weir", - "wharf", - "wharf_edge" - ] - }, - "structure_subtype": { - "type": "string", - "enum": [ - "building", - "coal", - "concrete", - "disused", - "fuel", - "historic", - "jetty", - "lake", - "land", - "lighthouse", - "lime", - "locked", - "plane", - "power_generation", - "rock", - "sea", - "ship", - "surge_chamber", - "tunnel_ventilation", - "uncovered", - "water" - ] - }, - "structure_species": { "type": "string", "enum": ["mussels", "salmon"] }, - "structure_status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/structure_line.parquet.json b/schema/release=v0.4/structure_line.parquet.json deleted file mode 100644 index 4036420fc..000000000 --- a/schema/release=v0.4/structure_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "structure_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "species", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/structure_point.json b/schema/release=v0.4/structure_point.json deleted file mode 100644 index 58cca21a4..000000000 --- a/schema/release=v0.4/structure_point.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "structure_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/structure_point_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/structure_subtype" }, { "type": "null" }] }, - "tank_type": { "anyOf": [{ "$ref": "#/$defs/structure_tank_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/structure_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "structures" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "tank_type", - "status", - "name", - "height", - "orientation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "structure_point_type": { - "type": "string", - "enum": [ - "beacon", - "bivouac", - "buoy", - "chimney", - "dredge", - "flare", - "floodgate", - "gate", - "ladder", - "lighthouse", - "mast", - "radar_dome", - "redoubt", - "satellite_station", - "shaft", - "siphon", - "stockyard", - "tank", - "tower", - "well", - "windmill", - "wreck" - ] - }, - "structure_subtype": { - "type": "string", - "enum": [ - "building", - "coal", - "concrete", - "disused", - "fuel", - "historic", - "jetty", - "lake", - "land", - "lighthouse", - "lime", - "locked", - "plane", - "power_generation", - "rock", - "sea", - "ship", - "surge_chamber", - "tunnel_ventilation", - "uncovered", - "water" - ] - }, - "structure_tank_type": { "type": "string", "enum": ["uncovered", "water", "surge_chamber"] }, - "structure_status": { - "type": "string", - "enum": [ - "closed", - "dangerous", - "derelict", - "disused", - "historic", - "locked", - "old", - "private", - "remains", - "ruins", - "under_construction" - ] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/structure_point.parquet.json b/schema/release=v0.4/structure_point.parquet.json deleted file mode 100644 index cea66890e..000000000 --- a/schema/release=v0.4/structure_point.parquet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "message", - "name": "structure_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "tank_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/track_line.json b/schema/release=v0.4/track_line.json deleted file mode 100644 index 0e9215440..000000000 --- a/schema/release=v0.4/track_line.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "track_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "track" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/track_subtype" }, { "type": "null" }] }, - "track_type": { "anyOf": [{ "$ref": "#/$defs/track_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/track_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "track_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "track_subtype": { "type": "string", "enum": ["cycle_only", "foot", "vehicle"] }, - "track_type": { "type": "string", "enum": ["connector", "multiple", "route", "single"] }, - "track_status": { "type": "string", "enum": ["closed"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/track_line.parquet.json b/schema/release=v0.4/track_line.parquet.json deleted file mode 100644 index 3b2fb1135..000000000 --- a/schema/release=v0.4/track_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "track_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "track_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/transport_point.json b/schema/release=v0.4/transport_point.json deleted file mode 100644 index b33013272..000000000 --- a/schema/release=v0.4/transport_point.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "transport_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "ford" }, - { "type": "string", "const": "helipad" } - ] - }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/transport_point.parquet.json b/schema/release=v0.4/transport_point.parquet.json deleted file mode 100644 index 9d848e704..000000000 --- a/schema/release=v0.4/transport_point.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "transport_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/trig_point.json b/schema/release=v0.4/trig_point.json deleted file mode 100644 index 5f3093b0f..000000000 --- a/schema/release=v0.4/trig_point.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "trig_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "trig" }, - "trig_type": { "anyOf": [{ "type": "string", "const": "beaconed" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "code": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "theme": { "type": "string", "const": "relief" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "trig_type", - "name", - "code", - "elevation", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/trig_point.parquet.json b/schema/release=v0.4/trig_point.parquet.json deleted file mode 100644 index 842881d93..000000000 --- a/schema/release=v0.4/trig_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "trig_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "trig_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "code", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/tunnel_line.json b/schema/release=v0.4/tunnel_line.json deleted file mode 100644 index 649104c32..000000000 --- a/schema/release=v0.4/tunnel_line.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "tunnel_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/tunnel_type" }, - "subtype": { "anyOf": [{ "type": "string", "const": "livestock" }, { "type": "null" }] }, - "construction_type": { "anyOf": [{ "$ref": "#/$defs/tunnel_construction_type" }, { "type": "null" }] }, - "status": { "anyOf": [{ "$ref": "#/$defs/tunnel_status" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "transport" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "construction_type", - "status", - "name", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "tunnel_type": { - "type": "string", - "enum": ["cablecar", "foot_traffic", "livestock", "river", "train", "tram", "vehicle"] - }, - "tunnel_construction_type": { "type": "string", "enum": ["natural", "manmade"] }, - "tunnel_status": { "type": "string", "enum": ["closed", "historic", "disused", "derelict", "under_construction"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/tunnel_line.parquet.json b/schema/release=v0.4/tunnel_line.parquet.json deleted file mode 100644 index 65a217622..000000000 --- a/schema/release=v0.4/tunnel_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "tunnel_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "construction_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/utility_line.json b/schema/release=v0.4/utility_line.json deleted file mode 100644 index 9c4013597..000000000 --- a/schema/release=v0.4/utility_line.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "utility_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "pipeline" }, - { "type": "string", "const": "powerline" }, - { "type": "string", "const": "telephone" } - ] - }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/utility_subtype" }, { "type": "null" }] }, - "support_type": { "anyOf": [{ "$ref": "#/$defs/utility_supporttype" }, { "type": "null" }] }, - "status": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "visibility": { "anyOf": [{ "$ref": "#/$defs/utility_visibility" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "utility" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "support_type", - "status", - "visibility", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "utility_subtype": { "type": "string", "enum": ["ironsand", "sewage", "steam", "water"] }, - "utility_supporttype": { "type": "string", "enum": ["pole", "pylon"] }, - "utility_visibility": { "type": "string", "enum": ["underground"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/utility_line.parquet.json b/schema/release=v0.4/utility_line.parquet.json deleted file mode 100644 index 5eaf2f34d..000000000 --- a/schema/release=v0.4/utility_line.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "utility_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "support_type", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "status", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "visibility", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/utility_point.json b/schema/release=v0.4/utility_point.json deleted file mode 100644 index 82710f42b..000000000 --- a/schema/release=v0.4/utility_point.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "utility_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/utility_point_type" }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "utility" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "orientation", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "utility_point_type": { "type": "string", "enum": ["gas_valve", "geo_bore", "pylon"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/utility_point.parquet.json b/schema/release=v0.4/utility_point.parquet.json deleted file mode 100644 index bfc3fd6d0..000000000 --- a/schema/release=v0.4/utility_point.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "utility_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/vegetation.json b/schema/release=v0.4/vegetation.json deleted file mode 100644 index 4287976b9..000000000 --- a/schema/release=v0.4/vegetation.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "exotic" }, - { "type": "string", "const": "native" }, - { "type": "string", "const": "scattered_scrub" }, - { "type": "string", "const": "scrub" } - ] - }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/vegetation_subtype" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "subtype", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "vegetation_subtype": { "type": "string", "enum": ["coniferous", "non-coniferous"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/vegetation.parquet.json b/schema/release=v0.4/vegetation.parquet.json deleted file mode 100644 index e29085d3c..000000000 --- a/schema/release=v0.4/vegetation.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "vegetation", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/vegetation_line.json b/schema/release=v0.4/vegetation_line.json deleted file mode 100644 index d751dee07..000000000 --- a/schema/release=v0.4/vegetation_line.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "type": "string", "const": "shelter_belt" }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/vegetation_line.parquet.json b/schema/release=v0.4/vegetation_line.parquet.json deleted file mode 100644 index 3fd3f5ad4..000000000 --- a/schema/release=v0.4/vegetation_line.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "vegetation_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/vegetation_point.json b/schema/release=v0.4/vegetation_point.json deleted file mode 100644 index 61e9d081b..000000000 --- a/schema/release=v0.4/vegetation_point.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "vegetation_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { - "anyOf": [ - { "type": "string", "const": "tree" }, - { "type": "string", "const": "scattered_scrub" } - ] - }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/vegetation_point.parquet.json b/schema/release=v0.4/vegetation_point.parquet.json deleted file mode 100644 index 259f38cdb..000000000 --- a/schema/release=v0.4/vegetation_point.parquet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "message", - "name": "vegetation_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/water.json b/schema/release=v0.4/water.json deleted file mode 100644 index 29c6b3654..000000000 --- a/schema/release=v0.4/water.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/water_type" }, - "subtype": { "anyOf": [{ "$ref": "#/$defs/water_subtype" }, { "type": "null" }] }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "group_name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "elevation": { - "anyOf": [{ "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }, { "type": "null" }] - }, - "perennial": { "anyOf": [{ "$ref": "#/$defs/water_perennial" }, { "type": "null" }] }, - "temperature_indicator": { "anyOf": [{ "$ref": "#/$defs/water_temperature_indicator" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "subtype", - "name", - "group_name", - "height", - "elevation", - "perennial", - "temperature_indicator", - "theme", - "metadata", - "geometry" - ], - "title": "NZ Topography Water", - "additionalProperties": false, - "$defs": { - "water_type": { - "type": "string", - "enum": ["canal", "drain", "lagoon", "lake", "pond", "river", "soakhole", "spring", "waterfall"] - }, - "water_subtype": { - "type": "string", - "enum": [ - "evaporation", - "hydro_electric", - "ice_skating", - "oil", - "oxidation", - "reservoir", - "settling", - "sewage", - "sewage_treatment", - "sludge" - ] - }, - "water_perennial": { "type": "string", "enum": ["dry", "seasonal"] }, - "water_temperature_indicator": { "type": "string", "enum": ["cold", "hot"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/water.parquet.json b/schema/release=v0.4/water.parquet.json deleted file mode 100644 index 7e0e70aa8..000000000 --- a/schema/release=v0.4/water.parquet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "type": "message", - "name": "water", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "subtype", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "group_name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "elevation", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "perennial", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/water_line.json b/schema/release=v0.4/water_line.json deleted file mode 100644 index d3365fce5..000000000 --- a/schema/release=v0.4/water_line.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_line_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/water_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": ["id", "created_at", "updated_at", "t50_fid", "type", "name", "theme", "metadata", "geometry"], - "additionalProperties": false, - "$defs": { - "water_type": { - "type": "string", - "enum": ["canal", "drain", "lagoon", "lake", "pond", "river", "soakhole", "spring", "waterfall"] - }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/water_line.parquet.json b/schema/release=v0.4/water_line.parquet.json deleted file mode 100644 index 8640d9fe1..000000000 --- a/schema/release=v0.4/water_line.parquet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "message", - "name": "water_line", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} diff --git a/schema/release=v0.4/water_point.json b/schema/release=v0.4/water_point.json deleted file mode 100644 index 07b990d78..000000000 --- a/schema/release=v0.4/water_point.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "water_point_v0.4", - "type": "object", - "properties": { - "id": { "type": "string", "description": "UUIDv7 of the feature" }, - "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string", "format": "date-time" }, - "t50_fid": { - "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 4294967295 }, { "type": "null" }], - "description": "Reference topo50 feature ID.\n\nWill be null if the feature is new and has not been published in a Topo50 edition." - }, - "type": { "$ref": "#/$defs/water_type" }, - "name": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "height": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "orientation": { "anyOf": [{ "type": "number" }, { "type": "null" }] }, - "temperature_indicator": { "anyOf": [{ "$ref": "#/$defs/water_temperature_indicator" }, { "type": "null" }] }, - "theme": { "type": "string", "const": "landcover" }, - "metadata": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, - "geometry": { "description": "GeoParquet 1.1 covering geometry struct.", "not": { "type": "null" } }, - "bbox": { "$ref": "#/$defs/BBox", "description": "GeoParquet 1.1 covering bbox struct." } - }, - "required": [ - "id", - "created_at", - "updated_at", - "t50_fid", - "type", - "name", - "height", - "orientation", - "temperature_indicator", - "theme", - "metadata", - "geometry" - ], - "additionalProperties": false, - "$defs": { - "water_type": { - "type": "string", - "enum": ["canal", "drain", "lagoon", "lake", "pond", "river", "soakhole", "spring", "waterfall"] - }, - "water_temperature_indicator": { "type": "string", "enum": ["cold", "hot"] }, - "BBox": { - "type": "object", - "properties": { - "xmin": { "type": "number" }, - "ymin": { "type": "number" }, - "xmax": { "type": "number" }, - "ymax": { "type": "number" } - }, - "required": ["xmin", "ymin", "xmax", "ymax"], - "description": "GeoParquet 1.1 covering bbox struct.", - "additionalProperties": false - } - } -} diff --git a/schema/release=v0.4/water_point.parquet.json b/schema/release=v0.4/water_point.parquet.json deleted file mode 100644 index a47e0a88f..000000000 --- a/schema/release=v0.4/water_point.parquet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "message", - "name": "water_point", - "fields": [ - { "name": "id", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "created_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "updated_at", "repetition_type": "REQUIRED", "type": "INT64", "logical_type": "TIMESTAMP" }, - { "name": "t50_fid", "repetition_type": "OPTIONAL", "type": "INT32" }, - { "name": "type", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "name", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "height", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "orientation", "repetition_type": "OPTIONAL", "type": "DOUBLE" }, - { "name": "temperature_indicator", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "theme", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "metadata", "repetition_type": "OPTIONAL", "type": "BYTE_ARRAY", "logical_type": "STRING" }, - { "name": "geometry", "repetition_type": "REQUIRED", "type": "BYTE_ARRAY" }, - { - "name": "bbox", - "repetition_type": "OPTIONAL", - "fields": [ - { "name": "xmin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymin", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "xmax", "repetition_type": "REQUIRED", "type": "FLOAT" }, - { "name": "ymax", "repetition_type": "REQUIRED", "type": "FLOAT" } - ] - } - ] -} From b13121366565fd685da79f052a4ae4137d6b7acc Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Wed, 16 Sep 2026 14:21:09 +1200 Subject: [PATCH 19/20] wip: publish to s3 --- .github/workflows/push.yml | 43 +++++++++++++++- .../stac/src/__test__/stac.storage.test.ts | 19 +++++++ packages/stac/src/stac.pusher.ts | 11 ++-- packages/stac/src/stac.storage.ts | 51 +++++++++++++++++-- packages/typespec-emitter/src/index.ts | 7 +++ 5 files changed, 124 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 2258fc3f6..92ba0bbd6 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -9,6 +9,11 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + env: + AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }} steps: - uses: actions/checkout@v6 @@ -25,7 +30,7 @@ jobs: background: true # Remove existing schema files to ensure no dangling json schemas. - - run: rm -rfv schema/release=* + - run: rm -rfv schema/ - run: npm ci @@ -44,6 +49,42 @@ jobs: - wait: [check, test, python-ci] - run: git diff --exit-code + - name: Configure AWS Credentials + if: github.ref == 'refs/heads/master' && github.event_name == 'push' && env.AWS_ROLE_ARN != '' + uses: aws-actions/configure-aws-credentials@v6.2.1 + with: + aws-region: ap-southeast-2 + mask-aws-account-id: true + role-to-assume: ${{ secrets.AWS_ROLE_ARN }} + + - name: Push Schemas to STAC + if: github.ref == 'refs/heads/master' && github.event_name == 'push' && env.AWS_ROLE_ARN != '' + run: | + RELEASES=($(ls -d schema/release=v* | sort -V)) + LATEST="${RELEASES[-1]}" + + for RELEASE_DIR in "${RELEASES[@]}"; do + VERSION="${RELEASE_DIR#schema/release=}" + if [ "$RELEASE_DIR" = "$LATEST" ]; then + echo "Pushing latest release $VERSION with virtual latest/..." + node --experimental-strip-types packages/map/src/index.ts stac-push \ + --source="$RELEASE_DIR/collection.json" \ + --target="${{ env.SCHEMA_S3_TARGET || 's3://linz-topographic/' }}" \ + --category=schema \ + --strategy="release=$VERSION" \ + --strategy=latest \ + --commit + else + echo "Pushing release $VERSION..." + node --experimental-strip-types packages/map/src/index.ts stac-push \ + --source="$RELEASE_DIR/collection.json" \ + --target="${{ env.SCHEMA_S3_TARGET || 's3://linz-topographic/' }}" \ + --category=schema \ + --strategy="release=$VERSION" \ + --commit + fi + done + build-container: uses: ./.github/workflows/containers.yml with: diff --git a/packages/stac/src/__test__/stac.storage.test.ts b/packages/stac/src/__test__/stac.storage.test.ts index db32f9619..fe4d23071 100644 --- a/packages/stac/src/__test__/stac.storage.test.ts +++ b/packages/stac/src/__test__/stac.storage.test.ts @@ -15,6 +15,7 @@ describe('stac.storage', async () => { const latest = { type: 'latest' } as const; const commit = { type: 'commit', commit: 'commit' } as const; + const release = { type: 'release', release: 'v0.3' } as const; const prefix = new URL('memory://target/bucket/'); describe('id', () => { @@ -32,6 +33,12 @@ describe('stac.storage', async () => { ); }); } + + it('should generate release ids and schema ids', () => { + assert.equal(StacStorage.id(release, { prefix, category: 'data', label: 'airport' }), 'data_airport_v0.3'); + assert.equal(StacStorage.id(release, { prefix, category: 'schema', label: 'schema' }), 'schema_v0.3'); + assert.equal(StacStorage.id(latest, { prefix, category: 'schema', label: 'schema' }), 'schema_latest'); + }); }); describe('strategies', () => { @@ -47,6 +54,17 @@ describe('stac.storage', async () => { { type: 'commit', commit: 'abc' }, { type: 'latest' }, ]); + pusher.strategy({ type: 'release', release: 'v0.4' }); + assert.deepEqual(pusher.strategies, [ + { type: 'date', date: new Date('2024-01-01') }, + { type: 'commit', commit: 'abc' }, + { type: 'release', release: 'v0.4' }, + { type: 'latest' }, + ]); + }); + + it('should parse a release strategy', () => { + assert.deepEqual(parseStrategy('release=v0.3'), { type: 'release', release: 'v0.3' }); }); it('should parse an ISO date strategy', () => { @@ -76,6 +94,7 @@ describe('stac.storage', async () => { it('should round-trip StorageContext through StacStorage.url and storageStrategyFromLatest', () => { const contexts: StorageContext[] = [ { prefix: new URL('https://d1jzh93b1t1cv.cloudfront.net/'), category: 'data', label: 'airport' }, + { prefix: new URL('https://example.com/stac/'), category: 'schema', label: 'schema' }, { prefix: new URL('https://example.com/stac/'), category: 'qgis', label: 'nztopo50' }, { prefix: new URL('memory://target/bucket/'), category: 'product', label: 'nztopo50' }, ]; diff --git a/packages/stac/src/stac.pusher.ts b/packages/stac/src/stac.pusher.ts index dff54b856..631002ce7 100644 --- a/packages/stac/src/stac.pusher.ts +++ b/packages/stac/src/stac.pusher.ts @@ -51,7 +51,8 @@ export class StacPusher { private static strategyPriority(s: StorageStrategy): number { if (s.type === 'date') return 0; if (s.type === 'commit') return 1; - return 2; // latest + if (s.type === 'release') return 2; + return 3; // latest } strategy(s: StorageStrategy) { @@ -60,9 +61,13 @@ export class StacPusher { } async loadCatalog(catalogUrl: URL) { - const catalog = await fsa.readJson(catalogUrl); + const catalog = await fsa.readJson(catalogUrl); if (catalog == null) throw new Error(`Catalog not found or Invalid at ${catalogUrl.href}`); - this.catalogs.set(catalogUrl, catalog); + if (catalog.type === 'Collection') { + await this.loadCollection(catalogUrl); + return; + } + this.catalogs.set(catalogUrl, catalog as StacCatalog); for (const link of catalog.links) { if (link.rel !== 'child') continue; if (link.href.endsWith('collection.json')) { diff --git a/packages/stac/src/stac.storage.ts b/packages/stac/src/stac.storage.ts index 200305db0..bde9f5aed 100644 --- a/packages/stac/src/stac.storage.ts +++ b/packages/stac/src/stac.storage.ts @@ -9,10 +9,14 @@ * ``` */ -export const StacStorageCategoryTypes = ['qgis', 'data', 'product'] as const; +export const StacStorageCategoryTypes = ['qgis', 'data', 'product', 'schema'] as const; export type StacStorageCategory = (typeof StacStorageCategoryTypes)[number]; -export type StorageStrategy = StorageStrategyLatest | StorageStrategyCommit | StorageStrategyDate; +export type StorageStrategy = + | StorageStrategyLatest + | StorageStrategyCommit + | StorageStrategyDate + | StorageStrategyRelease; /** * Store a mutable copy of the assets `latest/` location @@ -34,6 +38,13 @@ export type StorageStrategyCommit = { type: 'commit'; commit: string }; */ export type StorageStrategyDate = { type: 'date'; date: Date }; +/** + * Stores a immutable copy of the assets inside release={} + * + * If "latest" is also preset will have a "latest-version" link to the latest folder + */ +export type StorageStrategyRelease = { type: 'release'; release: string }; + export type StorageStrategyName = StorageStrategy['type']; export interface StorageContext { @@ -83,24 +94,47 @@ export const StorageStrategyParsers: { [K in StorageStrategyName]: StorageStrate const value = obj.split(StorageStrategySep)[1]; return { type: 'date', date: parseStorageStrategyDate(value) }; }, + release(obj: string): StorageStrategyRelease { + const value = obj.split(StorageStrategySep)[1]; + if (value == null || value === '') throw new Error('Invalid release'); + return { type: 'release', release: value }; + }, }; const StorageStrategyUrl: { [K in StorageStrategyName]: StorageStrategyPathGen } = { latest(store: StorageContext): URL { + if (store.category === 'schema') { + return new URL('schema/latest/', store.prefix); + } return new URL(`${store.category}/${store.label}/latest/`, store.prefix); }, commit(store: StorageContext, s: StorageStrategyCommit): URL { + if (store.category === 'schema') { + return new URL(`schema/commit_prefix=${s.commit.slice(0, 1)}/commit=${s.commit}/`, store.prefix); + } return new URL( `${store.category}/${store.label}/commit_prefix=${s.commit.slice(0, 1)}/commit=${s.commit}/`, store.prefix, ); }, date: function (store: StorageContext, s: StorageStrategyDate): URL { + if (store.category === 'schema') { + return new URL( + `schema/year=${s.date.getUTCFullYear()}/date=${s.date.toISOString().replaceAll(':', '-')}/`, + store.prefix, + ); + } return new URL( `${store.category}/${store.label}/year=${s.date.getUTCFullYear()}/date=${s.date.toISOString().replaceAll(':', '-')}/`, store.prefix, ); }, + release(store: StorageContext, s: StorageStrategyRelease): URL { + if (store.category === 'schema') { + return new URL(`schema/release=${s.release}/`, store.prefix); + } + return new URL(`${store.category}/${store.label}/release=${s.release}/`, store.prefix); + }, }; /** @@ -113,6 +147,12 @@ export function storageStrategyFromLatest(url: URL): StorageContext | null { if (latest === -1) return null; const parts = url.href.slice(0, latest).split('/'); + const lastPart = parts.at(-1); + if (lastPart === 'schema') { + const prefix = new URL(parts.slice(0, parts.length - 1).join('/') + '/'); + return { label: 'schema', category: 'schema', prefix }; + } + const label = parts.at(-1); const category = parts.at(-2) as StacStorageCategory; const prefix = new URL(parts.slice(0, parts.length - 2).join('/') + '/'); @@ -125,7 +165,9 @@ interface StorageContextWithItem extends StorageContext { /** Optional item name */ item?: string; } -const storeToId = (store: StorageContextWithItem): string => `${store.category}_${store.label}`; +const storeToId = (store: StorageContextWithItem): string => + store.category === 'schema' ? 'schema' : `${store.category}_${store.label}`; + const storeToSuffix = (store: StorageContextWithItem): string => { if (store.item) return `-${store.item}`; return ''; @@ -140,6 +182,9 @@ const StorageStrategyId: { [K in StorageStrategyName]: StorageStrategyIdGen } date: function (store: StorageContextWithItem, s: StorageStrategyDate): string { return storeToId(store) + `_${s.date.toISOString().replaceAll(':', '-')}` + storeToSuffix(store); }, + release(store: StorageContextWithItem, s: StorageStrategyRelease): string { + return storeToId(store) + `_${s.release}` + storeToSuffix(store); + }, }; export const StacStorage = { diff --git a/packages/typespec-emitter/src/index.ts b/packages/typespec-emitter/src/index.ts index 4c8ed8bd6..131dbae38 100644 --- a/packages/typespec-emitter/src/index.ts +++ b/packages/typespec-emitter/src/index.ts @@ -4,6 +4,7 @@ import type { EmitContext, JSONSchemaType, Model, Enum, Union } from '@typespec/ import { emitJsonSchema } from './json-schema.ts'; import { emitParquetSchema } from './parquet.ts'; import { emitPydanticModels } from './pydantic.ts'; +import { emitStacMetadata } from './stac.ts'; import { emitTypeScript } from './typescript.ts'; import { collectTypes } from './utils.ts'; @@ -65,4 +66,10 @@ export async function $onEmit(context: EmitContext) { const outputFile = options['pydantic-output-file']; await emitPydanticModels(program, outputFile, models); } + + // 5. Emit STAC metadata (collection.json per release and catalog.json) + if (options['json-schema-output-dir']) { + const outputDir = options['json-schema-output-dir']; + await emitStacMetadata(context, outputDir); + } } From e0e1cb44db558f31c0bcf71a3ffbbef28bbe34a3 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 29 Sep 2026 10:54:11 +1300 Subject: [PATCH 20/20] refactor: missing files --- .../stac/src/__test__/stac.writer.test.ts | 83 ++++++++++++++ packages/typespec-emitter/src/stac.ts | 104 ++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 packages/stac/src/__test__/stac.writer.test.ts create mode 100644 packages/typespec-emitter/src/stac.ts diff --git a/packages/stac/src/__test__/stac.writer.test.ts b/packages/stac/src/__test__/stac.writer.test.ts new file mode 100644 index 000000000..b983496af --- /dev/null +++ b/packages/stac/src/__test__/stac.writer.test.ts @@ -0,0 +1,83 @@ +import assert from 'node:assert'; +import { before, describe, it } from 'node:test'; + +import { fsa, FsMemory } from '@chunkd/fs'; +import { qFromArgs, StacExtensions } from '@linzjs/topographic-system-shared'; +import type { StacCollection } from 'stac-ts'; + +import { StacCollectionWriter } from '../stac.writer.ts'; + +describe('StacCollectionWriter', () => { + before(() => { + fsa.register('memory://', new FsMemory()); + }); + + const q = qFromArgs({ concurrency: 1 }); + + it('adds STAC extensions without duplicates', () => { + const sw = new StacCollectionWriter('data', 'roads'); + sw.extension(StacExtensions.file); + sw.extension(StacExtensions.proj); + sw.extension(StacExtensions.table); + sw.extension(StacExtensions.file); + + assert.deepStrictEqual(sw.collection.stac_extensions, [ + StacExtensions.file, + StacExtensions.proj, + StacExtensions.table, + ]); + }); + + it('writes collection with STAC extensions and asset metadata', async () => { + const sw = new StacCollectionWriter('data', 'roads'); + sw.extension(StacExtensions.file); + sw.extension(StacExtensions.proj); + sw.extension(StacExtensions.table); + + const sourceData = Buffer.from('fake parquet file content'); + const sourceUrl = new URL('memory://source/roads.parquet'); + await fsa.write(sourceUrl, sourceData); + + sw.asset('parquet', sourceUrl, { + href: './roads.parquet', + roles: ['data'], + type: 'application/vnd.apache.parquet', + 'proj:epsg': 2193, + 'table:row_count': 1234, + 'table:primary_geometry': 'geometry', + 'table:primary_datetime': 'create_date', + 'table:columns': [ + { name: 'geometry', type: 'binary' }, + { name: 'create_date', type: 'byte_array' }, + { name: 't50_fid', type: 'int32' }, + ], + }); + + const targetUrl = new URL('memory://output/'); + const collectionUrl = await sw.write(targetUrl, q); + + assert.strictEqual(collectionUrl.href, 'memory://output/roads/collection.json'); + + const collection = await fsa.readJson(collectionUrl); + assert.deepStrictEqual(collection.stac_extensions, [ + StacExtensions.file, + StacExtensions.proj, + StacExtensions.table, + ]); + + const parquetAsset = collection.assets?.['parquet']; + assert.ok(parquetAsset != null); + assert.strictEqual(parquetAsset['proj:epsg'], 2193); + assert.strictEqual(parquetAsset['table:row_count'], 1234); + assert.strictEqual(parquetAsset['table:primary_geometry'], 'geometry'); + assert.strictEqual(parquetAsset['table:primary_datetime'], 'create_date'); + assert.deepStrictEqual(parquetAsset['table:columns'], [ + { name: 'geometry', type: 'binary' }, + { name: 'create_date', type: 'byte_array' }, + { name: 't50_fid', type: 'int32' }, + ]); + assert.strictEqual(parquetAsset['file:size'], sourceData.length); + assert.ok(typeof parquetAsset['file:checksum'] === 'string'); + assert.ok(parquetAsset['file:checksum'].startsWith('1220')); + }); +}); diff --git a/packages/typespec-emitter/src/stac.ts b/packages/typespec-emitter/src/stac.ts new file mode 100644 index 000000000..5c6aee20b --- /dev/null +++ b/packages/typespec-emitter/src/stac.ts @@ -0,0 +1,104 @@ +import { emitFile, joinPaths, resolvePath } from '@typespec/compiler'; +import type { EmitContext } from '@typespec/compiler'; +import { unsafe_mutateSubgraphWithNamespace } from '@typespec/compiler/experimental'; +import { getId } from '@typespec/json-schema'; +import { getVersioningMutators } from '@typespec/versioning'; + +export async function emitStacMetadata(context: EmitContext, outputDir: string): Promise { + const { program } = context; + const topoNs = program.getGlobalNamespaceType().namespaces.get('Topography'); + if (!topoNs) { + return; + } + + const mutators = getVersioningMutators(program, topoNs); + if (!mutators || mutators.kind !== 'versioned') { + return; + } + + const catalogChildren: Array<{ rel: string; href: string; title: string; type: string }> = []; + + for (const snapshot of mutators.snapshots) { + const versionStr = String(snapshot.version.value ?? snapshot.version.name); + const versionOutputDir = joinPaths(outputDir, `release=v${versionStr}`); + + catalogChildren.push({ + rel: 'child', + href: `./release=v${versionStr}/collection.json`, + title: `Release v${versionStr}`, + type: 'application/json', + }); + + const { type: mutatedNs } = unsafe_mutateSubgraphWithNamespace(program, [snapshot.mutator], topoNs); + + const assetNames: string[] = []; + if ('models' in mutatedNs && mutatedNs.models) { + for (const m of mutatedNs.models.values()) { + const id = getId(program, m); + if (id) assetNames.push(id); + } + } + if ('unions' in mutatedNs && mutatedNs.unions) { + for (const u of mutatedNs.unions.values()) { + const id = getId(program, u); + if (id) assetNames.push(id); + } + } + + assetNames.sort(); + + const assets: Record = {}; + for (const name of assetNames) { + assets[name] = { + href: `./${name}.json`, + title: `${name} JSON Schema`, + type: 'application/schema+json', + roles: ['schema'], + }; + assets[`${name}_parquet`] = { + href: `./${name}.parquet.json`, + title: `${name} Parquet Schema`, + type: 'application/json', + roles: ['schema'], + }; + } + + const collection = { + type: 'Collection', + stac_version: '1.0.0', + id: `schema_v${versionStr}`, + title: `Topographic Schema Release v${versionStr}`, + description: `LINZ Topographic schema definitions for release v${versionStr}`, + license: 'CC-BY-4.0', + extent: { + spatial: { bbox: [[166.0, -47.5, 179.0, -34.0]] }, + temporal: { interval: [['2026-01-01T00:00:00Z', null]] }, + }, + links: [ + { rel: 'root', href: '../catalog.json', type: 'application/json' }, + { rel: 'parent', href: '../catalog.json', type: 'application/json' }, + { rel: 'self', href: './collection.json', type: 'application/json' }, + ], + assets, + }; + + const collectionFile = resolvePath(versionOutputDir, 'collection.json'); + await emitFile(program, { path: collectionFile, content: JSON.stringify(collection, null, 2) + '\n' }); + } + + const catalog = { + type: 'Catalog', + stac_version: '1.0.0', + id: 'schema', + title: 'Topographic Schemas', + description: 'Catalog of LINZ Topographic Schema releases', + links: [ + { rel: 'root', href: './catalog.json', type: 'application/json' }, + { rel: 'self', href: './catalog.json', type: 'application/json' }, + ...catalogChildren, + ], + }; + + const catalogFile = resolvePath(outputDir, 'catalog.json'); + await emitFile(program, { path: catalogFile, content: JSON.stringify(catalog, null, 2) + '\n' }); +}