marinebon / p2p

Pole to Pole website
https://marinebon.github.io/p2p
3 stars 1 forks source link

chlor_a addWMSTiles() returns error.xml : must be EPSG:4326 or CRS:84 #13

Closed 7yl4r closed 5 years ago

7yl4r commented 5 years ago

error.xml content:

<ServiceExceptionReport version="1.3.0" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException>
  Query error: SRS=EPSG:3857 must be EPSG:4326 or CRS:84.
</ServiceException>
</ServiceExceptionReport>

This is the cause of the following error from chrome's debugging console on the site pages:

Cross-Origin Read Blocking (CORB) blocked cross-origin response 
https://coastwatch.pfeg.noaa.gov/erddap/wms/nesdisVHNSQchlaMonthly/request?&service=WMS&request=GetMap&layers=nesdisVHNSQchlaMonthly%3Achlor_a&styles=&format=image%2Fpng&transparent=true&version=1.3.0&time=2019-06-01T00%3A00%3A00Z&width=256&height=256&crs=EPSG%3A3857&bbox=-7514065.628545968,1252344.2714243277,-6261721.357121639,2504688.542848655 
with MIME type application/xml. 
See https://www.chromestatus.com/feature/5629709824032768 for more details.

I suspect we may need to change the "crsClass" string passed to leafletCRS

https://github.com/marinebon/p2p/blob/3944fe94d855ae6f21adf1181306835ce8783522/site_template.Rmd#L126

However, I have no idea what string we should use instead.


@eqmh and I compared ERDDAP metadata for the SST data vs the chlor data and the only potentially relevant difference found was that the chlor data contains an "altitude" dimension.

We found no references to EPSG or CRS in either metadata.


@bbest : do you know what is going on here?