<?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 get the data type of a field in specific in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582106#M45603</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 need to get the data type of a specific field, example field "NAME", not all fields of the Feature Class as does ListFields or Describe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 17:06:32 GMT</pubDate>
    <dc:creator>ElenaG</dc:creator>
    <dc:date>2013-04-12T17:06:32Z</dc:date>
    <item>
      <title>get the data type of a field in specific</title>
      <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582106#M45603</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 need to get the data type of a specific field, example field "NAME", not all fields of the Feature Class as does ListFields or Describe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582106#M45603</guid>
      <dc:creator>ElenaG</dc:creator>
      <dc:date>2013-04-12T17:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: get the data type of a field in specific</title>
      <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582107#M45604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just search for that field while looping through the feature classes and then perform a describe on that searched field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582107#M45604</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-04-12T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: get the data type of a field in specific</title>
      <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582108#M45605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;not in time to get the field that I seek&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.env.workspace = "C:\GISProgramming101\Exercises\Data"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... infc= "Streets.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... fieln="FULL_STREE"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... desc= arcpy.Describe(infc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... fields = desc.fields&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... for field in fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if field ==fieln:&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; print "type: " % field.type&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582108#M45605</guid>
      <dc:creator>ElenaG</dc:creator>
      <dc:date>2013-04-12T17:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: get the data type of a field in specific</title>
      <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582109#M45606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at the features properties in ArcCatalog&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will fully tell you the type of field and various parameters for it.&amp;nbsp; Such as length of a string field or long or short integer or double precision etc...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I need to get the data type of a specific field, example field "NAME", not all fields of the Feature Class as does ListFields or Describe.&lt;BR /&gt;&lt;BR /&gt;Thanks:confused:&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 18:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582109#M45606</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2013-04-12T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: get the data type of a field in specific</title>
      <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582110#M45607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ListFields takes a wildcard for the field name, passing in the field name should only return the single field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
arcpy.env.workspace = "C:\GeoSpatialTraining\GISProgramming101\Exercises\Data"
infc= "Streets.shp"
fieln="FULL_STREE"
field = arcpy.ListFields(infc,fieldn)[0]
print field.type&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582110#M45607</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2021-12-12T01:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: get the data type of a field in specific</title>
      <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582111#M45608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ListFields takes a wildcard for the field name, passing in the field name should only return the single field.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
arcpy.env.workspace = "C:\GeoSpatialTraining\GISProgramming101\Exercises\Data"
infc= "Streets.shp"
fieln="FULL_STREE"
field = arcpy.ListFields(infc,fieldn)[0]
print field.type&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much, I started to check on aid but had no idea, thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582111#M45608</guid>
      <dc:creator>ElenaG</dc:creator>
      <dc:date>2021-12-12T01:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: get the data type of a field in specific</title>
      <link>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582112#M45609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just search for that field while looping through the feature classes and then perform a describe on that searched field.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much, I'm starting with arcpy. thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 21:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-data-type-of-a-field-in-specific/m-p/582112#M45609</guid>
      <dc:creator>ElenaG</dc:creator>
      <dc:date>2013-04-12T21:38:39Z</dc:date>
    </item>
  </channel>
</rss>

