<?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: Creating Feature Class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314653#M24467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try printing the data from the numpy array before you use it for building the shapefile; verifying that the data is in fact in the numpy array before you use it to build the shapefile. Problem could possibly be how the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;datarray &lt;/SPAN&gt;and dtype map out to one another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;npyarr['LONGITUDE']&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;print npyarr['LATITUDE']&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 13:50:08 GMT</pubDate>
    <dc:creator>DallasShearer</dc:creator>
    <dc:date>2014-12-17T13:50:08Z</dc:date>
    <item>
      <title>Creating Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314647#M24461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.da.NumPyArrayToFeatureClass(npyarr, out_fc, ['LONGITUDE','LATITUDE'], sr) to create a shape file but it is removing my Latitude and Longitude fields which I want to include in my JavaScript table.&amp;nbsp; Not sure why it is doing this.&amp;nbsp; It creates my shapefile but removes these two columns.&amp;nbsp; Anyway you know of that I can keep them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my dtype:&lt;/P&gt;&lt;P&gt;[('YEAR', '&amp;lt;i4'), ('REGIONID', '&amp;lt;i4'), ('DISTRICTID', '&amp;lt;i4'), ('REGIONNAME', '|S255'), ('DISTRICTNAME', '|S255'), ('DIVLOC', '|S255'), ('STORENAME', '|S255'), ('CLUSTER', '|S255'), ('SUBID', '|S255'), ('SUBNAME', '|S255'), ('SEQUENCE', '&amp;lt;i4'), ('S_AREA', '&amp;lt;i4'), ('FS_AREA', '&amp;lt;i4'), ('ST_AREA', '&amp;lt;i4'), ('FR_AREA', '&amp;lt;i4'), ('SO_AREA', '&amp;lt;i4'), ('SL_AREA', '&amp;lt;i4'), ('TOTALSALES', '&amp;lt;i4'), ('OWNEDSALES', '&amp;lt;i4'), ('LEASEDSALES', '&amp;lt;i4'), ('GM', '&amp;lt;i4'), ('PROD', '&amp;lt;i4'), ('GMPROD', '&amp;lt;i4'),&lt;STRONG&gt; ('LATITUDE', '&amp;lt;f8'), ('LATITUDE1', '&amp;lt;f8'), ('LONGITUDE', '&amp;lt;f8'),&lt;/STRONG&gt; ('LONGITUDE1', '&amp;lt;f8'), ('RANKSALESSUB', '&amp;lt;i4'), ('RANKPRODSUB', '&amp;lt;i4'), ('RANKSALESSUBD', '&amp;lt;i4'), ('RANKPRODSUBD', '&amp;lt;i4'), ('RANKSALESSUBR', '&amp;lt;i4'), ('RANKPRODSUBR', '&amp;lt;i4'), ('RANKSALESSUBS', '&amp;lt;i4'), ('RANKPRODSUBS', '&amp;lt;i4'), ('RANKSALESSUBC', '&amp;lt;i4'), ('RANKPRODSUBC', '&amp;lt;i4')]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;## the important code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datarray = []&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor.fetchall():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datarray.append(tuple(row))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtype = np.dtype(eval(get_dtype))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WKID = 4326 # WGS-1984&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sr = arcpy.SpatialReference()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sr.factoryCode = WKID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sr.create()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.outputCoordinateSystem = sr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; npyarr = np.array(datarray, dtype)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_fc = strFilePath + strShapeFileName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(out_fc):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(out_fc)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("in_memory")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.overwriteOutput = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.da.NumPyArrayToFeatureClass(npyarr, out_fc, ['LONGITUDE','LATITUDE'], sr)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 15:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314647#M24461</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-12-09T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314648#M24462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default, or at least in my experience, NumPyArrayToFeatureClass doesn't include the shape fields as attribute fields in the output feature class.&amp;nbsp; If you want LatLong as attributes as well, copy the columns and give the new columns a different name, and either use the new columns or the original as the shape fields with the other set getting incorporated as attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 16:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314648#M24462</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2014-12-09T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314649#M24463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to do that but then I got a duplicate field error with the array.&amp;nbsp;&amp;nbsp; I'm pulling the fields and values from a database via DSN connection to create the arrary.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible I misunderstand what you are suggesting as well so do you have a quick example you can provide?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[('YEAR', '&amp;lt;i4'), ('REGIONID', '&amp;lt;i4'), ('DISTRICTID', '&amp;lt;i4'), ('REGIONNAME', '|S255'), ('DISTRICTNAME', '|S255'), ('DIVLOC', '|S255'), ('STORENAME', '|S255'), ('CLUSTER', '|S255'), ('SUBID', '|S255'), ('SUBNAME', '|S255'), ('SEQUENCE', '&amp;lt;i4'), ('S_AREA', '&amp;lt;i4'), ('FS_AREA', '&amp;lt;i4'), ('ST_AREA', '&amp;lt;i4'), ('FR_AREA', '&amp;lt;i4'), ('SO_AREA', '&amp;lt;i4'), ('SL_AREA', '&amp;lt;i4'), ('TOTALSALES', '&amp;lt;i4'), ('OWNEDSALES', '&amp;lt;i4'), ('LEASEDSALES', '&amp;lt;i4'), ('GM', '&amp;lt;i4'), ('PROD', '&amp;lt;i4'), ('GMPROD', '&amp;lt;i4'),&lt;STRONG&gt; ('LATITUDE', '&amp;lt;f8'),&lt;SPAN style="text-decoration: underline;"&gt; ('LATITUDE1', '&amp;lt;f8'),&lt;/SPAN&gt; ('LONGITUDE', '&amp;lt;f8'),&lt;/STRONG&gt; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;('LONGITUDE1', '&amp;lt;f8'),&lt;/STRONG&gt; &lt;/SPAN&gt;('RANKSALESSUB', '&amp;lt;i4'), ('RANKPRODSUB', '&amp;lt;i4'), ('RANKSALESSUBD', '&amp;lt;i4'), ('RANKPRODSUBD', '&amp;lt;i4'), ('RANKSALESSUBR', '&amp;lt;i4'), ('RANKPRODSUBR', '&amp;lt;i4'), ('RANKSALESSUBS', '&amp;lt;i4'), ('RANKPRODSUBS', '&amp;lt;i4'), ('RANKSALESSUBC', '&amp;lt;i4'), ('RANKPRODSUBC', '&amp;lt;i4')]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 19:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314649#M24463</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-12-09T19:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314650#M24464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could after creating the shapefile, use the Add XY tool to add the coordinates:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.AddXY_management(in_features)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some other tips:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use syntax highlighting for your code to make it more readable. Curtis has a nice post on this: &lt;A href="https://community.esri.com/migration-blogpost/1070" target="_blank"&gt;Posting Code blocks in the new GeoNet&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt;When creating a spatial reference you don't need to do this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;WKID = 4326 # WGS-1984
