<?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 ASGPS location does not convert to spatial reference of basemap in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/asgps-location-does-not-convert-to-spatial/m-p/501616#M4280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to display the device location using this mapserver, but the coordinates are not converted to the correct spatial reference automatically. (It becomes 0,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.onemap.sg/ArcGIS/rest/services/basemap/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.onemap.sg/ArcGIS/rest/services/basemap/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why this doesn't work? Thanks in advanced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
2010-12-07 16:51:48.231 Project R1[14243:207] AGSTiledMapServiceLayer SR: PROJCS["SVY21",GEOGCS["SVY21[WGS84]",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",28001.642],PARAMETER["False_Northing",38744.572],PARAMETER["Central_Meridian",103.8333333333333],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",1.366666666666667],UNIT["Meter",1.0]]

// NSLog(@"agsMapView gps enabled ? %@ : Location Device SR - %f, %f", agsMapView.gps.enabled ? @"Yes" : @"No", [agsMapView.gps currentLocation].coordinate.latitude, [agsMapView.gps currentLocation].coordinate.longitude);
// NSLog(@"agsMapView gps enabled ? %@ : Location Basemap SR - %f, %f", agsMapView.gps.enabled ? @"Yes" : @"No", [agsMapView.gps currentPoint].x, [agsMapView.gps currentPoint].y);

2010-12-07 16:51:48.534 Project R1[14243:207] UpdateLocation
2010-12-07 16:51:48.536 Project R1[14243:207] agsMapView gps enabled ? Yes : Location Device SR - -1.991306, -1.991307
2010-12-07 16:51:48.537 Project R1[14243:207] agsMapView gps enabled ? Yes : Location Basemap SR - 0.000000, 0.000000&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 22:00:43 GMT</pubDate>
    <dc:creator>KhairulNizam</dc:creator>
    <dc:date>2021-12-11T22:00:43Z</dc:date>
    <item>
      <title>ASGPS location does not convert to spatial reference of basemap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/asgps-location-does-not-convert-to-spatial/m-p/501616#M4280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to display the device location using this mapserver, but the coordinates are not converted to the correct spatial reference automatically. (It becomes 0,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.onemap.sg/ArcGIS/rest/services/basemap/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.onemap.sg/ArcGIS/rest/services/basemap/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why this doesn't work? Thanks in advanced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
2010-12-07 16:51:48.231 Project R1[14243:207] AGSTiledMapServiceLayer SR: PROJCS["SVY21",GEOGCS["SVY21[WGS84]",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",28001.642],PARAMETER["False_Northing",38744.572],PARAMETER["Central_Meridian",103.8333333333333],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",1.366666666666667],UNIT["Meter",1.0]]

// NSLog(@"agsMapView gps enabled ? %@ : Location Device SR - %f, %f", agsMapView.gps.enabled ? @"Yes" : @"No", [agsMapView.gps currentLocation].coordinate.latitude, [agsMapView.gps currentLocation].coordinate.longitude);
// NSLog(@"agsMapView gps enabled ? %@ : Location Basemap SR - %f, %f", agsMapView.gps.enabled ? @"Yes" : @"No", [agsMapView.gps currentPoint].x, [agsMapView.gps currentPoint].y);

2010-12-07 16:51:48.534 Project R1[14243:207] UpdateLocation
2010-12-07 16:51:48.536 Project R1[14243:207] agsMapView gps enabled ? Yes : Location Device SR - -1.991306, -1.991307
2010-12-07 16:51:48.537 Project R1[14243:207] agsMapView gps enabled ? Yes : Location Basemap SR - 0.000000, 0.000000&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/asgps-location-does-not-convert-to-spatial/m-p/501616#M4280</guid>
      <dc:creator>KhairulNizam</dc:creator>
      <dc:date>2021-12-11T22:00:43Z</dc:date>
    </item>
  </channel>
</rss>

