I am a beginner to make a web application.

I am using ncWMS to serve the netCDF data. And I put some data in the server, I got a interface like this:

enter image description here

This basically satisfies the function that I need. However, I am not happy with the GUI.

Can anyone please enlighten me on how to get a WMS from this server? As I would like to create a layer in the OpenLayers.


For a basic WMS client, you should be able to just use standard WMS from OpenLayers. The important part is the GetCapabilities URL.

For WMS 1.1.1 is almost certainly something like:

http://{your server name}/ncWMS2/wms?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1

Just change the version for WMS 1.3.0 (i.e. ...VERSION=1.3.0).

Make sure that is working, by opening the URL in the browser.

So now when you create the WMS layer in OpenLayers, you use

url: 'http://{your server name}/ncWMS2/wms?SERVICE=WMS'

or a variation that meets your needs (e.g. to specify a WMS version; or to select a specific source, using the ncWMS extensions.

  • Thank you! I created a WMS layer by: url: 'http://localhost:1030/ncWMS-1.2/wms?SERVICE=wms'. I did check the both GetCapabilities URL are working. Also I put it in the layers of the map. However, why nothing appears? Can you please give me some suggestions? – Zhen-Yue Ch'in Dec 23 '15 at 7:22
  • Its impossible to say without knowing what you did, what errors you've seen, and what debugging you've done (e.g. with firebug). Perhaps that would be another question? – BradHards Dec 23 '15 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.