Add StagedTo3DConverter class with initial methods #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes some methods that I've been using to convert a batch of staged vector tiles into 3d tiles. I've packaged these all into a
StagedTo3DConverter
class, because I think it might be useful for both testing and for the viz-workflow. It essentially replicates what theRasterTiler
class in theviz-raster
repo does, except converts to 3d tiles rather than to raster files.Using this new class enables:
viz-staging
andviz-raster
It also includes an optional
create_parent_json
method that can be used to combine the individualtileset.json
files into one.However, this is not yet working properly, which is why this PR is still a draft. I think that the calculation for theIn any case, this method probably won't work for millions of files. It's just a temporary measure for testing purposes until #9 is ready.boundingVolume
orgeometricError
is wrong.@laurenwalker is
viz-3dtiles
the right repo for this class, or do you think that it should be part ofviz-workflow
, or is this class redundant to something that you are already working on?Also, if you have a minute to look over myStagedTo3DConverter.create_parent_json()
method, I think you might be quicker than me at figuring out what's going wrong. Everything loads in Cesium without errors, but no tiles are visibile. I have an example up on sandcastle. The parenttileset.json
is here.Examples
Here are some examples on how this class can be used:
We can alternatively convert each of the staged files in parallel