<?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: Add Point Feature to Layer, point in wrong location in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1072199#M6798</link>
    <description>&lt;P&gt;Thanks! &amp;nbsp;That fixed my problem, I thought specifying the SpatialReference in the CreateMapPoint was good enough.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 18:20:35 GMT</pubDate>
    <dc:creator>TimothyReed1</dc:creator>
    <dc:date>2021-06-24T18:20:35Z</dc:date>
    <item>
      <title>Add Point Feature to Layer, point in wrong location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1071927#M6792</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've been working at this for a bit and cannot seem to figure out what's going on. &amp;nbsp;I have a latitude/longitude in decimal degrees that I am trying to add to a feature service from a plugin that I am writing in the Pro SDK. &amp;nbsp;The resultant point that is created is dropped in the incorrect location (see attachments). &amp;nbsp;In the Java Runtime, I would just use CoordinateFormatter.fromLatitudeLongitude.&lt;/P&gt;&lt;P&gt;&amp;nbsp; What did I miss?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Result" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16809iF251F2D5007848C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-06-24 at 6.57.15 AM.png" alt="Result" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Result&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Code" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16808i8FA9CFB3D69E98DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-06-24 at 6.58.05 AM.png" alt="Code" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Code&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 11:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1071927#M6792</guid>
      <dc:creator>TimothyReed1</dc:creator>
      <dc:date>2021-06-24T11:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add Point Feature to Layer, point in wrong location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1071974#M6795</link>
      <description>&lt;P&gt;I would suggest anytime that a feature is put in the wrong location, to check the coordinate system.&amp;nbsp; I have seen many times when working with X, Y data initially the data being rendered in odd locations.&amp;nbsp; Just about every time the issue is the coordinate system is not correct.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 13:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1071974#M6795</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-24T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add Point Feature to Layer, point in wrong location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1071998#M6796</link>
      <description>&lt;P&gt;Gary is correct, you have to change your shape's projection to match the projection of your layer:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var mapPointProjected = GeometryEngine.Instance.Project(newMapPoint, testLayer.GetSpatialReference());&lt;/LI-CODE&gt;&lt;P&gt;then use mapPointProjected as the shape value in your attr dictionary.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 13:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1071998#M6796</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-24T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Point Feature to Layer, point in wrong location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1072199#M6798</link>
      <description>&lt;P&gt;Thanks! &amp;nbsp;That fixed my problem, I thought specifying the SpatialReference in the CreateMapPoint was good enough.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 18:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-point-feature-to-layer-point-in-wrong-location/m-p/1072199#M6798</guid>
      <dc:creator>TimothyReed1</dc:creator>
      <dc:date>2021-06-24T18:20:35Z</dc:date>
    </item>
  </channel>
</rss>

