<?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: When location data is missing in CSV file in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421623#M24082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a strong aversion to using csv (text), or excel etc as a primary source of spatial data.&lt;/P&gt;&lt;P&gt;It is obviously useless to have points created at some arbitrary "no data" location such as -99, -99. Unless you really need them like that. That will depend or workflow and your need for this data.&lt;/P&gt;&lt;P&gt;What I would do is create a personal geodatabase (Access mdb)&amp;nbsp; in ArcCatalog. Then use the import tools in Access to import the csv to a db table. These tools have much more control on the type (double, text etc) of fields to be created.&lt;/P&gt;&lt;P&gt;Once you have the table you can create queries to either update your "no data" values to some standard, rather than having some at -99 and others at -999, or filter them out altogether.&lt;/P&gt;&lt;P&gt;Then create a new table with only the data you want to use.&lt;/P&gt;&lt;P&gt;Then you can use the Create Feature class from XY table tools in Catalog or ArcMap.&lt;/P&gt;&lt;P&gt;Don't forget to properly define the coordinate system of the XY columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 06:19:03 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2015-12-22T06:19:03Z</dc:date>
    <item>
      <title>When location data is missing in CSV file</title>
      <link>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421622#M24081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a CSV file with points and their location (in longitude and latitude).&lt;/P&gt;&lt;P&gt;I notice that some longitude and latitude cells have -99 or -999. I am guessing they are null values?&lt;/P&gt;&lt;P&gt;I made it into a shapefile but the location is way off because ArcGIS is still reading these -99 and -999 values.&lt;/P&gt;&lt;P&gt;If I replace these values with &amp;lt;NULL&amp;gt; in the CSV file, would the location of the other values (which are correct) be showing in the right place on the map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to delete the records that have these -99 and -999 values although I realize that when a point shapefile is made there is a point (thus, a location) for every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think maybe I could just keep the original CSV file with the -99 and -999 values, make a copy of it, delete these records and make a shapefile out of it (though I have to double check with the person who is also working with me).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another solution though?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 05:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421622#M24081</guid>
      <dc:creator>EninnaLuli1</dc:creator>
      <dc:date>2015-12-22T05:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: When location data is missing in CSV file</title>
      <link>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421623#M24082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a strong aversion to using csv (text), or excel etc as a primary source of spatial data.&lt;/P&gt;&lt;P&gt;It is obviously useless to have points created at some arbitrary "no data" location such as -99, -99. Unless you really need them like that. That will depend or workflow and your need for this data.&lt;/P&gt;&lt;P&gt;What I would do is create a personal geodatabase (Access mdb)&amp;nbsp; in ArcCatalog. Then use the import tools in Access to import the csv to a db table. These tools have much more control on the type (double, text etc) of fields to be created.&lt;/P&gt;&lt;P&gt;Once you have the table you can create queries to either update your "no data" values to some standard, rather than having some at -99 and others at -999, or filter them out altogether.&lt;/P&gt;&lt;P&gt;Then create a new table with only the data you want to use.&lt;/P&gt;&lt;P&gt;Then you can use the Create Feature class from XY table tools in Catalog or ArcMap.&lt;/P&gt;&lt;P&gt;Don't forget to properly define the coordinate system of the XY columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 06:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421623#M24082</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-12-22T06:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: When location data is missing in CSV file</title>
      <link>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421624#M24083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on the version you are using, I would recommend a file gdb over a personal GDB...you will most likely have fewer issue down the line, especially if you start reaching the limits of Access.&lt;/P&gt;&lt;P&gt;I had written these instructions up a couple days ago for another thread...I'll include them here.&lt;/P&gt;&lt;P&gt;''''&lt;/P&gt;&lt;P&gt;ake a look at this help topic &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Fdesktop%2Flatest%2Ftools%2Fdata-management-toolbox%2Fmake-xy-event-layer.htm" rel="nofollow" target="_blank"&gt;Make XY Event Layer—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the python syntax is&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;MakeXYEventLayer_management (table, in_x_field, in_y_field, out_layer, {spatial_reference}, {in_z_field})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Spatial_reference refers to the coordinates of you XY coordinates, not what you want them to be.&amp;nbsp; You can also do this thru the toolbox.&amp;nbsp; Make sure to choose the correct coordinate system for the input.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image" height="371" src="https://community.esri.com/legacyfs/online/159614_pastedImage_4.png" style="width: 426px; height: 370.562px;" width="426" /&gt;&lt;/P&gt;&lt;P&gt;Also remember, that an Event table is not permanent, so you will want to save it as a shape of feature-class.&amp;nbsp; If you want, you can use the projection tool from the Event table in geographic coordinates to a new projection,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re the -99 values.&amp;nbsp; I see a purpose for having records in a database with a set "no location" value (based on work I've done in the past).&amp;nbsp; I suggest picking a coordinate that is within your extent, but a location that isn't needed (in the ocean, or lake....someplace obvious) then add a field with a flag each record as usable or not when doing calculations based on location.&amp;nbsp; Reselect to eliminate these records from and of those type of calculations.&amp;nbsp; Just a thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many ways to do get to the same end game.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 16:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421624#M24083</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-12-22T16:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: When location data is missing in CSV file</title>
      <link>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421625#M24084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, there are always many ways to skin the cat (apologies to cat lovers...)&lt;/P&gt;&lt;P&gt;And, of course I do use fgdb's extensively. My only point was, when importing a text file, the access importer gives you much more control as to which field get defined as what.&lt;/P&gt;&lt;P&gt;And, as long as you have &amp;lt; 1million (?) records, space is not a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421625#M24084</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-12-22T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: When location data is missing in CSV file</title>
      <link>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421626#M24085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought you would be a FGDB guy...was surprised that you suggested the other.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 18:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/when-location-data-is-missing-in-csv-file/m-p/421626#M24085</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-12-22T18:32:57Z</dc:date>
    </item>
  </channel>
</rss>

