<?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 Adding feature with geographic coordinate in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-feature-with-geographic-coordinate/m-p/41021#M172</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 am quite new to use REST API and trying to add point feature to my feature service right now.&lt;/P&gt;&lt;P&gt;I successfully added features but locations were very different from where I expected.&lt;/P&gt;&lt;P&gt;My data has only geometry in latitude and longitude, so I suppose what I need to do is transform lat, lon values to web mercator projection before adding data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is that;&lt;/P&gt;&lt;P&gt;1) Can I specify spatial reference in add feature operation?&lt;/P&gt;&lt;P&gt;2) If I cannot specify the spatial reference in the operation, how can I transform lot &amp;amp; lon to web mercator coordinate values via REST API before add data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this kind of question was solved before, please suggest URL for the thread.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Apr 2017 11:53:19 GMT</pubDate>
    <dc:creator>HN1</dc:creator>
    <dc:date>2017-04-03T11:53:19Z</dc:date>
    <item>
      <title>Adding feature with geographic coordinate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-feature-with-geographic-coordinate/m-p/41021#M172</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 am quite new to use REST API and trying to add point feature to my feature service right now.&lt;/P&gt;&lt;P&gt;I successfully added features but locations were very different from where I expected.&lt;/P&gt;&lt;P&gt;My data has only geometry in latitude and longitude, so I suppose what I need to do is transform lat, lon values to web mercator projection before adding data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is that;&lt;/P&gt;&lt;P&gt;1) Can I specify spatial reference in add feature operation?&lt;/P&gt;&lt;P&gt;2) If I cannot specify the spatial reference in the operation, how can I transform lot &amp;amp; lon to web mercator coordinate values via REST API before add data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this kind of question was solved before, please suggest URL for the thread.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 11:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-feature-with-geographic-coordinate/m-p/41021#M172</guid>
      <dc:creator>HN1</dc:creator>
      <dc:date>2017-04-03T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding feature with geographic coordinate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-feature-with-geographic-coordinate/m-p/41022#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using "projectAs" as illustrated in line 11 below.&amp;nbsp; A bit more of this example is &lt;A _jive_internal="true" href="https://community.esri.com/thread/172327" target="_blank"&gt;shown here&lt;/A&gt;.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&amp;nbsp; 

&lt;SPAN class="comment token"&gt;# WGS 1984 : (4326) Lat/Lon&amp;nbsp; &lt;/SPAN&gt;
x &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;122.478470&lt;/SPAN&gt;&amp;nbsp; 
y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;37.819369&lt;/SPAN&gt; 

&lt;SPAN class="comment token"&gt;# If you know the reference numbers, you can use this:&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# WGS 1984 : (4326) Lat/Lon&amp;nbsp; &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# WGS 1984 Web Mercator (auxiliary sphere) : (102100) or (3857)&amp;nbsp; &lt;/SPAN&gt;

ptGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4326&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;projectAs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3857&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; ptGeometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;JSON&amp;nbsp; 
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; ptGeometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ptGeometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y ‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-feature-with-geographic-coordinate/m-p/41022#M173</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-10T21:35:28Z</dc:date>
    </item>
  </channel>
</rss>

