MBTilesImageLayer cannot find pbf or webp plugins #2689
Replies: 5 comments 1 reply
-
Adding to previous post The source code I used to add the mbtiles dataset is attached I tried to load a pbf file directly and did not get the same error. The app paused for a while as if it was reading the data but nothing showed in the Earth view. The code I used to test that is also attached |
Beta Was this translation helpful? Give feedback.
-
Webp required libwebp, and PBF requires protobuf. |
Beta Was this translation helpful? Give feedback.
-
Glenn:
I did build from the vcpkg. I have libprotobuf.dll and it is using it
because the app does not start if I remove it. I am in the process of
building libwebp. Are there any dlls that I need to copy over?
It seems odd that if I try to load OSM mbtil I get an eror message stating
i nor support for pbf yet when I load one with the code I posted it does
not error rather it acts like it is loading just not showing.
Bruce
…On Tue, Jan 21, 2025 at 9:53 AM Glenn ***@***.***> wrote:
Webp required libwebp, and PBF requires protobuf.
You should get both by default if you build with vcpkg.
If you're not using vcpkg, you'll need to build and link these yourself.
—
Reply to this email directly, view it on GitHub
<#2689 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNLDTVOCGU7DR26FLSEPB32LZNQHAVCNFSM6AAAAABVRCC77SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJQGM2DONI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Glenn:
Latest update - I added the libwebp.dll to the release folder and can now
see the Natural Earth from mbtiles.
I still cannot see pbf data. The LibProtobuf dll is in the folder. I
still get the error message when trying to load osm data in an mbtile. I do
not get the error message if I try to load the pbf file with the same code
that I sent in my initial post for this topic. That is the same code that
I use to load shape files and they show properly. Another interesting data
point - the data from the pbf file is showing up in the cache so it appears
it is being parsed. I cannot open the cache osgb file with osgViewer
though due to an error Unsupported wrapper class osgEarth::StringObject.
Bruce
…On Tue, Jan 21, 2025 at 11:59 AM Bruce Clay ***@***.***> wrote:
Glenn:
I did build from the vcpkg. I have libprotobuf.dll and it is using it
because the app does not start if I remove it. I am in the process of
building libwebp. Are there any dlls that I need to copy over?
It seems odd that if I try to load OSM mbtil I get an eror message stating
i nor support for pbf yet when I load one with the code I posted it does
not error rather it acts like it is loading just not showing.
Bruce
On Tue, Jan 21, 2025 at 9:53 AM Glenn ***@***.***> wrote:
> Webp required libwebp, and PBF requires protobuf.
> You should get both by default if you build with vcpkg.
> If you're not using vcpkg, you'll need to build and link these yourself.
>
> —
> Reply to this email directly, view it on GitHub
> <#2689 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADNLDTVOCGU7DR26FLSEPB32LZNQHAVCNFSM6AAAAABVRCC77SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJQGM2DONI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Try running the example in the
Zoom in close to a city and you should see OSM data. If you do, your pbf is working. |
Beta Was this translation helpful? Give feedback.
-
I am finally getting through some of my wish list of capabilities, I tried to load the prebuilt Natural Earth mbtiles and got an error message could not find webp plugin. Then I tried to load prebuilt us OSM mbtile file and got an error pbf plugin not found. I am using OpenSceneGraph 3.6.5 and osgEarth from somewhere around September with Visual Studio 2022.
Since I am getting errors about sub plugins I assume the osgEarth MBTilesImageLayer is working for the most part but it needs other plugins to support the data within them. I could not find any webp or pbf plugins in the output directory though I did see a mention of webp in one of the xml files
Are these sub-projects or independent libraries I need to work with mbtiles? Are there other plugins I might need to work with some of the common dataset used in mbtiles?
Bruce
Beta Was this translation helpful? Give feedback.
All reactions