<?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: ArcGIS REST API: Generate - elaborating its usage in adding shapefile in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875496#M13515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is none that I am aware of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2020 12:13:31 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-09-10T12:13:31Z</dc:date>
    <item>
      <title>ArcGIS REST API: Generate - elaborating its usage in adding shapefile</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875494#M13513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌ -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suceeded in developing Web AppBuilder (Developer Edition) 2.16&amp;nbsp;custom widget to add zipped shapefile to 3D scene by&amp;nbsp;adapting code example:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-shapefile/index.html"&gt;Create a FeatureLayer from a shapefile&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example uses the next code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;var params = {&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; name: name,&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; targetSR: view.spatialReference,&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; maxRecordCount: 1000,&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; enforceInputFileSizeLimit: true,&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; enforceOutputJsonSizeLimit: true&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; };&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; // generalize features to 10 meters for better performance&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; params.generalize = true;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; params.maxAllowableOffset = 10;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; params.reducePrecision = true;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; params.numberOfDigitsAfterDecimal = 0;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;var myContent = {&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; filetype: "shapefile",&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; publishParameters: JSON.stringify(params),&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; f: "json"&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; };&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; request(portalUrl + "/sharing/rest/content/features/generate", {&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; query: myContent,&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; body: document.getElementById("uploadForm"),&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; responseType: "json"&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #993300;"&gt;&lt;EM&gt; })&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate explanations for the next&amp;nbsp;few questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I want to better understand the option capabilities that "params" give me.&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If I want to give my file by&amp;nbsp;&lt;SPAN&gt;"sourceUrl" parameter (instead of using the html form), e.g. for using url of zip file in my Amazon S3 cloud, how do I exacly specify it and its accompanying parameters? because no matter how I try, I get error:&amp;nbsp;"'Unable to generate features -- itemid', 'sourceUrl' or 'text' must be specified."&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Where can I see clear and elaborated documentation and examples of all the possible parameters of this API? since ArcGIS REST API - Generate has &lt;STRONG&gt;NO DOCUMENTATION&lt;/STRONG&gt; of the parameters "query", "body", "sourceUrl", and the documentation that exists there is far from being enough (I can't know whether to use "type" or "filetype", I totally can't understand what does "text" and how to use it, etc.) - it is just superficial and tells me nothing clear what to do.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be greatly appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 17:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875494#M13513</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-17T17:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST API: Generate - elaborating its usage in adding shapefile</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875495#M13514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Can you please refer to item "3" above? since I have not found detailed doc on&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ArcGIS REST API - Generate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 06:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875495#M13514</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-10T06:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST API: Generate - elaborating its usage in adding shapefile</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875496#M13515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is none that I am aware of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:13:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875496#M13515</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-09-10T12:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST API: Generate - elaborating its usage in adding shapefile</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875497#M13516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I thank you very much for answering.&lt;/P&gt;&lt;P&gt;At least I know that being newbie has not caused me to miss some documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate you for being a great help to many developers of esri WAB custom widgets.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/arcgis-rest-api-generate-elaborating-its-usage-in/m-p/875497#M13516</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-10T12:36:56Z</dc:date>
    </item>
  </channel>
</rss>

