Table of Contents for
Web Mapping Illustrated

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Web Mapping Illustrated by Tyler Mitchell Published by O'Reilly Media, Inc., 2005
  1. Web Mapping Illustrated
  2. Cover
  3. Web Mapping Illustrated
  4. A Note Regarding Supplemental Files
  5. Foreword
  6. Preface
  7. Youthful Exploration
  8. The Tools in This Book
  9. What This Book Covers
  10. Organization of This Book
  11. Conventions Used in This Book
  12. Safari Enabled
  13. Comments and Questions
  14. Acknowledgments
  15. 1. Introduction to Digital Mapping
  16. 1.1. The Power of Digital Maps
  17. 1.2. The Difficulties of Making Maps
  18. 1.3. Different Kinds of Web Mapping
  19. 2. Digital Mapping Tasks and Tools
  20. 2.1. Common Mapping Tasks
  21. 2.2. Common Pitfalls, Deadends, and Irritations
  22. 2.3. Identifying the Types of Tasks for a Project
  23. 3. Converting and Viewing Maps
  24. 3.1. Raster and Vector
  25. 3.2. OpenEV
  26. 3.3. MapServer
  27. 3.4. Geospatial Data Abstraction Library (GDAL)
  28. 3.5. OGR Simple Features Library
  29. 3.6. PostGIS
  30. 3.7. Summary of Applications
  31. 4. Installing MapServer
  32. 4.1. How MapServer Applications Operate
  33. 4.2. Walkthrough of the Main Components
  34. 4.3. Installing MapServer
  35. 4.4. Getting Help
  36. 5. Acquiring Map Data
  37. 5.1. Appraising Your Data Needs
  38. 5.2. Acquiring the Data You Need
  39. 6. Analyzing Map Data
  40. 6.1. Downloading the Demonstration Data
  41. 6.2. Installing Data Management Tools: GDAL and FWTools
  42. 6.3. Examining Data Content
  43. 6.4. Summarizing Information Using Other Tools
  44. 7. Converting Map Data
  45. 7.1. Converting Map Data
  46. 7.2. Converting Vector Data
  47. 7.3. Converting Raster Data to Other Formats
  48. 8. Visualizing Mapping Data in a Desktop Program
  49. 8.1. Visualization and Mapping Programs
  50. 8.2. Using OpenEV
  51. 8.3. OpenEV Basics
  52. 9. Create and Edit Personal Map Data
  53. 9.1. Planning Your Map
  54. 9.2. Preprocessing Data Examples
  55. 10. Creating Static Maps
  56. 10.1. MapServer Utilities
  57. 10.2. Sample Uses of the Command-Line Utilities
  58. 10.3. Setting Output Image Formats
  59. 11. Publishing Interactive Maps on the Web
  60. 11.1. Preparing and Testing MapServer
  61. 11.2. Create a Custom Application for a Particular Area
  62. 11.3. Continuing Education
  63. 12. Accessing Maps Through Web Services
  64. 12.1. Web Services for Mapping
  65. 12.2. What Do Web Services for Mapping Do?
  66. 12.3. Using MapServer with Web Services
  67. 12.4. Reference Map Files
  68. 13. Managing a Spatial Database
  69. 13.1. Introducing PostGIS
  70. 13.2. What Is a Spatial Database?
  71. 13.3. Downloading PostGIS Install Packages and Binaries
  72. 13.4. Compiling from Source Code
  73. 13.5. Steps for Setting Up PostGIS
  74. 13.6. Creating a Spatial Database
  75. 13.7. Load Data into the Database
  76. 13.8. Spatial Data Queries
  77. 13.9. Accessing Spatial Data from PostGIS in Other Applications
  78. 14. Custom Programming with MapServer’s MapScript
  79. 14.1. Introducing MapScript
  80. 14.2. Getting MapScript
  81. 14.3. MapScript Objects
  82. 14.4. MapScript Examples
  83. 14.5. Other Resources
  84. 14.6. Parallel MapScript Translations
  85. A. A Brief Introduction to Map Projections
  86. A.1. The Third Spheroid from the Sun
  87. A.2. Using Map Projections with MapServer
  88. A.3. Map Projection Examples
  89. A.4. Using Projections with Other Applications
  90. A.5. References
  91. B. MapServer Reference Guide for Vector Data Access
  92. B.1. Vector Data
  93. B.2. Data Format Guide
  94.  
  95. ESRI Shapefiles (SHP)
  96.  
  97. PostGIS/PostgreSQL Database
  98.  
  99. MapInfo Files (TAB/MID/MIF)
  100.  
  101. Oracle Spatial Database
  102.  
  103. Web Feature Service (WFS)
  104.  
  105. Geography Markup Language Files (GML)
  106.  
  107. VirtualSpatialData (ODBC/OVF)
  108.  
  109. TIGER/Line Files
  110.  
  111. ESRI ArcInfo Coverage Files
  112.  
  113. ESRI ArcSDE Database (SDE)
  114.  
  115. Microstation Design Files (DGN)
  116.  
  117. IHO S-57 Files
  118.  
  119. Spatial Data Transfer Standard Files (SDTS)
  120.  
  121. Inline MapServer Features
  122.  
  123. National Transfer Format Files (NTF)
  124. About the Author
  125. Colophon
  126. Copyright

