Re: [thredds] TDS 4.2.x WMS support for EPSG 3857, 3408, and 3409 CRS [was: Re: EPSG 3857 (google maps / 900913) in TDS 4.2.5]

  • To: John Maurer <jmaurer@xxxxxxxxxx>
  • Subject: Re: [thredds] TDS 4.2.x WMS support for EPSG 3857, 3408, and 3409 CRS [was: Re: EPSG 3857 (google maps / 900913) in TDS 4.2.5]
  • From: Jay Alder <jay.alder@xxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 4 Apr 2011 17:32:40 -0700
John, I ran into this a couple days ago. EPSG 3857 uses meters, so you're bbox 
should be in meters rather than lat/lon.

On Apr 4, 2011, at 5:26 PM, John Maurer wrote:

> Many thanks, Ethan (and Jon Blower). However, although I no longer get an 
> error when using EPSG:3857, I now get a blank map. Here is an example that 
> works in EPSG:4326 (gives a green map of SST) but gives a blank map in 
> EPSG:3857. 
> 
> http://oos.soest.hawaii.edu/thredds/wms/hioos/roms_forec/hiig/HI-ROMS_Forecast_Model_Run_Collection_best.ncd?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=temp&STYLES=boxfill/rainbow&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=true&BBOX=-160.3125,16.63619187839765,-157.5,19.31114335506464&WIDTH=256&HEIGHT=256&CRS=EPSG:4326&ELEVATION=-0.016666666666666666&TIME=2011-04-05T00:00:00Z&NUMCOLORBANDS=256&COLORSCALERANGE=23.0,27.0
> http://oos.soest.hawaii.edu/thredds/wms/hioos/roms_forec/hiig/HI-ROMS_Forecast_Model_Run_Collection_best.ncd?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=temp&STYLES=boxfill/rainbow&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=true&BBOX=-160.3125,16.63619187839765,-157.5,19.31114335506464&WIDTH=256&HEIGHT=256&CRS=EPSG:3857&ELEVATION=-0.016666666666666666&TIME=2011-04-05T00:00:00Z&NUMCOLORBANDS=256&COLORSCALERANGE=23.0,27.0
> In addition, here are two GetMetadata examples. The first one works 
> (EPSG:4326) but the second one gives no results (EPSG:3857):
> http://oos.soest.hawaii.edu/thredds/wms/hioos/roms_forec/hiig/HI-ROMS_Forecast_Model_Run_Collection_best.ncd?service=WMS&version=1.3.0&REQUEST=GetMetadata&item=minmax&LAYERS=temp&CRS=EPSG:4326&BBOX=-162.1636962890625,18.578568865536024,-152.7978515625,22.492257220085193&WIDTH=1705&HEIGHT=761&TIME=2011-04-01T18:00:00Z&ELEVATION=-0.016666666666666666
> http://oos.soest.hawaii.edu/thredds/wms/hioos/roms_forec/hiig/HI-ROMS_Forecast_Model_Run_Collection_best.ncd?service=WMS&version=1.3.0&REQUEST=GetMetadata&item=minmax&LAYERS=temp&CRS=EPSG:3857&BBOX=-162.1636962890625,18.578568865536024,-152.7978515625,22.492257220085193&WIDTH=1705&HEIGHT=761&TIME=2011-04-01T18:00:00Z&ELEVATION=-0.016666666666666666
> 
> Seems like we're almost there but not quite?...
> Cheers,
> John
> 
> On Mon, Apr 4, 2011 at 1:18 PM, Ethan Davis <edavis@xxxxxxxxxxxxxxxx> wrote:
> Hi all,
> 
> I have a TDS snapshot available at
> 
> ftp://ftp.unidata.ucar.edu/pub/thredds/4.2/snapshot/thredds.war
> 
> This snapshot supports all three of the CRS listed in the WMS
> GetCapabilities document that weren't working: EPSG:3857, EPSG:3408, and
> EPSG:3409. As discussed in recent emails, this involved adding the WKT
> for these three CRS to the epsg.properties file in WB-INF/lib/epsg-wkt.jar.
> 
> However, the WKT for EPSG 3408 and 3409 (given below) which came from
> the EPSG database (thanks Jon) was not successfully parsed by the
> GeoToolkit library. The error message was:
> 
>    Error in "AXIS": Parameter "orientation" is missing.
> 
> After google-ing around a bit, I tried a few changes to the "Easting"
> and "Northing" AXIS sections but only had success when I completely
> removed these sections. By success, I mean that I don't get an exception
> when making a request with either of these CRS and I get a reasonable
> looking image back.
> 
> However, not really understanding these CRS or their WKT, I'm a bit
> uncomfortable with this solution. If anyone has a better solution than
> removing these two AXIS sections, please let me know. Or, if anyone can
> verify that these CRS are working properly, that would be great as well.
> 
> Thanks,
> 
> Ethan
> 
> ----------
> EPSG:3408
> 
> PROJCS["NSIDC EASE-Grid North",
>  GEOGCS["Unspecified datum based upon the International 1924 Authalic
> Sphere",
>    DATUM["Not specified (based on International 1924 Authalic Sphere)",
>      SPHEROID["International 1924 Authalic Sphere", 6371228.0, 0.0,
> AUTHORITY["EPSG","7057"]],
>      AUTHORITY["EPSG","6053"]],
>    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
>    UNIT["degree", 0.017453292519943295],
>    AXIS["Geodetic latitude", NORTH],
>    AXIS["Geodetic longitude", EAST],
>    AUTHORITY["EPSG","4053"]],
>  PROJECTION["Lambert Azimuthal Equal Area (Spherical)",
> AUTHORITY["EPSG","1027"]],
>  PARAMETER["latitude_of_center", 90.0],
>  PARAMETER["longitude_of_center", 0.0],
>  PARAMETER["false_easting", 0.0],
>  PARAMETER["false_northing", 0.0],
>  UNIT["metre", 1.0],
>  AXIS["Easting", "South along 90°E"],
>  AXIS["Northing", "South along 180°"],
>  AUTHORITY["EPSG","3408"]]
> ----------
> EPSG:3409
> 
> PROJCS["NSIDC EASE-Grid South",
>  GEOGCS["Unspecified datum based upon the International 1924 Authalic
> Sphere",
>    DATUM["Not specified (based on International 1924 Authalic Sphere)",
>      SPHEROID["International 1924 Authalic Sphere", 6371228.0, 0.0,
> AUTHORITY["EPSG","7057"]],
>      AUTHORITY["EPSG","6053"]],
>    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
>    UNIT["degree", 0.017453292519943295],
>    AXIS["Geodetic latitude", NORTH],
>    AXIS["Geodetic longitude", EAST],
>    AUTHORITY["EPSG","4053"]],
>  PROJECTION["Lambert Azimuthal Equal Area (Spherical)",
> AUTHORITY["EPSG","1027"]],
>  PARAMETER["latitude_of_center", -90.0],
>  PARAMETER["longitude_of_center", 0.0],
>  PARAMETER["false_easting", 0.0],
>  PARAMETER["false_northing", 0.0],
>  UNIT["metre", 1.0],
>  AXIS["Easting", "North along 90°E"],
>  AXIS["Northing", "North along 0°"],
>  AUTHORITY["EPSG","3409"]]
> ----------
> 
> _______________________________________________
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/
> 
> _______________________________________________
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/

-- 
Jay Alder
Graduate Student
Geosciences
Wilkinson Hall 105
http://blogs.oregonstate.edu/paleo

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