<?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 Creating Features from Map Service Identify in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473714#M37029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have users that request features to be created from when they "Identify" a feature in a map service. I am familiar with leveraging the arcpy FeatureSet class to obtain a json expression and forming features via that method, but from Operations supported in a REST interface. Would there be a way to capture the results of an Identify event when a user selects a feature on a map, and recording those results, so that they can be passed into the FeatureSet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 03:07:00 GMT</pubDate>
    <dc:creator>benberman</dc:creator>
    <dc:date>2016-05-13T03:07:00Z</dc:date>
    <item>
      <title>Creating Features from Map Service Identify</title>
      <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473714#M37029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have users that request features to be created from when they "Identify" a feature in a map service. I am familiar with leveraging the arcpy FeatureSet class to obtain a json expression and forming features via that method, but from Operations supported in a REST interface. Would there be a way to capture the results of an Identify event when a user selects a feature on a map, and recording those results, so that they can be passed into the FeatureSet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 03:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473714#M37029</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2016-05-13T03:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Features from Map Service Identify</title>
      <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473715#M37030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you working in ArcMap or a web app with ArcGIS Javascript API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 21:03:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473715#M37030</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-05-13T21:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Features from Map Service Identify</title>
      <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473716#M37031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Webapp. When I enable a popup, and click on a point on the map that falls within the feature layer, the service returns the attributes associated with that feature. I'm trying to come up with a way to do it by leveraging a script, so that the feature and its attributes may be copied to a fgdb feature class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 22:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473716#M37031</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2016-05-13T22:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Features from Map Service Identify</title>
      <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473717#M37032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might have to &lt;A href="http://server.arcgis.com/en/server/10.3/publish-services/windows/authoring-geoprocessing-tasks-with-python-scripts.htm"&gt;make your own geoprocessing service&lt;/A&gt; and call it with &lt;A href="https://community.esri.com/space/2128"&gt;ArcGIS API for JavaScript&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 22:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473717#M37032</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-05-13T22:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Features from Map Service Identify</title>
      <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473718#M37033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first add a button on the pop - up info in order to fire the creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;statsLink = dojo.create("a", {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; "class": "action",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; "innerHTML": "&amp;lt;img id='popupVSinfo' style ='WIDTH: 20px; HEIGHT: 20px' title='Create New Feature' src='images/InfoToolArea.png' &amp;gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; "href": "javascript:void(0);"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; }, dojo.query(".actionList", map.infoWindow.domNode)[0] );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign a function on this button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dojo.connect(statsLink, "onclick", CreateNewFeature);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside the function get the selected feature &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var graphic = map.infoWindow.getSelectedFeature();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and continue to apply edits on your feature service&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwd" style="color: #333333; font-weight: bold;"&gt;require&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;([&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #dd1144;"&gt;"esri/layers/FeatureLayer"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;...&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #333333; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;...&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #333333; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; firePerimeterFL &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #333333; font-weight: bold;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;...&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #333333; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; targetGraphic &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; firePerimeterFL&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;getSelectedFeatures&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;()[&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #009999;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;].&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;setGeometry&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;reshapedGeometry&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;&lt;BR /&gt;&amp;nbsp; firePerimeterFL&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;applyEdits&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #333333; font-weight: bold;"&gt;null&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;targetGraphic&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #333333; font-weight: bold;"&gt;null&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;...&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473718#M37033</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-05-16T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Features from Map Service Identify</title>
      <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473719#M37034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I'm working with a map service, not a feature service. So, would the getSelectedFeature() command still work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 22:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473719#M37034</guid>
      <dc:creator>benberman</dc:creator>
      <dc:date>2016-05-16T22:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Features from Map Service Identify</title>
      <link>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473720#M37035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pop - up can be enabled to Dynamic and Feature Services.&lt;/P&gt;&lt;P&gt;Try to use it because the selected coming from the infowindow&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;map.infoWindow.getSelectedFeature();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 06:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-features-from-map-service-identify/m-p/473720#M37035</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-05-17T06:47:35Z</dc:date>
    </item>
  </channel>
</rss>

