Skip to content

Document and improve use of CellType in rasterfunctions args#271

Merged
vpipkt merged 2 commits into
locationtech:developfrom
s22s:fix/238
Aug 9, 2019
Merged

Document and improve use of CellType in rasterfunctions args#271
vpipkt merged 2 commits into
locationtech:developfrom
s22s:fix/238

Conversation

@vpipkt

@vpipkt vpipkt commented Aug 8, 2019

Copy link
Copy Markdown
Member

Note the more careful parsing of user defined nodata.

It's tagged 0.8.0 because it is a small fry but we can easily push it off.

Signed-off-by: Jason T. Brown <jason@astraea.earth>
@vpipkt vpipkt added this to the 0.8.0 milestone Aug 8, 2019
@vpipkt
vpipkt requested a review from metasim August 8, 2019 20:18
@vpipkt

vpipkt commented Aug 8, 2019

Copy link
Copy Markdown
Member Author

To close #238

@metasim metasim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for doing this. Feel like it improves readability significantly. Did the code in @emc5ud 's example get updated? He had a UDF that was fetching the string value of the cell type due to this functionality not existing.

```
Tile rf_make_zeros_tile(Int tile_columns, Int tile_rows, String cell_type_name)
Tile rf_make_zeros_tile(Int tile_columns, Int tile_rows, [CellType cell_type])
Tile rf_make_zeros_tile(Int tile_columns, Int tile_rows, [String cell_type_name])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@vpipkt Sometime before 1.0, we should change these signatures to use the var: Type ordering, as that's what type hints in Python 3.7 use (along with Scala).

That said, really want to get this stuff generated by Sphinx.

Signed-off-by: Jason T. Brown <jason@astraea.earth>
@vpipkt

vpipkt commented Aug 9, 2019

Copy link
Copy Markdown
Member Author

@metasim the function to get celltype had already been refactored, this PR was just clean up https://github.com/locationtech/rasterframes/pull/271/files#diff-7a654590ae01cfdf224abac0aa84caeeL211-L212

@vpipkt
vpipkt merged commit 65d6849 into locationtech:develop Aug 9, 2019
@vpipkt
vpipkt deleted the fix/238 branch August 9, 2019 15:18
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