I was wondering if it is possible to display a map in ol3, which is constructed as WCS in MapServer/GeoServer?

  • 1
    As is evident in the comments on one answer the question in the title is different from what is asked in the question body, confusing the two answerers as to what was being asked. Consequently, it is asking two questions which makes this too broad for focused Q&A. – PolyGeo Jan 9 '18 at 9:17

Layers configured using WCS service are exposed through WMS service. At least in geoserver is that way. So you may configure your layer like any other wms layer.

new ol.layer.Image({
    extent: [-13884991, 2870341, -7455066, 6338219],
    source: new ol.source.ImageWMS({
      url: 'http://demo.boundlessgeo.com/geoserver/wms',
      params: {'LAYERS': 'topp:states'},
      serverType: 'geoserver'
  • No probs. glad to help – pavlos Oct 21 '15 at 8:05
  • 1
    I can't see how this answers the question about WCS support. The output of a WCS and a WMS are different, so whilst you can expose some coverage data through a WMS, you aren't getting access to raw coverage data, which is what a WCS gives you. – nmtoken Mar 25 '17 at 9:01
  • 2
    He only wanted to display a WCS layer using geoserver. This can be achieved using WMS service from geoserver (doc here ---> docs.geoserver.org/latest/en/user/services/wcs/…). By the way if you have a better answer why dont you provide it???????? It would be much more helpful for the people reading – pavlos Mar 25 '17 at 13:07
  • The title of the question is does OpenLayers 3 support WCS – nmtoken Mar 25 '17 at 14:00
  • 1
    @nmtoken Such hair splitting. OpenLayers uses a "layer" as the basic build block of creating a map; it doesn't matter if WCS has a concept of layers or not. Answers don't have to directly answer the title question as written; they can provide a different approach that bypasses the question entirely. This is not only valid but encouraged on SE. This answer is plenty useful. – jpmc26 Oct 1 '18 at 15:53

Does OpenLayers 3 support WCS?

No, there is no built-in support for WCS in OpenLayers of any version.

If you are the service/data provider and your coverage data is 2-D, you could consider a work around of also supplying a WMS of your data. If you are not the service provider and you only have a WCS endpoint to consume, then you will have to roll your own code. Similarly if you have a multi-dimensional coverage and you want to provide 2-D data.

For example here's an example of a GeoServer WCS being consumed by OpenLayers 2:

http://ogcdev.bgs.ac.uk/ogcclient/WCS/GetCoverage_v2_0_1.html WCS 2.0.1 being accessed through OL-2

  • He doesnt ask for WCS support for ol3. He wants to display a WCS layer in ol3. Better read the question again. – pavlos Mar 25 '17 at 13:22

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