cat rng.geojson | jq '.features |
to_entries[] |
{type:"FeatureCollection",
features: [{ geometry: .value.geometry, type: .value.type, properties: {color: ("COLOR" + (.key % 5 | tostring)) } }] }
' | less
cat rng.geojson | jq '.features |
to_entries[] |
{type:"FeatureCollection",
features: [{ geometry: .value.geometry, type: .value.type, properties: {color: ("COLOR" + (.key % 5 | tostring)) } }] }
' | less