Skip to content

Instantly share code, notes, and snippets.

@arbakker
Created January 5, 2024 15:47
Show Gist options
  • Save arbakker/ef529fa9ec3a750a37cffb8c2ccba941 to your computer and use it in GitHub Desktop.
Save arbakker/ef529fa9ec3a750a37cffb8c2ccba941 to your computer and use it in GitHub Desktop.
yq add fields to objects in array
yq -P < src/coordinate_transformation_api/assets/config.yaml '{"crs": [.crs | to_entries | .[] | .value.uri="http://www.opengis.net/" + (.key | split(":") | join("/0/"))] | from_entries}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment