NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[thredds] Adding projections to WMS/TDS

Hi,

I would like to add new projections to my WMS from TDS 4.3.17 - 20130607.1641

Projections I would like to add are :
Gall-Peters  http://spatialreference.org/ref/sr-org/22/
Robinson http://spatialreference.org/ref/esri/world-robinson/

How do I proceed ?

I have made some tests following the steps below :

1) Explode the epsg-wkt.jar
$ cd tds/apache-tomcat-7.0.34/webapps/thredds/WEB-INF/lib
$ jar xvf epsg-wkt.jar

2) Add OGC WKT Coordinate System encoding for the World Mollweide projection
$vi org/geotoolkit/referencing/factory/epsg/epsg.properties
Add in a last line
54009=PROJCS["World_Mollweide",GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Mollweide"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",0],UNIT["Meter",1],AUTHORITY["EPSG","54009"]]

3) Recreate the jar file
$ jar cvf epsg-wkt.jar org

4) Restart the Tomcat

My testing request is :
http://webportals.ipsl.jussieu.fr:8080/thredds/wms/CARBON/fco2_lmdz_matrix_peylin_1996-2004.nc?REQUEST=GetMap&VERSION=1.3.0&CRS=54009&WIDTH=300&HEIGHT=600&FORMAT=image/png&LAYERS=poste_land&TIME=1997-06-16&BBOX=-100,-30,100,60&STYLES=boxfill/redblue&COLORSCALERANGE=-100,100&NUMCOLORBANDS=30

But I get: The CRS 54009 is not supported by this server

Did I missunderstand something ?
Do I have to rebuild the thredds.war or is the epsg-wkt.jar is dynamically loaded ?

Regards
Patrick

--
LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
Data Analysis and Visualization Engineer
ICMC - IPSL Climate Modelling Centre
--



  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: