get crs and datatype from layer