# Copernicus data integration via WMS service problem

**URL:** <https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675>\
**Category:** CesiumJS\
**Created:** [June 23, 2015, 8:37am UTC](https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675 "2015-06-23T08:37:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier\_G-R](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Olivier\_G-R](https://community.cesium.com/u/Olivier_G-R)\
**Post date:** [June 23, 2015, 8:37am UTC](https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675/1 "2015-06-23T08:37:08Z")

</div>

Hi,

I'm trying to integrate some Copernicus open data in Cesium but my attempt failed so far.

This is the data I want to use : [http://marine.copernicus.eu/web/69-myocean-interactive-catalogue.php?option=com\_csw&view=details&product\_id=GLOBAL\_ANALYSIS\_FORECAST\_PHYS\_001\_002](http://marine.copernicus.eu/web/69-myocean-interactive-catalogue.php?option=com_csw&view=details&product_id=GLOBAL_ANALYSIS_FORECAST_PHYS_001_002)

See services for WMS access, here is the capabilities : [http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002?version=1.3.0&request=GetCapabilities&service=WMS](http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002?version=1.3.0&request=GetCapabilities&service=WMS)

I'm not very accointed with WMS service, so I might do thing the wrong way, but here what looks like my code :

var viewer = new Cesium.Viewer('cesiumContainer');

// Add a WMS imagery layer  
var imageryLayers = viewer.imageryLayers;  
imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({  
&nbsp;&nbsp;&nbsp;&nbsp;url : ‘[http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002](http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002)’,  
&nbsp;&nbsp;&nbsp;&nbsp;layers : ‘temperature’,  
&nbsp;&nbsp;&nbsp;&nbsp;parameters : {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;version : ‘1.3.0’,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;format : ‘image/png’,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CRS : ‘EPSG:4326’  
&nbsp;&nbsp;&nbsp;&nbsp;}  
}));

So here is what would look like one request :

[http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002?version=1.3.0&format=image%2Fpng&crs=EPSG%3A4326&service=WMS&request=GetMap&styles=&layers=temperature&srs=EPSG%3A4326&bbox=0%2C0%2C90%2C90&width=256&height=256](http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002?version=1.3.0&format=image%2Fpng&crs=EPSG%3A4326&service=WMS&request=GetMap&styles=&layers=temperature&srs=EPSG%3A4326&bbox=0%2C0%2C90%2C90&width=256&height=256)

If you try it, you'll see the image corectly in your browser.

But Cesium does not want to load it.

The network developer tab of firefox indicate a '200 OK' response from these requests, but when I hover my mouse over it I have something that say "impossible to load the image", and no thumbnails.

Any hint why this is not working properly ?

Thanks

Olivier

---

<div class="post-metadata">

**Author:** ![Olivier\_G-R](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Olivier\_G-R](https://community.cesium.com/u/Olivier_G-R)\
**Post date:** [June 23, 2015, 12:13pm UTC](https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675/2 "2015-06-23T12:13:23Z")

</div>

CORS hits me again !

Problem solved

---

<div class="post-metadata">

**Author:** ![jeremycook61](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jeremycook61/32/5534_2.png) [@jeremycook61](https://community.cesium.com/u/jeremycook61)\
**Post date:** [July 15, 2021, 9:54am UTC](https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675/3 "2021-07-15T09:54:56Z")

</div>

How did you solve it? Did you have to use a browser extension?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [July 15, 2021, 8:27pm UTC](https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675/5 "2021-07-15T20:27:46Z")

</div>

@Olivier\_G-R

---

<div class="post-metadata">

**Author:** ![sergemorvan29](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sergemorvan29/32/2085_2.png) [@sergemorvan29](https://community.cesium.com/u/sergemorvan29)\
**Post date:** [July 16, 2021, 5:31pm UTC](https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675/6 "2021-07-16T17:31:23Z")

</div>

Do you know : [https://github.com/Rob–W/cors-anywhere](https://github.com/Rob--W/cors-anywhere) ?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [July 17, 2021, 12:33am UTC](https://community.cesium.com/t/copernicus-data-integration-via-wms-service-problem/2675/7 "2021-07-17T00:33:56Z")

</div>

@sergemorvan29 thanks for pointing this out!
