-
Notifications
You must be signed in to change notification settings - Fork 16
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
Introduce precise drawing algorithm using a boolean #84
Comments
Actually, I noticed just now that we might need some larger changes to how the At the moment we compute the tile list and then only compute the tile corners in the output image for the tile transform later when drawing. Maybe it would be better to change the implementation to compute the tile corner positions in the output image at the start, so that it's available go compute this second tile list? So overall it would be more like:
I would suggest you do #83 first and when that's done either make a PR here with how you'd implement it, or we discuss some more before you start coding. Let me know if you have any questions. |
@adl1995 - I think this is the most complicated thing you've done so far in the My preference / suggestion here would be that you start to implement this part as a first PR:
which I think can be done as a new, independent function in def need_to_split_tile(tile_meta, wcs):
corners = tile_meta.skycoord_corners.to_pixel(wcs)
# implement the criterion from the text
# return a bool @adl1995 - Thoughts? |
@cdeil That sounds good to me, I will get started with this. |
The
SimpleTilePainter
class will take as a parameterreduce_deformations
(?) boolean which will be used before the actual drawing begins. If this is set toTrue
, it will traverse thetiles
list and check if it falls under the criteria mentioned in Tile distortion issue, if it does, it will split this father tile into four children tiles (as outlined in #83) and will extend the current list to contain the new labels.Drawing procedure will remain exactly the same.
The text was updated successfully, but these errors were encountered: