<?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: Convert geometry from bounds to Polygon - GeoPandas in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/convert-geometry-from-bounds-to-polygon-geopandas/m-p/1209779#M65489</link>
    <description>&lt;P&gt;Answered on &lt;A href="https://gis.stackexchange.com/a/439832" target="_self"&gt;GIS StackExchange&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 09:39:55 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2022-09-06T09:39:55Z</dc:date>
    <item>
      <title>Convert geometry from bounds to Polygon - GeoPandas</title>
      <link>https://community.esri.com/t5/python-questions/convert-geometry-from-bounds-to-polygon-geopandas/m-p/1209505#M65483</link>
      <description>&lt;P&gt;I have a GeoPandas DataFrame with bounds geometry.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import pandas as pd
import geopandas as gpd

gdf = gpd.GeoDataFrame({
                        'id': [0, 1],
                        'b': [((40.6494140625, -86.7919921875), (40.69335937...)), 
                              ((39.55078125, -93.8232421875), (39.5947265625...))]
                      })

gdf['b'][0]

Bounds(sw=SouthWest(lat=32.8271484375, lon=-96.8115234375), ne=NorthEast(lat=32.87109375, lon=-96.767578125))

print(type(gdf['b'][0]))

&amp;lt;class 'geolib.geohash.Bounds'&amp;gt;&lt;/PRE&gt;&lt;P&gt;How do &lt;A href="https://www.epoxyadhesiveglue.com/" target="_self"&gt;I&lt;/A&gt; turn&amp;nbsp;Bounds&amp;nbsp;into&amp;nbsp;Polygon&amp;nbsp;geometry type? Like,&lt;/P&gt;&lt;PRE&gt;Polygon((40.6494140625, -86.7919921875), (40.69335937...))&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2022 07:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-geometry-from-bounds-to-polygon-geopandas/m-p/1209505#M65483</guid>
      <dc:creator>MahreenKohkar</dc:creator>
      <dc:date>2022-09-10T07:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert geometry from bounds to Polygon - GeoPandas</title>
      <link>https://community.esri.com/t5/python-questions/convert-geometry-from-bounds-to-polygon-geopandas/m-p/1209779#M65489</link>
      <description>&lt;P&gt;Answered on &lt;A href="https://gis.stackexchange.com/a/439832" target="_self"&gt;GIS StackExchange&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 09:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-geometry-from-bounds-to-polygon-geopandas/m-p/1209779#M65489</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-09-06T09:39:55Z</dc:date>
    </item>
  </channel>
</rss>

