to the National Atlas Home page
About | Fact Sheets | Contact Us | Partners | Products | Site Map | FAQ | Help | Follow us on Twitter 
AgricultureBiologyBoundariesClimateEnvironmentGeologyGovernmentHistoryMappingPeopleTransportationWater
to the Interactive Map MakerMap LayersPrintable MapsWall MapsDynamic MapsArticlesMapping Professionals
 
 

Technical Information About the National Atlas Web Map Service

 
 

These instructions are for Web map services (WMS) consumers who want to connect to nationalatlas.gov™ using Open Geospatial Consortium (OGC) protocols for interoperability and access. Anyone can connect to the National Atlas of the United States® by supplying valid OGC parameter values to our Web services uniform resource locator (URL).

An Introduction to National Atlas Web Map Services is also available.

Accessing the Capabilities File
The National Atlas WMS currently contains over 2,400 individual layers. A single capabilities file for all layers is available, but because it is quite a large file, we have also grouped the layers into broad categories that correspond to the chapters of the National Atlas. Use the online addresses in Table 1 to access the capabilities file for the categories of interest to you.

 
Category URL Size
Agriculture http://webservices.nationalatlas.gov/wms/agriculture?SERVICE=WMS&REQUEST=GetCapabilities 31 KB
Biology http://webservices.nationalatlas.gov/wms/biology?SERVICE=WMS&REQUEST=GetCapabilities 1.55 MB
Boundaries http://webservices.nationalatlas.gov/wms/boundaries?SERVICE=WMS&REQUEST=GetCapabilities 10 KB
Climate http://webservices.nationalatlas.gov/wms/climate?SERVICE=WMS&REQUEST=GetCapabilities 78 KB
Environment http://webservices.nationalatlas.gov/wms/environment?SERVICE=WMS&REQUEST=GetCapabilities 9 KB
Geology http://webservices.nationalatlas.gov/wms/geology?SERVICE=WMS&REQUEST=GetCapabilities 51 KB
History http://webservices.nationalatlas.gov/wms/history?SERVICE=WMS&REQUEST=GetCapabilities 11 KB
Map Reference http://webservices.nationalatlas.gov/wms/map_reference?SERVICE=WMS&REQUEST=GetCapabilities 11 KB
People http://webservices.nationalatlas.gov/wms/people?SERVICE=WMS&REQUEST=GetCapabilities 454 KB
Transportation http://webservices.nationalatlas.gov/wms/transportation?SERVICE=WMS&REQUEST=GetCapabilities 9 KB
Water http://webservices.nationalatlas.gov/wms/water?SERVICE=WMS&REQUEST=GetCapabilities 144 KB
All Layers http://webservices.nationalatlas.gov/wms?SERVICE=WMS&REQUEST=GetCapabilities 2.30 MB

Table 1

 

The above URLs will default to WMS version 1.3.0. You can change the WMS version by appending an optional parameter with the desired WMS version. For example, to specify WMS version 1.1.1, append "&VERSION=1.1.1" to the URLs in the table above. Valid version numbers are 1.3.0, 1.1.1, 1.1.0, 1.0.7, and 1.0.0. Please consult the OGC Implementation Specification for Web Map Services.

Note for ESRI Users
If you use ArcGIS 9.3.x, be sure to specify WMS version 1.1.1 or lower.

