Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an ISurface object and wish to pull out several elevations with one call; instead of using the GetElevation(IPoint) method.

The ISurface is representing a dem with 30m cell size.

Is there an ISurface method that pulls out several elevations with one call?

Is there another way of pulling elevations from a dem? A query?

share|improve this question
up vote 3 down vote accepted

Try creating a polyline from your points and call ISurface.InterpolateShapeVertices. Then cast to IPointCollection and loop through each vertex to get its Z value.

share|improve this answer
+1, I like it. I'll give it a shot and let you know how it turns out. – Chris Sep 9 '11 at 17:33
It worked great and this process took much less time to populate 40,000 point elevations. Thanks! – Chris Sep 9 '11 at 17:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.