Given a GEOJson file as follows:-
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"FEATCODE": 15014
},
"geometry": {
"type": "Polygon",
"coordinates": [
.....
I want to end up with the following:-
{
"type": "FeatureCollection",
"features": [
{
"tippecanoe" : {"minzoom" : 13},
"type": "Feature",
"properties": {
"FEATCODE": 15014
},
"geometry": {
"type": "Polygon",
"coordinates": [
.....
ie. I have added the tippecanoe object to each feature in the array features
I can make this work with:-
jq '.features[].tippecanoe.minzoom = 13' <GEOJSON FILE> > <OUTPUT FILE>
Which is fine for small files. But processing a large file of 414Mb seems to take forever with the processor maxing out and nothing being written to the OUTPUT FILE
Reading further into jq it appears that the --stream command line parameter may help but I am completely confused as to how to use this for my purposes.
I would be grateful for an example command line that serves my purposes along with an explanation as to what --stream is doing.