Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.