.zip files containing proprietary formats like .dat, .cn1, ISOXML, .agt, .shp, .2020, .ilf, and more, and converts them into a standard canonical format, accessible as either GeoJSON or GeoParquet.
Before you start
- A Leaf account with a valid API token.
- A Leaf user created.
- One or more machine data files packaged as
.zip. If you have nested zips, Leaf unzips recursively. - cURL, Python 3, or Node.js installed.
Step 1: Get your Leaf token
Step 2: Upload the file
POST your.zip file to the batch upload endpoint. If you don’t know the file format, set provider to Other and Leaf detects it automatically.
batch_id. If the zip contains multiple files, Leaf discovers and processes each one individually.
Step 3: Check batch status
Poll the batch endpoint until the status isPROCESSED:
leafFiles array contains the IDs of all machine files extracted and processed from your upload.
Step 4: Retrieve converted files
Use the file IDs to get the standardized data: Get file metadata:standardGeojson, cleanupGeojson, summary, units, etc.

