Classical and quantum measurements of position