Skip to content

Commit

Permalink
Document Quantized Mesh support (fix qgis#9275)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdkon committed Oct 14, 2024
1 parent 15eb0a8 commit 02b2926
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 16 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 21 additions & 12 deletions docs/user_manual/managing_data_source/opening_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1601,11 +1601,14 @@ Once a connection to an ArcGIS REST Server is set, it's possible to:
.. index:: 3D Tiles services
.. _3d_tiles:

Using 3D tiles services
-----------------------
Using 3D tiled scene services
------------------------------

QGIS supports multiple formats of 3D tiled datasets, grouped together as "tiled
scenes". These include Cesium 3D Tiles and Quantized Mesh tiles.

To load a 3D tiles into QGIS, use the |addTiledSceneLayer| :guilabel:`Scene` tab
in the :guilabel:`Data Source Manager` dialog.
To load a tiled scene dataset into QGIS, use the |addTiledSceneLayer|
:guilabel:`Scene` tab in the :guilabel:`Data Source Manager` dialog.

.. _figure_scene:

Expand All @@ -1614,26 +1617,26 @@ in the :guilabel:`Data Source Manager` dialog.

Data Source Manager - Scene

Create a :guilabel:`New Cesium 3D Tiles Connection` by clicking on
:guilabel:`New`. Add :guilabel:`Name` and :guilabel:`URL` or add
local tileset file.
Create a connection by clicking on :guilabel:`New`. You can add a
:guilabel:`New Cesium 3D Tiles Connection` or a :guilabel:`New Quantized Mesh
Connection`.

Support for 3D tiles:
Choose a :guilabel:`Name` and set the :guilabel:`URL` to the URL of a layer description JSON file.

* Remote source - ``http://example.com/tileset.json``
* Local files - ``file:///path/to/tiles/tileset.json``
The URL may be remote (e.g. ``http://example.com/tileset.json``) or local (e.g.
``file:///path/to/tiles/tileset.json``).

.. _figure_tiled_scene_connection:

.. figure:: img/tiled_scene_connection.png
:align: center

Tiled Scene Connection
Tiled Scene Connection

You can also add the service from :guilabel:`Browser Panel`.

After creating new connection you are able to :guilabel:`Add` the new layer
to your map.
to your map.

.. _figure_3d_tiles_layer:

Expand All @@ -1642,6 +1645,12 @@ to your map.

3D Tiles Layer - Textured

.. _figure_quantized_mesh_layer:

.. figure:: img/quantized_mesh_layer.png
:align: center

Quantized Mesh layer

.. Substitutions definitions - AVOID EDITING PAST THIS LINE
This will be automatically updated by the find_set_subst.py script.
Expand Down
1 change: 1 addition & 0 deletions docs/user_manual/map_views/3d_map_view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Terrain
<http://s3.amazonaws.com/elevation-tiles-prod/>`_
produced by Mapzen tools -- more details at https://registry.opendata.aws/terrain-tiles/
* a loaded :guilabel:`Mesh` dataset
* a :guilabel:`Quantized Mesh` layer from the project
* :guilabel:`Elevation`: Raster or mesh layer to be used for generation of
the terrain.
The raster layer must contain a band that represents elevation.
Expand Down
11 changes: 7 additions & 4 deletions docs/user_manual/working_with_3d_tiles/3d_tiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and display 3D content, optimising performance by dynamically loading
appropriate levels of detail. This technology is widely used in urban
planning, architecture, simulation, gaming, and virtual reality, providing
a standardised and interoperable solution for visualising complex geographical
data. Read :ref:`3d_tiles` for more details.
data.


.. _figure_3d_tiles_example:
Expand All @@ -33,11 +33,14 @@ data. Read :ref:`3d_tiles` for more details.
Data Sources
============

Support for 3D tiles:
Currently, QGIS supports two formats of 3D tiles:

* Remote source - ``http://example.com/tileset.json``
* Local files - ``file:///path/to/tiles/tileset.json``
* `Ceisum 3D tiles <https://cesium.com/why-cesium/3d-tiles/>`_,
used primarily for complex 3D models of buildings or whole cities.
* `Quantized Mesh tiles <https://github.com/CesiumGS/quantized-mesh>`_,
used for terrain elevation data.

See :ref:`3d_tiles` for instructions on how to add these data sources to QGIS.

Using data from Cesium ion
--------------------------
Expand Down

0 comments on commit 02b2926

Please sign in to comment.