I can parse the JSON text using JSON.parse.
var obj = JSON.parse(jsonResp);
The JSON features element is an array with a single element in it (note the square brackets).
Put an index reference after features: features. Credit goes to @Steven Kay.
The field name is case sensitive.
zone didn't work,...
Yes, I made this little script that I run from Jupyter notebook. Just change as required the variables metadatain, and metawriter. It will recursively add metadata to all the files with an extension (for instance shp) inside a directory.
import xml.etree.ElementTree as ET
metadatain = ET.parse(r'ADDRESS\TO\METADATA.xml')
root = metadatain.getroot()...
This is the workflow I'd recommend:
Add a definition query to your pipes for your branch pipe (Trunk =
Buffer pipes with a small distance (1 foot), dissolve type ALL
Split your buffers using Multipart to Singlepart
Add a unique ID value to each singlepart buffer
Spatially Join buffer unique ID to your pipe features
Spatially join pipe unique ID to ...