osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

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

Open jasonbeverage opened this issue 2 months ago • 1 comments

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.

jasonbeverage avatar Apr 29 '24 16:04 jasonbeverage

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

gwaldron avatar May 02 '24 12:05 gwaldron

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

jasonbeverage avatar May 16 '24 15:05 jasonbeverage