A surveying optical diffractometer