<?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: MakeXYEventLayer Issues with .csv in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382753#M30149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try switching positions. Longitude is your X and latitude is your Y&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 21:14:01 GMT</pubDate>
    <dc:creator>AmyKlug</dc:creator>
    <dc:date>2014-04-16T21:14:01Z</dc:date>
    <item>
      <title>MakeXYEventLayer Issues with .csv</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382752#M30148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been working on plotting points on to a world map using latitude longitude coordinates in a .csv file, but they are always plotted in the wrong location. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeXYEventLayer_management('C:/FilePath.../SafeCastData.csv',"Latitude","Longitude","TestPlot", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]u'GeographicCoordinateSystem/World/WGS 1984',"Value")[/INDENT] [/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This plots them all at the south pole in the World Topology Basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What Works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a geodatabase, importing csv file into a table, adding data to ArcMAP table of contents, and clicking Display XY... with all of the same settings as above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does using a geodatabase work, but not a csv file? I really need a way to work on the file directly in the python code, and not through ArcMAP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 19:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382752#M30148</guid>
      <dc:creator>KarlRoth</dc:creator>
      <dc:date>2014-04-16T19:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer Issues with .csv</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382753#M30149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try switching positions. Longitude is your X and latitude is your Y&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 21:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382753#M30149</guid>
      <dc:creator>AmyKlug</dc:creator>
      <dc:date>2014-04-16T21:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer Issues with .csv</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382754#M30150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, Thanks! Now I am able to plot my data, but my PointToRaster_conversion() function is not showing up, and it is displaying the wrong values in the table of contents. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Displays values&amp;nbsp; 3.40282e-038- 3.40282e+038 (I assume that's the max and min values allowed!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My actual value range is from 20-40&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the attribute table of my point feature class, and all of the "Values" look fine...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what's going on here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 00:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382754#M30150</guid>
      <dc:creator>KarlRoth</dc:creator>
      <dc:date>2014-04-18T00:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer Issues with .csv</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382755#M30151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry I thought I added that part of the code. Here is my point to raster conversion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.PointToRaster_conversion(feature class name, "Value", out data name, "MEAN", "Vaule", 10000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 00:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382755#M30151</guid>
      <dc:creator>KarlRoth</dc:creator>
      <dc:date>2014-04-18T00:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer Issues with .csv</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382756#M30152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Karl,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure this is the problem, but I thought it was worth point out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.PointToRaster_conversion(feature class name, "Value", out data name, "MEAN", "Vaule", 10000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First you have a syntax error I'm assuming "Vaule" should be "Value".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, the 5th parameter, which is priority field should only be used when you use the MOST_FREQUENT cell assignment(4th parameter).&amp;nbsp; It should probably left just a blank string when you use "Mean" cell assignment.&amp;nbsp; This may or may not have anything to do with you getting the wrong values.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.PointToRaster_conversion(feature class name, "Value", out data name, "MEAN", "", 10000)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 16:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382756#M30152</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-04-18T16:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer Issues with .csv</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382757#M30153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ian, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried all that, and it still didn't work. I can only get PointToRaster to work if I first use Display XY Data on a geodatabase, but both methods (Display XY Data and MakeXYEventLayer) create a multipoint feature class. What's going on here? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The weird thing is that I'm not getting any error messages. Just no output.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 22:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382757#M30153</guid>
      <dc:creator>KarlRoth</dc:creator>
      <dc:date>2014-04-18T22:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer Issues with .csv</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382758#M30154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does it work using the point to raster geoprocessing tool?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 16:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-issues-with-csv/m-p/382758#M30154</guid>
      <dc:creator>AmyKlug</dc:creator>
      <dc:date>2014-04-21T16:09:47Z</dc:date>
    </item>
  </channel>
</rss>

