# srtm-lidar-at — what the LiDAR + satellite segmentation learned about any place in Austria (public API) base: https://srtm-lidar-at.exe.xyz docs: /api/v1/docs/llm.txt (this file) licence: /api/v1/license stage: alpha source: https://github.com/raffopenssh/observe-ortho-lidar-at/ (issues, method notes, client examples) JSON, CORS *, gzip, ETag + Cache-Control. No key, no login. Please keep ≤ 5 req/s sustained per client. alpha = field names and limits may still move between epochs; read meta.* and /api/v1/status rather than hard-coding. coverage (live, refreshed ~10 min): 7 847 / 7 850 complete KGs at product v2.4 (100.0 %) — complete = whole KG (no split blocks), all layers, cells served; 3 more at v2.4 awaiting cells publication (v2.4-pending — poll, not a gap) 7 850 = all Austrian Katastralgemeinden (same universe as umfeld-at). Index updated 2026-11-12T13:18:22Z — exact numbers: GET /api/v1/status ## What this is — and is not We segment the whole of Austria (7 850 Katastralgemeinden, KGs — see §KG universe) from BEV airborne-laser DTM/DSM 1 m, BEV orthophotos 0.2 m, Sentinel-2 NDVI/phenology, Sentinel-1 SAR, ESA WorldCover and Hansen forest change into 25 object types (tree, shrub, grass, hedge, water, roof, road, parking, crop, orchard, vineyard, garden, bare_soil, rock, glacier, mast, wind_turbine, …). This API answers "what is the landscape like HERE?" for a bbox, a point or a KG code: · terrain: elevation, slope, aspect, terrain class (25 m DTM grid) · land cover: class shares, dominant type, natural / impervious / woody shares, canopy cover · trees: QA-filtered apex positions + heights (realistic giants only), tall man-made landmarks · built-up: LiDAR-measured structure heights / storeys / roof form at centroid points · forest loss by year (Hansen GFC), KG coverage + product readiness · cells: H3 res-12 (~300 m²) grid of everything above + every tree apex and structure (#cells) · hillshade / slope XYZ tiles for a map background · flags: tell us when any of the above looks wrong, per cell / point / KG (#flags) Everything is keyed by bbox, point or KG code only — no property-register identifiers of any kind, no vector outlines of lots or buildings. Clients that hold their own vector geometry ask us about the bbox / representative point of each feature. Everything is served from a pre-built index + 25 m grids on this host (5–150 ms). There is no on-demand raster access: a KG that the fleet has not processed yet answers ready:false / HTTP 202 with retry_after_s — repeat later, don't poll in a loop. Coverage: /api/v1/status. ## Keys and conventions bbox west,south,east,north in WGS84 degrees (lon first). Also accepted: west=&south=&east=&north= (aliases minlon/minlat/maxlon/maxlat) or lon=&lat=[&radius_m=15] for a point. Max 0.03 deg² (~25 × 10 km) — tile bigger viewports. Austria only (lon 9–17.6, lat 46–49.2). kg_code 5-digit Katastralgemeinde (KG) code ("63349") — the unit we process by. heights metres above ground (nDSM) unless *_elev_* (metres a.s.l., DTM). fractions 0..1 shares of the bbox area; *_pixel_share are 1 m-pixel shares inside the 25 m cells (finer than the dominant-class shares). ready false → nothing processed here yet (fleet is working through all KGs); resolution: "25m" (product ≥ 2.1 grid) | "kg" (older product: KG averages). Every response: meta{service, license, attribution, docs, duration_ms} + headers X-Data-Attribution and Link: <…>; rel="license". Keep them with the data. ?pretty=1 indents JSON. Errors: {"error": "…"} with 4xx/5xx. ## The one call: GET /api/v1/landscape (alias /api/v1/context) GET /api/v1/landscape?bbox=15.084,47.064,15.088,47.068 GET /api/v1/landscape?lon=15.0857&lat=47.0665&radius_m=20 GET /api/v1/landscape?bbox=…&include=trees,landmarks&tree_limit=50 → {bbox, ready, resolution, fine_grid_complete, product_versions, kgs[{kg_code, kg_name, gemeinde_code, gemeinde_name, processed, product_version, generated_at, updated_at, quality_grade, grid25}], coverage{kgs_total, kgs_processed, kgs_grid25, cells_25m, cells_valid, point_sampled}, terrain{elevation_min_m, elevation_max_m, elevation_mean_m, elevation_range_m, slope_mean_deg, slope_max_deg, aspect_deg, aspect (N…NW), terrain_class flat|gentle|moderate|steep|very_steep, resolution_m, source}, landcover{fractions{type: share}, dominant_type, dom_terrain, natural_fraction, impervious_fraction, woody_fraction, woody_pixel_share, tree_pixel_share, canopy_pixel_share, source}, trees{count_sampled, height_max_m, height_mean_m, tallest[{lon, lat, height_m, crown_d_m, confidence}], dropped_qa, note}, buildings{count, height_max_m, stories_max, roof_pitched_share, note}, landmarks[…] (only with include=landmarks) forest_loss{by_year{"2015": px, …}, since_2020_px, resolution:"kg", unit}, missing{block: reason}, retry_after_s (when not ready), meta} dom_terrain = the dominant NATURAL cover (skips roof/road/parking/…) — use it as the ground colour of a lot; dominant_type may be "roof" for a built lot. Cells are area-weighted, so a 30 m lot straddling four cells gets a proper mix. Blocks fail independently (missing{}). include= defaults to trees,buildings; landmarks must be asked for. ## Trees, landmarks, buildings (points in a bbox) GET /api/v1/trees/bbox?bbox=…[&min_height=3][&max_height=…][&limit=2000][&realistic=1][&objects=trees|structures][&types=…][&format=json|geojson|columns][&fields=…] Tree apices, tallest first, from the NE cells corpus (EVERY apex h ≥ 3 m — a full inventory, meta.complete=true; ≤ limit, truncated:true when more exist). min_height / max_height form a half-open window min_height <= h < max_height, so adjacent bands (3–8, 8–14 …) partition the apices without overlap; meta echoes min_height, max_height, limit, max_limit. format=json (default): rows {lon, lat, height_m, crown_d_m, crown_m2, species, vitality, ndsm_only, confidence, cell, kg_code}; limit default 2000, max 20000 (400 above that). format=columns (bulk, ~6 B/apex gzipped): parallel arrays under "columns", same order (height_desc) → {bbox, objects, format:"columns", fields:[…], order:"height_desc", columns:{lon:[…], lat:[…], h_m:[…], crown_m2:[…]}, count, truncated, dropped_qa, kgs, ready, meta}. Default fields lon,lat,h_m,crown_m2 (structures: lon,lat,h_m,type). fields= picks from lon,lat,h_m,crown_m2,species,vitality,ndsm_only,cell,kg_code,x,y,taxon,h_user_m,dbh_cm (structures: lon,lat,h_m,type, h_robust_m,area_m2,confidence,dh_m,cell,kg_code,x,y). lon/lat rounded to 1e-6° (≈ 0.1 m — the source is metre-snapped), h_m 0.25 m steps, crown_m2 0.1 m², x/y = EPSG:3035 integer metres, ndsm_only 0/1, cell = H3 r12 hex. limit default = max = 100000 (a whole 0.025° tile ≥ 3 m is ~31k apices → one call; truncated:true still set when limit is hit or the chunk budget ran out). Caching: strong ETag + Last-Modified derived from the NE file state of the KGs in the bbox (changes only when a KG is reprocessed / re-ingested) + the query string; If-None-Match → 304 before any scan; Cache-Control public, max-age=86400 when ready, public, no-cache while a KG of the bbox is still pending (keep the body, revalidate with If-None-Match — the ETag covers the pending list, so it flips when the KG lands; no-store only on a transient index error). A bbox outside Austria is ready:true, kgs:[] + note. ETag / Last-Modified are CORS-exposed. Chunks of a tile are decoded once and shared by all bands / concurrent calls (server ms ≈ 10 for a warm 0.025° tile band). User-reported species + user-added trees ride along sparsely ("user" / "added" blocks, row keys taxon / taxon_n / taxon_v / height_user_m / dbh_cm) only where someone reported one — see #tree-species. realistic=1 (default) removes what the height distribution says are not trees: the saturated ≥ 60 m bin, local spikes ≥ 45 m (masts, wind turbines, cranes), flagged cells (dropped_qa) and the apices of machine-detected linear noise (straight chains of small "trees"; each run carries a flag: layer trees, claim spurious, source auto-linear, expected.hint "linear"); realistic=0 gives the raw apices. objects=structures returns the non-tree objects instead ({type, lon, lat, height_m, height_robust_m, area_m2, confidence, dh_m, cell, kg_code}; types=mast,wind_turbine,roof,… to filter). ready:false (+ pending_kgs / retry_after_s or error) when a KG of the bbox is not on disk yet or the index is unusable — never a silent 0. GET /api/v1/landmarks/bbox?bbox=… Tall man-made verticals worth a map symbol: roof 18–60 m (church towers, silos, high-rises), mast 15–120 m, wind_turbine 40–200 m, bridge 20–120 m. {type, lon, lat, height_m, area_sqm, confidence, kg_code}. QA-filtered like trees. GET /api/v1/buildings/bbox?bbox=…[&limit=3000] LiDAR-measured heights of built-up objects: {lon, lat, height_max_m, height_mean_m, stories_est, roof pitched|flat, ground_elev_m, kg_code}, tallest first. These are centroids of OUR segmented roofs — no outline ids / geometry / areas. Join to your own building outlines by point-in-polygon. ## Terrain grids and tiles GET /api/v1/heightfield?bbox=…[&cell=25][&landcover=1] Regular lon/lat grid for 2.5D relief: {cols, rows, cell_m, origin:"nw", rows_major_north_to_south:true, z:[[m a.s.l. | null]], elev_min, elev_max, landcover:[[class code]] + landcover_legend when asked}. cell ≥ 25 (the native grid), ≤ 250 000 cells per call. 404 + ready:false where no product ≥ 2.1 grid exists yet. GET /tiles/hillshade/{z}/{x}/{y}.png · GET /tiles/slope/{z}/{x}/{y}.png 256 px XYZ tiles, z 10–17, rendered from the 25 m DTM grid (X-Resolution-M: 25). 204 = no data in this tile. Cache-Control 1 year, immutable, strong ETag (send If-None-Match → 304) — cache them. X-Tile-Source: hit|render. Fair use: rendering is budgeted. Cache hits are free and unlimited; cache MISSES are limited to 25 renders/s per client (burst 150) → 429 + Retry-After, and the renderer itself answers 503 + Retry-After when saturated. Clients MUST honour Retry-After (exponential back-off from it), keep ≤ 8 tile requests in flight, and never pre-fetch whole pyramids — fetch what a viewport needs, when it needs it. Low zooms (z10–11) span many KGs and are the most expensive renders. Fair use (all routes): per client address ≈ 60 r/s sustained (burst ≈ 1800) and ≈ 28 requests in flight → 429 + Retry-After ({error: rate_limited|too_many_in_flight}). Far above what a tiling client needs; honour Retry-After and you will never notice. GET /api/v1/health Liveness probe ({ok, rss_mb}; 503 while a worker is recycling). /api/v1/status?guard=1 adds per-worker cache / gate / rate-limit telemetry. ## KG coverage (register keys only) GET /api/v1/kgs?bbox=… KGs intersecting a bbox (processed_only=1 default) GET /api/v1/kgs?limit=1000&offset=0 all processed KGs, paginated ({kgs, total, …}) GET /api/v1/kgs?codes=63349,63332 specific codes GET /api/v1/kgs?fields=codes&processed_only=0 all 7 850 codes + universe_hash (see §KG universe) GET /api/v1/kgs?fields=codes,als&processed_only=0 bulk ALS flight years, one row per KG: {kg_code, als:{newest, oldest, dominant, dominant_share, precision, reflown_share}} (als=null where no cells product yet); no histograms — those stay on /api/v1/kg/. ~400 KB gz, max-age 1800. Strong ETag + Last-Modified (moves only when a block is (re)computed or the universe changes): send If-None-Match → 304 and skip the body. dominant = flight year covering the largest cell share of the KG (dominant_share); newest = max year present and may be a sliver (its share = coverage on /api/v1/kg/). Label by dominant, treat dominant_share<0.9 as mixed. rows: {kg_code, kg_name, gemeinde_code, gemeinde_name, processed, product_version, product_version_registry, ne_ready, ne_status, ne_cells_published_at, generated_at, updated_at, quality_grade, bbox, centroid, url} product_version "v2.4" ⇒ cells served (see #cells publication invariant); "v2.4-pending" ⇒ generated, cells not yet published here (retry_after_s). Response carries manifest_generation + cells_generation (change whenever cells go live) and kgs_ne_served. GET /api/v1/kg/{kg_code} one KG's landscape dossier: {terrain, landcover{fractions, by_type[{type, fraction, n_objects, height_mean_m, height_p90_m}], …}, vegetation{ndvi_mean, phenology_dominant, tree_count, tree_canopy_sqm, tree_mean_height_m, tree_stem_volume_m3}, built{building_count, …heights/storeys/pitched…}, change{net_volume_change_m3, …}, forest_loss, quality, grid25, links}. 202 + retry_after_s while the KG is unprocessed. Aliases for sibling services: /llm/kg/{code}, /llm/kgs, /llm/manifest.json, /llm.txt. GET /api/v1/status kgs_processed / kgs_total, universe_hash, product versions, grid25 count, cells{…} ## KG universe — the contract: kgs_total = 7850 The set of Katastralgemeinden is shared with the sibling service umfeld-at (cadastre / Umfeld; https://umfeld-at.exe.xyz/llm.txt §"KG universe"). Both serve the SAME 7 850 codes. universe_hash = sha256(join(sorted(kg_code), " ")) hex — fingerprint of the SET of codes, currently 057334c3faa38fc0443df14a34444f2b273f42cf27065fb1845c1c49b1fe6f05. Exposed in /api/v1/status and every /api/v1/kgs response (field universe_hash + header X-KG-Universe-Hash). Equal hash on both services ⇒ identical universe — compare the hash, don't download both lists. GET /api/v1/kgs?fields=codes&processed_only=0 {codes:[7850], count, universe_hash} (~60 KB) — enough to recompute the hash yourself. Cache-Control max-age 3600, revalidate with ETag. kgs_total ≠ 7850 or a changed universe_hash means the universe changed → treat as a new epoch; we bump this contract and tell umfeld-at first (and vice versa). Status also carries universe_agrees_contract (live index vs the pinned hash) so a drift is visible at once. ## Cells (H3 res 12, ~300 m² hexagons) — what we measured, per cell #cells Every processed KG is also published as a grid of H3 res-12 cells (~307 m², ~52 000 per KG) with one 41-byte observation record each, plus every tree apex (h ≥ 3 m) and every segmented structure with LiDAR heights. Same cell ids and query shapes as umfeld-at's statistical land-use layer, so a client zips both by cell id. The statistical land-use counterpart (same cell ids) is umfeld-at's public NE API: https://umfeld-at.exe.xyz/api/v1/ne (pin + counts), /api/v1/ne/cell/{h3}, /api/v1/ne/cells?lon=&lat=&k=, /api/v1/ne/chunk/{h3_res9}; contract https://umfeld-at.exe.xyz/api/v1/docs/ne.md, overview https://umfeld-at.exe.xyz/llm.txt. Observed (here) + statistical (there) = the full cell picture. Served from pre-built chunk files on this host (1–80 ms). Not on disk yet → 404 {ready:false, status:not_processed|pending|partial, retry_after_s, kgs_missing, kgs_pending, kgs_not_processed} + Retry-After. A bbox that is only partly covered answers 200 with meta.partial:true, meta.cells_missing, meta.kgs_missing (= kgs_pending ∪ kgs_not_processed). kgs_pending = the KG list already lists a v2.4 product but its cells file is not published on this host yet (ingest lag, hours) → poll after meta.retry_after_s; kgs_not_processed = no cells product generated (permanent until the KG is processed). Field layout, units, code tables, limits: GET /api/v1/cells/dict. Publication invariant (since 2026-10-07): a KG-list row (/api/v1/kgs, /api/v1/kg/{code}, /llm/manifest.json) shows product_version "v2.4" ONLY once /api/v1/cells serves that KG completely. Until then the row shows product_version "v2.4-pending" + retry_after_s (product_version_registry carries the raw KG-list value). Every row also carries ne_ready (bool), ne_status (served|partial|pending|not_processed) and ne_cells_published_at (UTC, when the cells went live here). updated_at is bumped to ne_cells_published_at when cells go live, so the /kgs ETag (and /status cells_generation / manifest_generation) changes on cells publication, not only on KG generation — revalidate on ETag and re-baseline from manifest_generation. GET /api/v1/cells?bbox=w,s,e,n cells in a box (span ≤ 0.05°, ≤ 16 384 cells, else 413) GET /api/v1/cells?lon=&lat=[&k=0..3] the cell under a point + k rings GET /api/v1/cells?ids=h3,h3,… ≤ 512 ids (res 12; res 8–11 ids expand to their res-12 children) POST /api/v1/cells {"ids":[…]} ≤ 16 384 ids GET /api/v1/cells/

