Hi Heiko,
Sadly the CRS list is hard-coded in the WMS :-(. We will make this
configurable in future. Perhaps the easiest way to make a particular CRS
appear in your Capabilities document is to edit the capabilities_xml.jsp or
capabilities_xml_1_1_1.jsp file and manually add your CRS. For example, where
it says:
<c:forEach var="crsCode" items="${supportedCrsCodes}">
<CRS>${crsCode}</CRS>
</c:forEach>
You could add directly underneath this:
<CRS>myCRS</CRS>
Provided that the CRS code is in the EPSG database, it should work (although a
few codes like Google's EPSG:3857 are not usable in the current TDS - I think
Ethan is working on it).
Hope this helps,
Jon
------------------------------
Message: 2
Date: Wed, 30 Mar 2011 11:07:14 +0200
From: Heiko Klein <Heiko.Klein@xxxxxx>
To: thredds@xxxxxxxxxxxxxxxx
Subject: [thredds] Howto extend list of CRS codes of ncWMS
Message-ID: <4D92F2C2.2060804@xxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
the list of CRS codes has been reduced between 4.1 and 4.2 as described
in
http://www.unidata.ucar.edu/projects/THREDDS/tech/tds4.2/faq.html#wmsLimitedCRS
The sollution described there doesn't work with all WMS-clients, since
some WMS clients parse the GetCapabilities before they build their
interface.
What is the simplest 'hack' to get the wanted CRS into the
GetCapabilities as long as it is not properly configurable? My first
idea was to add the list of CRS manually to the
thredds/WEB-INF/jsp/wms/capabilities*.jsp files.
Best regards,
Heiko