Skip to main content
100%

Creating a GeoJSON file with a square 100x100 in Power Query

✓ Published0🌍 Public
HHugoberry
Last edited Apr 13, 2017
Created on Apr 13, 2017

This example generates a GeoJSON FeatureCollection containing a 100x100 grid of square polygons entirely within Power Query. It demonstrates constructing polygon coordinates for each cell using nested list functions and the `List.Accumulate` API to iterate over rows and columns. Each feature carries an `ID` property and a `Polygon` geometry with a closed ring of five coordinate pairs. The final `Json.FromValue` call serializes the entire nested list structure into valid GeoJSON, producing a downloadable file without external GIS tools. The code visibly uses Power Query’s `let` and `in` syntax, list literals, and the `Json` functions.

AI-generated description

Similar vizzes