Skip to content

BatchTable id value out of bounds error with b3dm files from pg2b3dm #478

@cazitouni

Description

@cazitouni

Hello @manisandro,

I am taking the liberty to open this ticket since we recently updated our QWC client, and we can now use the 3D map.

However, I have configured a theme like this:

        {
          "url": "/qgis/defaut",
          "title": "D\u00e9faut",
          "disabled": false,
          "default": true,
          "tiled": false,
          "mapTips": false,
          "thumbnail": "default.jpg",
          "attribution": "",
          "attributionUrl": "",
          "format": "image/png",
          "mapCrs": "EPSG:3948",
          "map3d": {
          "dtm": {"url": "https://wisiglw.cus.fr/donnees/fondsmap/ORTHOPHOTOS/Raster_Lidar_2021/mnt_raster_cog_2021.tif", "crs": "EPSG:3948"},
          "tiles3d": [
            {
              "name": "gid_canardiere",
              "title": "CANARDIERE",
              "url": "https://wisiglw.cus.fr/donnees/qgis/3dtiles/CANARDIERE/tileset.json"
            }
          ],
              "basemaps": [
                   {"name": "fond_de_carte_gris_ems", "visibility": true, "overview": true}
              ]
          },
          "searchProviders": [
            "sigli"
          ],
          "skipEmptyFeatureAttributes": false,
          "backgroundLayers": [
            {
              "name": "fond_de_carte_gris_ems",
              "printLayer": "wms:https://viewer.wisiglw.cus.fr/qgis/refer_fond_gris#refer_fond_gris",
              "visibility": true
            },
            {
              "name": "fond_de_carte_couleur_ems",
              "printLayer": "wms:https://viewer.wisiglw.cus.fr/qgis/refer_fond_gris#refer_fond_couleur",
              "visibility": false
            }
          ]
        },

3D maps shows well with the DTM and the background but no tarce of the 3d tiles.
If I look in the network requests, a request is made to the tileset.json with a good 200 response but afterward it didn't query the .b3dm tile.

This is the related tileset :

{
  "asset": {
    "version": "1.0"
  },
  "properties": {

  },
  "geometricError": 1,
  "root": {
    "boundingVolume": {
      "region": [0.135288019900986, 0.847330156125956, 0.135308708795508, 0.847343718918651, 187.956764588847, 198.803762534159]
    },
    "geometricError": 1,
    "refine": "REPLACE",
    "content": {
      "boundingVolume": {
        "region": [0.135288019900986, 0.847330156125956, 0.135308708795508, 0.847343718918651, 187.956764588847, 198.803762534159]
      },
      "uri": "tiles/0.b3dm"
    }
  }
}

If i use the tileset.json in a scene in Qgis it works well.

Did I miss anything during the configuration ?

Thanks in advance for you answer,
Kind regards, Clément.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions