This is from Smogon
The user changes its typing to one of the following pure types, according to the terrain as following. Note that in Wi-fi battles, and therefore in all of Smogon's official metagames, Camouflage will change the user into a Ground-type.
This is from BW but in D/P/Pl/HG/SS, you change into a normal type since it's counted as a building.
4th gen page and 5th gen page from smogon.