<?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: Set map units or override units to DMS in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-map-units-or-override-units-to-dms/m-p/556220#M15049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tthanks Duncan, you don't actually have to set the latlon properties, they all kind of just default.&amp;nbsp; It is a work-around for my problem but the kicker is if you change back the Arcmap property to DD or if you change it to Degree Decimal minutes, the map is still DMS.&amp;nbsp; If you change it to meters, the map changes to meters.&amp;nbsp; Any Lat/Lon based system defaults to DMS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on this article, I think this was an pre-ArcGIS 10 thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/20801#comment-8682"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/20801#comment-8682&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 12:39:32 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2011-10-11T12:39:32Z</dc:date>
    <item>
      <title>Set map units or override units to DMS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-map-units-or-override-units-to-dms/m-p/556218#M15047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does any one know how to set the display units (or distance units) on the map programmatically to DMS (degree minutes seconds) or how to change the ArcMap options, dataview 'use these units instead of the frame's Display units (Degreee Minutes Seconds)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IMap.DistanceUnits are esriUnits and have no DMS.&amp;nbsp; I have not figured out how to access the ArcMap Options to override the units.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 12:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-map-units-or-override-units-to-dms/m-p/556218#M15047</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-10-07T12:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set map units or override units to DMS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-map-units-or-override-units-to-dms/m-p/556219#M15048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is some VBA code that I think achieves what you are asking. Interestingly it does not seem to adjust the setting in the dataframe &amp;gt; Properties &amp;gt; General &amp;gt; Units(display) drop down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub test()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMXDoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pMXDoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pLatLonFormat As ILatLonFormat2
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pLatLonFormat = New LatLonFormat
&amp;nbsp;&amp;nbsp;&amp;nbsp; With pLatLonFormat
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ShowDirections = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ShowZeroMinutes = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ShowZeroSeconds = True
&amp;nbsp;&amp;nbsp;&amp;nbsp; End With
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pReportUnitFormat2 As IReportUnitFormat2
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pReportUnitFormat2 = pMXDoc
&amp;nbsp;&amp;nbsp;&amp;nbsp; pReportUnitFormat2.CoordinateReadoutUnits = esriDecimalDegrees
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pReportUnitFormat2.CoordinateReadoutLatLonFormat = pLatLonFormat
End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-map-units-or-override-units-to-dms/m-p/556219#M15048</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-12T00:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set map units or override units to DMS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-map-units-or-override-units-to-dms/m-p/556220#M15049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tthanks Duncan, you don't actually have to set the latlon properties, they all kind of just default.&amp;nbsp; It is a work-around for my problem but the kicker is if you change back the Arcmap property to DD or if you change it to Degree Decimal minutes, the map is still DMS.&amp;nbsp; If you change it to meters, the map changes to meters.&amp;nbsp; Any Lat/Lon based system defaults to DMS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on this article, I think this was an pre-ArcGIS 10 thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/20801#comment-8682"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/20801#comment-8682&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 12:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-map-units-or-override-units-to-dms/m-p/556220#M15049</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-10-11T12:39:32Z</dc:date>
    </item>
  </channel>
</rss>

