Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: shapely.wkt import #136

Merged
merged 1 commit into from
Apr 2, 2024
Merged

fix: shapely.wkt import #136

merged 1 commit into from
Apr 2, 2024

Conversation

Jesus89
Copy link
Member

@Jesus89 Jesus89 commented Mar 27, 2024

Issue

In some cases, we can not use the function shapely.wkt.loads importing only shapely.

$ python
Python 3.8.10 (default, Nov 22 2023, 10:22:35) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shapely
>>> shapely.__version__
'2.0.3'
>>> shapely.wkt.loads
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'shapely' has no attribute 'wkt'
>>> from shapely import wkt
>>> wkt.loads
<function loads at 0x7fa5eb5ccc10>

Proposed Changes

I've introduced a change to import wkt and then use wkt.loads.

@Jesus89 Jesus89 requested a review from jgoizueta March 27, 2024 17:33
@Jesus89 Jesus89 merged commit fc0422d into main Apr 2, 2024
4 checks passed
@Jesus89 Jesus89 mentioned this pull request Apr 2, 2024
@Jesus89 Jesus89 deleted the fix/import-shapely-wkt branch April 2, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants