<?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: Decimal Degree coordinates in Double format in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/decimal-degree-coordinates-in-double-format/m-p/78633#M386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I ended up doing. Thank you for the answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2019 19:06:05 GMT</pubDate>
    <dc:creator>ChrisPalmer2</dc:creator>
    <dc:date>2019-10-29T19:06:05Z</dc:date>
    <item>
      <title>Decimal Degree coordinates in Double format</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/decimal-degree-coordinates-in-double-format/m-p/78631#M384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is about the SDK for Qt using C++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my prototype application (c++), I instantiate a map with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;m_map = new Map(BasemapType::ImageryWithLabels, [SOME_DOUBLE], [SOME_NEGATIVE_DOUBLE]&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, 18, this);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;and everything looks great. When I later do a conversion from screen coordinate (via mouse click) to real-world coordinate using something like this (where 'event' is a QMouseEvent):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Esri::ArcGISRuntime::Point point = m_mapView-&amp;gt;screenToLocation(event.x(), event.y());&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;auto latLong = Esri::ArcGISRuntime::CoordinateFormatter::toLatitudeLongitude(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; point,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; Esri::ArcGISRuntime::LatitudeLongitudeFormat::DecimalDegrees, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; 4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I end up with some wild numbers. in the latLong.x and latLong.y values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I then use:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #000000;"&gt;CoordinateFormatter::toLatitudeLongitude(point, LatitudeLongitudeFormat::DecimalDegrees, 4)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to convert it to text, I end up with N,S,E,W&amp;nbsp;notations on the end. Is there a way that I can simply get the coordinates in decimal degrees as doubles?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 06:31:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/decimal-degree-coordinates-in-double-format/m-p/78631#M384</guid>
      <dc:creator>ChrisPalmer2</dc:creator>
      <dc:date>2019-10-29T06:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Degree coordinates in Double format</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/decimal-degree-coordinates-in-double-format/m-p/78632#M385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There isn't an option for that currently. You could do some QString manipulation and split at the space, remove the last character of each resulting string, and add a - if S or W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 18:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/decimal-degree-coordinates-in-double-format/m-p/78632#M385</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2019-10-29T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Degree coordinates in Double format</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/decimal-degree-coordinates-in-double-format/m-p/78633#M386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I ended up doing. Thank you for the answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 19:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/decimal-degree-coordinates-in-double-format/m-p/78633#M386</guid>
      <dc:creator>ChrisPalmer2</dc:creator>
      <dc:date>2019-10-29T19:06:05Z</dc:date>
    </item>
  </channel>
</rss>

