Re: Shapely Polygon creating empty polygon

2022-01-05 Thread Israel Brewster
Found it! Apparently, it’s an import order issue. This works: >>> from shapely.geometry import Polygon >>> from osgeo import osr >>> bounds = [-164.29635821669632, 54.64251856269729, -163.7631779798799, >>> 54.845450778742546] >>> print(Polygon.from_bounds(*bounds)) POLYGON ((-164.2963582166963 5

Re: Shapely Polygon creating empty polygon

2022-01-04 Thread MRAB
On 2022-01-04 22:57, Israel Brewster wrote: I’m running into an issue with shapely that is baffling me. Perhaps someone here can help out? When running shapely directly from a python 3.8 interpreter, it works as expected: import shapely shapely.__version__ '1.8.0' from shapely.geometry imp

Shapely Polygon creating empty polygon

2022-01-04 Thread Israel Brewster
I’m running into an issue with shapely that is baffling me. Perhaps someone here can help out? When running shapely directly from a python 3.8 interpreter, it works as expected: >>> import shapely >>> shapely.__version__ '1.8.0' >>> from shapely.geometry import Polygon >>> bounds = [-164.296358