Vectors

Importing a Shapefile

Download sample Shapefile points_of_interest.zip and unzip it.
v.in.ogr input=/path/to/points_of_interest.shp output=points_of_interest

Generating a hexagonal grid

g.region vector=points_of_interest res=2000 -pa
v.mkgrid map=hexagons -h

Computing statistics of points in polygons

v.vect.stats points=points_of_interest areas=hexagons count_column=count
v.colors map=hexagons use=attr column=count color=viridis
Colored hexagons and modules used to create them

Learn more