Whenever a county or city and county owns land in another county, it may request the sheriff of that county to deputize its officers or employees as deputy sheriffs so that they may perform police duties solely upon said land. The sheriff may appoint such deputies.