one res-12 cell, all layers (obs + trees + structures), JSON GET /api/v1/cells/chunk/

one res-10 (or res-9 = 7 chunks) chunk for bulk clients; format=h3b|bin|json GET /api/v1/cells/dict fields, units, code tables, group labels, limits, epoch, bins GET /api/v1/cells/bins every 0.025° bin with a published product + its generation (see format=bin) GET /api/v1/cells/national?res=9[&fields=…] Austria-wide NEX1 table, one row per res-9 (or res-8) H3 parent (see below) GET /api/v1/cells/blocks[?fields=…&epoch=…] manifest of the prebuilt id-free zstd 0.1° blocks (bi, bj, gen, etag, bytes) GET /api/v1/cells/sample?res=10&format=bin national sample: one row per res-10 cell = its res-12 centre child, every cell with DTM GET /api/v1/kg//cells whole-KG container: format=h3b (default, downloadable) | json (summary) GET /api/v1/kgs/summary?codes=a,b,… merged observed summary over a KG SET (≤ 500 codes, else 400); …?gemeinde=61630 | district=616 | state=6 or by Statistik Austria GKZ prefix (5 / 3 / 1 digits). Wien Gemeindebezirke (901–923 / 9xx01) → 400 {error:"unsupported_filter"}, fall back to codes= (Wien as a whole: district=900, gemeinde=90001). → {scope{type,code|n}, kgs, kgs_processed, incomplete, kgs_pending[_n], kgs_not_processed[_n], kgs_partial[_n], kgs_unknown?, summary{…same keys as /kg//cells?format=json summary…}, meta}. summary: cover_ha / consistency_n / consistency_ha / cells_observed / trees_n / structures_n / terrain.cells_with_terrain / hansen_loss_cells are SUMS over the processed KGs; terrain.elev_min_m / elev_max_m = min / max; terrain.slope_mean_deg = cell-weighted mean; epoch = newest (+ epochs[]). KGs without published cells are skipped and counted in kgs − kgs_processed; incomplete:true when any KG is missing or partial. Header-only read (no raster), ETag + max-age=600, CORS *. GET /api/v1/landscape?…&include=cells adds a per-bbox roll-up block (cover, heights, canopy, change, consistency) GET /api/v1/status cells{kgs_ready, cells_total, index_rebuilt_at, epoch} als{kgs_with_als_year, year_hist, newest_min/max, oldest_min} ALS acquisition year (real BEV Flugjahr, not the mosaic date): als_years in the row is a bitmask (bit i = 2020+i) and is 0 for everything last flown ≤ 2019. The read-time fields als_year_newest / als_year_oldest (u16, 65535 = null; json/columns/csv, not bin/h3b) carry the flight year of the 20240915 mosaic block (= the year every observed value was flown) and of the 20220915 block (= the "oldest" side of dh_m / dtm_m; equal years ⇒ dh_m is noise). Roll-up: max / min. Per KG: /api/v1/kg/ → als{years, newest, oldest, dominant, coverage (share of cells under newest), reflown_share, source "data.gv.at 5ce253fc-…", mosaics}. Source: BEV flight-block polygons ("Aktualität DGM - ALS", Flugjahr per block, DSM year), evaluated at the cell centre. params layers=obs,trees,structures (default obs; trees/structures only at res 12; /cells/

