Home
INTERACTIVE WORLD MAP: NATURAL DISASTERS
Contents
1. BBX _ x sb 227555 545 amp SOIN ects Task Create New Feature E 2 Layers B D Profiles w35053 Deskt E sample txt Events sample txt E 3 D Profiles w35053 My Dc E country E gt 1 mes gt p m E Display Source 0 Drawing kG 4D Aw lt fio drole De fs ev 65 16 39 726 W 101 21 2 473 N L Figure 8 6 Displaying the XY data Untitled ArcMap Arc iew File Edit Yiew Insert Selection Tools Window Help bg Layers B D Profiles w35053 Deskt E O Copy x Remove sample ci D Profiles Open Attribute Table E countr Joins and Relates gt ss lt amp Zoom To Layer Zoom To Make Visible visible Scale Range gt Use Symbol Levels Selection gt Label Features Gonvert Labels Annotation 2 Convert Features to Graphics Gonvert Symboloay to Representation Save Layer File a m Display Source 5 el ay Make Permanent Fee View Metadata Drawing ae v Fx En Review Rematch Addresses Save this layer s data as a shapefile or geodatabase feature class 193 7 28 153 W 31 28 6 003 N A Figure 8 7 Exporting the XY data Export Data Export al features Use the same coordinate system as this la
2. a Microsoft Windows Vista x64 DEBUG Build Environment 20 5 xi Figure 6 3 Command prompt showing jar file execution 21 CHAPTER 7 MAPOBJECTS TOOLBARS MapObjects Java Edition provides multiple beans which can be used to add basic capabilities to the tool Toolbars are one of these beans which can provide commonly used functions such as zoom in zoom out easily This chapter discusses how these toolbars Table 7 1 1 6 have been integrated into the GIS tool We have used code to show how this can be achieved The Toolbar is shown in Figure 7 1 Table 7 1 Legend of MapObjects Toolbars Number Toolbar Name Class Name 1 Zoom Pan Tool Bar com esri mo2 ui tb ZoomPanToolBar 2 Selection Tool Bar com esri mo2 ui tb SelectionToolBar 3 Project Tool Bar com esri mo2 ui tb ProjecToolBar Source ACHAL SHAH Man made disasters GIS teaching aid Master s thesis San Diego State University San Diego CA 2012 oo mo oO d E E Project Tool Bar Zoom Pan Tool Bar Selection Tool Bar Figure 7 1 MapObjects toolbars 7 1 COM ESRI MO2 UI TB ZOOMPANTOOLBAR The ZoomPanToolBar uses functions provided by ZoomPanToolBarActions class It allows an end user to change the map extent in a variety of ways As the name suggest it 1s used for zooming and panning a layer The actions supported by the Toolbar include e Zoom In and Zoom Out Zoom In tool zooms the map down to certain level Also Zoom
3. The following installations were done to build and run the project 1 Install Java SE Development kit 1 6 from sun java website 7 2 Install NetBeans IDE 1 0 6 from their website 8 The Installation of MapObjects Java Edition was obtained from Dr Carl Eckberg in one of his classes on GIS 4 Integrating MapObjects and NetBeans the libraries need to be added to NetBeans Here are the steps to go to the Library Manager Figure 6 1 in NetBeans from where we find an option to add MapObjects libraries to the NetBeans IDE Library Manager Libraries location Global Libraries Libraries Class Libraries Library Name EX Beans Binding CopyLibs Task Library Classpath i Hibernate C Program Files WetBeans 6 ab Add JAR Folder Hibernate JPA Classpath Sources Javadoc ES JAx wS 1 mm Wit 3 8 2 Init 4 5 gb JWS Ant Tasks MySQL JDBC Driver Persistence PostgreSQL JDBC Driver Spring Framework 2 5 Swing Application Framework Swing Layout Extensions Figure 6 1 Library manager 19 Open NetBeans IDE Go to Tools Select Libraries Library Manager Here we can add MOJO23 libraries as follows Figure 6 2 1 Select Add JAR Folder option in Library Manager Window 2 Browse to the location where you have all the MOJO libraries 3 Select all the libraries and add them This wi
4. Figure 4 5 Interactive world map Natural Disasters quiz screen 13 CHAPTER 5 THE DESIGN After collecting the requirements for the project the following design was proposed The tool has been names as Interactive World Map Natural Disasters The design created includes the High Level Architecture diagram and the Class diagram 5 1 HIGH LEVEL ARCHITECTURE DIAGRAM Figure 5 1 depicts the high level architecture diagram for the Interactive World Map Natural Disasters tool The figure depicts the high level structure of the system Figure 5 1 High level architecture diagram The architecture is broadly divided into three different levels User Interface This is the default map screen that will be displayed to the user when the application is launched and the user has selected a disaster The default map screen shall have Menu options to display and clear disaster names add user facility Help Window Option to change the disaster Map Object and custom toolbars and a 14 menu with buttons to launch the Picture Game Create Quiz Take Quiz Learn More Learn from Internet e Map Objects and Java Classes The functionality and the action of all the above buttons custom toolbar and default GIS toolbars are defined in the java classes created Further discussion about the class diagrams and java classes will be done later e Resources files The default user interface uses the above classes for accessing the different re
5. 2004 ENVIRONMENTAL SYSTEMS RESEARCH INSTITUTE Map objects java edition ESRI http www esri com software mapobjects accessed September 2011 2004 ENVIRONMENTAL SYSTEMS RESEARCH INSTITUTE ESRI building applications with map objects ESRI http forums arcgis com accessed September 2011 1996 LYN MALONE ANITA PALMER AND CHRISTINE VOIGT Mapping our world GIS lessons ESRI Press Sacramento California 2002 CHANGAN SHI AND ENVIRONMENTAL SYSTEMS RESEARCH INSTITUTE Mapobjects Java developer s guide ESRI Press Redlands California 2003 WORKS CONSULTED NetBeans IDE 6 0 1 download Netbeans http dlc sun com netbeans 6 0 final accessed May 2012 2011 Java SE downloads Oracle http java sun com javase downloads accessed January 2013 2011 KEN ARNOLD AND JAMES GOSLING Java programming language 2nd ed Addison Wesley New York 1998 Software development process Wikipedia http en wikipedia org wiki Software _development_process accessed January 2013 2013 Java advantages and disadvantages WebDotDev http www webdotdev com nvd content view 1042 204 accessed January 2013 2007 32
6. class diagram of the tool how the tool is implemented and then explained the functionality in brief Chapters seven shows us the various tools provided by MapObjects It dives more into the coding of these tools and explains step by step how it works Chapter eight is all about the map layers we are using in the Interactive World Map for Natural Disasters tool it shows the step by step creation of a sample layer so in future if the tool needs to be extended it would be easy to create new layers with more data in it The last chapter covers the future enhancement of the Interactive World Map for Natural Disasters tool CHAPTER 2 TECHNOLOGY This chapter discusses the technologies used in the creation of this tool As suggested by Dr Joseph Lewis and Dr Carl Eckberg MapObjects Java Edition and Java will be best suited to implement the Interactive World Map for NaturalDisasters Java is a platform independent programming language and MapObjects gels well with Java The next section will discuss these technologies in detail 2 1 JAVA e Platform Independence Java has the advantage of being platform independent 1 e it can be moved from one computer system to another 2 e Object Oriented Java is object oriented because programming in Java is centered on creating objects manipulating objects and making them work together This allows the user to create modular programs and re useable code e Robust Robust means reliable Java puts a
7. out tool is used to zoom the map out to larger size e ZoomToFull Extent When clicked this tool returns the map to the original shape and full view It doesn t care about the size of the window it resizes the map and shows a complete view of the map 22 e Pan Provides a tool for dragging the map to a new location without altering the zoom level PanOneDirection Pans the map in one of four directions north south east or west e Identify Performs an Identify on the specified selected layers setMap function must be called before using any of these actions The code to integrate the toolbar with the GIS tool 1s static com esri mo2 ui bean Map map new com esri mo2 ui bean Map ZoomPanToolBar zptb new ZoomPanToolBar zptb setMap map getContentPane add zptb BorderLayout NORTH 7 2 COM ESRI MO2 UI TB SELECTION TOOLBAR This toolbar provides functions that perform feature selection based upon attribute or spatial queries The actions supported by this Toolbar include e Find Opens a dialog for locating features whose attributes contain an end user provided string e Search Opens a dialog for locating features based on a predefined stored query e Query Opens a dialog for locating features based on a query that an end user constructs e Select Provides a tool for selecting features by rubber banding a shape in the map e Buffer Opens a dialog for constructing a buffer polygon around t
8. the following topics Name s of the disaster A description of the disaster When did the disaster take place E g start and end date sometimes with the time of the day Where did the disaster take place Causes of the disaster Main Events taking place during the disaster Casualties due to the disaster Consequences of the disaster Images of the disaster 3 3 FUNCTIONAL REQUIREMENTS The functional requirements cover the functional details of the tool and specify what shall be provided in the tool the behavior of the tool to different actions and other GUI requirements These requirements were gathered from Mr Richard Sutton and Dr Joseph Lewis The tool shall display the world map with the selected disaster on it when it first Starts The tool shall be able to zoom in and zoom out and should be capable of adding new layers during runtime e g rivers cities etc Hot Links This feature displays a webpage which contains the summary of the disaster by clicking on the Disaster point on the world map Hyperlink This tool should allow the user to go to external links over the internet to learn more about the disaster This tool should have a game which requires the user to click the country corresponding to the disaster This will help the user to test his knowledge about the data that he has seen A picture game to learn about the disasters Quiz There will be an option for the teacher to create quizzes and for
9. the students to take them The quiz will be helpful to measure a student s knowledge regarding a disaster The quiz should be interactive so that it gives a Correct Incorrect verdict The teacher has the option to create a graded or practice quiz in the form of multiple choice questions The tool should be capable of labeling the disaster sites also user should be able to clear the labels 3 4 STUDENT CENTRIC REQUIREMENTS The student centric requirements are developed to represent how the data shall be seen by the user of the tool These requirements were gathered keeping in mind the high school students The requirement gathering was done under Mr Richard Sutton from Helix High School The Interactive World Map for Natural Disasters should be easy to use handle and configure Since the intended audience for this tool is high school students who don t have much experience using a tool similar to this this tool should be easy to learn Providing tool tip text will enable a student to learn this tool faster The language used to describe the summary and other facts of each disaster should be simple and easy so that high school students can understand it Usage of images and games will attract the attention of the student and he will be encouraged to learn more about Natural Disasters The text used to represent the information should be neat bold and clear The tool shall represent the data in a format that does not overwh
10. would like to express my gratitude to Dr Carl Eckberg for his expert guidance His support has motivated me throughout this endeavor I want to thank Dr Joseph Lewis for providing the opportunity to work on this thesis I am grateful to Mr William Root and Dr Gary Girty for being a part of my thesis committee and for their kind co operation and guidance Finally I would also like to express my gratitude to Mr Richard Sutton from Helix High school for trusting me with this project and providing his guidance and co operation throughout the project CHAPTER 1 INTRODUCTION Over the centuries there have been many methods employed for imparting education and knowledge transfer from passing down of knowledge verbally to the use of books chalk boards and white boards and more recently the use of technology such as personal computers and the internet Education via visual aid is a time proven method and making the visual aids interactive makes it even better The purpose of this thesis is to provide children and teachers with a tool that can aid in the learning about geographical features such as volcanoes earthquakes cyclones and tsunamis The topics addressed by the thesis are often known collectively as Natural Disasters GIS tool provides a method to show these geographical features 1n a visual format that 1s interactive Children can interact with the tool to explore these features and learn about them Interactive World Map Na
11. INTERACTIVE WORLD MAP NATURAL DISASTERS A Thesis Presented to the Faculty of San Diego State University In Partial Fulfillment of the Requirements for the Degree Master of Science in Computer Science by Swati Jayeshbhai Patel Fall 2013 SAN DIEGO STATE UNIVERSITY The Undersigned Faculty Committee Approves the Thesis of Swati Jayeshbhai Patel Interactive World Map Natural Disasters William Root Department of Computer Science Department of Geological Sciences 2 Approval Date Copyright 2013 by Swati Jayeshbhai Patel All Rights Reserved iii DEDICATION I dedicate this thesis to my family for nursing me with affections and love and believing in me 1V ABSTRACT OF THE THESIS Interactive World Map Natural Disasters by Swati Jayeshbhai Patel Master of Science in Computer Science San Diego State University 2013 During the past decade electronic learning has been one of the most important mediums adapted by many schools Since the increase in the use of computers and internet keeping kids interested in learning becomes difficult with books Electronic learning supports education where the medium of the instruction is computer technology particularly involving digital technologies Most higher education institutions have adapted to include some online classes where the students rarely attend face to face lectures on campus because they study online The internet has become a vast re
12. Java aient 4 2 2 Development Orin ead 5 3 THE REQUIREMENT Serranus D un 6 3 1 Software Platform Requirements ooo qd daria seo tige titi 6 Bs Mewes 6 2 9 Punctonat FS CUT CI CTS cos Ses nn ee aan eee aes 7 J SHUG CMe Centric Requiretlienits Hindi 8 MEER ONIN Gig iss castes D dd E Di Ce 9 THE DESIGN 13 51 Meh Level Architecture Dia Stain a obierat utere ins 13 2 2 Tasses and Class Did rar Rd el dede na 14 INSTALLA TION 5 N 18 T MAPOBIECTS TOOLBARS Ue a ease Metu ese eoo Soo Muti al 21 7 1 COMES AMOZ UL ANN OOLB ASE eo dese 21 1 2 Com esri moZ ut tb selection en anse nn 22 7 3 Com esmmo2 urtb ProjJectLOo Bats ue Ee en nee 22 tng teases 24 S L Comes Mo Al Dean Ga yer 24 6 2 Converting CSV or Text File to Shape Files 25 9 ENTANCEMENT ae beatae teed ae ae BIBLIOGRAPHY LIST OF TABLES Table 5 1 Importing Classes and Classes Used for Development Table 7 1 Legend of MapObjects Toolbars viii Figure 4 1 Figure 4 2 Figure 4 3 Figure 4 4 Figure 4 5 Figure 5 1 Figure 5 2 Figure 5 3 Figu
13. a world map was procured from the ESRI website 25 8 2 CONVERTING CSV OR TEXT FILE TO SHAPE FILE The second way is to create a CSV or text file with geographic data and then use the steps mentioned below to convert it into a shape file Comma Separated Values or CSV files are used as data container files They contain all the information that the project needs to plot the region where the movements took place The CSV files contains the information such as coordinates in the form of latitudes and longitudes the path of the image or the html file or the details of the action that need to be taken when the point is clicked on the map It stores all the description about that active layer Thus all information 15 fetched in the program and stored in the string variables and accordingly actions are taken The information stored in the CSV file is displayed in the web browser Hence CSV files have been used in this project for the same It can be saved either with csv or txt extension 11 Install ArcGIS 9 Contact Geography Department at SDSU for the installation CD e Create a text file or CSV file with the data needed Longitude Latitude Name of Disaster Link to Summary of Disaster e Save the file as sample txt or sample csv e Goto the ArcGIS installation directory and launch ArcMap Click Start with a new map See Figure 8 1 e Press the add button and select states shp file for reference view Press Add See Figure 8 2 e Press t
14. at the developers can use to build custom cross platform Geographic Information System GIS Applications 3 MapObjects Java Objects MOJO is not an end user application it s a developer s tool kit It includes a set of JAR files containing pure Java components that can be used to develop a usable stand alone GIS application or to add maps or map functionality to other applications Since it is written in Java applications using MOJO can be cross platform Java classes and components are easily integrated with classes supplied by ESRI in MOJO 4 Dr Carl Eckberg also teaches a class at San Diego State University which covers MapObjects in depth and has published a comprehensive guide on MapObjects For implementation of the Interactive World Map for Natural Disasters I have used MapObjects Java Edition version 2 1 Key features as cited from the MapObjects Java Edition brochure includes 3 4 e Display of real time geographic data e Ability to combine multiple data sources e Helpful Tools for Building a User Interface By using the rich Swing components included with MapObjects Java Edition you can quickly build applications that include functional toolbars dynamic symbol control query dialogs overview and insert maps and intelligent legends that make your custom applications easy to use and even easier to develop e Major GIS capabilities such as labeling map features specifying projection displaying thematic map layers perf
15. elm and intimate the students The data shall be depicted with the least amount of details first and then it shall be easy to view more details CHAPTER 4 PROTOTYPING Prototyping the development cycle of your project helps in reducing the risk during implementation of the software tool A prototype is an original type form or instance of something serving as a typical example basis or standard for other things of the same category A prototype is often used as part of the product design process to allow engineers and designers the ability to explore design alternatives test theories and confirm performance prior to starting production of a new product The project cycle include 5 important phases as shown in Figure 4 1 which are discussed in brief below 5 DEFINE REFINE DESIGN EVALUATE Figure 4 1 Project development cycle Definition The important task in creating a software product is extracting the requirements or requirements analysis A clear definition of requirements is essential in designing the tool We already discussed the requirement gatherings in an earlier section The final output of this phase 15 that you will have a problem set defined to work on in this case it was an Interactive Map for Natural Disasters Design This steps involves coming up with the architecture of the project based on the specification provided the functionalities and the GUI which the user expects will help i
16. enable the basic GIS tool functionality There are other functionalities which are triggered using the buttons present on the Interactive World Map Natural Disasters tool These buttons basically give the simplest way 15 to interact with the tool and learn about the various Natural Disasters Figure 5 2 highlights the buttons and the class invoked by the buttons Let s discuss it in detail Implements PickListener i Implements PickListener Button Listener Figure 5 2 Class diagram for learn more tabs The Learn More Button creates an object of class Hotlink which implements the PickListener Interface of MapObjects A Pick operation occurs when a Tool such as Pick or Identify is selected In this case it occurs after the Learn More button is clicked and the end user clicks in the Map An initial beginPick will be signaled followed by zero or more foundData with a final endPick to signal the completion of the Pick operation After creating the object when the user clicks on a disaster a custom dialog pops up and shows the user detailed description of the disaster including pictures The Learn More from Internet button creates an object of class Hyperlink and it also implements PickListener interface of MapObjects After creating the object by clicking on the button when the user clicks on one of the disaster the foundData method looks inside the dbf file of the active layer and sets the string
17. eveloped to encourage high school students to learn more about the various Natural Disasters occurring in the last century This application has been developed under the guidance and requirements given by Dr Joseph Lewis of San Diego State University and Mr Richard Sutton from the history department at Helix High School The requirements gathered have been classified into the following e Software Platform Requirements e Data Requirements e Functional Requirements e Student Centric Requirements 3 1 SOFTWARE PLATFORM REQUIREMENTS The Software Platform Requirements constitutes the development language to be used the GIS Solution that needs to be employed and the Operating System to be used for the development of the tool These requirements were gathered from Dr Joseph Lewis The GIS tool shall be developed using e Java e Map Objects Java Edition e Windows XP This tools need to be platform independent But I used Windows XP to develop and test it The rationale behind using these technologies has been discussed in depth in Chapter 2 3 2 DATA REQUIREMENTS The Data Requirements for the Interactive World Map for Natural Disasters were collected from Mr Richard Sutton from Helix High School The Data Requirements specified what data should be provided in the tool How this data is provided is covered under the functional and student centric requirements Mr Sutton and I selected 8 major Natural Disasters Each Disaster will cover
18. he add button again and select sample txt file Press Add See Figure 8 3 e Right click on sample txt and select Display XY Data See Figure 8 4 e Make sure the X Y have been correctly identified Press OK See Figure 8 5 e Check that the data added is shown in the map on the right correctly See Figure 8 6 e Right click on the sample txt Select Events and select Data gt Export Data See Figure 8 7 e Save the file as SHP file Press OK See Figure 8 8 e You now have a shape file which can be used with MapObjects com esri mo2 ui bean Layer class 26 Browse for maps Figure 8 1 Starting ArcMap Layers 44 fossett_path shp cx lakes shp latlon shp eine path shp Zl rivers shp c5 world30 shp Datasets and Layers Lyr F Figure 8 2 Adding a reference layer 27 Figure 8 3 Adding text file as data source Untitled ArcMap Arc iew amp Layers E 898 D Profiles w35053 My Docu E M country E D Profiles w35053 Desktop 8 zl Figure 8 4 Displaying XY data 28 Display Y Data table containing and coordinate data can be added to the map az a layer Choose a table from the map or browse For another table i sample back m ca Description Unknown Coordinate System Show Details Figure 8 5 Identifying the XY data Untitled ArcMap Arc iew File Edit View Insert Selection Tools Window Help
19. he block diagram for Quiz Buttons Button Listener Quiz is launched based on the Disaster selected in the Quiz Selection menu eS 6 Button Listener Figure 5 4 Class diagram for quiz tabs When the Take a Quiz button is clicked by the user a Quiz selection menu pops up Once a quiz is selected related to a disaster a HTML Page is displayed which contains the quiz for the disaster selected The name of the HTML page 1s set in the configuration file which can be changed if a new quiz is created using the Create Quiz button discussed below The Create Quiz button is meant for faculty to design new quizzes for students When this button 1s clicked it launches a HTML page based on JavaScript which 1s then used to create a new quiz For each question faculty can add images hyper link multiple choice and feedback for every answer clicked There 1s the capability of making it a practice quiz or graded quiz For a practice quiz the student will get feedback with every answer clicked and for a graded quiz the faculty has to enter an email address where all the answers are sent after completion of the quiz The student won t get any feedback in graded quiz 18 CHAPTER 6 INSTALLATIONS The project was developed in Java edited and compiled in NetBeans IDE Integrated Development Environment NetBeans works really well with MapObjects when appropriate libraries are added
20. he configured screen of Interactive World Map for Natural Disasters with one of the disasters chosen which includes the labeled disaster and the country with a menu bar showing various options File Theme LayerControl Display Disasters Options Help Lames j ee avmsee ase X Logout aga user country MM atitude longitude ie SETS E TE A EN LEE LLL a a S LLLI LLL LIST Loses mL LLLI 7 ue i 1111 8555 2 A CE por Sieg DR zx eti wee BH E PS SA er CREER EN EEE PK MY Sue ELLO UB ERLEECECEEEEEE ON AS PROC EE EEE EBCWEEERZSEENER GREER 258088 40 MR PRE 1100 Se S PEER RL ESSET ISTE 1114 EE CT i a el 1 AL Se OO EE CET EEE lal T 1100 es ATIS a i se ETSI ESSERE ETT 69 J 110 Sst Se mm ZI __ 8 EFDEELELEELELEEIS a TL EEE EEE EE EE L I1 J i TE ee Learn More 1 narn fram intarnat Figure 4 3 Interactive world map Natural Disasters disas
21. he currently selected features e Attributes Displays attributes of the currently selected features setMap function must be called before using any of these actions For GIS tool we are only using the Find function The code to integrate the toolbar with the GIS tool is static com esri mo2 ui bean Map map new com esri mo2 u1 bean Map Selection ToolBar stb new Selection ToolBar stb setMap map getContentPane add stb BorderLayout NORTH 7 3 COM ESRI MO2 UI TB PROJECTTOOLBAR This toolbar provides actions that allow an end user to open close save a map project and print a map image to file the actions supported by this Toolbar include 9 e OpenProject Open a previously saved project file SaveProject Save the current map project to a file e CloseProject Close current map project 22 SaveMapImageToFile Save current map to an image file e PrintLayer Print selected layer s in the TOC The setMap function must be called before using any of these actions The code to integrate the toolbar with the GIS tool 1s static com esri mo2 ui bean Map map new com esri mo2 u1 bean Map ProjectToolBar ptb new ProjectToolBar ptb setMap map getContentPane add ptb BorderLayout NORTH 24 CHAPTER 8 PROJECT LAYER In GIS a layer is a slice of the geographic data in a certain area and it 15 equivalent to a legend item on a paper map The features layers that are shown in the tool are im
22. ll add all the MOJO libraries to NetBeans IDE that are required to integrate MapObjects into NetBeans which is mandatory for my project to compile and run Browse JAR Folder a care Bi esri_Mmo20 1 Bi jcert M Recent Bj ai jnet Documents 20 1 a jpe90 sdk Fi esri maoz img Bj jsdeg0_sdk Bi esri moz img 1 a jsde90_sdkres Fi esri_mo2Z0res Bi sse Fi esri moz res 1 Bj mibwrapper jai a esri_moz0res 1 1 Fi esri_mo2Orpr My Documents esri_mo2OrpF_1 Fi esri moz vpf pU Bj esri moz vpf 1 Pr Bj esri xmlkit My Computer Fi esri_xrmlkit_1 a jai codec File CHMOIZ0 lib Add JAR Folder My Network Places Files of type Classpath Entry Folder ZIP or JAR File Figure 6 2 Adding MOJO libraries to NetBeans Desktop At this point we can start editing our program in the NetBeans IDE As we have already installed all the required libraries the application should easily be complied and run without any errors Follow the following steps to install the executable JAR file to any computer e Make a directory called NaturalDisasters and copy the executable JAR file along with the lib folder in the same directory e Copy the MOJ20 folder in the C e Run the following command on command prompt to run the executable see Figure 6 3 java jar NaturalDisasters jar or java jar path where the folder is NaturalDisasters jar
23. lot of emphasis on early checking for possible errors as Java compilers are able t o detect many problems that would first show up during execution time in other languages e Simple Java was designed to be easy to use and 1s therefore easy to write compile debug and learn Java is much simpler than other object oriented languages because Java uses automatic memory allocation and garbage collection where else other languages like C require the programmer to allocate memory and to collect garbage 2 e Multithreaded Multithreaded is the capability for a program to perform several tasks simultaneously within a program In Java multithreaded programming has been smoothly integrated into it while in other languages operating system specific procedures have to be called in order to enable multithreading Multithreading is a necessity in visual and network programming 2 e To give any software component a long life it has to be developed with reusability and extensibility in mind From above it is clear that Java enables you to do just that the individual classes can be extended and reused to add more features and provide the capability to identify and fix bugs fast Because of Java s robustness ease of use cross platform capabilities security features it has been chosen as the language of choice for this thesis project 2 2 MAPOBJECTS JAVA EDITION MapObjects Java Edition is a powerful collection of client and server side components th
24. lotting the points based on how quick the question is solved e More interactive games and puzzles can be added to make learning more enjoyable and animated e Currently we only have Wikipedia links to each disaster We can add more data information to the project This includes links to different web pages on the internet providing more information on a disaster to the student 1 2 3 4 2 6 7 8 9 10 11 31 BIBLIOGRAPHY WORKS CITED ACHAL SHAH Man made disasters GIS teaching aid Master s thesis San Diego State University San Diego CA 2012 CARL ECKBERG CS 537 Component GIS architecture class notes on mapobjects java edition San Diego State University San Diego CA 2010 CAY S HORSTMANN AND GARY CORNELL Core Java Volume I Fundamentals Prentice Hall Upper Saddle River New Jersey 2007 CAY S HORSTMANN AND GARY CORNELL Java Volume 2 Advanced Features Prentice Hall Upper Saddle River New Jersey 2008 D FALKMAN Map objects java edition http www thaigis com Support document mo_java_bro pdf accessed January 2012 2004 ENVIRONMENTAL SYSTEMS RESEARCH INSTITUTE ESRI shapefile technical description ESRI white paper ESRI http www esri com library whitepapers pdfs shapefile pdf accessed January 2013 1998 ENVIRONMENTAL SYSTEMS RESEARCH INSTITUTE MapObjects java edition 2 0 1 programmer 5 reference help ESRI Press Sacramento California
25. n designing the outer layer of the project It also includes the implementation and testing of software code which is ready for deployment This 15 discussed in detail in chapter five Development The development cycle consists of successful prototypes where the actual testing is done from the user perspective The feedback and suggestion 1s taken from the user after each prototype and the design redefined to accomplish the end 10 result This process goes on until the project is ready to deliver I found this process very helpful to keep track of the requirements and implementation of the project e Deployment The actual deployment starts after the code is appropriately tested and all other aspects of the project including documentation has been taken care of We have created User Manual for the software During the development of the Interactive World Map for Natural Disasters tool a prototype was developed Screen shots of the prototype follow The screen in Figure 4 2 1s of the main screen which 1s launched when the tool 1s started Selection Menu 3 NATURAL DISASTERS SELECTION MENU Indian Ocean Earthquake and Tsunami 3 1931 China Floods O 1972 Iran Blizzard Tri State Tornado O Hurricane Katrina Pinatubo Eruption 7 Vesuvius Eruption Mt Saint Helens Eruption Mt Hood Rainier Lassen Peak Figure 4 2 Interactive world map Natural Disasters main screen Figure 4 3 1s t
26. orming geometric processing zooming and panning map layers measuring distances querying spatial data and creating layouts etc e Ability to Deploy Your Applications over the Web You can easily distribute MapObjects Java Edition applications over an Internet or Intranet through browser hosted applets or simplify Web delivery of your application with the use of Sun Java Web Start technology the industry standard launching mechanism for distributing Java applications over the Web e Access to ESRI s ArcIMS web services as well as building map application for distribution over the Internet through simple applets or JSP and servlets e In addition to the major feature listed above MOJO includes many helpful tools in the development kit Using swing components of MOJO you can build Table of Contents helpful toolbars map overview and map legends 2 2 DEVELOPMENT PLATFORM This part describes the various software applications used in the development of this application e Map Objects Java Edition 2 1 Map Objects comes in two editions Windows and Java Here as per our requirement I have used Map Objects Java Edition e Java SE Development Kit 1 6 This is intended for standard programming applications e NetBeans IDE 6 9 It is an IDE for writing compiling and running Java programs e JavaScript and HTML Used for creating the quizzes It returns Correct Incorrect verdict CHAPTER 3 THE REQUIREMENTS This tool has been d
27. plemented using com esri mo2 map dpy BaseFeatureLayer class and com esri mo2 ui bean Layer class 8 1 COM ESRI MO2 UI BEAN LAYER The com esri mo2 ui bean Layer class from MapObjects Java Edition is used in the default screen when the tool is launched to show the geographic data This class uses a shape file as the data source for showing the features and calls a method to add layers to the map The following code 9 shows how to use this class static com esri mo2 ui bean Map map new com esri mo2 u1 bean Map Layer layerl new Layer Layer layer2 new Layer String 51 52 Properties configFile new Properties configFile load new FileInputStream config properties config configFile getProperty config sl config configFile getProperty s1 s2 config configFile getProperty s2 addShapefileToMap layerl s1 Add a shapefile to the map addShapefileToMap layer2 s2 private void addShapefileToMap Layer layer String s String datapath s C ESRI MOJ20 Samples Data US A states shp layer setDataset 0 datapath map add layer The details on the shape files can be found at 10 The shape files which are used by the com esri mo2 ui bean Layer class were created or acquired using the following ways The first way 15 there are a lot of sources which create the geographic data as shape files and distribute these files for free The shape file showing the states of USA and countries of the world as
28. re 5 4 Figure 6 1 Figure 6 2 Figure 6 3 Figure 7 1 Figure 8 1 Figure 8 2 Figure 8 3 Figure 8 4 Figure 8 5 Figure 8 6 Figure 8 7 Figure 8 8 1X LIST OF FIGURES PAGE Project development Cy Cle creana te ete 9 Interactive world map Natural Disasters main screen 10 Interactive world map Natural Disasters disaster 1 Interactive world map Natural Disasters picture game screen 12 Interactive world map Natural Disasters quiz screen 12 Hieh levelarehitecture dia9tatri co cortes 13 Class diagram for learn more tabs 15 Class diagram for gaming ADS None ie REM 16 CSS ASTM TOF QUIZ ADS o oriri Do Cie itis be 17 Library TAMAS CP dei ie 18 Adding MOJO libraries to NetBeans ncaa 19 Command prompt showing jar file execution 20 net SaL 21 oy Vell M ADR ne nee etum ie 26 Adding aTererence terrestre oser 26 Adding text file as d ta SOUL CEs 27 pa yates XY a area a UT 27 the XY dala 28 Displaying HeX Y daba issedick eate 28 Exportine tle Ao coh ene noi 29 SAVIN SNE exported Rd alerter 29 ACKNOWLEDGEMENTS I
29. serve of information and it only makes good sense to incorporate new technologies to make learning a fun experience The motivation for the development of this tool is to develop an application which provides high school teachers a convenient and interactive way to represent Natural Disasters of the last century This helps in using it for describing data graphically on a map by linking the data to various geographical features This tool will motivate students to learn information about the Natural Disasters It has information in the form of text pictures and links to information pertaining to the disasters It will also have games to provide students an opportunity to exercise what they have learned in a fun way There will also be some practice quizzes for the students to exercise and it also has the capability to create new practice graded quizzes The application is easy to deploy and use If one wants to change a few things it can be configured manually by making changes to a configuration file Making use of interactive technology in the classroom both instructors and students can make the learning process fun The Primary intended use of this application is student self study vi TABLE OF CONTENTS PAGE NDS RC D dd D D D il V HSTOFTABLE S c Vill LIST OF FIGURES m 1X ACKNOWLEDGEMENTS no tt eine X CHAPTER EAN ER TM SN e EE 1 T 3 PAULI cr c E 3 22 MapObjects
30. source files such as shape files images text files and help documentation 5 2 CLASSES AND CLASS DIAGRAM The class diagram helps in streamlining the overall code and its structure it also provides the developer a stencil to use for code development A class diagram shows the set of variable and functions present in the class It also explains the interdependency of classes used for the development Table 5 1 1 6 shows the base class Disaster and its imported classes Table 5 1 Importing Classes and Classes Used for Development Importing Classes Classes Used for Development import javax swing JButtons JPanel JSplitPane JToolBar Imagelcon JMenuBar JMenultem AbstractTableModel TableColumn import com esri mo2 ui bean Layer Toc TocAdapter TocEvent Legend Tool import com esri mo2 ui tb ZoomPanToolBar Selection ToolBar ProjectToolBar import com esri mo2 file shp ShapefileFolder ShapefileWriter import com esri mo2 map dpy gt Layerset FeatureLayer BaseFeatureLayer Source ACHAL SHAH Man made disasters GIS teaching aid Master s thesis San Diego State University San Diego CA 2012 The classes shown in Table 5 1 have been used for completing the basic functionality provided by MapObjects in the Interactive World Map Natural Disasters project After initializing the tool parameter using config file shape files and image files the Interactive World Map Natural Disasters tool 1s launched and the above classes
31. ter screen Figure 4 4 shows a screen shot of a picture game which asks the user to identify the picture of one of the disasters The user has to select one out of three answers and if the answer 15 correct it then gives feedback but if the selection is wrong it asks the user to try again Finally I would like to show the practice quiz prototype It is a self evaluation exercise which can also be configured as a graded quiz while creating the quiz It 1s interactive in the sense that it returns feedback to the user so that the user will evaluate if there 1s something wrong with their selection of an answer They can go back to the Natural Disasters Learn More option to learn more about the correct information in detail Figure 4 5 shows the screen to create quiz and a sample quiz screen 12 Identify Which 15 this gait 7 z f T 31 sage x 1 Good Job You got the Right answer v kt s Mt Pinatubo Eruptio ri State Tornado Mt Vesuvius Eruption Figure 4 4 Interactive world map Natural Disasters picture game screen INTERACTIVE WORLD MAP NATURAL DISASTERS Quiz Title Quiz Question 1 type your question below Quiz type practice gt graded Option A Feedback A Option B Feedback B Option C Feedback C Option D Feedback D Option E Feedback E Save Edit Quiz Page Save Edit Load Quiz Data
32. tural Disasters tool has been designed to easily navigate and access information It exhibits information in bold text and pictures to capture student s attention and motivate them to explore further The tool also incorporates an interactive quiz to provide the student an opportunity to analyze what they have learned The tool is flexible and can be modified easily by tutors It 15 a graphic interface tool to help students understand and learn about the Natural Disasters in a fun but effective way ESRI has the most prominent presence in the industry in the field of Geographic Information System GIS The release of MapObjects Java Standard Edition allows developer to build custom map applications using the open standard Java Programming language So the Interactive World Map for Natural Disasters GIS tool has been developed using Java and MapObjects as a software platform MapObjects is a suite of Java based developer components for creating client or server side mapping and GIS applications 1 Also NetBeans is used as a Java IDE in which we can compile and run Java programs This thesis has been organized into nine chapters the first two chapters concentrate on explaining the introduction and the technologies I have used for developing the application Chapters three and four are about collecting the requirement from Helix High School and about the prototyping that 1s used to achieve the final result In chapters five and six I have described the
33. url value corresponding to the disaster We 16 then use the following piece of code in java to launch the external URL using the default browser Runtime getRuntime exec rundl132 url dll FileProtocolHandler url Figure 5 3 shows the block diagram of the game buttons in the tool Button Listener Implements PickListenen nm nm nm 0 Button Listener Dispose Figure 5 3 Class diagram for gaming tabs The Play and Learn button when it is clicked the button listener creates an object of class PlayNLearn which again implements the PickListener interface from MapObjects When the button is clicked it also invokes a dialog box asking the user a question about the disaster The user then has to respond to the question by selecting one of the options provided followed by selecting the country where the disaster took place If the user is right we verify the answer using the PickListener method and provide a feedback in the form of a dialog box After clicking on The Picture Game button a dialog box pops up with an image of one the disasters that the student has learned from the list of disasters and shows three options on the screen One of the random images is selected from the Images folder and it s drawn on 17 the panel of the dialog window using the DrawImage Class If the user selects the right answer a feedback is provided in the form of a dialog box displayed on the screen Figure 5 4 shows t
34. ver s source data C the data frame the feature dataset you export the data inta only applies if you export to feature dataset in a geodatabase Output shapefile ar feature class D Profiles w35053 D exktep Shp 5 ample sample shp Cancel Figure 8 8 Saving the exported XY data 30 CHAPTER 9 FUTURE ENHANCEMENT This project has a huge scope But it was impossible to cover everything in the first version of the software This project has a huge degree for further development This chapter focuses on these ideas for future development of the project The framework is designed in such a way that it can be expanded to support more features and use cases As we have used object oriented JAVA as the programming language it s easy to write code for adding extra features in the tool Some of the future enhancements proposed are e Only afew Natural Disasters have been included in this tool It can be extended to add a lot more e Videos related to the disasters can be included to make it more interactive and entertaining e The scope of the project as of now is to deploy it on the student computers for them to learn about the Natural Disasters in more detail But in future it can be used as a Web Based application where a student can access this application through the internet at his own convenience without having to install this application on his or her computer We can a add time for solving the quizzes and al
Download Pdf Manuals
Related Search
Related Contents
Frost King RC160 Installation Guide User Manual ー200万画素 MiniDV取り扱い説明害 manuale d`uso エッセンシャルガイド ProScan PLT7044-K-B User's Manual Benutzerhandbuch Copyright © All rights reserved.
Failed to retrieve file