code wiki / _hdl_build / nx_geo_webmerc_gate.nx

nx_geo_webmerc_gate.nx

buildroot/runtime/_hdl_build/nx_geo_webmerc_gate.nx

2812 B56 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic geo
docsdependenciesstructsconstsfunctions

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

nx_geo_webmerc.nx nx_geo_tiles.nx nx_syscalls.nx nx_geo_webmerc_gate.nx

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

main sys_mmap geo_webmerc_tile geo_webmerc_pow2 fx_sin fx_sin_cos fx_normalize_angle fx_cordic_atan fx_cos fx_sin_cos ↻ fx_mul fx_log2 fx_mul ↻ geo_point_tile geo_tile_pow2 gw_emit gw_w sys_write gw_wn sys_mmap ↻ sys_write ↻ sys_openat_append sys_close

structs

none

consts

14const GW_LOG: *u8 = "knowledge/status/geo_webmerc.log"

functions

16func 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 }
called by 1: gw_emit calls 1: sys_write
17func 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 }
called by 1: gw_emit calls 2: sys_mmapsys_write
19func gw_emit(fd: i64, ax: i64, ay: i64, bx: i64, by: i64, mty: i64, gty: i64, ok: i64) -> i64
called by 1: main calls 2: gw_wgw_wn
30func main() -> i64