Maximum MBTiles size #2850
-
|
Is there a maximum file size for using an MBTiles in 32-bit within an OLD osgEarth? I have a nearly 70 GB file that does not seem to load. I was able to load it with QGIS & others, gdalinfo seems to get an error, MbTilesViewer seems to lock up. Ideas? On the old osgEarth, I found I can change: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Thomas, |
Beta Was this translation helpful? Give feedback.
-
|
It looks like my original posting had a typographical error, plus I probably edited it after you got notification and fixed it. I meant 32-bit in an old osgEarth which crashes. In 64-bit (new osgEarth), it does not crash, but does not display the vector tiles. Currently, we are setting it up (both old & new osgEarth) through osgEarth::Drivers::MBTilesOptions which the ImageLayer gets added to the osgEarth::Map. This works for raster tiles. Does osgEarth allow displaying the MVT (Gemini seems to indicate no)? Either way, any way to detect the MVT or error? |
Beta Was this translation helpful? Give feedback.
-
|
The osgEarth MBTiles layer type is for imagery and elevation only. To access MVT stored in an mbtiles file, you can use the auto features = new MVTFeatureSource();
features->setURI("data.mbtiles");
auto status = features->open();
...Checking the return value of There's no example earth file for Sorry, I don't know the answer to your 32-bit question. |
Beta Was this translation helpful? Give feedback.
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 aTiledFeatureModelLayerto render the contents in the styles of your choice.Checking the return value of
open()will let you know if it succeeded. You can also always just calllayer->getStatus()for the same information.There's no example earth file for
MVTFeatures, but theosm.earthdoes 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-…