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

Project module: support pre-projected positions #4140

Merged
merged 2 commits into from
Jan 15, 2020

Conversation

Pessimistress
Copy link
Collaborator

For #4104

Background

This PR fixes the usage of COORDINATE_SYSTEM.CARTESIAN with WebMercatorViewport. In this case, positions are in common space instead of lng-lat. This is discussed in #3935, where the source data (mapbox vector tiles) is pre-projected to the Web Mercator plane.

More generically, this is needed to support alternative 2D projections such as Stereographic, Albers, etc. For these projections, it is not feasible to do the full projection on the GPU with acceptable performance and precision. We will need to project lng-lat positions to the common space on the CPU, and then use these positions with a geospatial viewport.

Change List

  • Address more coordinateSystem/projectionMode combinations in uniform calculation
  • Unit tests

@Pessimistress Pessimistress requested a review from tsherif January 13, 2020 20:19
@coveralls
Copy link

Coverage Status

Coverage increased (+2.5%) to 83.423% when pulling 5146fc6 on x/cartesian-mercator into 417c6d6 on master.

@Pessimistress Pessimistress merged commit 848420c into master Jan 15, 2020
@Pessimistress Pessimistress deleted the x/cartesian-mercator branch January 15, 2020 23:05
tgorkin added a commit that referenced this pull request Jan 28, 2020
* master: (82 commits)
  fix typo in performance.md
  pydeck: ArcLayer, BitmapLayer, ColumnLayer examples (#4189)
  [React] fix missing key error (#4193)
  [Bug] Fix hexagon layer projection (#4173)
  Remove HtmlWebpackPlugin from examples/playground (#4178)
  @deck.gl/json: Fix bug dropping props with falsy values (#4185)
  Fix buffer size check in Attribute.updateBuffer (#4190)
  Bump luma dependency (#4191)
  data-filter: support double precision (#4163)
  Use int type for enum uniforms (#4171)
  [TileLayer] fix tile indices generation in edge cases (#4170)
  v8.1.0-alpha.1
  Voodoo fix for Mac+NVIDIA bug (#4166)
  Remove unnecessary code from project glsl (#4162)
  Fix H3HexagonLayer update when viewport jumps (#4158)
  Refactor render tests; use stricter pass criteria (#4157)
  [Extension] Add source_target to brushing mode (#4150)
  Add offset feature to PathStyleExtension (#4126)
  Project module: support pre-projected positions (#4140)
  Repeat maps at low zoom levels (#4105)
  ...
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