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

Add the ability to cut out a Rectangle from ImageryLayers #7056

Merged
merged 5 commits into from
Oct 11, 2018

Conversation

likangning93
Copy link
Contributor

This PR adds the ability to cut out a Rectangle from ImageryLayers.

imagery cutout

A caveat that I feel needs defense: this doesn't influence imagery tile selection. The intent was for this Rectangle to be dynamic, and it looked to me like getting this to function with the existing imagery tile selection code would have been pretty complicated. Let me know if I was wrong and I should fix that.

Besides this just being kind of a fun feature, we likely need this to implement #6531.

Client-side mosaics and client-side imagery reprojection, both of which need to preserve pixel detail, will probably require doing something like generating high detail imagery for small areas on-the-fly and drawing it over low-detail "placeholder" imagery that covers the entire mosaic area.
The layers can be transparent, so layering them directly on top of each other isn't acceptable.

@cesium-concierge
Copy link

Thanks for the pull request @likangning93!

  • ✔️ Signed CLA found.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@bagnell
Copy link
Contributor

bagnell commented Sep 24, 2018

@likangning93 This looks good to me. Can you merge in master?

@likangning93
Copy link
Contributor Author

@bagnell merged in master

@@ -573,13 +573,13 @@ defineSuite([
switchViewMode(SceneMode.SCENE3D, new GeographicProjection(Ellipsoid.WGS84));

return updateUntilDone(scene.globe).then(function() {
expect(scene).toRender([0, 0, 127, 255]); // default baseColor
expect(scene).toRender([0, 0, 128, 255]); // default baseColor
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is failing for me. The result is 127, not 128.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm, I swear it was passing on Windows/Linux on my Intel system, but now I'm seeing the same thing on Windows + Nvidia. Either way, poorly designed spec...

@likangning93
Copy link
Contributor Author

@bagnell this is up-to-date!

@bagnell bagnell merged commit 93b4615 into master Oct 11, 2018
@bagnell bagnell deleted the imageryCutoutRectangle branch October 11, 2018 23:00
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