Cal. Health & Safety Code § 8126
The title to lands situated in or near any city and used by the inhabitants without interruption as a cemetery for five years is vested in the inhabitants of the city and the lands shall not be used except as a public cemetery.