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

Return geometry positions in a 512x512 tile #2

Merged
merged 2 commits into from
Feb 11, 2020

Conversation

jesusbotella
Copy link

@jesusbotella jesusbotella commented Feb 11, 2020

Given our needs in visgl/deck.gl#3935, I created a new method in this PR to return a GeoJSON-like object with feature positions within a 512x512 bounding box tile as "coordinates".

So, I had to modify loadGeometry method behaviour for that transformation from the original tile extent to a 512 extent tile, and then apply almost all operations within toGeoJSON method to be able to get valid geometries to be used by Deck.gl's GeoJSON layer.

And please, help me choosing a name for toOffsetsJSON method 😁

@jesusbotella jesusbotella changed the title Return offset positions in a 512x512 tile Return geometry positions in a 512x512 tile Feb 11, 2020
Copy link

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

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

Nice work!

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