Skip to content
Discussion options

You must be logged in to vote

The osgEarth MBTiles layer type is for imagery and elevation only.

To access MVT stored in an mbtiles file, you can use the MVTFeatureSource. You can then pair this with a TiledFeatureModelLayer to render the contents in the styles of your choice.

auto features = new MVTFeatureSource();
features->setURI("data.mbtiles");
auto status = features->open();
...

Checking the return value of open() will let you know if it succeeded. You can also always just call layer->getStatus() for the same information.

There's no example earth file for MVTFeatures, but the osm.earth does a similar thing with a remote PBF dataset; so you can look at that for guidance.

Sorry, I don't know the answer to your 32-…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Thomas-Lerman
Comment options

@Thomas-Lerman
Comment options

@gwaldron
Comment options

Answer selected by gwaldron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants