<?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 Problems Initializing AGSSpatialReference in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-initializing-agsspatialreference/m-p/34071#M336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Nimesh. By the looks of it, I missed the [AGSPoint alloc]. Actually, no, I switched the lat and longs. Still, I'm thankful for extra eyes. Sorry for the unnecessary post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Mar 2010 21:10:51 GMT</pubDate>
    <dc:creator>ChanceYohman</dc:creator>
    <dc:date>2010-03-25T21:10:51Z</dc:date>
    <item>
      <title>Problems Initializing AGSSpatialReference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-initializing-agsspatialreference/m-p/34069#M334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="plain" name="code"&gt;//Also tried using epsg:4326 for the WKT cey 03.24.10
 AGSSpatialReference* wgs84 = [AGSSpatialReference spatialReferenceWithWKID:4326 WKT:@"GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.017453292519943295]]"];
 
 AGSPoint* denali = [AGSPoint pointWithX:69.0659000 y:-151.0074000 spatialReference:wgs84]; 
 
 [locator addressForLocation:denali maxSearchDistance:0];&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried initializing the spatial reference above with the given code. I used two different WKTs. It and the point appear to be fine. When I pass the point to the addressForLocation call, it executes and I end up in the didFailAddressForLocation function. Can anyone point out what I am doing wrong? The code block above begins on line 68 of AGSAddressCandidateViewController.m .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 17:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-initializing-agsspatialreference/m-p/34069#M334</guid>
      <dc:creator>ChanceYohman</dc:creator>
      <dc:date>2010-03-24T17:59:20Z</dc:date>
    </item>
    <item>
      <title>RE: Problems Initializing AGSSpatialReference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-initializing-agsspatialreference/m-p/34070#M335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is how you can initialize spatial reference and point,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSSpatialReference *wgs84 = [[AGSSpatialReference alloc] initWithWKID:4326 WKT:@"GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.017453292519943295]]"]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSPoint *denali = [[AGSPoint alloc] initWithX: -117.194958859564 y:34.0573637535114 spatialReference: wgs84];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can verify the result from code with following URL,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA/GeocodeServer/reverseGeocode?location=-117.194958859564%2C34.0573637535114&amp;amp;distance=0&amp;amp;f=pjson"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA/GeocodeServer/reverseGeocode?location=-117.194958859564%2C34.0573637535114&amp;amp;distance=0&amp;amp;f=pjson&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 15:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-initializing-agsspatialreference/m-p/34070#M335</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2010-03-25T15:48:52Z</dc:date>
    </item>
    <item>
      <title>Problems Initializing AGSSpatialReference</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-initializing-agsspatialreference/m-p/34071#M336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Nimesh. By the looks of it, I missed the [AGSPoint alloc]. Actually, no, I switched the lat and longs. Still, I'm thankful for extra eyes. Sorry for the unnecessary post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 21:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-initializing-agsspatialreference/m-p/34071#M336</guid>
      <dc:creator>ChanceYohman</dc:creator>
      <dc:date>2010-03-25T21:10:51Z</dc:date>
    </item>
  </channel>
</rss>

