Create WMS from Raster Layer

I added a raster layer to main resource group. I created a style on it. It opens fine in webmap. My aim is to create a WMS service from it that I can then use in other applications. I created a WMS Service and added the raster layer via style to it. But this service doesn’t open in webmap. Can someone tell me how to do it so that I can create a WMS service that can be called from QGIS or any other third party web app?

I am using version 26.07 on Ubuntu.

Thanks

Hello! Did you create a WMS service resource with WMS and WMTS endpoints inside? And do you try to use these endpoints in external apps without success?

The most probable reason is permissions configuration. You should grant “read resource” and “read data” permissions to the published raster resource and style, and “read resource” and “access service” to the WMS service resource, for the user you want to use this service. For Guest, if you want to make the service public.

See Managing access rights

If your NGW instance is accessible from the internet, we can take a closer look.

Hi, thanks for replying. i don’t think its a permissions issue because I cannot access the service even from NGIS webmap. I can add the raster but the service doesn’t let me add it to the webmap.

This is how I created it -

  1. I created a raster layer resource and added my raster.
  2. I added a style to it.
  3. I created a WMS service resource and pointed it to raster style.

I think I am missing something in this workflow.

Hello, resource “WMS service” cannot be added to NGW web map. It is dedicated to publish the data outside NextGIS Web.

You can add “WMS layer” resources to web maps, based on “WMS connection” resources.

Docs: WFS, WMS, TMS layers

Technically you can create WMS connection to the WMS service published in the same Web GIS, but it doesn’t make any sense - much better to use source layers directly on the map.

Hi, now i used permissions as advised in the article. I installed NextGIS Connect plugin in QGIS. I logged into NextGIS Connect as admin, so permissions should not matter.

  • When I add the service i get error - Layer “layer name” is not valid: Cannot calculate extent.
  • When I add the raster layer - Cannot open GDAL dataset /vsicurl/https://

Raster layer opens fine in the web. I can send u the link to the service in private.

Thanks

Hello, send me the link please
eduard.kazakov@nextgis.com

1 Like

Solved

1 Like

@ekazakov thanks for your help. I was trying to access this service from ArcGIS. It adds to the map but nothing appears. There is no prompt for credentials. Do you have nay experience wit such scenarios?

Hello. Is this service public, or password-protected?

I have not set any permissions on the service. Only the main resource group has permissions like in the pic -

With these settings I can view the service in QGIS

What I see, is that two important permissions are missed - Read data and Access service

1 Like

Also, rules for Authenticated and Guest are applied only to the Main resource group without propagation, so they never reach the WMS service resource.
In QGIS, I think, you connect as an administrator, thats why it works