<?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: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010481#M59310</link>
    <description>&lt;P&gt;0.1 degrees squared would be the area of each hexagon, not 5 degrees... that might be your full extent.&lt;/P&gt;&lt;P&gt;Just try something much smaller and check the coordinate system you want to use eg GCS WGS84 if you must work in degrees&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 03:49:05 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-12-17T03:49:05Z</dc:date>
    <item>
      <title>Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010220#M59300</link>
      <description>&lt;LI-CODE lang="python"&gt;sdf = pd.DataFrame.spatial.from_featureclass(os.path.join(gdb_file, gdb_layers[1]))
sdf.head()
# Describe the input feature and extract the extent
description = arcpy.Describe(os.path.join(gdb_file, gdb_layers[1]))
extent = description.extent
tessellation_extent = sdf.spatial.full_extent
spatial_ref = extent.spatialReference
&lt;/LI-CODE&gt;&lt;P&gt;I am trying to generate a Feature Class with hexagons by using the method GenerateTessellation_management with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.GenerateTessellation_management(Output_Feature_Class=gdb_file+r"\hex_tessellation", 
                                      Extent=tessellation_extent, 
                                      Shape_Type="HEXAGON",
                                      Size="1000000 Square Foot",
                                      Spatial_Reference=spatial_ref
                                     )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I am getting this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romero_Dario_0-1608138311590.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2371i2D36DB4CAD9BF133/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romero_Dario_0-1608138311590.png" alt="Romero_Dario_0-1608138311590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am following the documentation as per the following website:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generatetesellation.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generatetesellation.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any idea why this is not working?&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010220#M59300</guid>
      <dc:creator>Romero_Dario</dc:creator>
      <dc:date>2020-12-16T17:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010269#M59301</link>
      <description>&lt;P&gt;from here&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generatetesellation.htm" target="_blank"&gt;Generate Tessellation (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;w = extent.width
h = extent.height
u = extent.spatialReference.linearUnitName
area = "{size} Square{unit}s".format(size=w/3 * h/3, unit=u)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have you confirmed setting the area unit? I looks like a different configuration is expected than what you have shown&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:00:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010269#M59301</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-16T19:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010422#M59303</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Actually the Feature Class in on a shape that is on Degrees. I might use the area as:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;w = extent.width
h = extent.height
u = extent.spatialReference.angularUnitName
w, h, u
(359.999999902, 179.491346668, 'Degree')
area = "{size} Square{unit}s".format(size=w/3 * h/3, unit=u)
area
'7179.653864765539 SquareDegrees'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but got the same error. Do you have any other suggestion.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 23:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010422#M59303</guid>
      <dc:creator>Romero_Dario</dc:creator>
      <dc:date>2020-12-16T23:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010426#M59304</link>
      <description>&lt;P&gt;That is a horrendously large area and I suspect a reason that you might be having issues&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 23:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010426#M59304</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-16T23:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010429#M59305</link>
      <description>&lt;P&gt;I've changed it to be the area of equal size hexagons where the formula for the area is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romero_Dario_0-1608161246300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2439i2C587CA6C780B9FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romero_Dario_0-1608161246300.png" alt="Romero_Dario_0-1608161246300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;there I added this equation to have hexagon of 5 degrees each, consequently:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;area = "{size} Square{unit}s".format(size=((3.0*math.sqrt(3.0))/2.0)*(a**2.0), unit=u)
area
'64.9519052838329 SquareDegrees'
... then the result is again the same error. Can this function deal with geographical coordinates rather than linear (like UTM)?
# Use the extent's spatial reference to project the output
spatial_ref = extent.spatialReference
spatial_ref&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romero_Dario_1-1608161553894.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2440i7A412289B4AC277C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romero_Dario_1-1608161553894.png" alt="Romero_Dario_1-1608161553894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 23:32:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010429#M59305</guid>
      <dc:creator>Romero_Dario</dc:creator>
      <dc:date>2020-12-16T23:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010452#M59306</link>
      <description>&lt;P&gt;No....&lt;EM&gt;&amp;nbsp;If neither has a spatial reference, the output is projected in GCS_WGS_1984.&lt;/EM&gt; from the help, But do you really want approx 8 degree by 8 degree hexagons?&amp;nbsp; How big an area are you trying to produce a hexagonal grid pattern for?&amp;nbsp; It wouldn't take many hexagons to cover north america.&lt;/P&gt;&lt;P&gt;On the side note, If you are not working on the continental or global scale, I would use a projected coordinate system.&amp;nbsp; UTM, albers, whatever... at least the lengths of the sides of the hexagon will be planar and equal(ish) far moreso than degrees.&amp;nbsp; There is no indication whether the hexagon sides are generate as geodesic shapes&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 00:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010452#M59306</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-17T00:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010458#M59308</link>
      <description>&lt;P&gt;I am working on a global scale. Ideally the hexagon(s) should be 0.1 degrees on the side. Although I think the problem might be in the spatial reference. Don't you think.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010458#M59308</guid>
      <dc:creator>Romero_Dario</dc:creator>
      <dc:date>2020-12-17T01:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010469#M59309</link>
      <description>&lt;P&gt;... another idea would be to convert the layer to an&amp;nbsp;&lt;SPAN&gt;Equal-area&lt;/SPAN&gt;&amp;nbsp;projection, run the procedure. And see what happen.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010469#M59309</guid>
      <dc:creator>Romero_Dario</dc:creator>
      <dc:date>2020-12-17T01:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using arcpy.GenerateTessellation_management in ArcGIS Pro 2.6 with arcpy Python</title>
      <link>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010481#M59310</link>
      <description>&lt;P&gt;0.1 degrees squared would be the area of each hexagon, not 5 degrees... that might be your full extent.&lt;/P&gt;&lt;P&gt;Just try something much smaller and check the coordinate system you want to use eg GCS WGS84 if you must work in degrees&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 03:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-using-arcpy-generatetessellation/m-p/1010481#M59310</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-17T03:49:05Z</dc:date>
    </item>
  </channel>
</rss>

