Spatial discretization