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
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
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