# How to retrieve the terrain height

**URL:** <https://community.thinkgeo.com/t/how-to-retrieve-the-terrain-height/769>\
**Category:** WinForms\
**Created:** [October 15, 2009, 11:25am UTC](https://community.thinkgeo.com/t/how-to-retrieve-the-terrain-height/769 "2009-10-15T11:25:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uri](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/u/439d5e/32.png) [@uri](https://community.thinkgeo.com/u/uri)\
**Post date:** [October 15, 2009, 11:25am UTC](https://community.thinkgeo.com/t/how-to-retrieve-the-terrain-height/769/1 "2009-10-15T11:25:42Z")

</div>

Hi,

I'm&nbsp;evaluating&nbsp;Map&nbsp;Suite&nbsp;for&nbsp;a&nbsp;project&nbsp;that&nbsp;involves&nbsp;interaction&nbsp;with&nbsp;terrain.&nbsp;In&nbsp;my&nbsp;application,&nbsp;I&nbsp;want&nbsp;to&nbsp;retrieve&nbsp;the&nbsp;&nbsp;terrain&nbsp;height&nbsp;for&nbsp;an&nbsp;arbitrary&nbsp;coordinate&nbsp;in&nbsp;the&nbsp;following&nbsp;manner:

User&nbsp;clicks&nbsp;somewhere&nbsp;on&nbsp;the&nbsp;map&nbsp;=\>&nbsp;I&nbsp;get&nbsp;the&nbsp;(xWorld,&nbsp;yWorld)&nbsp;mouse&nbsp;click&nbsp;coordinate&nbsp;=\>&nbsp;I&nbsp;get&nbsp;the&nbsp;terrain&nbsp;height&nbsp;in&nbsp;(xWorld,&nbsp;yWorld)

The&nbsp;"terrain"&nbsp;is&nbsp;defined&nbsp;by&nbsp;a&nbsp;well-known&nbsp;format,&nbsp;such&nbsp;as&nbsp;DTED,&nbsp;ESRI&nbsp;shapefile,&nbsp;ASCII,&nbsp;etc.&nbsp;The&nbsp;actual&nbsp;"terrain&nbsp;height"&nbsp;for&nbsp;a&nbsp;coordinate&nbsp;is&nbsp;an&nbsp;approximation&nbsp;that&nbsp;is&nbsp;calculated&nbsp;from&nbsp;the&nbsp;source&nbsp;data.

Is&nbsp;there&nbsp;any&nbsp;support&nbsp;in&nbsp;Map&nbsp;Suite&nbsp;for&nbsp;implementing&nbsp;what&nbsp;I&nbsp;described?&nbsp;I&nbsp;am&nbsp;aware&nbsp;of&nbsp;the&nbsp;FDO&nbsp;extension,&nbsp;but&nbsp;to&nbsp;my&nbsp;understanding&nbsp;it&nbsp;only&nbsp;allows&nbsp;to&nbsp;get&nbsp;the&nbsp;raw&nbsp;data&nbsp;from&nbsp;data&nbsp;files.&nbsp;So&nbsp;for&nbsp;example,&nbsp;it&nbsp;is&nbsp;possible&nbsp;get&nbsp;all&nbsp;features&nbsp;from&nbsp;a&nbsp;shapefile&nbsp;that&nbsp;represent&nbsp;elevation&nbsp;data&nbsp;for&nbsp;an&nbsp;area,&nbsp;but&nbsp;I&nbsp;have&nbsp;to&nbsp;calculate&nbsp;myself&nbsp;the&nbsp;elevation&nbsp;of&nbsp;coordinates&nbsp;in&nbsp;that&nbsp;area.

Thanks&nbsp;in&nbsp;advance

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [October 15, 2009, 8:25pm UTC](https://community.thinkgeo.com/t/how-to-retrieve-the-terrain-height/769/2 "2009-10-15T20:25:17Z")

</div>

Uri,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;interests&nbsp;in&nbsp;MapSuite&nbsp;component.  
&nbsp;  
I&nbsp;just&nbsp;want&nbsp;to&nbsp;make&nbsp;sure&nbsp;what&nbsp;you&nbsp;mean&nbsp;for&nbsp;“terrain&nbsp;height”&nbsp;is&nbsp;shown&nbsp;as&nbsp;in&nbsp;the&nbsp;following&nbsp;screenshot.&nbsp;If&nbsp;yes,&nbsp;then&nbsp;I&nbsp;say&nbsp;that&nbsp;some&nbsp;FDO&nbsp;formats&nbsp;data&nbsp;(as&nbsp;I&nbsp;know&nbsp;S57&nbsp;is&nbsp;one&nbsp;of&nbsp;them)&nbsp;should&nbsp;contain&nbsp;all&nbsp;this&nbsp;kinds&nbsp;of&nbsp;terrain&nbsp;height&nbsp;information.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/c/c4a6c58ef6506dae2bef52c4c5c52a17b61f8f17.png)

While&nbsp;I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;say&nbsp;that&nbsp;currently,&nbsp;we&nbsp;have&nbsp;not&nbsp;full&nbsp;support&nbsp;this&nbsp;kind&nbsp;of&nbsp;data&nbsp;reading(like&nbsp;S57),&nbsp;as&nbsp;you&nbsp;said,&nbsp;we&nbsp;only&nbsp;read&nbsp;the&nbsp;raw&nbsp;data&nbsp;out&nbsp;from&nbsp;it&nbsp;without&nbsp;any&nbsp;calculation,&nbsp;we&nbsp;will&nbsp;enhance&nbsp;it&nbsp;somehow&nbsp;later.&nbsp;And&nbsp;we&nbsp;do&nbsp;not&nbsp;support&nbsp;the&nbsp;built&nbsp;in&nbsp;calculation&nbsp;as&nbsp;you&nbsp;described.  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale
