<?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: How to set Point Graphic feature in Geoprocessing Parameter in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-set-point-graphic-feature-in-geoprocessing/m-p/437854#M1344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this (pseudo code!):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//create the feature data
&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;List&amp;lt;Field&amp;gt; fields = new ArrayList&amp;lt;&amp;gt;();
fields.add(Field.createString("something", "something", 50));&lt;/SPAN&gt;

&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;FeatureCollectionTable&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; table &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;FeatureCollectionTable&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;(fields, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;GeometryType&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0086b3; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;.&lt;/SPAN&gt;POINT&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;SpatialReferences&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;getWgs84());&lt;/SPAN&gt;


List&amp;lt;Feature&amp;gt; features = new ArrayList&amp;lt;&amp;gt;();
Map&amp;lt;String, Object&amp;gt; attributes = new HashMap&amp;lt;&amp;gt;();
Point point0 = yourGraphic.getGeometry();

features.add(table.createFeature(attributes, point0));

table.addFeaturesAsync(features).get(10, TimeUnit.SECONDS);

GeoprocessingFeatures gpFeatures = new GeoprocessingFeatures(table);

parameters.getInputs().put("InputFeatures", gpFeatures);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this helps....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:29:10 GMT</pubDate>
    <dc:creator>EricBader</dc:creator>
    <dc:date>2021-12-12T16:29:10Z</dc:date>
    <item>
      <title>How to set Point Graphic feature in Geoprocessing Parameter</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-set-point-graphic-feature-in-geoprocessing/m-p/437853#M1343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am tried&amp;nbsp; to run&amp;nbsp; Buffer.gpk in ArcGIS Runtime for Java 100.1.0 Application. I have Three parameters(Graphic, Distance,output).How to Pass input Point Graphic into GeoprocessingParameters using subclasse&amp;nbsp;&lt;A href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/tasks/geoprocessing/GeoprocessingFeatures.html#GeoprocessingFeatures(com.esri.arcgisruntime.data.FeatureSet)" style="color: #006699; background-color: #ffffff; text-decoration: none;"&gt;GeoprocessingFeatures&lt;/A&gt;(&lt;SPAN style="color: #333333; background-color: #f6f6f6;"&gt;Corresponds to GPRecordSet or GPFeatureRecordSetLayer parameter types&lt;/SPAN&gt;). please help me.&lt;/P&gt;&lt;H1 style="border: 0px; font-size: 1.7em; margin: 0px 0px 10px;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-set-point-graphic-feature-in-geoprocessing/m-p/437853#M1343</guid>
      <dc:creator>Siva_SankaraReddy_T</dc:creator>
      <dc:date>2017-10-11T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Point Graphic feature in Geoprocessing Parameter</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-set-point-graphic-feature-in-geoprocessing/m-p/437854#M1344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this (pseudo code!):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//create the feature data
&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;List&amp;lt;Field&amp;gt; fields = new ArrayList&amp;lt;&amp;gt;();
fields.add(Field.createString("something", "something", 50));&lt;/SPAN&gt;

&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;FeatureCollectionTable&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; table &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;FeatureCollectionTable&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;(fields, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;GeometryType&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0086b3; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;.&lt;/SPAN&gt;POINT&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;SpatialReferences&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;getWgs84());&lt;/SPAN&gt;


List&amp;lt;Feature&amp;gt; features = new ArrayList&amp;lt;&amp;gt;();
Map&amp;lt;String, Object&amp;gt; attributes = new HashMap&amp;lt;&amp;gt;();
Point point0 = yourGraphic.getGeometry();

features.add(table.createFeature(attributes, point0));

table.addFeaturesAsync(features).get(10, TimeUnit.SECONDS);

GeoprocessingFeatures gpFeatures = new GeoprocessingFeatures(table);

parameters.getInputs().put("InputFeatures", gpFeatures);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this helps....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-set-point-graphic-feature-in-geoprocessing/m-p/437854#M1344</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2021-12-12T16:29:10Z</dc:date>
    </item>
  </channel>
</rss>

