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

To support using shapely object to manipulate database geometry data. #75

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

wuwwen
Copy link
Collaborator

@wuwwen wuwwen commented Nov 19, 2024

@ryan-kipawa I just modified the notebook to add some example of shapely object usage. If the testing needed to be added for testpy, then the action of build should also be modified. Please let me know your opinion.

@wuwwen wuwwen requested review from ryan-kipawa and jue-hu November 19, 2024 04:01
@wuwwen
Copy link
Collaborator Author

wuwwen commented Nov 19, 2024

@ryan-kipawa There is build error. Please check the detail. The typing caused this failure. How to fix it?

image

@ryan-kipawa
Copy link
Collaborator

I think we should use ruff's nice suggestion here of importlib.util.findspec:

https://docs.astral.sh/ruff/rules/unused-import/

With this we could remove the import of shapely all together, as well as the try_import method. Findspec essentially accomplished the same thing.

@wuwwen
Copy link
Collaborator Author

wuwwen commented Nov 21, 2024

I haven't used the importlib.util.findspec, the test always fail says that he model has not to_wkt property. sys.modules.get works well. The import process has been removed. Please review it again. @ryan-kipawa

Copy link
Collaborator

@ryan-kipawa ryan-kipawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, now that the import has been removed, could we add a test.

@wuwwen
Copy link
Collaborator Author

wuwwen commented Nov 25, 2024

@ryan-kipawa Test for shapely geometry has been added.

Copy link
Collaborator

@ryan-kipawa ryan-kipawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @wuwwen

@ryan-kipawa ryan-kipawa merged commit b4c4d9d into main Nov 25, 2024
1 check passed
@ryan-kipawa ryan-kipawa deleted the shapely_gemeotry branch November 25, 2024 10:01
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