Skip to content

Commit

Permalink
Update automatic PostGIS type conversion for Shapely 2.0 (#1085)
Browse files Browse the repository at this point in the history
Shapely 1.8 -> 2.0 depreciates the shapely.geometry.asShape() method in favor of shapely.geometry.shape(). source: https://shapely.readthedocs.io/en/stable/migration.html#other-deprecated-functionality
  • Loading branch information
ChimneySwift authored Oct 9, 2023
1 parent 4bdd8a7 commit 8b45beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ will work.
if not hasattr(geometry, '__geo_interface__'):
raise TypeError('{g} does not conform to '
'the geo interface'.format(g=geometry))
shape = shapely.geometry.asShape(geometry)
shape = shapely.geometry.shape(geometry)
return shapely.wkb.dumps(shape)
def decode_geometry(wkb):
Expand Down

0 comments on commit 8b45beb

Please sign in to comment.