<?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: Create Point from XY in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1160394#M26256</link>
    <description>&lt;P&gt;This works for me:&lt;/P&gt;&lt;P&gt;in_X = arcpy.GetParameterAsText(0)&lt;BR /&gt;in_Y = arcpy.GetParameterAsText(1)&lt;BR /&gt;&lt;BR /&gt;point = arcpy.Point(in_X,in_Y)&lt;BR /&gt;sr = arcpy.SpatialReference("WGS 1984")&lt;BR /&gt;pointGeometry = arcpy.PointGeometry(point,sr)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 18:53:28 GMT</pubDate>
    <dc:creator>JyotiRohodia</dc:creator>
    <dc:date>2022-04-01T18:53:28Z</dc:date>
    <item>
      <title>Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035449#M25269</link>
      <description>&lt;P&gt;How can I create a point from two projected coordinates?&amp;nbsp; I want to take two strings as input (X and Y) and then create a geometry at that point, re-project to WGS84 and add the result to the map?&amp;nbsp; The reason I am doing this is to publish as a GP service to consume in an AWAB application via the GP widget. Sounds easy, but stuck at creating the point! Any pointers appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 14:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035449#M25269</guid>
      <dc:creator>RobDunfey</dc:creator>
      <dc:date>2021-03-11T14:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035465#M25270</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/xy-table-to-point.htm" target="_blank" rel="noopener"&gt;XY Table To Point (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-xy-event-layer.htm" target="_blank"&gt;Make XY Event Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can even use Excel To Table&lt;/P&gt;&lt;P&gt;You need to define the coordinate system of your points first, then if you need another coordinate system, you can use the Project tool to produce a featureclass in the desired coordinates&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 14:55:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035465#M25270</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-11T14:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035467#M25271</link>
      <description>&lt;P&gt;Hi Dan, I see that but it requires a table as input?&amp;nbsp; I want to publish two strings as parameters so the user is prompted for the X and Y, otherwise they have to create a table in something like excel?&lt;/P&gt;&lt;P&gt;Congrats on your retirement and thanks for taking the time to help.&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 14:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035467#M25271</guid>
      <dc:creator>RobDunfey</dc:creator>
      <dc:date>2021-03-11T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035471#M25272</link>
      <description>&lt;P&gt;Thanks Rob.&lt;/P&gt;&lt;P&gt;A table as input is the easiest, especially since the coordinate system has to be dealt with and reprojecting to another.&amp;nbsp; No one is going to know the location of a point in Web Mercator coordinates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that you want a degree of interactivity that doesn't fall within the "geoprocessing" category but more web app based.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 15:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035471#M25272</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-11T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035591#M25276</link>
      <description>&lt;P&gt;So I've got this far, but a broken link when the result is added to the display in ArcGIS Pro...&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;long = arcpy.GetParameterAsText(0)&lt;BR /&gt;lat = arcpy.GetParameterAsText(1)&lt;/P&gt;&lt;P&gt;point = arcpy.Point(float(long), float(lat))&lt;BR /&gt;loc = arcpy.PointGeometry(point)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;locfeatures = r"memory\locfeatures"&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management(loc, locfeatures)&lt;BR /&gt;arcpy.SetParameter(2, locfeatures)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 18:32:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035591#M25276</guid>
      <dc:creator>RobDunfey</dc:creator>
      <dc:date>2021-03-11T18:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035697#M25278</link>
      <description>&lt;P&gt;Not sure what you mean but... from&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-feature-layer.htm" target="_blank"&gt;Make Feature Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The temporary feature layer can be saved as a layer file using the Save To Layer File tool or can be saved as a new feature class using the Copy Features tool.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It has to go somewhere (eg into a gdb)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 21:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035697#M25278</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-11T21:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035832#M25279</link>
      <description>&lt;P&gt;Hi Dan, I found one of your previous posts on another thread which fixed my GP issue last night.&amp;nbsp; The trick was to run copy features before running MakeFeatureLayer, so thanks for that.&amp;nbsp; I've attached a word document which explains what I'm doing.&amp;nbsp; I now have an issue with the AWAB GP tool so will head over there and see if I can find an answer.&amp;nbsp; Appreciate your help, Thanks, Rob.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 07:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1035832#M25279</guid>
      <dc:creator>RobDunfey</dc:creator>
      <dc:date>2021-03-12T07:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point from XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1160394#M26256</link>
      <description>&lt;P&gt;This works for me:&lt;/P&gt;&lt;P&gt;in_X = arcpy.GetParameterAsText(0)&lt;BR /&gt;in_Y = arcpy.GetParameterAsText(1)&lt;BR /&gt;&lt;BR /&gt;point = arcpy.Point(in_X,in_Y)&lt;BR /&gt;sr = arcpy.SpatialReference("WGS 1984")&lt;BR /&gt;pointGeometry = arcpy.PointGeometry(point,sr)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 18:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-point-from-xy/m-p/1160394#M26256</guid>
      <dc:creator>JyotiRohodia</dc:creator>
      <dc:date>2022-04-01T18:53:28Z</dc:date>
    </item>
  </channel>
</rss>

