Skip to main content
added 25 characters in body
Source Link
Taras
  • 35.9k
  • 7
  • 77
  • 153

You can create a virtual field in the Field calculator for the grid layer and fill it with

aggregate( layer:='Your pointlayername',   aggregate:=' concatenate'='concatenate',   expression:=to_string(attributes()['attributenameofpointlayer']),  filter:=intersects($geometry, geometry(@parent)),  concatenator:=',' ) 

You may need to transform coordinates with function transformtransform() if grid (polygon) and coordinates points do not match due to difference for the projection

You can find a link to a minimum QGIS project demo https://labs.webgeodatavore.com/partage/demo-aggregate-expression-points-in-grid.zip

You can create a virtual field in the Field calculator for the grid layer and fill it with

aggregate( layer:='Your pointlayername', aggregate:=' concatenate', expression:=to_string(attributes()['attributenameofpointlayer']), filter:=intersects($geometry, geometry(@parent)), concatenator:=',') 

You may need to transform coordinates with function transform if grid (polygon) and coordinates points do not match due to difference for the projection

You can find a link to a minimum QGIS project demo https://labs.webgeodatavore.com/partage/demo-aggregate-expression-points-in-grid.zip

You can create a virtual field in the Field calculator for the grid layer and fill it with

aggregate(layer:='Your pointlayername',   aggregate:='concatenate',   expression:=to_string(attributes()['attributenameofpointlayer']),  filter:=intersects($geometry, geometry(@parent)),  concatenator:=',' ) 

You may need to transform coordinates with function transform() if grid (polygon) and coordinates points do not match due to difference for the projection

You can find a link to a minimum QGIS project demo https://labs.webgeodatavore.com/partage/demo-aggregate-expression-points-in-grid.zip

added 138 characters in body
Source Link
ThomasG77
  • 31.8k
  • 1
  • 56
  • 97

You can create a virtual field in the Field calculator for the grid layer and fill it with

aggregate( layer:='Your pointlayername', aggregate:=' concatenate', expression:=to_string(attributes()['attributenameofpointlayer']), filter:=intersects($geometry, geometry(@parent)), concatenator:=',') 

You may need to transform coordinates with function transform if grid (polygon) and coordinates points do not match due to difference for the projection

You can find a link to a minimum QGIS project demo https://labs.webgeodatavore.com/partage/demo-aggregate-expression-points-in-grid.zip

You can create a virtual field in the Field calculator for the grid layer and fill it with

aggregate( layer:='Your pointlayername', aggregate:=' concatenate', expression:=to_string(attributes()['attributenameofpointlayer']), filter:=intersects($geometry, geometry(@parent)), concatenator:=',') 

You can create a virtual field in the Field calculator for the grid layer and fill it with

aggregate( layer:='Your pointlayername', aggregate:=' concatenate', expression:=to_string(attributes()['attributenameofpointlayer']), filter:=intersects($geometry, geometry(@parent)), concatenator:=',') 

You may need to transform coordinates with function transform if grid (polygon) and coordinates points do not match due to difference for the projection

You can find a link to a minimum QGIS project demo https://labs.webgeodatavore.com/partage/demo-aggregate-expression-points-in-grid.zip

Source Link
ThomasG77
  • 31.8k
  • 1
  • 56
  • 97

You can create a virtual field in the Field calculator for the grid layer and fill it with

aggregate( layer:='Your pointlayername', aggregate:=' concatenate', expression:=to_string(attributes()['attributenameofpointlayer']), filter:=intersects($geometry, geometry(@parent)), concatenator:=',')