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

FEAT: Add more POSTGIS operations #1987

Merged
merged 5 commits into from
Oct 16, 2019

Conversation

ian-r-rose
Copy link
Contributor

Follow up to #1787 and #1925 . This adds a number of new operations for the PostGIS backend:

  • ST_GeometryType
  • ST_GeometryN
  • ST_IsValid
  • ST_LineLocatePoint
  • ST_LineMerge
  • ST_LineSubstring
  • ST_OrderingEquals
  • ST_Union

The last one requires special attention. That ST_Union is available as both a value operation and a column aggregation operation. To avoid a name collision in the ibis APIs, I have named the aggregation variant unary_union. This is following the same choice made by GeoPandas.

@xmnlab xmnlab changed the title More postgis ops FEAT: Add more POSTGIS operations Oct 3, 2019
Copy link
Contributor

@xmnlab xmnlab left a comment

Choose a reason for hiding this comment

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

hey @ian-r-rose I added some comments related to docstring.

I am working to fix all docstrings issues in the code and also add docstring checks inside CI.

for now for your code if you want to check you can run:

pydocstyle --convention=numpy PATH_OF_THE_FILE_YOU_WANT_TO_CHECK.py

probably first you need to fix an issue with setup.cfg:

diff --git a/setup.cfg b/setup.cfg
index 124f3c83..d00b8a63 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,7 +14,6 @@ exclude = build,dist,docs,versioneer.py,ibis/_version.py,.git,__pycache__,.tox,.
 [pydocstyle]
 ignore = D105,D107
 inherit = false
-match = *.py
 
 [isort]
 line_length = 79

ibis/expr/api.py Show resolved Hide resolved
ibis/expr/api.py Outdated Show resolved Hide resolved
ibis/expr/api.py Outdated Show resolved Hide resolved
ibis/expr/api.py Outdated Show resolved Hide resolved
ibis/expr/api.py Outdated Show resolved Hide resolved
ibis/expr/operations.py Outdated Show resolved Hide resolved
ibis/expr/operations.py Outdated Show resolved Hide resolved
ibis/expr/operations.py Outdated Show resolved Hide resolved
ibis/expr/operations.py Outdated Show resolved Hide resolved
ibis/expr/operations.py Outdated Show resolved Hide resolved
@ian-r-rose
Copy link
Contributor Author

Thanks for taking a look @xmnlab, I've made the requested changes to the docstrings.

Copy link
Contributor

@xmnlab xmnlab left a comment

Choose a reason for hiding this comment

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

LGTM @ian-r-rose ! thanks for working on that!

@xmnlab xmnlab merged commit 46d18af into ibis-project:master Oct 16, 2019
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