sr = arcpy.SpatialReference()
sr.factoryCode = WKID
sr.create()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rather do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;WKID = 4326 # WGS-1984
sr = arcpy.SpatialReference(WKID)
# or:
sr = arcpy.SpatialReference(4326) # WGS-1984&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When you create the file path, I suppose you have a trailing slash at the end of the path. It is cleaner to do this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import os
out_fc = os.path.join(strFilePath, strShapeFileName)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When assigning a boolean it is better to use a boolean:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; env.overwriteOutput = True # instead of&amp;nbsp; env.overwriteOutput = 1&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314650#M24464</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314651#M24465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take the geoprocessing route as &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ suggests.&amp;nbsp; If you want a pure Python/NumPy solution, please post a bit more information.&amp;nbsp; You say you are getting a duplicate field error with the array, but what method or function is returning the error?&amp;nbsp; I didn't catch it at first, but your original dtype had a Lat and Lat1 as well as a Long and Long1.&amp;nbsp; Do those represent different lats and longs or duplicates? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned pulling this data from a database through a DSN connection to create the array.&amp;nbsp; Would it work to connect to the table and use the &lt;SPAN style="color: #4d4d4d; text-indent: 0px;"&gt;MakeXYEventLayer_management&lt;/SPAN&gt; to make an event layer that you can save to disk afterwards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 23:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314651#M24465</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2014-12-09T23:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314652#M24466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick code example....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are various ways to add fields to structured numpy arrays.&amp;nbsp; Although it might not be the most performant, I typically use a solution proposed by Vebjorn Ljosa on StackExchange:&amp;nbsp; &lt;A href="http://stackoverflow.com/questions/1201817/adding-a-field-to-a-structured-numpy-array" rel="nofollow noopener noreferrer" target="_blank"&gt;Adding a field to a structured numpy array&lt;/A&gt;.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def add_field(a, descr):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if a.dtype.fields is None:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise ValueError, "`A' must be a structured numpy array"
&amp;nbsp;&amp;nbsp;&amp;nbsp; b = numpy.empty(a.shape, dtype=a.dtype.descr + descr)
&amp;nbsp;&amp;nbsp;&amp;nbsp; for name in a.dtype.names:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b[name] = a[name]
&amp;nbsp;&amp;nbsp;&amp;nbsp; return b&lt;/PRE&gt;&lt;P&gt;Although some people suggest using append_fields from numpy.lib.recfunctions, I have run into problems when the appended field will hold subarrays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the &lt;STRONG&gt;Code Sample&lt;/STRONG&gt; from the &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w0000001n000000" rel="nofollow noopener noreferrer" target="_blank"&gt;NumPyArrayToFeatureClass (arcpy.da)&lt;/A&gt; Help page (&lt;EM&gt;but dropping the TX spatial references)&lt;/EM&gt;:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import numpy

outFC = #Output FS location and name

# Create a numpy array with an id field, and a field with a tuple 
#&amp;nbsp; of x,y coordinates
array = numpy.array([(1, (471316.3835861763, 5000448.782036674)),
&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; (2, (470402.49348005146, 5000049.216449278))],
&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; numpy.dtype([('idfield',numpy.int32),('XY', '&amp;lt;f8', 2)]))

# Export the numpy array to a feature class using the XY field to
#&amp;nbsp; represent the output point feature
arcpy.da.NumPyArrayToFeatureClass(array, outFC, ['XY'])&lt;/PRE&gt;&lt;P&gt;yields a feature class with the following table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="39130" alt="numpyarraytofeatureclass_code_sample_table.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/39130_numpyarraytofeatureclass_code_sample_table.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Using the add_field function above to duplicate the 'XY' field:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import numpy

outFC = #Output FS location and name

# Create a numpy array with an id field, and a field with a tuple 
#&amp;nbsp; of x,y coordinates
array = numpy.array([(1, (471316.3835861763, 5000448.782036674)),
&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; (2, (470402.49348005146, 5000049.216449278))],
&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; numpy.dtype([('idfield',numpy.int32),('XY', '&amp;lt;f8', 2)]))

# Add new field to duplicate XY field so they show up as attributes
arr = add_field(array, [('XY1', '&amp;lt;f8', 2)])
arr['XY1'] = array['XY']

# Export the numpy array to a feature class using the XY field to
#&amp;nbsp; represent the output point feature
arcpy.da.NumPyArrayToFeatureClass(arr, outFC, ['XY'])&lt;/PRE&gt;&lt;P&gt;yields a feature class with the following table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="39137" alt="numpyarraytofeatureclass_code_sample_added_field_table.PNG" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/39137_numpyarraytofeatureclass_code_sample_added_field_table.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Unlike the Code Sample, I usually don't store the XY coordinates as a tuple in a numpy structured array because they end up getting stored as subarrays, which I find a bit more cumbersome to work with and not a requirement to use NumPyArrayToFeatureClass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314652#M24466</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Class</title>
      <link>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314653#M24467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try printing the data from the numpy array before you use it for building the shapefile; verifying that the data is in fact in the numpy array before you use it to build the shapefile. Problem could possibly be how the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;datarray &lt;/SPAN&gt;and dtype map out to one another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;npyarr['LONGITUDE']&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;print npyarr['LATITUDE']&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 13:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-feature-class/m-p/314653#M24467</guid>
      <dc:creator>DallasShearer</dc:creator>
      <dc:date>2014-12-17T13:50:08Z</dc:date>
    </item>
  </channel>
</rss>

