<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get the distance in a certain unit? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-distance-in-a-certain-unit/m-p/450315#M12228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sui,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also try and use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00420000023r000000"&gt;IUnitConverter&lt;/A&gt;&lt;SPAN&gt; Interface. Although not sure if the conversion would be accurate if your source coordinate system is in decimal degrees. I think some ArcObjects expect your geometries to be projected for them to work best?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2012 15:00:10 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2012-08-20T15:00:10Z</dc:date>
    <item>
      <title>How to get the distance in a certain unit?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-distance-in-a-certain-unit/m-p/450313#M12226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am writing ArcMap extension code in C# to work with a personal Geo-database. The feature classes in this GDB are all in a spatial reference that using geographic coordinate system WGS84 without any projected coordinate system. The MXD file my code working with is not expected to have any setup on the projected coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the C# code when I use IProximityOperator.ReturnDistance method to find out distance between two feature in this GDB. The returned distance seems to be in the unit of degree (for Lat-Long). This result is not directly usable for me. How can I get the distance in the unit of meters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 16:48:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-distance-in-a-certain-unit/m-p/450313#M12226</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2012-08-17T16:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the distance in a certain unit?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-distance-in-a-certain-unit/m-p/450314#M12227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your code, before you assign the geometries to the IProximityOperator, you should project each of them into a spatial reference that best fits your data&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 17:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-distance-in-a-certain-unit/m-p/450314#M12227</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-08-17T17:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the distance in a certain unit?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-distance-in-a-certain-unit/m-p/450315#M12228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sui,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also try and use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00420000023r000000"&gt;IUnitConverter&lt;/A&gt;&lt;SPAN&gt; Interface. Although not sure if the conversion would be accurate if your source coordinate system is in decimal degrees. I think some ArcObjects expect your geometries to be projected for them to work best?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 15:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-distance-in-a-certain-unit/m-p/450315#M12228</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-08-20T15:00:10Z</dc:date>
    </item>
  </channel>
</rss>

