add a dtype property to features
fix add_spatial_info