code wiki / _hdl_build / nx_geo_osmrender.nx
nx_geo_osmrender.nx
buildroot/runtime/_hdl_build/nx_geo_osmrender.nx
about
nx_geo_osmrender.nx -- GEO-007 the REAL map engine: renders ACTUAL OpenStreetMap geography
(knowledge/geo/osm/lowman.tsv = real ways of lower Manhattan, ODbL) to a styled vector map.
Each line: "<class>\t<lon_microdeg>,<lat_microdeg> <lon>,<lat> ...". Computes the bbox, projects
every vertex (equirectangular, cos-lat aspect), classifies by OSM road type, and draws LAYERED
cartographic strokes (water/park fills, then footways, minor, secondary, major roads on top).
Pure-integer projection. NO third-party map library. Writes sites/nishifamily/maps/index.html.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.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
| 9 | const K_MAGIC_4194304: i64 = 4194304 |
| 10 | const K_MAGIC_999000000: i64 = 999000000 |
functions
| 12 | func r_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 r_n(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 18 | func r_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 25 | func r_int(buf: *u8, s: i64, e: i64) -> i64 |
| 34 | func r_to(buf: *u8, i: i64, lim: i64, d: i64) -> i64 |
| 39 | func r_starts(buf: *u8, s: i64, e: i64, lit: *u8) -> i64 called by 1: r_code |
| 45 | func r_code(buf: *u8, s: i64, e: i64) -> i64 |
| 67 | func r_bbox(buf: *u8, cs: i64, ce: i64, box: *i64) -> i64 |
| 89 | func r_emit(fd: i64, buf: *u8, cs: i64, ce: i64, pj: *i64, code: i64) -> i64 |
| 124 | func r_esc(fd: i64, buf: *u8, s: i64, e: i64) -> i64 |
| 136 | func r_label(fd: i64, buf: *u8, ns: i64, ne: i64, cs: i64, ce: i64, pj: *i64) -> i64 |
| 171 | func main(argc: i64, argv: *i64) -> i64 |