Fixing compiler errors for spatial data structures