1)General and general functions.
There are many raster databases on the market. One very well known is Google Maps which provides us with a photo Ortho on the whole world.
Many others exist, most are paid and require a key to use.
This module allows to mount this type of database as a background and thus allows to superimpose our vector maps on photo for example.
A WMS database is used by making requests of the type: I want such raster layer in this rectangle and under such coordinate system.
http:Server.fr/ortho?SERVICE=WMS&REQUEST=GetMap&LAYERS=ortho_2016&FORMAT=image/jpeg&SRS=EPSG:2154&BBOX={BBOX}&WIDTH=512&HEIGHT=512
The server thus calculates an image of this rectangle according to your criteria.
A WMTS base is a tiled base already prepared. You load already existing images (tiles). The advantage is that the server doesn't have to do any calculation and it's often faster.
The disadvantage is that you are imposed a cutting and a coordinate system.
http://server.fr/wmts/ortho/lambert93/{TileMatrix}/{TileCol}/{TileRow}.jpeg
2)The WMS/WMTS property files '.WMTS'.
This file format '.WMTS' is specific to PMS3D software. It contains all the information to load a WMS or WMTS layer.
We could have worked directly on the XML property files requested on the server but, as these requests are formatted in a very diverse way, are either incomplete or too complete and require a lot of questions to select the layer, the style, the format and the coordinate system to decide what we want, I preferred to build an intermediate file that contains what is necessary to load a layer without any questions. Additional parameters like fade, transparency, login that are not in the WMS standard are added.
3)The WMS/WMTS interface of PMS3D.
This function is accessed through the command: PMS_WMTSOr through the BASIC Palette Menu :