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
Use raster dem encoding #3087
Use raster dem encoding #3087
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3087 +/- ##
==========================================
+ Coverage 75.09% 75.11% +0.02%
==========================================
Files 240 240
Lines 19150 19170 +20
Branches 4323 4325 +2
==========================================
+ Hits 14380 14400 +20
Misses 4770 4770
☔ View full report in Codecov by Sentry. |
This looks great!! THANKS! |
5b9d787
to
5a6036d
Compare
Can you please add a changelog entry? |
Seems like there are some failing tests, so it might be that something is passed correctly... |
Yup, looking at those now. Most of them are timing out so I'm wondering what's happening but I'll follow up with another commit once those are fixed |
@HarelM I need your take on the last fixes and the error that is still showing here
|
If the change in the images is not significant, I would consider simply updating the images. |
It's not that, we are essentially doing more floating point operations than before. The previous Mapbox encoding formula was Anyway, it seems that the errors I was seeing were not related to that so I just removed the rounding and the tests are still passing so I think this is ready to merge now! |
Damn, changelog entry is still missing, can you please open a new PR with the addition of this feature in the changelog? |
This is uses maplibre-style-spec#337 to allow rendering raster-dem sources with an arbitrary encoding.
As an example, the first image is a QGIS reference render of a raster-dem with a different encoding, the second one is how it is rendered currently in Maplibre and the third one is how it's rendered using this PR.
Tests are obviously failing because this is pointing to a maplibre-style-spec version that doesn't contain the needed changes
Launch Checklist
CHANGELOG.md
under the## main
section.