-Added input spatial reference check to line density

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>