<?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 Add Feature Polygon via REST API in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1088125#M41685</link>
    <description>&lt;P&gt;I'm trying to add a feature layer via REST API, but its not working. I only have 4 corners coordinates. Below is my code.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;'geometry' =&amp;gt; [
                'hasZ'  =&amp;gt; false,
                'hasM'  =&amp;gt; false,
                'rings' =&amp;gt; [[[121.458756,15.807697],[121.458784,15.807773],[121.459115,15.807692],[121.459088,15.807596],[121.458756,15.807697]]],
                'spatialReference' =&amp;gt; [
                    "wkid" =&amp;gt; 4326
                 ]   
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 20:28:01 GMT</pubDate>
    <dc:creator>lougalban</dc:creator>
    <dc:date>2021-08-11T20:28:01Z</dc:date>
    <item>
      <title>Add Feature Polygon via REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1088125#M41685</link>
      <description>&lt;P&gt;I'm trying to add a feature layer via REST API, but its not working. I only have 4 corners coordinates. Below is my code.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;'geometry' =&amp;gt; [
                'hasZ'  =&amp;gt; false,
                'hasM'  =&amp;gt; false,
                'rings' =&amp;gt; [[[121.458756,15.807697],[121.458784,15.807773],[121.459115,15.807692],[121.459088,15.807596],[121.458756,15.807697]]],
                'spatialReference' =&amp;gt; [
                    "wkid" =&amp;gt; 4326
                 ]   
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 20:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1088125#M41685</guid>
      <dc:creator>lougalban</dc:creator>
      <dc:date>2021-08-11T20:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add Feature Polygon via REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1088151#M41687</link>
      <description>&lt;P&gt;which api is this? I don't get the syntax =&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn't rings be closed off with a repeat of the initial vertex?&amp;nbsp; Do you have a reference to where you've got this from?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 21:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1088151#M41687</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-08-11T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add Feature Polygon via REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1088263#M41696</link>
      <description>&lt;P&gt;Hi thank you for the response, I'm very new to ArcGIS. It was close, first and last is same coordinates.. Did I do it wrong?&lt;BR /&gt;&lt;BR /&gt;This is my reference:&lt;BR /&gt;Add Feature API:&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/add-features.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/add-features.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;Geometry Polygon:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 05:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1088263#M41696</guid>
      <dc:creator>lougalban</dc:creator>
      <dc:date>2021-08-12T05:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Feature Polygon via REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1120325#M43094</link>
      <description>&lt;P&gt;You need to create a properly formatted JSON feature object.&lt;BR /&gt;&lt;BR /&gt;It would look something like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[{
	"geometry": {
		"rings": [
			[
				[121.458756, 15.807697],
				[121.458784, 15.807773],
				[121.459115, 15.807692],
				[121.459088, 15.807596],
				[121.458756, 15.807697]
			]
		],
		"spatialReference": {
			"wkid": 4326
		}
	}
}]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 16:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-feature-polygon-via-rest-api/m-p/1120325#M43094</guid>
      <dc:creator>AmandaRing</dc:creator>
      <dc:date>2021-11-25T16:04:03Z</dc:date>
    </item>
  </channel>
</rss>