Acquiring the Data You Need

Once you have determined your mapping and data needs, you have to find the appropriate data. To find such data, you can, for example, search the Internet, trade with friends, or download from a government site. This chapter takes you through several examples from searching for premade maps to finding data to do your own mapping and conversion.

Finding Premade Maps

Sometimes all you want is a premade, basic map of the world or a specific country. The Internet can be a good place to find these. One excellent site is the CIA World Factbook at http://www.cia.gov/cia/publications/factbook/geos/ag.html. Here you will find a basic political map for every country and also a detailed demographic, cultural, and political summaries. Large-size, print-quality reference maps are also available in Portable Document Format (PDF).

Another good resource is the University of Texas Online Map Library at http://www.lib.utexas.edu/maps/. With a brief walk through some of the links, you can find diverse maps that show, for example, a street map of Baghdad or a shaded relief map of the United Kingdom, nicely showing the Scottish Highlands. The library has scanned many of these maps and made them available to the public domain.

Finding Satellite Images or Shaded Surface Maps

Premade maps from images or shaded elevation models are also available. The CIA Factbook (http://www.cia.gov/ciapublications/factbook) has small political maps for each country. Other reference maps that show more physical data (e.g., bathymetry and elevation) or even photographic examples of the earth can be found. The U.S. National Geophysical Data Center (NGDC) includes some beautiful premade gallery images of their more detailed source data; look for them at http://www.ngdc.noaa.gov/seg/topo/globegal.shtml.

Finding Map Data

The Internet contains a wealth of geographic information for your projects. It is a natural place to begin your quest for mapping data. Some government agencies make their mapping data freely available on the Internet. Certain organizations have even made it their mission to make mapping data available for others for free. Other groups have created catalogs of mapping data you can search.

Plenty of Internet map data sources are available for the United States. North American data is also widely accessible, with Canada having some excellent products. Global data is more of a challenge. International organizations such as the United Nations or even American-based organizations that observe global events, such as the National Oceanic and Atmospheric Administration (NOAA), are some of the better sources for global data.

There are a variety of data repositories on the Internet to choose from, and they each have a certain target scale of application that can’t be ignored. For example, a satellite image can show pictures of where you live. Figure 5-6, for example, shows the different colors of surfaces such as roads, fields, and waterways, but only to a certain level of detail. If you hope to use it for planning a walk to the corner store, you will be sorely disappointed. However, if you want to see how your city is laid out, you will probably be satisfied. Figure 5-7 shows a closer look at the same image as Figure 5-6. The maximum amount of detail has been reached, and the image looks bad. This is an attempt to use the image beyond its intended scale of application.

There are multiple ways to hunt for good data. You can announce your search to email mailing lists or review web sites that summarize free data sources. Local mapping companies and government agencies are also a good place to start. Many states, provinces, and municipalities have their own GIS and mapping offices. Your search can also include local consulting companies, industries, or nonprofit organizations related to environmental or natural resource management and use. Just ask to speak to someone in the mapping or GIS department. Most people in these organizations

A Landsat satellite image showing the region around Toronto
Figure 5-6. A Landsat satellite image showing the region around Toronto
A closer (though fuzzy) look at the Landsat image used in Figure 5-6
Figure 5-7. A closer (though fuzzy) look at the Landsat image used in Figure 5-6

are willing to discuss what data they can share. If they can’t share the data, they can at least point you to the original source for you to seek out on your own. Table 5-1 lists a few web sites and email lists that include free map data or people who can help you find data.

Table 5-1. A few web sites and mailing lists offering free map data resources and discussions

Web site

Description

Canada GeoBase Portal

http://www.geobase.ca/

Canadian Government

http://geogratis.cgdi.gc.ca/download/

Earth Observation Portal

http://maps.eoportal.org/

FreeGIS.org data/mailing list

http://freegis.org

GeoConnections Discovery Portal

http://geodiscover.cgdi.ca/

GIS Data Depot

http://data.geocomm.com/catalog/

Global Change Master Directory

http://gcmd.nasa.gov/

Global Land Cover

http://glcf.umiacs.umd.edu/data/

GTOPO Elevation Data

http://edcdaac.usgs.gov/gtopo30/gtopo30.asp

MapServer list

http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

NASA Topography

http://www2.jpl.nasa.gov/srtm/dataprod.htm

U.S. Geologic Survey

http://edcsns17.cr.usgs.gov/EarthExplorer/

U.S. Maps and Data

http://geodata.gov

U.S. National Atlas

http://www.nationalatlas.gov/atlasftp.htm

U.S. National Geospatial Data Clearinghouse

http://clearinghouse1.fgdc.gov/

There are some proactive ways to get access to data. If your project needs a certain type of data and you can help meet the objectives of the custodian as well, it might be a good idea to enter into a project together. One group puts time and effort into the project, and the other contributes data. A long-term data exchange agreement may also play a mutually beneficial role. The idea is that one party provides mapping data, and the other gets open access to it. In return, the user provides their updates of the data back to the custodian. Of course, each agreement should be negotiated to include only certain kinds of updates or sharing of only certain pieces of data (such as nonconfidential information).

This data sharing/update model is increasingly common, but at the same time many groups are making their information freely available for open use. It is important to get a broad feel for others who are also interested in, or may already have, the data you are looking for. Data can be shared without having to copy source data by using OGC web specifications. For example, the satellite image in Figure 5-6 is from a free web service and requested by a mapping application. See Chapter 12 for more about the OGC and web services.

Finding and getting access to data aren’t the only problems. Some data may be unusable or inappropriate for the task at hand. This goes beyond matters of scale and resolution, referring more to accuracy and supplementary attributes. One example is a forestry initiative of the government of British Columbia (Canada) to map certain types of pest-infected trees. Traditionally this has been mapped using a fixed-wing aircraft carrying a reconnaissance mapper who spots the trees and then draws their location on a paper map. At the office, the paper maps are digitized onto a base map in the computer. While these maps are useful for general landscape-level analysis, you would not want to depend on the map to lead you to a particular tree in the middle of a dense forest. Wise use and understanding of the appropriate application of your data will help you have realistic expectations when starting your mapping project.

The Internet isn’t the only source of mapping data. Chapter 9 discusses how to create some of your own data with map-editing tools or using coordinates taken from a GPS receiver.