This commit is contained in:
Martin Dobias 2025-09-22 21:26:08 +02:00
parent 6edfbdd66c
commit cb744707bd
2 changed files with 2 additions and 1 deletions

View File

@ -477,7 +477,7 @@ void QgsEsriI3STiledSceneIndex::parseMesh( QgsTiledSceneTile &t, const json &mes
if ( mRootUrl.isLocalFile() )
geometryUri = QStringLiteral( "%1/nodes/%2/geometries/1.bin.gz" ).arg( mRootUrl.toString() ).arg( geometryResource );
else
geometryUri = QStringLiteral( "%1/layers/0/nodes/%1/geometries/1" ).arg( mRootUrl.toString() ).arg( geometryResource );
geometryUri = QStringLiteral( "%1/layers/0/nodes/%2/geometries/1" ).arg( mRootUrl.toString() ).arg( geometryResource );
// parse material and related textures
const json materialJson = meshJson["material"];

View File

@ -608,6 +608,7 @@ class TestQgsEsriI3sLayer(unittest.TestCase):
'contentFormat': 'draco',
'gltfUpAxis': int(Qgis.Axis.Z),
'material': {
'doubleSided': True,
'pbrBaseColorFactor': [1.0, 1.0, 1.0, 1.0],
'pbrBaseColorTexture': 'file://' + temp_dir + '/nodes/16/textures/0.jpg'
}