Grid from shapefile

7 views
Skip to first unread message

flavien loup

unread,
Oct 2, 2025, 9:56:58 AMOct 2
to GAMA
Hello,

I have a shapefile filled with grid-like squares. Each square have multiple data.
I would like to make a grid form this shapefile like it's done with CSV files.
As there is multiple data per cells i can't turn the original shapefile into a CSV.

Thank you,

Flavien Loup--Hadamard

Benoit Gaudou

unread,
Oct 4, 2025, 4:50:17 AMOct 4
to gama-p...@googlegroups.com
Bonjour Flavien,
You can simply define a grid with the proper size, and create your agents from your shapefile.
You can simply associate a grid cell with each of your agents (get the grid cell whiwh contains/covers the centre of your agents from shapefile) and assign the values from your shpefile agents to various attributes of the grid agent.

Note: you can also simply keep your shapefile agents (and do not use any grid ... )

Another way could be the save your grid in a multi-band format (such as tif files) and in your model create the grid from the tif file. I am not totally sure that saving a grid to a tif file will save all the bands , but it could be an improvement of GAMA to get that.

Cheers
Benoit 

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gama-platform/041486c5-977f-4dfa-8303-190b4d3d49d3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages