PROJECT
xMap Polygon
xMap · Senior Software Engineer · May 2023 — Present

Overview
polygon.xmap.ai is the companion product to Studio — a focused tool that lets analysts draw polygons directly on a map and run spatial queries against xMap's underlying datasets without writing a line of SQL.
I designed the polygon-to-query pipeline that translates user-drawn shapes into efficient PostGIS spatial predicates, then streams results back to the client as parquet pages. The drawing surface itself is built on mapbox-gl-draw with deck.gl overlays for selection feedback. The whole thing runs on the same auth, billing, and tenancy primitives as Studio, so a customer subscribed to one product gets seamless access to the other.
Key Contributions
→
Designed the polygon-to-spatial-query backend pipeline against PostGIS + S3-backed parquet, including bounding-box prefiltering and result streaming for queries returning millions of rows.
→
Built the polygon drawing UX on mapbox-gl-draw with custom deck.gl overlays — handles arbitrary polygons, holes, and multipart selections.
→
Reused Studio's Cognito + Stripe stack for shared sign-on and unified billing, so cross-product usage shows up on a single invoice.
→
Added export-to-CSV and export-to-GeoJSON paths for downstream analysis tools.
Tech Stack
TypeScript
Next.js
Python
FastAPI
PostGIS
mapbox-gl
deck.gl
AWS Lambda
S3
Parquet