gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.47k stars 772 forks source link

Error message when loading an mbtiles file that isn't created from osgearth #2509

Closed jasonbeverage closed 3 months ago

jasonbeverage commented 4 months ago

When you load an earth file with an mbtiles layer with a non-osgearth layer you get a complaint like:

osgEarth]* JSON decoding error: * Line 1, Column 1
  Syntax error: value, object or array expected.

This might be from trying to load the profile and there not being one in the mbtiles.

gwaldron commented 4 months ago

We should prob assume it's spherical-mercator per the mbtiles spec?

jasonbeverage commented 3 months ago

Added a check to see if the profileStr might be JSON before attempting to parse it.