code wiki / geo

topic: geo

52 modules sharing the geo name family (derived from the tree's prefix discipline).

The 'geo' topic family in the Nishi sovereign ecosystem provides precise geospatial tools for integer-exact calculations, foundational for hardware-based geofencing and spatial analysis. Modules like nx_geo_area compute polygon area and orientation using the shoelace formula, while nx_geo_buffer measures offset distances through Minkowski sums, enabling accurate spatial expansion. nx_geo_centroid offers two methods to determine polygon centers, supporting robust spatial reasoning. These modules interoperate to deliver reliable, waveless geospatial data for secure and deterministic applications.

auto-narrated by the local model from this topic's module headers; links verified against the wiki index.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
nx_geo.nxLIB: sovereign INTEGER-EXACT geofencing primitives. The hardware-rung-up foundation1517
nx_geo_area.nxLIB: GEO-010 polygon AREA + ORIENTATION, INTEGER-EXACT (shoelace / Gauss).523
nx_geo_area_gate.nxGATE for GEO-010 polygon area + orientation (integer-exact shoelace). Proves:925
nx_geo_buffer.nxLIB: GEO-017 BUFFER / OFFSET MEASURE (Minkowski sum of a convex polygon with a372
nx_geo_buffer_gate.nxGATE for GEO-017 buffer/offset measure. Polygon = square side 4e6506
nx_geo_census.nxGATE + CENSUS for GEO-004: the MEASURED-exceed scoreboard (no-wave). Twin of16510
nx_geo_centroid.nxLIB: GEO-011 POLYGON CENTROID, two integer-exact variants.592
nx_geo_centroid_gate.nxGATE for GEO-011 polygon centroid. Polygon = the 6e5 square with an EXTRA565
nx_geo_clip.nxLIB: GEO-015 POLYGON INTERSECTION (Sutherland-Hodgman convex clip).964
nx_geo_clip_gate.nxGATE for GEO-015 polygon intersection (Sutherland-Hodgman). Subject = the776
nx_geo_distance.nxLIB: GEO-003 geodesic DISTANCE in meters (equirectangular). Hardware-up:321
nx_geo_distance_gate.nxGATE for GEO-003 equirectangular distance. Proves on KATs:575
nx_geo_eqarea.nxGEO-005 (other half): EQUAL-AREA cells, the fix for the geohash's CELL-SIZE744
nx_geo_gate.nxGATE (runnable) for the integer-exact geofence floor (nx_geo). Proves:1035
nx_geo_geocode.nxLIB: GEO-006 geocoding (address/place <-> coordinate). Sovereign: the place856
nx_geo_geocode_gate.nxGATE for GEO-006 geocoding. Seeds a place gazetteer into the SOVEREIGN985
nx_geo_h3.nxLIB: GEO-018 H3-CLASS HEXAGONAL grid index in CUBE coordinates. A hex cell is637
nx_geo_h3_gate.nxGATE for GEO-018 H3-class hexagonal cell index. Proves correctness AND the1034
nx_geo_haversine.nxLIB: GEO-003b GREAT-CIRCLE distance (haversine), the PRECISION REFINEMENT of572
nx_geo_haversine_gate.nxGATE for GEO-003b great-circle (haversine) distance. Proves:656
nx_geo_hilbert.nxGEO-005: Hilbert space-filling-curve cell ordering, the S2/H3 superiority1438
nx_geo_hull.nxLIB: GEO-012 CONVEX HULL (Andrew's monotone chain), INTEGER-EXACT.1023
nx_geo_hull_gate.nxGATE for GEO-012 convex hull (integer-exact monotone chain). Input: the 4905
nx_geo_join.nxLIB: GEO-013 SPATIAL JOIN (point-in-which-polygon), INTEGER-EXACT. The PostGIS643
nx_geo_join_gate.nxGATE for GEO-013 spatial join. Pool of 2 disjoint squares (A near origin,675
nx_geo_los.nxLIB: GEO-022 LINE-OF-SIGHT / viewshed over a terrain elevation profile (DEM).372
nx_geo_los_gate.nxGATE for GEO-022 line-of-sight over a seeded DEM transect (7 samples, n=6,524
nx_geo_mapsvg.nxGEO-007: the SOVEREIGN MAP SURFACE. Renders real geo data (gazetteer cities,1155
nx_geo_match.nxLIB: GEO-023 MAP-MATCHING (snap a noisy GPS fix to a road network).654
nx_geo_match_gate.nxGATE for GEO-023 map-matching. Seeded road graph: edge0 = horizontal road594
nx_geo_osmrender.nxGEO-007 the REAL map engine: renders ACTUAL OpenStreetMap geography25412
nx_geo_places.nxLIB: GEO-021 PLACES-SEARCH (fuzzy / typo-tolerant place lookup) via sovereign614
nx_geo_places_gate.nxGATE for GEO-021 fuzzy places-search (Levenshtein). Proves:745
nx_geo_query.nxLIB: GEO-009 spatial QUERY primitives, composing the rungs below.874
nx_geo_query_gate.nxGATE for GEO-009 spatial query. Proves:716
nx_geo_raster.nxLIB: GEO-020 RASTER RENDER (integer scanline polygon fill, even-odd rule).762
nx_geo_raster_gate.nxGATE for GEO-020 raster render (integer scanline fill) on an 8x8 grid:685
nx_geo_route.nxLIB: GEO-008 routing -- INTEGER-EXACT Dijkstra shortest path on a weighted743
nx_geo_route_gate.nxGATE for GEO-008 routing. A baked 5-node weighted graph where the OPTIMAL785
nx_geo_s2.nxLIB: GEO-005 S2-CLASS CELL INDEX via the HILBERT space-filling curve. The real954
nx_geo_s2_gate.nxGATE for GEO-005 Hilbert (S2-class) cell index, on an 8x8 grid (k=3, 64 cells).925
nx_geo_segint.nxLIB: GEO-015b SEGMENT-SEGMENT INTERSECTION primitive (the building block for622
nx_geo_segint_gate.nxGATE for GEO-015b segment-segment intersection. Covers all 4 cases:624
nx_geo_simplify.nxLIB: GEO-014 LINE SIMPLIFY (Douglas-Peucker), DETERMINISTIC INTEGER ARITH.903
nx_geo_simplify_gate.nxGATE for GEO-014 line simplify (Douglas-Peucker, integer). A 5-vertex665
nx_geo_tiles.nxLIB: GEO-019 VECTOR/RASTER TILE addressing (sovereign slippy z/x/y scheme).524
nx_geo_tiles_gate.nxGATE for GEO-019 geodetic z/x/y tiles. Proves:684
nx_geo_union.nxLIB: GEO-016 POLYGON UNION + INTERSECTION MEASURE (set algebra on areas).463
nx_geo_union_gate.nxGATE for GEO-016 polygon union/intersection measure (inclusion-exclusion).616
nx_geo_wasm.nxGEO-024h: sovereign Web-Mercator projection compiled to WASM for the Nishi Maps635
nx_geo_webmerc.nxLIB: GEO-019b WEB-MERCATOR (EPSG:3857) slippy z/x/y tiles -- the web de-facto522
nx_geo_webmerc_gate.nxGATE for GEO-019b Web-Mercator tiles. Proves the projection against known564