Data export to GeoJSON and/or to Postgres

61 views
Skip to first unread message

Johannes Scholz

unread,
Jan 17, 2022, 8:14:14 AM1/17/22
to GAMA
Hi everyone, 
I was wondering if I can export data of agents (i.e. their properties and their location) as GeoJSON or JSON objects. Additionally, is it possible to store the GeoJSON in a database (e.g. Postgres).

Thanks in advance, 
Johannes  

lesquoy....@gmail.com

unread,
Jan 18, 2022, 1:51:48 AM1/18/22
to GAMA
Hello Johannes,

Have you tried to use the save statement ? Here is the link to the documentation.
You can use it to save your species (agents) in an external file as a json or csv (or other formats) and then import it in another software (or database).
You can use the attributes facet of the save statement to ask what property of the agent you want to export in the file.
Hopefully you find this helpful.

Baptiste

Johannes Scholz

unread,
Jan 18, 2022, 3:00:26 PM1/18/22
to GAMA
Dear Baptiste, 

thanks so much. I know about the GeoJSON save functionalities - but was not 100% sure if this is the only option. Thanks so much for your help - this clarified a lot! 
All the best, 
Johannes  

Reply all
Reply to author
Forward
0 new messages