# WMS reprojection

**URL:** <https://community.cesium.com/t/wms-reprojection/6037>\
**Category:** CesiumJS\
**Created:** [September 11, 2017, 12:47pm UTC](https://community.cesium.com/t/wms-reprojection/6037 "2017-09-11T12:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan.vybiral1](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jan.vybiral1](https://community.cesium.com/u/jan.vybiral1)\
**Post date:** [September 11, 2017, 12:47pm UTC](https://community.cesium.com/t/wms-reprojection/6037/1 "2017-09-11T12:47:15Z")

</div>

Hi,

I'm having problems displaying WMS layer in cesium:

> **[Cesium Sandcastle](https://sandcastle.cesium.com/?src=Hello%20World.html&label=Showcases&gist=dd220b8d6cbea0480e4d60cdd249bf08)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

Looks like the server doesn't support EPSG:4326, becuase I'm getting these responses:

\<?xml version="1.0" encoding="utf-8"?\>  
\<ServiceExceptionReport version="1.1.1"\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<ServiceException code="InvalidSRS"\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<![CDATA[Invalid SRS given (EPSG:4326).]]\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</ServiceException\>  
\</ServiceExceptionReport\>

Is there a way to display WMS layer in cesium with different projection than epsg:4326 (maybe like in openlayers with proj4js)? It seems to be working when I reproject it using geoserver, but I would prefer some way to do it in the app without extra server.

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [September 15, 2017, 6:10pm UTC](https://community.cesium.com/t/wms-reprojection/6037/2 "2017-09-15T18:10:32Z")

</div>

Hi there,

You can pass additional parameters in the web request that may be specific the that server using the parameters option, like this:

imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({

url : ‘[https://maps.zg.ch/basisplan\_sw/service.svc/get](https://maps.zg.ch/basisplan_sw/service.svc/get)’,

layers : ‘Basisplan\_sw’,

paramters: {

projection: …

}

}));

However, Cesium only supports two projections: EPSG:4326 or what we call Geographic Projection, and EPSG:3857 or Web Mercator. If you use another projection, it will appear distorted.

Thanks,

Gabby
