<div dir="ltr">Thanks Both.<div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 18, 2017 at 10:58 AM, Sean Gillies <span dir="ltr"><<a href="mailto:sean@mapbox.com" target="_blank">sean@mapbox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Even,<div><br></div><div>I found an example in the jq Cookbook of doing it with nothing other than jq.<div><br></div><div>  <a href="https://github.com/stedolan/jq/wiki/Cookbook#convert-a-csv-file-with-headers-to-json" target="_blank">https://github.com/stedolan/<wbr>jq/wiki/Cookbook#convert-a-<wbr>csv-file-with-headers-to-json</a><br><div class="gmail_extra"><br></div><div class="gmail_extra">The "sed for JSON" tagline is pretty accurate!</div></div></div></div></blockquote><div><br></div><div> jq is definitely very cool. My workflow is a little more complex, than reading a CSV file as I'm converting from from a WFS endpoint and doing a transformation with SQL. e.g:</div><div><br></div><div>ogr2ogr -f GeoJSON /vsistdout WFS:"<a href="https://data.linz.govt.nz/services;key=$API_KEY/wfs/layer-51572">https://data.linz.govt.nz/services;key=$API_KEY/wfs/layer-51572</a>" -dialect sqlite -sql "SELECT id, lease_name AS name, ST_Y(ST_Transform(ST_Centroid(geometry), 4326)) || ', ' || ST_X(ST_Transform(ST_Centroid(geometry), 4326)) AS latlon FROM \"data.linz.govt.nz:layer-51572\"" | jq "[.features[].properties]"<br></div><div><br></div><div>Cheers</div><div>Jeremy</div></div><br></div></div></div>