code wiki / _hdl_build / nx_geo_webmerc_gate.nx
nx_geo_webmerc_gate.nx
buildroot/runtime/_hdl_build/nx_geo_webmerc_gate.nx
about
nx_geo_webmerc_gate.nx -- GATE for GEO-019b Web-Mercator tiles. Proves the projection against known
slippy-tile quadrants AND that it genuinely DIFFERS from the geodetic GEO-019 grid:
z1 (lat 45, lon -90) -> tile (0,0) [NW quadrant]
z1 (lat -45, lon 90) -> tile (1,1) [SE quadrant]
z2 (lat 60, lon -45) -> Web-Mercator tile_y = 1, while GEODETIC tile_y = 0 -> they DIFFER,
confirming this is the Mercator projection (not the plate-carree grid)
Evidence -> knowledge/status/geo_webmerc.log (GEOWEBMERCGATE authored=organ ... verdict=GREEN).
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_geo_webmerc.nxnx_geo_tiles.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const GW_LOG: *u8 = "knowledge/status/geo_webmerc.log" |
functions
| 16 | func gw_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 17 | func gw_wn(fd: i64, v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64=v; if m<0 {m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8 = sys_mmap(28); var k: i64=0; if m==0 {t[0]=48;k=1}; while m>0 {t[k]=(48+(m%10)) as u8; m=m/10; k=k+1}; var i: i64=0; while i<k {bb[i]=t[k-1-i]; i=i+1}; sys_write(fd, bb, k); return 0 } |
| 19 | func gw_emit(fd: i64, ax: i64, ay: i64, bx: i64, by: i64, mty: i64, gty: i64, ok: i64) -> i64 |
| 30 | func main() -> i64 |