1. A method for spatial analysis of a traffic scene, comprising: acquiring a spatial semantic environment map including semantic context data, wherein the semantic context data are confidence values or binary values for a semantic label for grid cells of the spatial semantic environment map, calculating at least one feature for at least one cell on the spatial environment map taking into account the semantic context of the cell, wherein the at least one feature is a ray based feature calculated by integrating confidence values or binary values to provide an integrated semantic label along at least one ray extending from the at least one cell in at least one of a space dimension and a time dimension, determining a category for the at least one cell based of the at least one calculated feature, wherein the at least one ray has a ray shape which is determined based on the semantic context of the at least one cell where it starts, and generating and outputting an analysis signal comprising data about the determined category of the at least one cell for predicting a traffic scene.