Algorithms for Geometric Facility Location: Centers in a Polygon and Dispersion on a Line