Closed UnoRed1 closed 6 years ago
This is just an example. You need to set at least correct "url" and "LAYERS" parameters.
Instead of query you can use functionalities of gisportal for database management of gisapp.
I need to add a WMS layer: http://pkk5.rosreestr.ru/arcgis/services/Cadastre/CadastreWMS/MapServer/WMSServer
In "LAYERS" should I specify a name for the layer?
I get this code: INSERT INTO layers(name, display_name, type, definition) VALUES ('arso_kcn', 'Aglomeracije', 'WMS', '{ "url": "http://pkk5.rosreestr.ru/arcgis/services/Cadastre/CadastreWMS/MapServer/WMSServer", "params": { "VERSION": "1.1.0", "LAYERS": "PKK", "STYLES": "", "FORMAT": "image/png", "TRANSPARENT": true }, "options": { "opacity": 0.7, "buffer": 0, "displayOutsideMaxExtent": true, "isBaseLayer": false, "singleTile": false } }');
After running the query, I get the line:
Did I do it right? How now to connect a layer to the project?
That looks OK, I would also change name and display name to match your layer (I forgot to mention that earlier).
Adding this layer to your project can be done two ways:
It works. Thank you so much!
I would like to connect the WMS layer as an Overlay. For this, I need to execute this query in PostgreSQL, right?