Product Support
2101 - Accessing Geospatial Data on the Internet for the Mapping Toolbox
- Web Map Service Maps
- Geospatial Data Files and Formats
- Vector Geospatial Data
- Raster Geospatial Data
- Portals to Global, Regional, and Local Area Geodata
- MATLAB Functions that Access Internet Data Directly
- Abbreviations, Names, and Home Pages for Organizations
- Disclaimer
- Notes
Web Map Service Maps
In R2009b, a new suite of functions and classes was added to the Mapping Toolbox to facilitate interaction with Web Map Service (WMS) servers. WMS servers follow a standard developed by the Open Geospatial Consortium, Inc. (OGC) and provide access to a wealth of geospatial information. With the new features you can search a built-in database of pre-qualified WMS servers and layers; retrieve customized geographic data sets and related metadata; and control the style, extent, and other characteristics of rendered maps. Some examples of available WMS servers and layers include the following:
- NASA/JPL, Blue Marble Layer: High-resolution images of Earth's surface showing seasonal dynamics
- NASA Goddard Insitute for Space Studies, Daily Planet Layer: Continuously updating Moderate Resolution Image Spectroradiometer (MODIS) scenes
- USGS National Map Seamless Server, National Elevation Dataset Layer: Raster elevation data for the U.S.
- MassGIS Server: Spatial data about Massachusetts, such as aerial photography, street maps, and census data
MATLAB Functions that Access Internet Data Directly
The MATLAB functions in the table below read files from URLs. Then you can write the files to a local directory or load them into your MATLAB Workspace. With the exception of urlread and urlwrite, all the functions can read files on local and network file systems using path syntax as well.
|
Read a georeferenced image from GeoTIFF file |
|
|
Uncompress files in the GNU-Zip format |
|
|
Read image from graphics file |
|
|
Extract the contents of a Tar-file |
|
|
Extract the contents of a Zip-file |
|
|
Returns the contents of a URL as a string |
|
|
Save the contents of a URL to a file |
demFilename = 'sanfranciscos.dem'; dataServerURL = 'http://bard.wr.usgs.gov/bard/dem/dems24k/sanfrancisco/'; URL = [dataServerURL demFilename]; urlwrite(URL, demFilename); [lat, lon, Z] = usgs24kdem(demFilename, 2);For additional details, see the Mapping Toolbox documentation for usgs24kdem.
Geospatial Data Files and Formats
Many vector and raster data formats have been developed for storing geospatial data in computer files. Some are widely used, others are obscure. Some are simple, while others have elaborate record and file structures. Some formats are government or international standards, others are simply popular. A format can be general-purpose, specific to a narrow class of data, or may be used just to publish a certain data set.
Using the Mapping Toolbox you can read geodata files in generic exchange formats (e.g., ESRI® shapefiles, GeoTIFF and SDTS files) that a variety of mapping and image processing applications can also read and write. You can also read files that are in a variety of special formats designed to exchange specific sets or kinds of geodata (e.g., GSHHS, DCW, DEM, and DTED files). You can order, and in many cases, download such data over the Internet from public agencies and private distributors. When fees are charged, they are generally quite modest.
The Mapping Toolbox provides generalized sample data in the form of data files for the entire Earth and its major regions, as well as some more detailed demo geodata files covering small areas. These datasets are frequently used in the code examples provided in the Mapping Toolbox documentation. You can find them, along with the demos that use them, in matlabroot/toolbox/map/mapdemos. You can list them, along with their metadata and the demos that use them by typing in MATLAB
ls(fullfile(matlabroot, 'toolbox', 'map', 'mapdemos'))
In addition, the worlddatamap function, available on MATLAB Central, allows you to use worldmap to map a region using data from a shapefile or data grid. Demos of worlddatamap and world vector data in shapefile format are available under the heading worlddatamap Examples.
The following two tables describe a small but useful subset of geodata resources on the Internet, providing URLs from which you can obtain documentation, metadata, and the data sets themselves. The first table describes vector data sets and data products, and the next one describes raster data sets and products. Within each table, entries are arranged alphabetically by the data set or data product name. Click any numbered footnote in the right-hand column to access the page on the Web. Click on any function name to read its documentation page on the MathWorks Web site.
Vector Geospatial Data
Some of the more commonly-used vector (feature) geospatial data sets available over the Internet are described below. Click their names for information on locating the data on the Internet and the Mapping Toolbox commands that read this form of data.
Vector Data Set or Data Product |
Associated Toolbox Functions |
Function Purpose |
Internet URLs for Documentation and Data (HTTP or FTP) |
|
Canadian provincial and Mexican state boundaries in zipped shapefile format |
NOAA/NWS |
unzip |
Expand a zipped archive. Read, write, display, or obtain information about geospatial data and associated attributes in shapefiles. |
Documentation link: [1] |
Digital Chart of the World (DCW) |
DMA, ESRI |
Read, search, or select data or headers from the DCW. Prepared for the U.S. DMA by ESRI in 1992. |
Documentation links: [1]; [2]; [3] |
|
ESRI shapefiles (various content) |
ESRI and many other sources |
Read, write, display, or obtain information about geospatial data and associated attributes in a shapefile. |
Documentation link: [1] |
|
Federal Information Processing Standard (FIPS) Place Codes |
NIST |
Read Topographically Integrated Geographic Encoding and Referencing (TIGER) thinned boundary file FIPS names. |
Official numeric and alphabetic place |
|
Fifth Fundamental Catalog of Stars (FK5) |
University of Strasbourg |
Read data from the FK5 catalog. |
||
Global Self-Consistent Hierarchical High-resolution Shoreline (GSHHS) |
NOAA/NGDC |
Read Global Self-Consistent Hierarchical High-resolution Shoreline data. |
Doc and data link: [1] |
|
TIGER/Line® files |
Census |
Read data from TIGER/Line files for 1990-2002 in native TIGER or shapefile formats. |
Documentation and data link: [1] |
|
TIGER cartographic boundary files |
Census |
Read TIGER cartographic boundary files for the U.S. in shapefile format. |
Documentation link: [1] |
|
U.S coastlines, historical data |
NOAA |
Read or obtain information about geospatial data and associated attributes in a shapefile. |
Documentation, metadata, and data in shapefile format: [1] |
|
U.S. National Atlas |
USGS |
Read/display U.S. National Atlas data layers in shapefile format. |
Documentation link [1] |
|
Vector Smart Map Level 0 (VMap0) |
NGA |
Extract and read selected data from the Vector Map Level 0 files on CD-ROMs or disk via commands or GUI. |
Documentation links: [1]; [2]; [3] |
|
World coastlines from various sources |
NGDC/USGS |
Read a data file into workspace. |
Data link (GUI to specify extent and format, including MATLAB®, for various sources of vector coastlines): [1] |
Raster Geospatial Data
Some of the more commonly-used raster (gridded) geospatial data sets available over the Internet are described below. Click their names for information on locating the data on the Internet and the Mapping Toolbox commands that read this form of data:
| Raster Data Set or Data Product |
Data Provider |
Associated Toolbox Functions | Function Purpose | Internet URLs for Documentation and Data (HTTP or FTP) |
| Digital Elevation Models in original format | USGS |
usgsdem usgsdems usgs24kdem demdataui |
Read DEM files and filenames and activate DEM data user interface. |
Documentation link:
[1] Documentation and data links: [2] |
| Digital Elevation Models in SDTS format | USGS |
sdtsdemread sdtsinfo geoshow mapshow mapview |
Read or obtain information about an SDTS DEM data set. |
Documentation links: [1]; [2]; [3]; [4] Data link: [5] |
| Digital Terrain Elevation Data (DTED) |
DMA / NIMA / NGA |
dteds dted |
Search for or read local network DTED data. |
Documentation link: [1] Data link: [2] |
| Earth Topography, 5-Minute (ETOPO5) |
NOAA / NGDC |
etopo |
Read data from the ETOPO5 data set. |
Documentation link: [1] Data link (binary): [2] |
| Earth Topography, 2-Minute (ETOPO2-2001) | NOAA/ NGDC | etopo | Read data from the ETOPO2-2001 data set. |
Documentation link: [1] Data link (binary): [2] This data set was corrected and updated in 2006. Please use the newer version. |
| Earth Topography, 2-Minute (ETOPO2v2c) | NOAA/ NGDC | etopo |
Read data from the ETOPO2v2c data set. (Not supported before R2010a, except for R2009b with code downloaded from EBR.) |
Documentation link: [1] Data links: binary [2] and HDF [3] This data set, from 2006, has data with cell-centered registration. |
| Earth Topography, 1-Minute (ETOPO1c) | NOAA/ NGDC | etopo | Read data from the ETOPO1c data set. (Not supported before R2010a.) |
Documentation link: [1] Data link: [2] This most recent version of the ETOPO data set has data with cell-centered registration. Both bedrock and ice surface files are supported. |
| Geographically referenced TIFF images (GeoTIFF) | various |
geotiffread geoshow mapshow worldfileread |
Read GeoTIFFs or worldfiles to obtain data grids and referencing matrices. |
Documentation link: [1] USGS Digital Raster Graphics Data (scanned topo sheets): [2] |
| Global Land Cover Characteristics (GLCC) | USGS |
avhrrgoode avhrrlambert |
GLCC data products (derived from AVHRR) in Goode or Lambert projections. |
Documentation link: [1] Data link: [2] |
| Global Land 1-km Base Elevation (GLOBE) |
NOAA / NGDC |
globedems globedem | Read GLOBE 30-arc-second (1 km) digital elevation filenames and data. |
Documentation and data link: [1] Data link: [2] |
| 30-arc-sec (1 km) Global Elevation data (GTOPO30) | USGS |
gtopo30s gtopo30 |
List and read GTOPO30 files. |
Documentation and data link: [1] |
| Global 2-minute (4 km) satellite topography and bathymetry data | Scripps | satbath | Read binary topographic data grid. |
Documentation links: [1]; [2] Data links: [3]; [4] (Note: Download the latest data file topo_8.2.img; if using a MATLAB release prior to version R2007a, rename the data file to 'topo_6.2.img'.) |
| TerrainBase topography & bathymetry binary and ASCII grid files |
NOAA / NGDC |
tbase | Read data from the TerrainBase data set. |
Documentation link: [1] Note: This data set is no longer available. |
| U.S. coastal nautical chart images |
NOAA / NOS |
geotiffread geoshow mapshow mapview |
Read scanned nautical chart GeoTIFF and worldfiles (1:20K and smaller). | Data (via UI to select a specific chart): [1] |
| U.S. National Elevation Dataset (NED) | USGS | Read data in TIFF or GeoTIFF format. |
Documentation link: [1] Data (Note: Data is available at 1/3 and 1 arc-sec resolutions in ArcGRID, TIFF, GridFloat, and BIL-meters formats.): [2] |
|
| Web Map Service Maps |
NASA, NOAA, USGS, etc. |
wmsread | Read raster geospatial data as an image. | Documentation link: [1] |
| WGS84 EGM96 Geoid Model |
NASA, NGA |
egm96geoid | Read 15-minute gridded geoid heights from the EGM96 geoid model. | Documentation and data links: [1] |
Portals to Global, National, Regional and Local Area Geodata
You can access a worldwide network of geodata servers through the U.S. Federal Geographic Data Committee (FGDC) Registry system. Visit the International Geospatial Data Catalog Search at http://gateway.fgdc.gov/gateway/srv/en/gateway.home or the Geospatial One-Stop gateway at http://www.geodata.gov/.
Two Federal Government Web sites bundle vector and raster geodata layers for download in several file and archiving formats: the National Elevation Dataset (http://ned.usgs.gov/) and Seamless Data Distribution System (SDDS, http://seamless.usgs.gov/website/Seamless).
Individual, tiled USGS Digital Elevation Models (DEM) will not be offered through the new Tiled Data Delivery System (TDDS). The current official National Map elevation data, National Elevation Dataset (NED), incorporates the DEMs and offers the best available elevation product through Seamless Data Distribution System (SDDS). The DEMs will still be available for purchase through EarthExplorer.
In the United States, state and local governments maintain geospatial data, for example land use, parcels, highways, and other elements of infrastructure, demographics, and economics. Much of it is digital, and a significant amount is online and publicly accessible. One useful starting point for exploring local geodata resources is an index of U.S. state GIS, geodata web sites, and clearinghouses.
You can browse environmental and geophysical data for many regions of the earth via the Global Change Master Directory (GCMD) portal. Some of the topics for which you can access data sets are Agriculture, Atmosphere, Biosphere, Climate Indicators, Human Dimensions, Hydrosphere, and Land Surface. The portal also connects you to data services in the following areas:
- Data Analysis and Visualization
- Data Management/Data Handling
- Education/Outreach
- Environmental Advisories
- Hazards Management
- Metadata Handling
- Models
- Reference and Information Services
GCMD is the North American Coordinating Node of the Committee on Earth Observation Satellites (CEOS) International Directory Network (http://idn.ceos.org/).
EarthExplorer is a Web site operated by the EROS Data Center through which you can query and order satellite images, aerial photographs, and cartographic products through the U.S. Geological Survey on CD-ROM, DVD, magnetic tape, and Internet file transfer. Fees are charged for files, whether shipped on media or downloaded via FTP. You can log in as a guest or registered user at http://earthexplorer.usgs.gov and specify areas of interest by clicking and zooming into maps or by entering geographic coordinates. Data sets available through the site are listed in the following table. Note that not all the formats used for these data sets are recognized by the Mapping Toolbox.
| Satellite Imagery |
Advanced Very High Resolution Radiometer Declassified Satellite Imagery - 1 (1996) Declassified Satellite Imagery - 2 (2002) EO-1 Advanced Land Imager EO-1 Hyperion ETM+ (Landsat 7, June 1999 - May 2003) ETM+ SLC-off (Landsat 7, July 2003 - present) Landsat Orthorectified TM Mosaics MSS (Landsat 1-5, July 1972 - October 1992) SPOT (Search Only) TM (Landsat 4-5, July 1982 - present) |
| Aerial Photography |
Digital Orthophoto Quadrangles Digital Orthophoto Quadrangles - County National Aerial Photography Program (1987-present) National High Altitude Photography (1980-1989) Space Acquired Photography Survey Photography USGS High Resolution Photography |
| Digital Line Graphs |
Digital Line Graph - 1:100,000 scale Digital Line Graph - Large Scale |
| Elevation |
Digital Elevation Model - 15 Minute Digital Elevation Model - 30 Minute Digital Elevation Model - 7.5 Minute National Elevation Dataset (Pre-Defined Areas |
| Maps |
Digital Raster Graphics National Atlas of the United States |
Abbreviations, Names, and Home Pages for Organizations
|
Census |
Bureau of the Census (U.S. Dept. of Commerce) |
|
CEOS |
|
|
DMA |
Defense Mapping Agency (now NGA, U.S. Dept. of Defense) |
|
ESRI |
Environmental Sciences Research Institute (private company, Redlands CA, U.S.A.) |
|
FGDC |
|
|
FIPS |
Federal Information Processing Standard (administered by NIST) |
|
GCMD |
Global Change Master Directory (CEOS clearinghouse housed at NASA) |
|
NASA |
|
|
NGA |
National Geospatial Intelligence Agency (U.S. Dept. of Defense) |
|
NGDC |
|
|
NIMA |
National Imagery and Mapping Administration (now NGA, U.S. Dept. of Defense) |
|
NIST |
National Institute of Standards and Technology (U.S. federal agency) |
|
NOAA |
National Oceanic and Atmospheric Administration (U.S. Dept. of Interior) |
|
NOS |
National Ocean Service, (NOAA) |
|
Scripps |
Scripps Institution of Oceanography (private nonprofit, La Jolla CA, U.S.A.) |
|
USGS |
U.S. Geological Survey (U.S. Dept. of Interior) |
Disclaimer
The MathWorks provides the information on this page as a courtesy to users of the Mapping Toolbox. The MathWorks does not warrant the accuracy, timeliness, or fitness for use of any data set listed above, and makes no endorsement of any data vendor mentioned. Web addresses (URLs) for data may disappear or change, making some of the above links unusable. If you are a licensed MATLAB user and find that any of the above pages is no longer accessible, please report the URL to the MathWorks at http://www.mathworks.com/support/contact_us/index.html or call 508-647-7000.
Notes
ESRI is a registered trademark of Environmental Systems Research Institute, Inc. MATLAB is a registered trademark of The MathWorks, Inc. TIGER and TIGER/Line are registered trademarks of the United States Census Bureau.