Building a Map Request
Build a map request by using the basic WMS URL (http://webservices.nationalatlas.gov/wms?) followed by valid parameter/value pairs separated by an ampersand (&). Table 2 describes the available parameter/value pairs.

 Parameter Description
Required/
Optional
 Valid Values  Default Value
SERVICE=WMS The name of the service. In this case, Web Map Service.
Required
WMS  
REQUEST=type The type of request.
Required
GetMap  
VERSION=version The version of the requested service.
Optional
1.3.0, 1.1.1, 1.1.0, 1.0.7, 1.0.0 1.3.0
FORMAT=output_format Image file format of the map.
Required
PNG, GIF, JPEG  
WIDTH=output_width Width in pixels of resulting map.
Required
A valid whole number expressed in pixels.  
HEIGHT=output_height Height in pixels of resulting map.
Required
A valid whole number expressed in pixels.  
LAYERS=layer_list Comma-separated list of layers to be mapped. The order they are listed in determines drawing order: first in the list = bottom-most layer; last in the list = top-most layer.
Required
Individually listed in the capabilities file.  

For WMS version 1.3.0:
CRS=EPSG:id_code

For WMS versions 1.1.1 and below:
SRS=EPSG:id_code

Coordinate Reference System (CRS) or Spatial Reference System (SRS) identifier.
Required

CRS:84, EPSG:4326, EPSG:2163, EPSG:102100, EPSG:4269, EPSG:4267, EPSG:54004, EPSG:54008, EPSG:3785, EPSG:3857, EPSG:102113, EPSG:900913

The files use the EPSG:4326 projection. We recommend using this value for optimal performance.

 
BBOX=minx,miny,
maxx,maxy
Bounding box corners (lower left, upper right) in SRS units.
Required
Four comma-delimited numeric values. The full extent of National Atlas layers, in the EPSG:4326 projection, is:
-180,0,0,90
 
TRANSPARENT=value Map’s background transparency.
Optional

TRUE, FALSE

Note that the JPG format does not support transparency, so specifying TRANSPARENT=TRUE will have no effect.

TRUE for PNG images; otherwise FALSE
BGCOLOR=color_value Hexidecimal value for the map’s background color.
Optional
A hexadecimal value, e.g. 0xFFFFFF is white. 0xFFFFFF
STYLES=style_list Comma-separated list of styles. Named styles are not supported, so use "STYLES=" for all map requests.
Required; use "&STYLES=" in the parameters list
[blank]  
EXCEPTIONS=
exception_format
The format in which exceptions are reported.
Optional

The value depends on which WMS version you specify.

For version 1.3.0: XML, INIMAGE, BLANK

For versions 1.1.1 and 1.1.0: application/vnd.ogc.se_xml, application/vnd.ogc.se_inimage, application/vnd.ogc.se_blank

For versions 1.0.7 and 1.0.0: WMS_XML, BLANK, INIMAGE

For version 1.3.0: XML

For versions 1.1.1 and 1.1.0: application/vnd.ogc.se_xml

For versions 1.0.7 and 1.0.0: WMS_XML

Table 2

 

As an example, the following map request will generate the map in Figure 1. Note that the resulting map displays the Seismic Hazard layer ("seihaz") and the States layer ("states").

http://webservices.nationalatlas.gov/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=PNG&WIDTH=300&HEIGHT=425&SRS=EPSG:4326&BBOX=-125,31,-110,50&LAYERS=seihaz,states

North America map drawn by web mapping services
Figure 1

When values are invalid, an error message will indicate which parameter/value pair is invalid according to the format of the Exceptions type. For example, if you are using WMS version 1.3.0 and if the parameter value EXCEPTIONS = INIMAGE is supplied, then an image that has the error message embedded in it is returned. If the parameter value EXCEPTIONS = BLANK is supplied, then a blank image is returned. If the parameter value EXCEPTIONS = XML or no Exceptions parameter is included, then the error message is returned in XML format.

nationalatlas.gov™ map layers are listed in the capabilities file between layer tags. For example:

<Layer queryable="0" opaque="0" cascaded="0">
     <Name>seihaz</Name>
     <Title>Geology - Seismic Hazard</Title>
     <EX_GeographicBoundingBox>
          <westBoundLongitude>-179.127</westBoundLongitude>
          <eastBoundLongitude>179.765</eastBoundLongitude>
          <southBoundLatitude>18.9155</southBoundLatitude>
          <northBoundLatitude>71.3575</northBoundLatitude>
     </EX_GeographicBoundingBox>
     <BoundingBox CRS="" minx="-179.127" miny="18.9245" maxx="179.765" maxy="71.3575"/>
     <Style>
          <Name>default</Name>
          <Title>default</Title>
          <LegendURL width="71" height="21">
               <Format>image/png</Format>
               <OnlineResource xlink:type="simple" xlink:href="http://webservices.nationalatlas.gov/
                    wms?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&
                    layer=seihaz&format=image/png&STYLE=default
"/>
          </LegendURL>
     </Style>
</Layer>

In this example, name tags within the layer tags define the name of the map layer. All layers in the National Atlas WMS have unique names, and this map layer, named "seihaz," is titled "Geology - Seismic Hazard." Notice that the URL for the legend graphic is in the OnlineResource tag, within the LegendURL tags.

Reporting Problems with the National Atlas WMS
Contact the National Atlas WMS Team by clicking on atlasmail at the bottom of most pages on nationalatlas.gov.