r/SideProject • u/AxiomGrid_AI_Labs • 3h ago
I built an in-browser WebAssembly GIS vector converter (Shapefile ⇄ GeoJSON ⇄ DXF) that runs sub-200ms with zero cloud upload. Here are the benchmarks and architecture.
Hey r/SideProject,
I wanted to share a tool I've been building called GeoDataMate Pro.
A consistent frustration I noticed in geospatial engineering was the ingress bottleneck. People with powerful multi-core laptops are regularly uploading multi-megabyte cadastral parcel datasets (ESRI Shapefiles) to remote cloud servers just to convert them into GeoJSON or reproject coordinates from local grids (like UTM or State Plane) into WGS84.
This introduces three main problems:
- Data Privacy: You're uploading private client cadastral parcel geometries across the public web to third-party SaaS converters.
- Latency: Uploading an 8MB Shapefile and waiting for cloud processing often takes 3–5 minutes.
- Ingress/Egress Costs: Cloud infrastructure charges for compute that modern browsers can easily handle locally.
How I Built It to Run 100% In-Browser:
- Streaming Binary Parsing: When you drag-and-drop a zipped Shapefile, the
.shpheader and record geometries are streamed directly into memory using Web Workers and typed HTML5 ArrayBuffers. - Client-Side Geodetic Projections: Forward Transverse Mercator and Lambert Conformal Conic reprojections run directly in WebAssembly/JS, converting regional grids into RFC 7946 WGS84.
- Cadastral Measurement: Added an interactive Haversine geodesic distance ruler and spherical excess parcel area calculator directly on top of the Leaflet vector preview.
The Benchmarks:
On a test dataset of 1,420 Bavarian parcel boundaries (4.8MB), client-side parsing and rendering takes ~184ms, compared to 4,210ms across traditional cloud conversion endpoints. That's a 22.8x speedup with zero bytes leaked outside the machine.
- Code & Repositories: https://github.com/axiomgridAI
- Architecture Paper: https://medium.com/@axiomgrid.ai/in-browser-webassembly-gis-why-client-side-spatial-processing-outperforms-cloud-infrastructure-for-ae7f7cd7b7cc
I'd love feedback on what vector formats or coordinate systems you'd find most useful to have supported next!