always all) res=12|11|10 (server-side roll-up: means for cover / ndvi / terrain / height, max for h_max, sums for counts, mode + consistency_hist for categories, union for als_years; returns n_children) fields=a,b,c (subset of the obs field names from /dict) centres=1 (adds lon/lat of the cell centre) format=json|columns|bin|csv|geojson (geojson ≤ 4 096 cells; h3b only on /chunk and /kg//cells) pretty=1 headers ETag (changes when a product is re-built), If-None-Match → 304, Cache-Control max-age 86400, X-Cells-Source: disk, X-Cells-Partial: 1, X-Cells-Epoch, X-Cells-Kgs, CORS *, gzip ≥ 1 KiB. rate ≤ 5 r/s sustained, burst 20. borders a cell present in several KG products is served once (observed copy first, then the larger chunk, then the lowest kg); meta.kgs lists the products touched. trees.n saturates at 255 per cell (meta.trees_truncated_cells counts those). /api/v1/kg/ carries links.cells. One cell (format=json, res 12): {"cell": "8c1e108cc922dff", "res": 12, "kg": "63330", "cover": {"geb": 0.02, "bau": 0, "acker": 0, "gruen": 0.31, "wald": 0.61, "wasser": 0, "verkehr": 0.04, "alpen": 0, "sonst": 0.02}, "structures_cover": 0.02, "structures_n": 1, "height": {"mean": 9.5, "p90": 21.0, "max": 27.5}, "trees": {"n": 14, "h_max": 27.5, "canopy": 0.58}, (layer trees: trees = [{dx, dy, lon, lat, h_m, crown_m2, species, vitality, ndsm_only}, …]) "structures": [{dx, dy, lon, lat, type, h_max_m, h_robust_m, area_m2, conf, dh_m}, …] (layer structures) "ndvi": {"mean": 0.71, "amp": 0.22}, "phenology": "forest", "change": {"dh_m": -0.25, "dtm_m": 0.0, "forest_loss_year": null, "als_years": [2022, 2024], "als_year_newest": 2022, "als_year_oldest": 2010}, "terrain": {"elev_m": 612, "slope": 14, "slope_p90": 23, "aspect": "SE", "roughness": 1.3, "tri": 0.8, "tpi": -0.5}, "consistency": "consistent"} cover groups (shared codes with umfeld-at): geb=buildings, bau=construction & parking, acker=cropland, gruen=grass/garden/orchard/vineyard/shrub/hedge, wald=trees, wasser=water, verkehr=roads & paths, alpen=rock/bare/glacier, sonst=other. consistency = our observation vs. the statistical land-use layer of umfeld-at for the same cell (frozen epoch), computed when the product was built: consistent | forest_loss | forest_gain | sealed_new | structure_new | green_new | unknown. format=columns {cells:[hex], kg:[…], cover:[[9 × u8]], h_mean:[u8], …, units, codes} — raw quantised integers at res 12 (~20 B/cell gzipped), the format for map heat layers; res 11/10 → aggregated floats. format=bin cells_n × 41 B NEO1 rows (little-endian, sorted by cell id), X-Cells-Record: neo1/41, X-Cells-Layout: neo1=N[,net1=T][,neb1=B] with trees (u32) / structures (u64) rows appended. format=bin + fields= on a 0.025°-aligned bbox (w=i·0.025, s=j·0.025, e=w+0.025, n=s+0.025, half-open) → the columnar NEX1 BIN: every local product joined per cell — observation rows (all fields), tree apices → canopy_h_p90/p50, man-made objects → bld_n / bld_h_max / bld_h_p50 / bld_area_sum / stories_max / struct_h_max, product roof hints → roof_dom (0 unknown 1 flat 2 pitched), 25 m DTM / landcover grid → elev_mean / slope_mean / slope_p90 / aspect_deg (u8 ×2°, 255 flat, 254 unknown) for EVERY cell under a product raster (terrain_src 1 = row, 2 = 25 m grid), lc25 / canopy25 / woody25. Container: 'NEX1' | u32 header_len | header JSON {n, gen, epoch, kgs[], fields[], columns[{name, dtype, bytes, shape?, nodata?}], ids: delta_u64|u64, complete, lc25_legend} | column bytes in header order, rows sorted by cell id (ids delta-coded: first absolute, then differences; ids=u64 for raw). u8 half-metre columns: 0 = none in this observed cell, 1..254 ×0.5 m, 255 = cell never observed. tree_h (RAGGED, since 2026-11-03): the per-cell apex-height lists — tree_h_n (u16, exact apex count, the trees-layer population h ≥ 3 m) is auto-inserted before tree_h (u8 ×0.5 m, all cells' lists back to back in row order, each SORTED ASCENDING); off = [0, cumsum(tree_h_n)], cell k = tree_h[off[k]:off[k+1]], a height-range count = two searchsorted per cell. columns[] entry carries shape:"ragged", counts:"tree_h_n". Only materialised when tree_h is in fields= (≈ +1 B per apex, ≈ +40 % on a glyph block zstd). fields=* for everything, ~17 k cells per bin, ≤ ~60 KB gz for the 9-field terrain+building set. Headers: ETag "b--" (strong; If-None-Match → 304 without touching the blob), X-Cells-Gen = the bin generation — KEY YOUR COPY ON THIS (changes iff a contributing product changed; X-Cells-Epoch is the product epoch, informational only), X-Cells-Partial 1 when header.kgs_missing. Discovery: GET /api/v1/cells/bins → columns {i, j, gen, epoch, complete, kgs_n, stored} for every bin touching a published product (ETag "bins-"); diff gen against your copy, pull only changed bins, ≤ 4 in flight. Field table + semantics: /api/v1/cells/dict → bins. block=1 on a 0.1°-aligned bbox (w=bi·0.1, s=bj·0.1) → NEXB v2 (since 2026-11-03): the 16 bins in one body WITHOUT ids — the cell set of each bin is the shared enumeration "all res-12 cells whose centre lies in the half-open bin [w,w+0.025)×[s,s+0.025), ascending H3" (h3 polygonToCells centre rule); header.bins[k] = {i, j, n, row0, ids_xor (xor of the u64 ids, hex), gen, complete}, body = present bitmap (ceil(n/8) B, bit r = byte r>>3 bit r&7) | planar columns (n rows each, rows = the 16 bin enumerations concatenated in row-major bin order). Check n / ids_xor against your enumeration; on mismatch re-request with ids=1 (NEXB v1 frames with ids, unchanged). Prebuilt on disk and served zstd (send Accept-Encoding: zstd; else inflated + gzip): ≈ 0.7–1.1 MB per block for the 9 glyph fields, < 100 ms warm. ETag "B--", X-Cells-Gen, X-Cells-Epoch, X-Cells-Ids: bitmap. Manifest: GET /api/v1/cells/blocks?fields=… → columns {bi, bj, gen, etag, bytes, stored, current, n, bins_n, complete} (bytes null until prebuilt for that field set); epoch= must equal X-Cells-Epoch (else 409). /api/v1/cells/sample?res=10&format=bin[&fields=glyph|default|*|a,b,…] → the NATIONAL SAMPLE for the glyph filter: one NEX1 row per res-10 cell of Austria = its res-12 centre child (cellToCenterChild(parent,12); parent = cellToParent(id,10)), ascending H3, every cell with DTM (terrain_src != 0), ≈ 5.6 M rows, ids delta-coded then planar columns with the bin dtypes / units / nodata (255 = unknown). fields=glyph = bld_h_max bld_h_p50 stories_max roof_dom canopy_h_p90 aspect_deg slope_mean slope_p90 elev_mean (≈ 26 MB zstd); default adds obs terrain_src bld_n bld_area_sum struct_h_max canopy_h_p50 lc25 tree_n dh_m consistency forest_loss_year phenology als_year_newest (≈ +12 MB); * = every bin column except cover; tree_h (+ tree_h_n) = the same ragged apex-height lists as the bins for the sampled cells (≈ +8 MB zstd). Rebuilt by the hourly builder only when the bin corpus changed. Headers: ETag "S-r10--" (strong; If-None-Match → 304), X-Cells-Gen (key your copy on it), X-Cells-Epoch (the ne-observe product epoch), X-Cells-Built, Content-Encoding zstd when accepted. format=json / meta=1 → build meta. 404 + Retry-After before the first build. One pull per generation from one client — never per tile. /api/v1/cells/national?res=9|8[&fields=a,b,…] → the NATIONAL aggregate for overview zooms: one NEX1 row per res-9 parent (~1.05 M rows, ~20 MB gz; res 8 ≈ 150 k rows), Austria-wide, built daily from every published cells product. Same container / dtypes / units as the bins (header "res": 9, no ij / bbox); per field the MEAN over the res-12 children where the field is non-null (bld_* / canopy_h_* over object-holding children; bld_h_top / canopy_h_top = max), verdict = u16 counts per consistency class (header.verdicts), n_cells / n_obs = children with a row / observed. Border cells deduplicated across products. Fields: n_cells n_obs verdict elev_mean slope_mean slope_p90 roughness tri tpi h_mean h_p90 h_max tree_h_max canopy ndvi_mean ndvi_amp dh_m dtm_m structures_cover cover[9] tree_n structures_n forest_loss_n bld_n bld_cells bld_h_max bld_h_p50 bld_h_top bld_area_sum struct_h_max canopy_h_p90 canopy_h_p50 canopy_h_top tree_hh (u16 × 12 = apices per 5 m height band summed over the children: band 0 = 3–5 m, k = 5k–5(k+1) m, 11 = 55 m+; header.tree_hh_bands; sums to the exact tree_n) (u32 = count/ area sums). No fields= → the whole table (pre-gzipped); fields= → a cached slice. Headers: ETag "n-r--", X-Cells-Gen (key your copy on it; rebuilt only when the corpus changed), X-Cells-Epoch, X-Cells-Built, Cache-Control max-age 86400. format=json (or meta=1) → build meta {gen, epoch, built_at, rows, bytes_gz}. 404 + Retry-After until the first build. Fetch once per generation, never per tile. DAILY UPDATE LOGIC: the table is rebuilt once a day at 10:00 Europe/Vienna (~15 min), and only when the cells corpus changed since the last build (gen = hash of the product set); unchanged corpus ⇒ same gen, same ETag ⇒ 304. New observations keep arriving while the fleet processes KGs, so expect a new gen most days until the run completes, then rarely. Client schedule that is FINE: once a day after ~11:00 CET GET ?format=json (≈1 KB), compare gen with your copy, and only on change GET the table with your fields= list (~20 MB gz for 5 fields at res 9; always send If-None-Match + Accept-Encoding: gzip). NOT fine: polling the table itself (no fields= ⇒ all 33 fields ≈ 65 MB gz), fetching more than once per gen, many distinct fields= combinations (each one is a server-side slice cached per gen; pick one list and keep it), or deriving the overview from per-bin / per-bbox cells calls instead of this table. format=h3b H3B1 container: magic | ver u8 | hdr_len u32 | header JSON | zlib chunks of shuffle(NEO1)|shuffle(NET1)|shuffle(NEB1) per res-10 cell (header.chunks[] has off/len/cells/trees/bld). The whole-KG file is the public product download (CC BY 4.0, attribution in the header). Recipe (map client): per viewport tile (~0.02°) one /api/v1/cells?bbox&format=columns call for a heat layer (canopy, structure heights, change, consistency); on click /api/v1/cells/

for the full dossier incl. every tree and structure; lon/lat&k=1 for "around this point". Join to your own geometry client-side by cell id (h3.latlng_to_cell(lat, lon, 12)). ## Stats envelope — one flat JSON per spatial unit (shared with umfeld-at) #stats GET /api/v1/stats/unit?h3= | kg=[,…≤50] | bbox=w,s,e,n [&format=json|flat|csv] [&keys=a,b] Schema "stats-envelope/1": the same envelope umfeld-at (/api/v1/ne/stats/unit, land-use + diff) and farm-subsidies-austria emit, so a spreadsheet or an agent can zip the three by unit key without walking cells. unit: h3 res 5–12; the unit = every res-12 cell that is a descendant of the id (exact set, not bbox) kg 5-digit code; several codes → one envelope per code in "units":[…] (unknown / unprocessed → 200, coverage.complete=false, empty figures — never 404, spreadsheet rows stay intact) bbox WGS84, span ≤ 0.1°; cells whose centre lies inside body: {schema, service:"srtm-lidar-at", unit{kind, key, bbox, res:12, cells_n, area_ha, kgs[]}, source ("srtm-lidar-at@2.4"), epoch ("2026-10"), coverage{complete, cells_known, cells_total, note?}, figures{…flat…}, attribution, license:"CC-BY-4.0", computed_at, age_s} figures (flat, dotted, scalar; unit in the suffix _ha _n _m _deg _pct _year): cells_n, area_ha, cells_observed_n, trees_n, structures_n, structures.cover_pct, cover_ha. (shared with umfeld-at) consistency_ha., consistency_n., terrain.elev_min_m / elev_max_m / elev_mean_m / slope_mean_deg, height.mean_m / p90_mean_m / max_m, canopy.cover_pct, ndvi.mean, change.dh_mean_m, hansen_loss_ha, als.newest_year / oldest_year / coverage_pct (BEV flight year, chunk precision ≈ 300 m) kg units: area_ha / cover_ha / consistency_ha are the product-header figures (border cells weighted by the KG's share, identical to /kgs/summary); counts and means are over every cell of the product. h3 / bbox units: whole cells, de-duplicated across KG products, ha = cells × cell area. format=flat → figures only (array of flat objects with "unit" for several codes); format=csv → header row + one row per unit (text/csv UTF-8, no BOM; first columns unit, coverage_complete) → Google Sheets =IMPORTDATA("{BASE}/api/v1/stats/unit?kg=63330&format=csv"), Excel Power Query. keys=cover_ha,als → only those figure keys (prefix match). Cell lists (stats-envelope.md §6 — how umfeld-at asks for a FILTERED unit): POST /api/v1/stats/unit?format=json&unit=cells[&scale=49][&year=] Content-Type: application/octet-stream, Content-Encoding: gzip, body (gzip'd): "NEI1" · u32 n · n × u64 little-endian H3 res-12 ids, sorted ascending, ≤ 1 M. → the same envelope over exactly those cells: unit{kind:"cells", key:, n, scale}, cells_n = n × scale, area_ha = Σ cell areas × scale, every _ha / _n figure summed × scale, means and _pct unweighted; each listed cell counts 1 (no KG border weighting); ids without a row are skipped and reported in coverage (cells_known < cells_total). 400 bad magic / non-res-12 id, 413 above 1 M ids; year= is echoed only (no claim years here). A long list may answer 202 once, then it is cached. Ops: ETag + Cache-Control max-age=600, CORS *, gzip; warm answers < 10 ms, first touch of a KG / res-7 cell ~0.1–0.5 s; a cold res-5 cell (823 k cells) may answer 202 {status:"computing", retry_after_s} once — retry after Retry-After, the result is then cached. Consistency counts apply the read-time green-ground override (see cells), so consistency_n can differ by a few cells from the frozen product header. ## Flags — tell us when something we serve looks wrong #flags Tokenless, for every public layer: an NE cell whose observed cover group looks off (umfeld-at's glyph under v=obs), a giant tree that is a mast, a structure height that cannot be, a tile artefact, a stale KG. Flags are QA evidence, not edits: nothing you send changes what we serve; they drive re-checks and re-processing (`superseded` tells you the product was rebuilt since). Subjects are H3 res-12 cells or KG codes only — nothing object-, lot- or identifier-keyed exists here. Please flag with a point or a cell, say what you saw and what you expect, and send `looks_right` too: a confirmation is as useful as a complaint. POST /api/v1/flags one report, or {"reports":[…]} ≤ 50 → 201 {"cell": "8c1e108cc922dff" subject: res-12 id (res 8–11 snap to their centre cell) | "lon": 15.0857, "lat": 47.0665 … or a point (→ its res-12 cell) | "kg": "63349" (whole KG) "layer": "cells.cover", cells.cover | cells.height | cells.trees | cells.structures | cells.change | cells.consistency | cells.terrain | cells.ndvi | trees | landmarks | buildings | landscape | heightfield | tiles | kg | docs | other "claim": "wrong_type", wrong_type | wrong_height | too_tall | too_short | missing | spurious | misplaced | stale | artifact | looks_right | other | species = tree (per tree, see "Tree species" below) "observed": {"group": "wald", "share": 0.61}, what you saw from us (≤ 512 B). OMIT IT and we snapshot the cell as served right now: {group, share, h_max, trees_n, structures_n, consistency[, nearest{h_m|h_max_m, type, dist_m}]} (nearest apex / structure for the *trees* / *structures* layers) "expected": {"group": "gruen"}, what it should be (≤ 256 B): {group}, {type}, {h_m}, {absent:true} … trees that are really a line of noise (a chain of small "trees" in a dead straight row): {absent:true, hint:"linear"} "note": "mown meadow, no trees", ≤ 280 chars, shown publicly (no personal data please) "source": "umfeld-at/glyph", your client label ≤ 40 (stats are grouped by it) "reporter": "opaque-id", optional; hashed with a server salt, never stored or returned "epoch": "…"} optional: meta.epoch / X-Cells-Epoch you read (else ours) → {id, folded, n, status, layer, claim, subject{cell, kg, lon, lat}, epoch, served, snapshot?, tally{n, reporters, open, claims{…}}, warnings?}. Same subject + layer + claim + reporter folds into ONE row (n += 1) — repeat freely, you never create duplicates. Unknown fields are ignored and named in warnings. Limits: body ≤ 32 KB; ≤ 1 r/s sustained (burst 10), ≤ 500 reports / client / day → 429 + Retry-After. Withdraw (undo) your own flag: same subject + layer + claim + reporter (+ reporter key) and "retract": true → your contribution leaves that row (n -= yours, reporters -= 1; gone at 0). Every claim except tree | species and trees + point + missing (those: "Tree species" below). Works in batches (per-item "http"). 201 {retracted:true, id, n (what you had), tally} tally = AFTER the withdraw 200 {retracted:true, folded:true, tally} already withdrawn 403 {error, reason:"not_yours", tally} others flagged this, you never did — nothing written 404 {error, reason:"no_flag"} nobody holds such a flag Reads follow within their max-age (ETag changes); flagging again afterwards starts a fresh row at n = 1. GET /api/v1/flags?bbox=w,s,e,n span ≤ 0.05° (viewport tile) — grouped: one row per subject GET /api/v1/flags?cell=

res 12 exact; res 6–11 = everything inside that hexagon GET /api/v1/flags?ids=a,b,… ≤ 512 res-12 ids GET /api/v1/flags?lon=&lat=[&k=0..3] GET /api/v1/flags?kg=63349 everything flagged in a KG (cells and the KG itself) filters layer=a,b claim=a,b status=open (default) | confirmed | rejected | fixed | stale | all since= limit≤2000 group=subject (default) | report (raw rows, newest first) notes=0 (drop notes) format=json | columns ({cells[], kg[], layer[], n[], open[], last[], top_claim[]}) subject row: {cell, kg, lon, lat, layer, n, reporters, open, claims{claim: n}, expected{claim: …}, last, epoch, superseded?} superseded = the KG product was rebuilt after the report GET /api/v1/flags/ one report + tally (status changes are ours: admin token) GET /api/v1/flags/heat?res=7[&status=all][&kg=][&layer=] national overview rolled up to H3 res 6–12: {res, cells[hex], n[], open[], reporters[]} — a few KB, 5-min cache: paint it on a map glyph GET /api/v1/flags/stats totals, by layer / claim / source / status, 24h / 7d, top KGs GET /api/v1/flags/dict the enums + limits above, machine-readable GET /api/v1/cells/

?flags=1 the cell dossier with its flag tally inline (max-age 60) All reads: ETag + If-None-Match → 304, Cache-Control max-age 30 (heat/stats 300), gzip, CORS *, ≤ 5 r/s. Recipe (map glyph / cell card): on the card, one tap = POST {cell, layer:"cells.cover", claim:"wrong_type", expected:{group}, source, reporter} (we snapshot what we served); paint /flags/heat?res=7 as a "disputed" tint; per viewport tile GET /flags?bbox=&format=columns to mark disputed cells; show tally.claims on the card from /cells/

?flags=1. Giant trees / heights (siedler pattern): POST {lon, lat, layer:"trees", claim:"too_tall", observed:{h_m}} straight from the tree symbol. ### Tree reports — species, measures, trees we miss; per tree, versioned #tree-species People name a single tree, measure it (DBH, height) and add trees we have no apex for. Every report is an appended version — nothing is overwritten; `v` = versions of that tree, `rev` = global revision to sync against. Current answer = plurality of each reporter's latest version (tie → newest); `n` = reporters agreeing; measures of several reporters → median. IDENTITY — say which tree you mean, in this order of preference: "tree_id": "t__" the inventory id of /api/v3/trees (apex pixel centre, EPSG:3035 in 0.1 m). Binds exactly, never to an added tree; lon/lat not needed. Binds to our apex of that pixel (matched:"apex"); an id we serve no apex for (trees only detection_mode=fused finds) keeps a record of its own (matched:"id" + warning) and is served as "reported" below. Ids are stable across calls and modes; where two products overlap /api/v3/trees returns each tree once (the other product's id, if it differs by a pixel, is on the row as tree_id_twin — both ids bind to the same tree). The AOI-relative tree_id_v2 cannot be resolved — send tree_id. "client_id": "" your own id for a tree YOU add (claim "missing"): idempotency key + identity. Later reports / retracts with the same client_id reach that tree wherever the point is. lon, lat only the nearest apex if dist ≤ max(1.5 m, 0.5 × crown radius) AND unambiguous (the next tree in reach is ≥ 2 × farther, or you are ≤ 0.75 m from the apex); a measured apex wins over an added tree (≤ 1.5 m). Several in reach → 409 {error, candidates:[{tree_id?, client_id?, kind, lon, lat, height_m, dist_m}]} → re-send with a candidate's tree_id (null until that tree was reported by id — then re-send the candidate's own lon/lat: an exact hit always binds). None in reach → 404 + candidates within 12 m. POST /api/v1/flags {"tree_id":"t_47092875_26831275", "dbh_cm":41.5, "h_m":27, "species":"Picea abies", "measured_at":"2026-11-11T09:30:00Z", "dbh_method":"caliper", "h_method":"hypsometer", "vitality":"alive", "status":"standing"[, "reporter", "source"]} (short for layer:"trees", claim:"tree"; any subset of species / dbh_cm / h_m / metadata.) species = scientific name, a German / English name, a forestry / EPPO code or a Latin abbreviation (RESOLVER below, dictionary /api/v1/trees/taxa/dict); unknown → 400 + did_you_mean[]. dbh_cm 1–600, h_m 1–70 (your height; never replaces our LiDAR height — served next to it as h_user_m / height_user_m). Metadata is stored per version (English vocabulary; common synonyms and German terms are normalised): measured_at ISO 8601, when it was measured (`ts` of a version stays our receive time) dbh_method caliper | tape | estimate h_method hypsometer | laser | estimate vitality alive | dead (status = older name of "state" below) An unknown value is dropped with tree.warning — never a 400. → 201 (version written) | 200 (identical repeat, folded:true) {rev, folded, claim, subject, epoch, tree{tree_id?, client_id?, lon, lat, taxon, class, n, v, rev, added, matched:"apex"|"id"|"added", matched_by?:"tree_id"|"client_id", dist_m, folded, written, op, height_m? (LiDAR), h_m? (reported), dbh_cm?, warning?}} class = our model class POST /api/v1/flags {"lon":…, "lat":…, "layer":"trees", "claim":"missing"[, "client_id":"", "species", "h_m", "dbh_cm", metadata…, "force":true]} adds a tree at your point. Same client_id again → same tree (new measures = a new version, folded:true). Without client_id it folds only onto a tree YOU added ≤ 0.5 m away whose dbh_cm / h_m do not contradict; anything else is a new tree (two stems 0.8 m apart stay two). ≤ 2 m from one of our apexes → 409 + tree{…} and NOTHING is written, unless "force": true (second stem, understorey) or that apex already carries a report. → 201 {id, tally, tree{…added:true, client_id?}} Withdraw: {…identity…, "species": null} or {…identity…, "retract": true} → op:"retract"; never writes a flag row, and withdrawing a tree you added also removes the trees / missing flag row its add wrote (answer then carries flag_removed: + tally). identity = tree_id | client_id | lon+lat; layer / claim are optional (a body with retract:true and no layer is a tree withdraw, never a generic flag). It withdraws everything YOU said about that tree — for a tree you added, the tree itself. Only your own reports (same "reporter" + reporter key) are withdrawn: 201 withdrawn | 200 folded:true + tree.warning "already withdrawn …" (yours, withdrawn before) 403 {error, reason:"not_yours", tree{…}} you never reported on this tree — nothing written 404 no such tree (unknown client_id / nothing in reach of the point) Undo one step: {…identity…, "retract": "last"} → hides only YOUR latest version of that tree (one new version, op:"undo"); your previous one is current again. Latest was a withdraw → it is taken back; latest was the add → the tree goes. Repeat to step further back. 201 tree{…, op:"undo", undone_rev, undone_op} | 200 folded:true (nothing of yours left) | 403 | 404 as above State since our flight — a tree that was cut, burnt, blown down … after the LiDAR date (the apex stays in the data, it was true when flown; the state is what training / change detection needs): {…identity…, "state": "logged", "date": "2025-03"[, "reporter", "source"]} (no layer / claim needed; "claim": "logged" is the same as "state": "logged"; may ride on any tree report or an add) state standing | logged (cut, harvested) | windthrow (blown down, uprooted, avalanche) | burnt | dead (standing dead) | broken (top / stem snapped) | infested (bark beetle, disease, dying) | gone (not there, cause unknown). German / common synonyms are normalised; unknown → 400 + states[]. date "YYYY" | "YYYY-MM" | "YYYY-MM-DD", as precise as you know it, 1990 … today; optional. → 201 | 200 folded, tree{…, state: "logged" | null, state_date?, op:"state"}. Each reporter's latest state votes ("standing" is a vote too: use it to contradict); plurality, tie → newest. One state per reporter. Take it back: {…identity…, "state": null} (or the same claim + "retract": true) → op:"unstate", only your state goes, species / measures stay. 201 | 200 folded (already taken back) | 403 not_yours | 404. Or "retract": "last" right after the report. Stored in the tree versions (2 bytes), no flag row. Read: /trees/bbox "user" / "added" / "reported" gain state:[…], state_date:[…] only where one exists (fields=…,state,state_date dense; json rows: state, state_date); /trees/taxa columns state, state_date and filter &state=logged | any; /history versions carry state (null = taken back) + state_date. Batches {"reports":[…]} ≤ 50 → 201 {results:[{…, "http": 201|200|4xx}…], count, errors} — results[i] answers reports[i] (input order, always the same length); EVERY item carries "http"; tree reports carry tree{…}, flags carry id + tally (an add, claim "missing", carries all three); a failed item is {error, http, …} and does not fail the others. Reporter keys (optional, recommended): POST /api/v1/flags/token {"name":""} → 201 {reporter_key:"trk_…", holder:"~<4 hex>", daily_cap} — anyone may ask (≤ 20 keys per client per day); shown once, we keep only its hash. One key per app (tell users apart with "reporter"), or one per user / device. Send it as header `X-Reporter-Key: trk_…` (or `Authorization: Bearer trk_…`, or body "reporter_key"; a batch item may carry its own). Keyed reports are attributed (`by` in /history = holder), `reporter` ids are namespaced to the key and no longer depend on the network you post from, daily cap 2 000 per key instead of 500 per client. Holders without "~" are organisations we verified (cap 20 000 — ask us). Wrong key → 401. The key works for every POST /api/v1/flags, not only trees. Read back — cheapest first: 1. /api/v1/trees/bbox grows ONLY where something was reported (untouched KGs: byte-identical, 1-day cache; touched KGs: ETag carries the newest revision, max-age 300): top-level "rev" (format=columns | json; absent = nothing reported in these KGs = 0): the tree revision this body reflects — start /api/v1/trees/taxa?since= from it, no since=0 round needed format=columns → "user": {i:[row index…], taxon:[… | null], n:[…], v:[…][, h_user_m:[…], dbh_cm:[…], tree_id:[…]]} "added": {lon, lat, h_m, taxon, n, v[, dbh_cm, client_id]} (trees people added) "reported": {tree_id, lon, lat, h_m, taxon, n, v[, dbh_cm]} (inventory trees reported by id that this endpoint has no apex for) fields=…,taxon,h_user_m,dbh_cm,tree_id give dense columns (null where unreported) format=json | geojson → reported rows carry taxon, taxon_n, taxon_v[, height_user_m, dbh_cm, tree_id]; top-level "added": [{lon, lat, height_m | null, taxon, taxon_n, taxon_v, added:true[, dbh_cm, client_id]}], "reported": [{tree_id, lon, lat, height_user_m, taxon, taxon_n, taxon_v[, dbh_cm]}] (never mixed into trees[]). tree_id appears on a row once the tree was reported by id. Existing fields are unchanged (`species` stays our model class). Added / reported trees fall into the height window by h_m (3 m when none was given). 2. GET /api/v1/trees/taxa?bbox=w,s,e,n | kg=63349 | (nothing = national) [&since=][&limit≤5000] → {rev, since, fields, order:"rev_asc", columns:{lon, lat, taxon, n, v, rev, added, h_m, dbh_cm, tree_id, client_id, state, state_date}, count, truncated, next_since?} — poll with since=: only trees changed after it (a row with taxon, h_m, dbh_cm, state all null and added 0 = drop it). ETag → 304, max-age 30. 3. GET /api/v1/trees/taxa/history?tree_id= | client_id= | lon=&lat= → {tree, kg, dist_m, versions:[{v, rev, ts, op: species | add | retract | moderated, taxon?, h_m?, dbh_cm?, measured_at?, dbh_method?, h_method?, vitality?, status?, tree_id?, by?, source?, epoch?, hidden?}]} — every version of one tree, with its metadata. GET /api/v1/trees/taxa/dict → {rev, fields:[taxon, de, en, class, rank, codes, alt], taxa:[[…]…], classes, accepts, limits, match, metadata} (~280 trees of Austria: forest, street / park, orchard; max-age 1 d, ETag, ~11 kB gzip) Columns are only ever appended — read by index 0–3 or by `fields`. `rev` changes with any dictionary change. taxon accepted scientific name = the key every report is stored and served under (hybrids: "Tilia x europaea") de the one name most used in Austria (Weißkiefer, Zirbe, Latsche, Zwetschke, Marille); genus rows read "Eiche (Gattung)" en the one common English name class our model class (15: alder ash beech birch broadleaf conifer fir fruit larch maple oak pine poplar spruce willow) rank 1 = most frequent tree in Austria, dense, no ties (forest species by ÖWI share, street / park trees by Baumkataster counts, orchard trees between); a genus row follows its most frequent species; the two group rows Coniferae / Magnoliopsida come last. Rows are served in rank order. codes short codes, most used first: forestry abbreviations (Fi, Ta, Lä, WKi, SKi, Zi, Dgl, Bu, HBu, SEi, TEi, Es, BAh, SAh, FAh, SEr, GEr, WLi, SLi, As, Rob, EKa, RKa, Kir, Nu, Elsb …; genus: Ei, Ah, Bi, Er, Pa, Wei, Li, Ul), then the EPPO code (PIEAB, FAUSY; genus 1QUEG). May be empty. alt further names in any language: regional German (Föhre, Arve, Legföhre, Vogelbeere, Akazie, Espe, Holler, Maroni), other English names, scientific synonyms (Alnus viridis, Platanus x acerifolia, Torminalis glaberrima, Picea excelsa). May be empty. No value of taxon / de / en / codes / alt belongs to two rows (plain Kastanie = Rosskastanie, Ki = Kiefer, Kir = Kirsche, Eiche / Ei = the genus Quercus, Fichte / Tanne / Buche / Lärche / Esche = the one species). RESOLVER — how `species` of a report is read. Case, diacritics, ß/ss, ä/ae (and plain a), ×/x, hyphens, dots and spaces do not matter. First hit wins; the answer always carries the canonical `taxon`: 1. exact taxon / de / en / codes / alt value "Fi", "PIEAB", "Rottanne", "norway spruce", "Weisskiefer" 2. Latin abbreviation matching exactly ONE listed species (not listed in the dictionary — compute them the same way client-side): genus prefix + epithet prefix ("P. abies", "Pic. abi.", "Quercus ro"), or n+n letters for n = 2, 3, 4 ("PiAb", "PicAbi", "PiceAbie"); a bare genus → its genus row. Several species match ("PrSe") → 400 {reason:"ambiguous", did_you_mean:[… by rank]} 3. a well-formed scientific binomial we do not list → stored as written + tree.warning (one letter off a listed name is treated as a typo → 400 + did_you_mean) 4. anything else → 400 {error, did_you_mean:[≤ 5 taxa, best match first, ties by rank]} — near-misses by edit distance ≤ 1 (≤ 2 from 7 characters), then names starting with / containing the input GET /api/v1/trees/taxa/top[?bbox=w,s,e,n][&limit=12 (≤ 50)] what is used here — for "first proposed" (max-age 60) → {rev (dictionary), tree_rev, named:[[taxon, n]…], classes:[[class, n]…], apexes, approximate, scope:{named:"bbox"|"national", classes:"bbox"|"national"}} named = trees people named inside the bbox, by count (ties by rank); classes = our model class of the apexes ≥ 3 m in the bbox (tallest 20 000 counted — `approximate` when there are more; a bbox over 0.01 deg² gets the national tally, see scope). No bbox → national: every named tree, and a sampled class tally of the corpus. The model class is a coarse hint (mostly spruce / pine / larch) — rank a class's taxa up, do not show it as fact. Suggested order for a species box: named in view → the reader's own recent picks → rank. ## Tree service for forestry clients — keyed #tree-service Base URL https://srtm-lidar-at.exe.xyz — header X-Reporter-Key: (also Authorization: Bearer …; self-issued trk_ keys from /flags/token do NOT open it → 401). Area ≤ 25 km², GeoJSON geometry body, ?async=true recommended: POST /api/v3/trees | /api/v3/trees/by-polygons | /api/v3/changes/trees product-backed POST /api/v2/trees | /api/v2/trees/by-polygons | /api/v2/changes/trees live apex inventory → 202 {task_id, poll, result}; poll GET /api/v1/segment/progress?task_id=…, then GET /api/v1/segment/result?task_id=… (both tokenless; a task id is only visible here when it was created through this host) Parameters as before (detection_mode=fused, crown_geometry=polygon, legacy_ids, dataset=YYYYMMDD, date_a / date_b, …). 30 POSTs/min per key, 2 concurrent; 429 / 503 carry Retry-After. ## Segmentation UI — the interactive map at /segmentation #segmentation https://srtm-lidar-at.exe.xyz/segmentation — draw or upload an area (≤ 5 km²), run Segment / Elevation / Terrain, toggle the LiDAR / ortho / CIR / forest-change overlays, export GeoPackage / KML / MBTiles, save & share a result (?share=; shares made here are kept in their own namespace). The same endpoints are callable directly, no token: POST /api/v1/segment?async=true&source=auto[&min_object_size=30&types=…] body: GeoJSON geometry → {task_id}; poll GET /api/v1/segment/progress?task_id=…, fetch GET /api/v1/segment/result POST /api/v1/elevation | /api/v1/terrain synchronous, same geometry body POST /api/v1/segment/overlay | /dtm|lidar|ortho|cir|hansen/overlay PNG + X-Bounds header POST /api/v1/export/geopackage|kml|mbtiles, GET /api/v1/export//download/ POST /api/v1/parse-geometry (KML/GPX/SHP/… → GeoJSON), GET /api/v1/layers?bbox=, /api/v1/attribution GET /api/v1/shares, POST /api/v1/share, GET /api/v1/share/, POST /api/v1/share//rename source= chooses where the segmentation comes from: auto (default) cheapest path. Every KG under the area has a finished v2.x product AND those products are already cached here (or cost ≤ max(128 MB, 2 MB/ha) to fetch) → the frozen product segments are served (seconds; meta.source="product", meta.product_codes, meta.product_version). Otherwise the live pipeline runs on the BEV rasters + Zenodo tile caches (meta.source="bev"; meta.auto_reason explains a skipped product download) product products only; 400 when nothing is finished there yet bev always live (BEV DTM/DSM/ortho + Copernicus context; minutes for 1 km²) model=v2 (default, LightGBM — the same classifier the fleet products use) | v1 (legacy RF). include_cadastre=true (UI toggle "BEV context", default on) lets a live run load buildings + property boundaries from the public BEV vector tiles (vtcseamless, built locally) as run-time model context only (v1 building mask, v2 distance features + INVEKOS field polygons via the v2 context). meta.context_layer = {source, cells}; none of that geometry is served or stored — only the resulting object classes. Limits: 5 km² per request, 30 heavy requests/min per client (429 + Retry-After), 2 concurrent analyses per worker (503 + Retry-After when the gate is full). Results carry the same object vocabulary as the rest of this API; no property-boundary geometry is served or stored. ## Recipe: a map client with its own vector geometry (siedler-oesterreich pattern) 1. Draw your lot / building outlines from your own source. 2. Per feature (on click or when it enters the viewport), send ITS bbox: GET /api/v1/landscape?bbox=w,s,e,n → dom_terrain for the ground colour, fractions for the composition chips, terrain for elevation/slope/aspect, trees.tallest for giants, buildings for storeys. Cache per feature for days (data changes only on KG reprocessing). 3. Per viewport: /api/v1/trees/bbox (tree symbols), /api/v1/landmarks/bbox (towers, turbines), /api/v1/buildings/bbox (height → extrusion, matched to your outlines by point-in-polygon), /tiles/hillshade for the background. 4. Registry / "which KGs are playable": /api/v1/kgs?limit=1000&offset=… and /api/v1/kg/{code} for per-KG stats; compare updated_at to detect reprocessing. If this API is down only these overlays degrade — your map keeps working. ## Attribution (short form; full per-source text + obligations in /api/v1/license) Datenquelle: BEV – Bundesamt für Eich- und Vermessungswesen (CC BY 4.0, bearbeitet) · Contains modified Copernicus Sentinel data 2022–2025 · © ESA WorldCover 2021 · Hansen/UMD/Google/USGS/NASA GFC · © OpenStreetMap contributors (ODbL) Derived segmentation and all statistics here: srtm-lidar-at, CC BY 4.0 — credit "srtm-lidar-at landscape segmentation" when you redistribute. Counts derived from OSM / austria-power (infrastructure_count, landmark cross-checks) remain ODbL. Keep meta.attribution, the X-Data-Attribution and Link rel="license" headers with every stored copy. Not operated by or affiliated with BEV, ESA or the Copernicus programme.