Download, Extract and Start
Total Page:16
File Type:pdf, Size:1020Kb
LANDSLIDE CORRIDOR HAZARDS – WEB TOOL Ravi Thakkar B.E., Dharmsinh Desai University, 2006 PROJECT Submitted in partial satisfaction of the requirements for the degree of MASTER OF SCIENCE in COMPUTER SCIENCE at CALIFORNIA STATE UNIVERSITY SACRAMENTO FALL 2009 LANDSLIDE CORRIDOR HAZARDS – WEB TOOL A Project by Ravi Thakkar Approved by: _______________________________, Committee Chair Dr. William J Mitchell _______________________________, Second Reader Mrs. Gita Faroughi _________________________ Date ii Student: Ravi Thakkar I certify that this student has met the requirements for format contained in the University format manual, and that this project is suitable for shelving in the Library and credit is to be awarded for the Project. ___________________________, Graduate Coordinator ____________________ Dr. Cui Zhang Date Department of Computer Science iii Abstract of LANDSLIDE CORRIDOR HAZARDS – WEB TOOL by Ravi Thakkar Hundreds of landslides are mobilized along highway corridors that can affect public safety as well as the trip quality, reliability and maintenance cost of the transportation network. Caltrans GeoResearch Group pioneered the project to identify the landslides along California State Highways. 187 out of 1200 miles of identified landslide-prone corridors were mapped between 1999 and 2006 by Caltrans GeoResearch Group with the help of California Geological Survey. These landslides were captured in Environment System Research Institute, Inc (ESRI) Shapefile that can be viewed in ArcGIS or other common GIS Software. The task is to convert 3 out of 7 shapefile generated from prior study into a web-base tool using Google Maps. This web-based system will map all 1200 miles of Landslide prone State wide Highways with detailed information of subset of 187 miles of these corridors. Landslides will be displayed in the map as polygons in different colors based on their activity so that they can be easily identified. Landslide polygon shape border thickness is iv based on the Landslide Confidence level attribute. Information about each landslide including links to relevant reports will be presented to the user through Google Maps Info-Window. The web-based system will also have the capability to generate reports summarizing landslide information in tables and map, based on different user defined criteria. This system will be implemented in PHP, JavaScript and Google Maps API. The data will be maintained on a MySQL database. This system will be integrated in Caltrans Geotech web based system. _______________________, Committee Chair Dr. William J Mitchell _______________________ Date v ACKNOWLEDGEMENTS The Success of this project depends largely on the encouragement provided to me by my advisor and many others. I take this opportunity to thank all the people who have been involved in the successful completion of this project. First I would like to thank my project advisor Dr. William Mitchell. I received great support and help from him every time went to meet him. Without his guidance, this project would not have been successfully finished. I would like to thank Mrs. Gita Faroughi for being my second reader and helping me with the project. I would like to thank Mr. Loren Turner, Senior Transportation Engineer, Caltrans- Division of Research & Innovation, GeoResearch Group. He has been always supporting to me. He has provided valuable guidance starting from initial stage of project to the successful completion of this project. Finally I would like to thank my family and friends for their continuous encouragement and support. vi TABLE OF CONTENTS Page Acknowledgements ............................................................................................................ vi List of Figures ..................................................................................................................... x List of Tables .................................................................................................................... xii Chapter 1. INTRODUCTION .......................................................................................................... 1 1.1 Background .......................................................................................................... 1 1.2 Scope .................................................................................................................... 2 1.3 Overview Of This Document ............................................................................... 3 2. TOOLS AND TECHNOLOGY USED FOR LANDSLIDE HAZARDS ONLINE ...... 4 2.1 PHP....................................................................................................................... 5 2.2 HML ..................................................................................................................... 6 2.3 JavaScript ............................................................................................................. 6 2.4 MySQL ................................................................................................................. 7 2.5 Sytem Requirements ............................................................................................ 8 3. FUNCTIONAL REQUIREMENTS AND DATABASE DESIGN ............................. 10 3.1 Functional Requirements.................................................................................... 10 vii 3.2 Database Design ................................................................................................. 18 3.2.1 Data Dictionary ........................................................................................... 18 3.2.2 Database Table Range Of Values ............................................................... 20 3.2.3 ER Diagram ................................................................................................ 22 3.2.4 Detail Information Of Landslide Table Attribute ....................................... 23 4. IMPLEMENTATION OF LANDSLIDE HAZARDS ONLINE ................................. 33 4.1 Shapefile To KML File Conversion ................................................................... 33 4.2 KML To XML File Conversion ......................................................................... 34 4.3 Storing XML File Into MySQL Database Tables .............................................. 34 4.4 Google Maps API ............................................................................................... 35 4.4.1 Start Using Google Maps API .................................................................... 36 4.4.2 Google Maps Events ................................................................................... 36 4.4.3 Google Maps Overlays ............................................................................... 37 4.4.4 Google Maps API Drawbacks .................................................................... 39 5. RESULTS AND SNAPSHOTS .................................................................................... 41 5.1 Initial Map Load ................................................................................................. 41 5.2 Map At Zoom Level 8 ........................................................................................ 42 5.3 Map At Zoom Level 10 ...................................................................................... 43 viii 5.4 Landslides At Zoom Level 15 ............................................................................ 46 5.5 Display Landslide Attribute When A Landslide Is Clicked ............................... 47 5.6 Postmile Selection On Map ................................................................................ 48 5.7 Postmile Query Result ........................................................................................ 49 5.8 Postmile Result Print View ................................................................................ 51 5.9 Result Table Sorted Output Based On Sorting Attributes.................................. 52 5.10 Testing Results ............................................................................................... 55 5.10.1 Marker Clicked Not On Highway ............................................................... 55 5.10.2 Wrong Postmile Input Format Entered In The Text Box ........................... 56 5.10.3 Wrong Route Number Is Given In Postmile Selection ............................... 57 5.10.4 So Many Landslides Found Between Two Postmile Point Range ............. 58 6. CONCLUSION AND FUTURE EXPANSION ........................................................... 59 6.1 Conclusion .......................................................................................................... 59 6.2 Future Expansion................................................................................................ 60 Appendix A Map Load .................................................................................................... 62 Appendix B Phpresultquery ............................................................................................. 70 Bibliography ..................................................................................................................... 74 ix LIST OF FIGURES Page Figure 3.1 Landslide Perimeter Outline Level .................................................................. 12 Figure 3.2 Landslide Metadata Attributes Info-Window Display .................................... 15 Figure 3.3 Display Landslide And Create Report Based On Postmile Limit ................... 17 Figure 3.4 ER Diagram