Skip to content

Commit

Permalink
Update j_schematisation_scripting.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
leendertvanwolfswinkel committed Apr 17, 2024
1 parent 51167cc commit 88ce96c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/j_schematisation_scripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Raster data
Editing rasters with GDAL command line tools
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

GDAL is a free open source library for handling raster data. It also includes a set of command line tools that you can use to manipulate your 3Di rasters. The :ref:`3Di Modeller Interface<mi_introduction>` includes a command line interface called the OSGeo4W Shell. It can be found through the Windows start menu. A `full list of GDAL command line programs <https://gdal.org/programs/index.html#raster-programs>`_ can be found in the GDAL documentation.
GDAL is a free open source library for handling raster data. It also includes a set of command line tools that you can use to manipulate your 3Di rasters. The :ref:`3Di Modeller Interface<mi_introduction>` includes a command line interface called the OSGeo4W Shell. It can be found through the Windows start menu. A `full list of GDAL command line programs <https://gdal.org/programs/index.html#raster-programs>`_ can be found in the GDAL documentation.

Some examples are given below

Expand Down Expand Up @@ -93,7 +93,7 @@ The creation options (``-co``) PREDICTOR and ZLEVEL are not strictly necessary,
Editing rasters with Python
^^^^^^^^^^^^^^^^^^^^^^^^^^^

The raster file format that 3Di uses is GeoTIFF. These files can be handled and edited with many Python libraries, most notably `GDAL<https://gdal.org/api/index.html#python-api>`_, `RasterIO<https://rasterio.readthedocs.io/en/stable/>`_, and `dask-geomodeling<https://dask-geomodeling.readthedocs.io/en/latest/>`_. Once the raster data is read as an array, it can be manipulated with libraries such as `NumPy<https://numpy.org/doc/stable/>`_, `SciPy<https://docs.scipy.org/doc/scipy/>`_, and/or `Xarray<https://docs.xarray.dev/en/stable/>`_
The raster file format that 3Di uses is GeoTIFF. These files can be handled and edited with many Python libraries, most notably `GDAL <https://gdal.org/api/index.html#python-api>`_, `RasterIO <https://rasterio.readthedocs.io/en/stable/>`_, and `dask-geomodeling <https://dask-geomodeling.readthedocs.io/en/latest/>`_. Once the raster data is read as an array, it can be manipulated with libraries such as `NumPy <https://numpy.org/doc/stable/>`_, `SciPy <https://docs.scipy.org/doc/scipy/>`_, and/or `Xarray <https://docs.xarray.dev/en/stable/>`_


.. _vector_and_table_data:
Expand All @@ -114,9 +114,9 @@ The vector and table data is stored in a Spatialite or Geopackage file. Both of
Using SQL
^^^^^^^^^

It is a relational database stored in a file, and SQL can be used to interact with its contents. The SQL dialect to use is the same as for SQLite, see `this page <https://www.sqlite.org/lang.html>`_. The spatial function you can use are the same as for Spatialite; these functions are `listed here <https://www.gaia-gis.it/gaia-sins/spatialite-sql-5.1.0.html>`_.
It is a relational database stored in a file, and SQL can be used to interact with its contents. The SQL dialect to use is the same as for SQLite, see `this page <https://www.sqlite.org/lang.html>`_. The spatial function you can use are the same as for Spatialite; these functions are `listed here <https://www.gaia-gis.it/gaia-sins/spatialite-sql-5.1.0.html>`_.

You can use any client that has Spatialite support, for example the `Database manager<https://docs.qgis.org/latest/en/docs/training_manual/databases/db_manager.html>`_ in the 3Di Modeller Interface.
You can use any client that has Spatialite support, for example the `Database manager <https://docs.qgis.org/latest/en/docs/training_manual/databases/db_manager.html>`_ in the 3Di Modeller Interface.

The code snippet below illustrates how you can use SQL to add a Pipe to your schematisation

Expand Down

0 comments on commit 88ce96c

Please sign in to comment.