<?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: AddFeature in AGSFeatureLayer in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/addfeature-in-agsfeaturelayer/m-p/455666#M3904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the spatial reference of the map? What is the spatial reference of feature layer? Is that matching with geometry you are creating with 4326 spatial reference?&lt;/SPAN&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>Fri, 28 Dec 2012 17:22:18 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2012-12-28T17:22:18Z</dc:date>
    <item>
      <title>AddFeature in AGSFeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/addfeature-in-agsfeaturelayer/m-p/455665#M3903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to add a new feature on the map &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already build geometry and graphic, and i sure that graphic has got all the info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i still can't get a new feature on the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the cade , hope there has someone can help me fix the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSPictureMarkerSymbol *pt=[AGSPictureMarkerSymbol pictureMarkerSymbolWithImageNamed:@"ArcGIS.bundle/GpsDisplay.png"];&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; double lon = [[self.lonTextField text] doubleValue];
&amp;nbsp;&amp;nbsp;&amp;nbsp; double lat = [[self.latTextField text] doubleValue];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSPoint * newpoint2 = [AGSPoint pointWithX:lon y:lat spatialReference:[AGSSpatialReference spatialReferenceWithWKID:4326 WKT:nil]];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSMutableDictionary *dic2 = [[NSMutableDictionary alloc] init];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [dic2 setObject:self.typeTextField.text forKey:@"req_type"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [dic2 setObject:self.dateTextField.text forKey:@"req_date"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [dic2 setObject:self.timeTextField.text forKey:@"req_time"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [dic2 setObject:self.desTextView.text forKey:@"des"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [dic2 setObject:self.titleTextView.text forKey:@"title"];&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; [dic2 setObject:self.lonTextField.text forKey:@"x_coord"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; [dic2 setObject:self.latTextField.text forKey:@"y_coord"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSGraphic * graphic=[[AGSGraphic alloc]initWithGeometry:newpoint2 symbol:pt attributes:dic2 infoTemplateDelegate:nil];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.attributes = dic2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //update the service 
&amp;nbsp;&amp;nbsp;&amp;nbsp; [ev.activeFeatureLayer addFeatures:[NSArray arrayWithObject:graphic]];&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 06:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/addfeature-in-agsfeaturelayer/m-p/455665#M3903</guid>
      <dc:creator>winnieliu</dc:creator>
      <dc:date>2012-12-11T06:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: AddFeature in AGSFeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/addfeature-in-agsfeaturelayer/m-p/455666#M3904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the spatial reference of the map? What is the spatial reference of feature layer? Is that matching with geometry you are creating with 4326 spatial reference?&lt;/SPAN&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>Fri, 28 Dec 2012 17:22:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/addfeature-in-agsfeaturelayer/m-p/455666#M3904</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-12-28T17:22:18Z</dc:date>
    </item>
  </channel>
</rss>

