Galactic and Solar System Optical Astrometry