Tanzania Bird Atlas ProjectChelan Hoffman December 2004
Abstract:The union of GIS and the Internet have allowed for greater versatility in data dissemination. Digital maps allow for the user to personalize maps and create them for specific purposes. Interactive mapping sites allow maps to be dynamic as the user sees fit. This project was an informal partnership between the Tanzania Bird Atlas Project and the UNBC GIS department. A basic MapServer site was created using the data that was available from the Tanzania Bird Atlas Project. The process of working with the data has allowed for suggestions to be made that could lead towards a much more dynamic MapServer system. 1 Data used has been stored on a student drive temporarily until permanent server space is secured.Introduction / background:The Problem:The objective of the Tanzania Bird Atlas Project (TBAP) is to better understand the breeding cycles and seasonality of Tanzania’s birdlife. This is being accomplished by taking inventory and mapping observed distribution of birds and their breeding trends in Tanzania. The current state of the TBAP is a collection of over 600,000 datapoints. Static maps by species type have been made from these data and are available in PDF format online (Baker and Baker 2004). However, these PDFs do not allow for overlay of the differing species and other such dynamic analyses (i.e. query). Objective: Study Area: Data (sources, formats and manipulation):First, a base map of Tanzania was required. A satellite image was preferred, but the satellite images of Tanzania that I found were not complete. Instead, I reverted to the raster layer that Tyler Mitchell provided during the MapServer presentation. This raster layer only provides topographic information so I also required a detailed political boundary map that could be overlain to provide the country boundaries. This vector layer was also obtained from Tyler.Thirdly, I obtained a vector point layer of World Cities from Tyler. This layer provides the locations of cities. This was enough base and reference data for what I was trying to achieve, but in searching the Internet I came across a website that tracked Livestock in Eastern Africa. The website is an interactive and dynamic mapping system as well, and has data layers for Tanzania including parks and protected areas, lakes, population density and river networks. This information would be useful in correlating species with their habitats, so I emailed the contact for this page, Dr. Jerry Stuth, to see if I could obtain access to the data layers. This data transfer is still in the process. Bird data were obtained from Dave Leman on behalf of the TBAP. Data is collected and organized by the TBAP according to month to account for seasonality. This is accomplished by data being stored in a grid format. The grid is organized by lines of latitude and longitude. Each grid square is 2500km2 (1/2 degree longitude by ˝ degree latitude). The 2500km2 is then further subdivided into a 2x2 matrix and each of the then 4 sub-grid squares is further subdivided into a 4x4 matrix to create 16 sub-sub-grid-squares to record monthly records within each square (example, fig. 1). The first 3 rows of the sub-sub-grid-square represent the months of the year and a point is used within the grid to demarcate which month the species was viewed in that location. The last row of the sub-sub-grid square is hatched out and no records are stored here.
The results of this method of data storage and display is that many points are being overlain on each other and that the data are not accurate to the point of observation, but rather to 2500km2. Using a GPS in data collection could greatly improve accuracy. Other errors in data collection as identified by the TBAP include original species identification errors, errors in recording data on the original field card and data entry errors. Furthermore, Baker and Baker (2003) also note that there is a bias in data collection towards where avid birders live with these areas being more closely and accurately monitored. The bird data were received in .dbf format and I opened them in Microsoft Excel. Upon viewing the data, there were 10 different species contained in the file and these had to be broken into individual shapefiles based on species type. Each data entry gave x,y coordinates for that record. In ArcView I created an event theme from the entire file and then converted it to a shapefile. Upon viewing this layer relative to the World Countries layer, the birds were being displayed northwest of Tanzania in Central African Republic, Chad and Sudan. To correct for this I opened the bird layer in Microsoft Excel to check that the lat/long coordinates were correct for Tanzania. Once this was verified I checked the mapfile to ensure that I was using a correct projection for my layers and that the bird layer was utilizing the correct ellipsoid. Once the projection information was all verified to be correct, I had to revert to taking the bird layer in its entirety into ArcMap and use the ‘Edit Feature’ feature to select the birds and drag and drop them into Tanzania. Fortunately, the bird data offered a decent coverage of the entire country of Tanzania to allow for this action. Another factor that this error could be attributed to is the grid system that that TBAP used to collect and record data. This will have to be explored further. ArcMap was used to break the collective shapefile into shapefiles specific to species-type. I selected the species by attribute [name] and then exported the data to a shapefile. These shapefiles are stored in hoffmanc on the ninkasi server. Data Storage and Access in a MapServer Application:The greatest part of the learning curve of this project was learning how the webserver (Apache) communicated with the MapServer, html-files and the mapfile. Mostly through trial and error and literature reviews was this process determined. The base mapfile and html-files that I used were those supplied by Tyler in the MapServer presentation. I linked to the species shapefiles from the mapfile, which is stored on the local machine. This ability to link to data is MapServer’s most basic form of data access. Role of the MapFile: Role of the MapServer and WebServer: Results:The html organizes the MapServer into a table format (fig. 2) and the MapServer offers the user the ability to display the bird species individually or in any combination that they choose only being limited by points that may share the same x,y coordinate. In this case the layer that is last defined in the mapfile will be the layer that is last displayed (the ‘top’ layer) in the generated image. The user also has the capability to zoom in and out at user defined parameters and to pan around the image. The legend is dynamic in the sense that features are displayed in the legend as they are selected to be displayed in the map. The scale is dynamic as it is defined by a CGI variable and re-calculated every time a new image is sent from the MapServer. The cities layer displays cities with populations greater than 500,000 at scales greater than 1:12,000,000 and cities with populations less than 500,000 at scales greater than 1:6,000,000. The birds are represented by colours that are associative to their physical appearance. Links are provided at the bottom of the page for users to access information relative to this project.
Conclusion:The MapServer system that I have established meets the very basic needs that were expressed by the TBAP. OpenIGF is the model that they were seeking to emulate; however, the resources were not available to do so. MapServer offers similar features and is a feasible option for non-profit groups in the early stages of development; however, there is still a lot of work to be done to portray the information that is being portrayed it the PDF static maps. In order to accurately display the seasonality of the breeding season the data would have to be broken into the seasons or months and then a raster layer could be created to portray this information. Furthermore, to fully understand the workings of the MapServer a greater knowledge of CGI variables is required and the html nomenclature.In summary, this MapServer system is a prime example of how data can be effectively displayed in a professional manner at a low cost (MapServer is a free development!). This project also exemplifies how partnerships can be formed between universities and non-profit groups and that they can be beneficial for both. The objective of this project was to build a basic MapServer system with available data for the Tanzania Bird Atlas Project and for me to develop a foundation of knowledge of the workings of a MapServer. Future Developments:
References:
1 The term “MapServer system” is used to identify the network (or any portion thereof) of the user, the webserver, the mapserver, the mapfile, and the html-file(s) involved. |