On Geometric Constraints For Localization And Calibration