Wednesday, March 22, 2017

WMS File Update

The U.S. Drought Monitor WMS file have undergone some changes recently. This page will explain what changed and how to use the WMS set up.

Changes

Base URL

The WMS files are hosted on a new server and located at a new URL. Here is the basic URL required to use the WMS service:

http://ndmc-001.unl.edu:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/usdm/service/[map file name].map

WMS Version

The WMS version has been upgraded from 1.1.1 to 1.3.0. As a part of these changes, the coordinate parameter has changed from SRS to CRS. Also with some projections (such as EPSG:4326), the order of the coordinates has changed. The latitude coordinates in the bounding box will come first.

Projections

The WMS files are projected in Web Mercator by default (EPSG:3857) but are also available in WGS84 (EPSG:4326).

File Naming Conventions

The file names have been altered to use a 4-digit year. The map files are now named using this format:

usdm_yyyyMMdd_wms.map

The layer naming convention has also changed:

usdmyyyyMMdd

Examples

Here are some example URLs for January 7th, 2017 and also the current USDM which changes each week:

http://ndmc-001.unl.edu:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/usdm/service/usdm_20170103_wms.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=usdm20170103&
WIDTH=640&HEIGHT=480&crs=EPSG:3857&styles=default&format=image/png&bbox=-18367715.9809,1689200.13961,-6679169.4476,15538711.0963

http://ndmc-001.unl.edu:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/usdm/service/usdm_current_wms.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=usdm_current&
WIDTH=640&HEIGHT=480&crs=EPSG:3857&styles=default&format=image/png&bbox=-18367715.9809,1689200.13961,-6679169.4476,15538711.0963

The National Drought Mitigation Center | University of Nebraska-Lincoln
3310 Holdrege Street | P.O. Box 830988 | Lincoln, NE 68583–0988
phone: (402) 472–6707 | fax: (402) 472–2946 | Contact Us | Web Policy

Department of Commerce
NOAA
Copyright 2017 National Drought Mitigation Center