Hello,

I just noticed I failed to find the ArcObjects-Subforum yesterday so I posted my Question in ArcDesktop-General. Since I'm programming ArcDesktop using

"I am programming ArcMap 9.x using VBA.

in the past I succesfully querried DEM elevations at given coordinates (x,y) from rasters.

Now I am challenged with the task to obtain the Height of a 3d-polygon at a given coordinate (x,y) inside the polygon. Is there a way to obtain this via ArcObjects?"

Thanks in advance

Richard Witzke

I just noticed I failed to find the ArcObjects-Subforum yesterday so I posted my Question in ArcDesktop-General. Since I'm programming ArcDesktop using

**ArcObjects**it should be posted here from the beginning. Anyway, here is my current problem:"I am programming ArcMap 9.x using VBA.

in the past I succesfully querried DEM elevations at given coordinates (x,y) from rasters.

Now I am challenged with the task to obtain the Height of a 3d-polygon at a given coordinate (x,y) inside the polygon. Is there a way to obtain this via ArcObjects?"

Thanks in advance

Richard Witzke

As mentioned in the response to your other post, there is no way to predict the Z value of any interior point withing the polygon. That makes sense, since a polygon can encompass any number of elevation values that have no relationship to the boundary of the polygon. For example, knowing the Z value of a polygon formed by the enclosure of a single elevation contour cannot help you predict a Z value that is interior or exterior of that contour boundary. Knowing the Z values of the boundary of the State of California gives you no way to predict the elevation of any interior point. For example, I could easily give you two points within California with one at the peak of a mountain and another at the surface of the Salton Sea, and there would be no way to derive the elevations of those points simply from knowing the elevations at the California border. So your interior points need to continue to refer to a surface dataset and not a polygon feature class to derive their elevation.