<?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 How to pass Features as GPstring in Localserver in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-pass-features-as-gpstring-in-localserver/m-p/625657#M7646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to create a geopackage of Observer Points and provide arcgis runtime support. While creating in ArcGIS Pro i have provided the inputs a &lt;STRONG&gt;raster image&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;Feature Points.&amp;nbsp;&lt;/STRONG&gt;Now i am trying to run this package with arcgis runtime localserver, it has asking the Observer Point Features in GPString.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/474023_GeopackageObserverPoint.PNG" /&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create a new feature collection table based upon point geometries using the current map view spatial reference&lt;BR /&gt; FeatureCollectionTable myInputFeatures = new FeatureCollectionTable(new List&amp;lt;Field&amp;gt;(), GeometryType.Point, MyMapView.SpatialReference);&lt;/P&gt;&lt;P&gt;// Create a new feature from the feature collection table. It will not have a coordinate location (x,y) yet&lt;BR /&gt; Feature myInputFeature = myInputFeatures.CreateFeature();&lt;/P&gt;&lt;P&gt;// Assign a physical location to the new point feature based upon where the user clicked in the map view&lt;BR /&gt; myInputFeature.Geometry = location;&lt;/P&gt;&lt;P&gt;// Add the new feature with (x,y) location to the feature collection table&lt;BR /&gt; await myInputFeatures.AddFeatureAsync(myInputFeature);&lt;/P&gt;&lt;P&gt;// Create the parameters that are passed to the used geoprocessing task&lt;BR /&gt; GeoprocessingParameters myViewshedParameters =&lt;BR /&gt; new GeoprocessingParameters(GeoprocessingExecutionType.SynchronousExecute)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;// Request the output features to use the same SpatialReference as the map view&lt;BR /&gt; OutputSpatialReference = MyMapView.SpatialReference&lt;BR /&gt; };&lt;BR /&gt; // Add an input location to the geoprocessing parameters&lt;BR /&gt; myViewshedParameters.Inputs.Add("in_observer_point_features", new GeoprocessingFeatures(myInputFeatures));&lt;BR /&gt; myViewshedParameters.Inputs.Add("in_raster", new GeoprocessingString(@"D:\ArcGISPro\ArcGISPro\Documentation\Files\Maps\IndiaMap\gt30e060n40.tif"));&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The above code is where i have creating the feature points from the mouse tap event. and storing it in a feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a way where i can transfer these &lt;STRONG&gt;Features as a string as the Geopackage input type is GPString.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;G N Sharan Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2019 06:12:12 GMT</pubDate>
    <dc:creator>Sharan_saiGudibanda_Nagesh</dc:creator>
    <dc:date>2019-11-20T06:12:12Z</dc:date>
    <item>
      <title>How to pass Features as GPstring in Localserver</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-pass-features-as-gpstring-in-localserver/m-p/625657#M7646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to create a geopackage of Observer Points and provide arcgis runtime support. While creating in ArcGIS Pro i have provided the inputs a &lt;STRONG&gt;raster image&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;Feature Points.&amp;nbsp;&lt;/STRONG&gt;Now i am trying to run this package with arcgis runtime localserver, it has asking the Observer Point Features in GPString.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/474023_GeopackageObserverPoint.PNG" /&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create a new feature collection table based upon point geometries using the current map view spatial reference&lt;BR /&gt; FeatureCollectionTable myInputFeatures = new FeatureCollectionTable(new List&amp;lt;Field&amp;gt;(), GeometryType.Point, MyMapView.SpatialReference);&lt;/P&gt;&lt;P&gt;// Create a new feature from the feature collection table. It will not have a coordinate location (x,y) yet&lt;BR /&gt; Feature myInputFeature = myInputFeatures.CreateFeature();&lt;/P&gt;&lt;P&gt;// Assign a physical location to the new point feature based upon where the user clicked in the map view&lt;BR /&gt; myInputFeature.Geometry = location;&lt;/P&gt;&lt;P&gt;// Add the new feature with (x,y) location to the feature collection table&lt;BR /&gt; await myInputFeatures.AddFeatureAsync(myInputFeature);&lt;/P&gt;&lt;P&gt;// Create the parameters that are passed to the used geoprocessing task&lt;BR /&gt; GeoprocessingParameters myViewshedParameters =&lt;BR /&gt; new GeoprocessingParameters(GeoprocessingExecutionType.SynchronousExecute)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;// Request the output features to use the same SpatialReference as the map view&lt;BR /&gt; OutputSpatialReference = MyMapView.SpatialReference&lt;BR /&gt; };&lt;BR /&gt; // Add an input location to the geoprocessing parameters&lt;BR /&gt; myViewshedParameters.Inputs.Add("in_observer_point_features", new GeoprocessingFeatures(myInputFeatures));&lt;BR /&gt; myViewshedParameters.Inputs.Add("in_raster", new GeoprocessingString(@"D:\ArcGISPro\ArcGISPro\Documentation\Files\Maps\IndiaMap\gt30e060n40.tif"));&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The above code is where i have creating the feature points from the mouse tap event. and storing it in a feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a way where i can transfer these &lt;STRONG&gt;Features as a string as the Geopackage input type is GPString.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;G N Sharan Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 06:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-pass-features-as-gpstring-in-localserver/m-p/625657#M7646</guid>
      <dc:creator>Sharan_saiGudibanda_Nagesh</dc:creator>
      <dc:date>2019-11-20T06:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Features as GPstring in Localserver</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-pass-features-as-gpstring-in-localserver/m-p/625658#M7647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When packaging (or creating your model/script) you should specify that input parameter as a FeatureSet, which will match with the&amp;nbsp;API type&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Tasks_Geoprocessing_GeoprocessingFeatures.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/T_Esri_ArcGISRuntime_Tasks_Geoprocessing_GeoprocessingFeatures.htm"&gt;GeoprocessingFeatures Class&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a sample see:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/analyze-viewshed-geoprocessing/" title="https://developers.arcgis.com/net/latest/wpf/sample-code/analyze-viewshed-geoprocessing/"&gt;Analyze viewshed (geoprocessing) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/author-and-publish-a-geoprocessing-model.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/author-and-publish-a-geoprocessing-model.htm"&gt;Author and publish a geoprocessing model—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 20:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-pass-features-as-gpstring-in-localserver/m-p/625658#M7647</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-01-23T20:47:52Z</dc:date>
    </item>
  </channel>
</rss>

