Import values in tree attribute

Hi,
How can I import a list of values in an attribute?
I see that there is an option to import in the tree attribute. It does not recognize CSV files. Should I make a template first?

Kind regards,
Elke

Hi Elke,

I think you’re referring to the in-built import process for the “Species” attribute in the data model?

This exists in the backend of SMART in a library of species which can be imported when required to reduce the complexity of this potentially exhaustive attribute.

Currently, there is no way to bulk import options to attributes such as list of tree from .CSV as the data model reads only specific SMART .XML files.

Is the attribute you want to import particularly complex? There’s no simple way to create the importable XML file so manual creation is your best option.

Cheers,

Alex

Hi Alex,
Yes exactly. Ah okay, so that one is already build into SMART. I was under the impression that you could import your own value list for attributes.

Do you know if this will be added to the functionalities in the future? Would be super useful to just import a CSV file for values.

Kind regards
ELke

Hi Elke,

We can raise this internally for discussion, yes.

My understanding is that currently the data model can only read .XML files so we’d need a mechanism to convert the CSV to XML.

Hope to report something back in the near future on this.

Cheers,

Alex

Hi,
Okay thanks! That would be great.

Kind regards,
Elke

Hello, I would also like to be able to import an XML file with a species tree pertintent to my conservation area. You mention that the data model only reads specific SMART .XML files. What sort of files are those? I tried to convert an Excel file to XML using a python script but SMART doesn’t read it, indicating that it is not a valid SMART xml data model file. What are the labelling or structure requirements for the SMART .XML?
Hope you can guide me in the right direction.

Kind Regards,
Felipe

You can use the function to create a list of species here.

Basically it creates a data model with just a single attribute (the species attribute). The list is created from your own vector of species, provided by a csv for example or manually. Then you save the file (the data model which is an XML) Go to SD and merge the created data model with your data model (in SD: Conservation Area → Data Model → merge data model in the bottom of the window). Your own species attribute will become available in the Attributes list ("Add Attribute).

2 Likes