Implementation of a Geoserver Application for GIS Data Distribution and Manipulation
Total Page:16
File Type:pdf, Size:1020Kb
Department of Physical Geography and Quaternary Geology Implementation of a Geoserver application for GIS data distribution and manipulation Karteek Kommana Master’s thesis NKA 79 Physical Geography and Quaternary Geology, 45 Credits 2013 Preface This Master’s thesis is Karteek Kommana’s degree project in Physical Geography and Quaternary Geology at the Department of Physical Geography and Quaternary Geology, Stockholm University. The Master’s thesis comprises 45 credits (one and a half term of full- time studies). Supervisors have been Göran Alm at the Department of Physical Geography and Quaternary Geology, Stockholm University and Stefan Ene, Department of Human Geography, Stockholm University. Examiner has been Peter Schlyter at the Department of Physical Geography and Quaternary Geology, Stockholm University. The author is responsible for the contents of this thesis. Stockholm, 12 June 2013 Lars-Ove Westerberg Director of studies Abstract Accessibility and Interactivity are keywords of information today and that is equally important in science as anywhere else. When scientists share information it benefits if it is intuitive, informative and simple and does not demand expert skills in complicated formats. This master thesis has the aim to investigate open source software tools to design a web map application that can be used by any institute or NGO to distribute their data over internet. The Java platform to be implemented is the open source OpenLayers which allow users to view and potentially manipulate GIS map data through a web map application. Whatever GIS data made available on the Geoserver (the host site for the application) can be shared to users worldwide. The user can then: add from a list of available data layers, choose background (e.g. Google Earth, Open Street Map, etc.), zoom in and out, pan, change symbols and colors, add their own data on top and start animation (if applicable). The data distributed from the Geoserver can also be viewed and accessed from smartphones which opens the possibility to make the public part of the larger data gathering task of specific scientific inventories like observations of migrating birds, or whatever indicator a specific scientist is interested in. Data is uploaded to the Geoserver and can then be analyzed and the result is distributed to the public. Keywords: OpenLayers, Java, Geoserver Table of Content ABSTRACT ........................................................................................................................................... 1 INTRODUCTION ................................................................................................................................. 5 Objectives: ....................................................................................................................................................... 6 Case study: The Land Uplift .............................................................................................................................. 6 Web Mapping .................................................................................................................................................. 7 Classification of web mapping: ........................................................................................................................... 7 Architecture of Interactive mapping .............................................................................................................. 7 Data types....................................................................................................................................................... 7 Web server ..................................................................................................................................................... 8 Tiling ............................................................................................................................................................... 8 Open Geospatial Consortium.............................................................................................................................. 9 Web Map Service ........................................................................................................................................... 9 OGC- WMS ...................................................................................................................................................... 9 EPSG: ................................................................................................................................................................. 10 OpenLayers: ...................................................................................................................................................... 10 Client-side: .................................................................................................................................................... 11 OL library: ..................................................................................................................................................... 11 Web map application: .................................................................................................................................. 11 Google/Yahoo/Bing/ and other APIs: ........................................................................................................... 11 OpenLayers Layer: ........................................................................................................................................ 12 Map Controls: ............................................................................................................................................... 12 Controls in detail .......................................................................................................................................... 13 Web page design: ............................................................................................................................................. 13 Geoserver: ........................................................................................................................................................ 14 RESULTS: ........................................................................................................................................... 15 Detail explanation of Script: ........................................................................................................................... 17 CONCLUSION: ................................................................................................................................... 19 Problems during project: ................................................................................................................................ 20 Future work: .................................................................................................................................................. 20 ACKNOWLEDGEMENT .................................................................................................................. 20 REFERENCES .................................................................................................................................... 21 APPENDIX 1-GEOSERVER INSTRUCTIONS: ........................................................................... 23 Web administration interface:.......................................................................................................................... 23 Server: .......................................................................................................................................................... 23 Data: ............................................................................................................................................................. 23 Layer group:.................................................................................................................................................. 24 Services: ........................................................................................................................................................ 24 Tile catching: ................................................................................................................................................ 24 Map projections: .......................................................................................................................................... 24 Introduction Data sharing and distribution over the internet may seem to be difficult and expensive for persons representing e.g. NGO’s or local folklore societies etc. There is still an increasing need to share their data to the public. For example, statistical geospatial data are difficult to understand if it is presented as tables or graphs. The users’ understanding can be improved by showing the data on a map. The process of showing data on a map over the web is termed as “Web Mapping” or “Internet Mapping”. Showing the data on a map requires geospatial coordinates of the data. The use of internet mapping has been getting vast popularity for past few years. By the end of 1999 there were about 40 million maps were produced over the Internet per day and two years later almost reached over 200 million per day (Schütze, 2007). This tremendous increase of the use of internet mapping shows the importance of showing/sharing spatial information over internet. On February 2005 the release of Google maps created a revolutionary change in the concept