<?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 Composite Data Types in Python Toolbox in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/composite-data-types-in-python-toolbox/m-p/1164056#M53998</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Had a parameter that can be a feature class or a raster. If it is a raster I would like it to be vectorized. Is there a way to get that information from the parameter and then just do a simple if statement to send it to be vectorized or to move on if it already is?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;habitat &lt;SPAN&gt;= &lt;/SPAN&gt;arcpy.&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Habitat'&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;displayName&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Habitat Raster'&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;datatype&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'GPRasterLayer'&lt;/SPAN&gt;, &lt;SPAN&gt;'GPFeatureLayer'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;direction&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Input'&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;parameterType&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Required'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 13 Apr 2022 18:21:46 GMT</pubDate>
    <dc:creator>ccowin_odfw</dc:creator>
    <dc:date>2022-04-13T18:21:46Z</dc:date>
    <item>
      <title>Composite Data Types in Python Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/composite-data-types-in-python-toolbox/m-p/1164056#M53998</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Had a parameter that can be a feature class or a raster. If it is a raster I would like it to be vectorized. Is there a way to get that information from the parameter and then just do a simple if statement to send it to be vectorized or to move on if it already is?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;habitat &lt;SPAN&gt;= &lt;/SPAN&gt;arcpy.&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Habitat'&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;displayName&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Habitat Raster'&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;datatype&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'GPRasterLayer'&lt;/SPAN&gt;, &lt;SPAN&gt;'GPFeatureLayer'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;direction&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Input'&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;parameterType&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Required'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 13 Apr 2022 18:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/composite-data-types-in-python-toolbox/m-p/1164056#M53998</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2022-04-13T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Composite Data Types in Python Toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/composite-data-types-in-python-toolbox/m-p/1164060#M53999</link>
      <description>&lt;P&gt;Should have looked a little longer:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;&lt;SPAN&gt;desc &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;arcpy.da.&lt;SPAN&gt;Describe(FC or Raster)&lt;BR /&gt;&lt;BR /&gt;if desc['dataType'] == 'RasterDataset':&lt;BR /&gt;    ...&lt;BR /&gt;elif desc['dataType'] == 'FeatureClass':&lt;BR /&gt;    ...&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 13 Apr 2022 19:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/composite-data-types-in-python-toolbox/m-p/1164060#M53999</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2022-04-13T19:58:38Z</dc:date>
    </item>
  </channel>
</rss>

