Hi all,
I'm having issues configuring the JSONTemplater to output my data.
I currently have 7 rows, with 2 unique IncidentIDs. I'd like to aggregate the postcode data and geometry for these 2 IncidentIDs so that the json can be used on a webmap showing all the postcodes associated with an incident:
I've configured my ROOT and SUB templates but the JSONTemplater fails at the root. Can anyone see what I am doing wrong?
ROOT:
{ "type":"FeatureCollection",
"features":
fme-process-features("SUB")
]
}
SUB:
{
"type":"Feature",
"properties":{"Postcode":fme:get-attribute("POSTCODE")},
"geometry": {fme:get-json-attribute("_geometry")}
}
Thanks in advance
N