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

Return all chip geometries #98

Merged
merged 15 commits into from
Apr 28, 2022
Merged

Return all chip geometries #98

merged 15 commits into from
Apr 28, 2022

Conversation

edurdevic
Copy link
Contributor

Hello team,

I have added a parameter to configure the return of geometries for core chips.

Please do not spare any comment, this is a great learning opportunity for me ;)

@edurdevic
Copy link
Contributor Author

UUps. I screwed something up when merging Master. On it

@edurdevic
Copy link
Contributor Author

@milos-colic @sllynn I am getting an index out of bound exception that I don't understand.
Do you have any pointer about how to fix it? I will fix it, I just need a hint ;)

@sllynn
Copy link
Contributor

sllynn commented Apr 7, 2022

Good to go, I think?

Thanks @edurdevic

@milos-colic
Copy link
Contributor

looks good to me as well

Copy link
Contributor

@sllynn sllynn left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @edurdevic .

A couple of style things but otherwise love it.

@sllynn
Copy link
Contributor

sllynn commented Apr 8, 2022

Oh - and let's update the python bindings / docs to reflect. @edurdevic are you happy to have a bash at that? If not, I'll happily take a look.

Copy link
Contributor

@milos-colic milos-colic left a comment

Choose a reason for hiding this comment

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

needs fixing copy call in withNewChildren in MosaicFill

@edurdevic
Copy link
Contributor Author

@sllynn @milos-colic I updated all references to h3_mosaicfill, but I found many more references to h3_* in the docs.
I will make a separate PR to align all the namings across sql, py, Scala and docs ;)
I also fixed the copy issue.
I think it is good to go. Please take a fina look!

@milos-colic
Copy link
Contributor

All good from my side!
@sllynn can you approve your "changes requested" and we can merge this.

@sllynn
Copy link
Contributor

sllynn commented Apr 14, 2022

Do we still need to update the python bindings?

@edurdevic
Copy link
Contributor Author

You are right @sllynn, I thought you intended bindings for the h3_ refactoring I did... But I am missing the keepCoreGoemetry parametr in python.
On it.

@edurdevic
Copy link
Contributor Author

I have to fix the conflicts and also I noticed that mosaic_explode is missing some bindings, let me cover that with a test before we merge

# Conflicts:
#	python/mosaic/api/functions.py
#	python/test/test_functions.py
@edurdevic
Copy link
Contributor Author

@sllynn I am not able to understand why one of the new tests I created is failing.

I am passing a boolean parameter with expr("mosaic_explode(wkt, 4, true)") but it is interpreting it as expr("mosaic_explode(wkt, 4, 4)"). I don't understand where it is going wrong.

Could you please take a look?

@sllynn
Copy link
Contributor

sllynn commented Apr 20, 2022

@sllynn I am not able to understand why one of the new tests I created is failing.

I am passing a boolean parameter with expr("mosaic_explode(wkt, 4, true)") but it is interpreting it as expr("mosaic_explode(wkt, 4, 4)"). I don't understand where it is going wrong.

Could you please take a look?

Hey @edurdevic, I think there was an issue with the way you were registering the SQL function. I think my latest commit fixed it, please take a look.

@sllynn
Copy link
Contributor

sllynn commented Apr 20, 2022

OK, you'll need to update the python bindings to reflect the new set of arguments.

python/mosaic/api/functions.py#596

@edurdevic
Copy link
Contributor Author

Wow, thanks for noticing the python bindings again @sllynn !
When I merged in master to fix the conflicts I reverted by mistake my changes to the bindings I did before... fc3041b#diff-9ec7293e119b7bae09d4eb204061160db4b37da62e85d6c4bd741e10d8551585

@edurdevic
Copy link
Contributor Author

@sllynn The python bindings should be fine now. Please take a look

@milos-colic
Copy link
Contributor

@edurdevic I have merged main into the PR to make sure the other PRs that were merged since this was opened do not break anything. If the build passes we can merge this one.

@milos-colic
Copy link
Contributor

@sllynn this needs your approval since you requested changes in the past.
I checked and it looks like all of them were address, but if you dont mind could you give a quick check and approve?

@sllynn sllynn merged commit 5b53b7b into main Apr 28, 2022
@edurdevic edurdevic deleted the feature/keep-code-geom branch June 13, 2022 10:03
sllynn added a commit that referenced this pull request Nov 20, 2023
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.

3 participants