<?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 Change Coordinates for Offline Map in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-coordinates-for-offline-map/m-p/362430#M2376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am using cached maps on a Nexus 7 that I created using the ArcGIS Desktop application ArcMap 10.1. I get the maps to display no problem, but to place a point on the map I have to use the geolocation in meters. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Point p = new Point(-8344494.546, 4806153.75);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic g = new Graphic(p, new SimpleMarkerSymbol(Color.RED, 25, STYLE.CIRCLE));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This displays a red dot at the location I want, but I want to use Latitude and Longitude versus the meter units used above to make Point p.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to create a map that uses Decimal Degrees so I can create a point using Latitude and Longitude? Do I need to do unit conversions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 14:47:42 GMT</pubDate>
    <dc:creator>GSauers</dc:creator>
    <dc:date>2012-12-21T14:47:42Z</dc:date>
    <item>
      <title>Change Coordinates for Offline Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-coordinates-for-offline-map/m-p/362430#M2376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am using cached maps on a Nexus 7 that I created using the ArcGIS Desktop application ArcMap 10.1. I get the maps to display no problem, but to place a point on the map I have to use the geolocation in meters. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Point p = new Point(-8344494.546, 4806153.75);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic g = new Graphic(p, new SimpleMarkerSymbol(Color.RED, 25, STYLE.CIRCLE));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This displays a red dot at the location I want, but I want to use Latitude and Longitude versus the meter units used above to make Point p.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to create a map that uses Decimal Degrees so I can create a point using Latitude and Longitude? Do I need to do unit conversions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 14:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-coordinates-for-offline-map/m-p/362430#M2376</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2012-12-21T14:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change Coordinates for Offline Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-coordinates-for-offline-map/m-p/362431#M2377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can just using Project methond on GeometryEngine class. This is the correct way to do spatail reference convertion. For instance, if your spatial reference of map is WGS1984 WebMercator(wkid3857) and you want to convert the coords to latitude and longitude, just set the in sr=3857 and out sr=4326(WGS1984).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Dec 2012 23:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-coordinates-for-offline-map/m-p/362431#M2377</guid>
      <dc:creator>wangzhifang</dc:creator>
      <dc:date>2012-12-25T23:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change Coordinates for Offline Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-coordinates-for-offline-map/m-p/362432#M2378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the response. I used the following lines of code to convert the coordinates, which were placed in the OnStatusChanged method within onCreate(). Hope this helps others in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;double y = 30.27546;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;double x = -55.05836;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Point p = new Point(x, y);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Point mapPoint = (Point) GeometryEngine.project(p, SpatialReference.create(4326), map.getSpatialReference());&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic graphic = new Graphic(p,new SimpleMarkerSymbol(Color.RED,25,STYLE.CIRCLE));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gLayer.addGraphic(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addLayer(gLayer);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 14:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/change-coordinates-for-offline-map/m-p/362432#M2378</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2012-12-31T14:46:49Z</dc:date>
    </item>
  </channel>
</rss>

