<?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 Make XY Event Layer not taking .CSV info in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701132#M2331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a project going that requires an input XY to be mapped as a point before buffered. The XY point is in a .csv file and using the Make XY Event Layer results in an empty data set no matter what I do. I thought maybe it had something to do with the environments, hence why it is split into two at the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the csv file has the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;X_FIELD, Y_FIELD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;33.8, 118&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Env 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = "I:\InfoRequest"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InfoRequestNum = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loctable = "I:\InfoRequest\XYLocation.csv"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sitelocfeat = "XYLOC" + InfoRequestNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sitelocfeature = "XY_Loc_" + InfoRequestNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; locgdbtable = "XYLocation"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Import table to InfoRequestGDB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableToGeodatabase_conversion([loctable],&amp;nbsp; "I:\InfoRequest\InfoRequest.gdb")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Env 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = "I:\InfoRequest\InfoRequest.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeXYEventLayer_management(locgdbtable, "X_FIELD", "Y_FIELD", sitelocfeat)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureToPoint_management(sitelocfeat, sitelocfeature)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 22:23:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-04-11T22:23:14Z</dc:date>
    <item>
      <title>Make XY Event Layer not taking .CSV info</title>
      <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701132#M2331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a project going that requires an input XY to be mapped as a point before buffered. The XY point is in a .csv file and using the Make XY Event Layer results in an empty data set no matter what I do. I thought maybe it had something to do with the environments, hence why it is split into two at the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the csv file has the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;X_FIELD, Y_FIELD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;33.8, 118&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Env 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = "I:\InfoRequest"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InfoRequestNum = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loctable = "I:\InfoRequest\XYLocation.csv"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sitelocfeat = "XYLOC" + InfoRequestNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sitelocfeature = "XY_Loc_" + InfoRequestNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; locgdbtable = "XYLocation"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Import table to InfoRequestGDB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableToGeodatabase_conversion([loctable],&amp;nbsp; "I:\InfoRequest\InfoRequest.gdb")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Env 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = "I:\InfoRequest\InfoRequest.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeXYEventLayer_management(locgdbtable, "X_FIELD", "Y_FIELD", sitelocfeat)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureToPoint_management(sitelocfeat, sitelocfeature)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 22:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701132#M2331</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-11T22:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Make XY Event Layer not taking .CSV info</title>
      <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701133#M2332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any reason you're not going directly from the .csv file to a layer when using &lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;arcpy.MakeXYEventLayer_management ?&lt;BR /&gt;Simply use the MakeXYEventLayer tool to create a layer from the .csv file and then export the layer to your FGDB.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 11:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701133#M2332</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2013-04-12T11:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Make XY Event Layer not taking .CSV info</title>
      <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701134#M2333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was doing that in the beginning and was ending up with an empty data set, so I tried bringing it into the GDB as a table first (what the code is showing) and that table is empty as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any reason you're not going directly from the .csv file to a layer when using &lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;arcpy.MakeXYEventLayer_management ?&lt;BR /&gt;Simply use the MakeXYEventLayer tool to create a layer from the .csv file and then export the layer to your FGDB.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 13:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701134#M2333</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-12T13:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Make XY Event Layer not taking .CSV info</title>
      <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701135#M2334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post a snippet of your csv table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just made a "fake" csv file like this and tried it and it worked fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;X_FIELD, Y_FIELD, Stuff&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-88.472, 40.987, Mom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-87.5435, 33.0, Dad&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s.&amp;nbsp; Here's the code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
arcpy.MakeXYEventLayer_management("xyEvent.txt", "X_FIELD", "Y_FIELD", "XYlayer")
arcpy.CopyFeatures_management("XYlayer", "XY.gdb/POIs")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701135#M2334</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2021-12-12T05:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Make XY Event Layer not taking .CSV info</title>
      <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701136#M2335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mine looks exactly like yours, except I don't have a "stuff" type string field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe my issue is the " " which you have but I don't, though that seems like it would throw a code, not create the actual tables and points with empty data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 15:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701136#M2335</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-12T15:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Make XY Event Layer not taking .CSV info</title>
      <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701137#M2336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another issue I see is that your slashes are incorrect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) forward slashes = /&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) double backslashes = \\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) raw string = r&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;"I:\InfoRequest"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701137#M2336</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2013-04-12T17:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Make XY Event Layer not taking .CSV info</title>
      <link>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701138#M2337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: SStrand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks rdharles for the help, I've got it taking the X Y now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But..now the XY point isn't displaying on the map properly...on to the next issue!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/make-xy-event-layer-not-taking-csv-info/m-p/701138#M2337</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-15T14:52:46Z</dc:date>
    </item>
  </channel>
</rss>

