Hey. I'll try again and better. On the attached fmwt I am trying to assemble the correct geoJson structure - the data structure formatting is done on the "JsonTemplater5" transformer. The sample file for the data structure is the attachment "example_collection"( better to look here: https://github.com/UASGeoZones/ED-318/blob/main/examples/Example_Collection.json?short_path=e3f0eef), according to which I am creating a template (JsonTemplater5). The output from the workspac is "rmz.json" - the whole data structure is not created on jsonTemplater5, so it does not match the complete sample file.
My question is. Does it really have to be this complicated and lengthy to define a template on jsonTemplater5 to send data to? Wouldn't it be possible to export the schema using a combination of some transformers from example_collection ( sample data )? Or if I have some schema available, can't I use this schema so that I don't have to create a template in such a complicated way?
attachments:
rmz_test - fmwt file
rmz_json - output file
example_collection - example source json
Thank you
Page 1 / 1
Hey. I'll try again and better. On the attached fmwt I am trying to assemble the correct geoJson structure - the data structure formatting is done on the "JsonTemplater5" transformer. The sample file for the data structure is the attachment "example_collection"( better to look here: https://github.com/UASGeoZones/ED-318/blob/main/examples/Example_Collection.json?short_path=e3f0eef), according to which I am creating a template (JsonTemplater5). The output from the workspac is "rmz.json" - the whole data structure is not created on jsonTemplater5, so it does not match the complete sample file.
My question is. Does it really have to be this complicated and lengthy to define a template on jsonTemplater5 to send data to? Wouldn't it be possible to export the schema using a combination of some transformers from example_collection ( sample data )? Or if I have some schema available, can't I use this schema so that I don't have to create a template in such a complicated way?
attachments:
rmz_test - fmwt file
rmz_json - output file
example_collection - example source json
Thank you
Hi, is there really no one who can advise? Shall I try to specify the problem better?
Thank you
Screenshots may help a lot in this case. My time is limited and there is a chance I don’t know the answer, so in those cases I tend to not download several zip files to try and piece together what the issue is. If you could elaborate with some screenshots I (and probably others) would have a much easier time considering if this is a question I’d want to pick up.
Hi,
I notice that you are running lots of subs, but in your example, you only have one feature going into the subs. Are you expecting more?
If not, then you don’t need the subs (in most instances) and you would just create the details in the root like:
If you need to get rid of anything that is empty, then using the JsonFormatter after would be able to do that.
There are many ways to do this, but glad you are using the JsonTemplator as it can easily do all the things you want quickly, it just takes a while to learn
Hey. Thanks for the replies. It is very complicated on printscreens, I don't want to solve the problem in two places, here I am forwarding the place where I will solve the situation, thank you.
I notice that you are running lots of subs, but in your example, you only have one feature going into the subs. Are you expecting more?
If not, then you don’t need the subs (in most instances) and you would just create the details in the root like:
If you need to get rid of anything that is empty, then using the JsonFormatter after would be able to do that.
There are many ways to do this, but glad you are using the JsonTemplator as it can easily do all the things you want quickly, it just takes a while to learn
Hey. Thanks for the reply. I have individual SUBs because of the nested elements in json, am I not using them correctly?