Better error handling for non point layers