1D texturing

Could someone give me a location of an example using 1D texturing or send me a sample program, I would appreciate it.

I am trying to change color per height increment on a contour map.

hmmm,looks like you found out yourself(check your other post).Anyway 1d texturing is exactly like 2d texturing only the texture is (2^n x 1) in size(a single line of pixels) and you therefore need only one texcoord per vertex.