Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Getting your Data Out There: An Introduction to Distributed GIS


Published on

Published in: Technology
  • Be the first to comment

Getting your Data Out There: An Introduction to Distributed GIS

  1. 1. Getting your Data Out There:An Introduction to Distributed GIS<br />John ReiserRowan University<br />
  2. 2. Instructor<br />John Reiser<br />Rowan University<br />John is the Campus GIS Specialist for Rowan University. At Rowan, he manages the campus GIS infrastructure, develops GIS applications for campus and project use, guides curriculum and teaches GIS courses. In his spare time, he continues to be a GIS geek, developing web-based GIS projects, GPS software and contributes to the open source GIS community.<br />
  3. 3. Workshop Description<br /> This workshop is designed for those that are looking for an introduction to Internet-enabled GIS and Cloud-based GIS services. Distributed GIS relies on remote services to render maps, convert data formats, or perform geoprocessing tasks. The workshop will begin with an overview of the current options available to those looking to use and implement distributed GIS. We will then explore freely available web services from a multitude of providers. Live demonstrations of the services will be incorporated into the workshop. A discussion of implementing distributed GIS within your organization will conclude the workshop.<br />
  4. 4. Workshop Objectives<br />Upon completion of the workshop, students will have a greater understanding of:<br />The newest GIS file formats and services<br />Preparing your data for distribution<br />OGC Web Service standards<br />Available GIS servers<br />GIS-friendly content distribution networks<br />
  5. 5. Workshop Outline<br />Section 1 – Introducing Distributed GIS<br />Section 2 – Is Distributed GIS right for you?<br />Section 3 – Delivering your data as KML<br />Section 4 – Your first Web Map<br />Section 5 – Developing your GIS Server<br />Section 6 – Putting the pieces together<br />Section 7 – Final Thoughts<br />
  6. 6. Workshop Materials<br />While the workshop will not give you “hands on” experience, links to demos and code samples will be provided at:<br /><br />
  7. 7. Section 1Introducing Distributed GIS<br />
  8. 8. What exactly is Distributed GIS?<br />Distributed GIS is a system where components of a GIS are distributed amongst computers on a LAN or the Internet.<br />For this workshop, we will be exploring D-GIS technology that allows you to offer your GIS data as a public-facing, Internet-based service.<br />Distributed GIS services should allow members of the public access to your data without an interruption of your internal workflow.<br />Distributed GIS can also provide geoprocessing tasks performed on your data to the public. <br />
  9. 9. Open Standards<br />For these separate pieces to work together, they must share a common language.<br />Several common languages that are open standards supported by the Open Geospatial Consortium.<br />You are not limited to the open standards for internal use; many systems allow for exporting or services that produce open formats.<br />
  10. 10. Who uses Distributed GIS?<br />Today, almost everyone has used a form of Distributed GIS, from generating driving directions from Google Maps to viewing aerial photography from a remote server.<br />The days of ordering 15 DVDs of base imagery are nearly gone.<br />The Internet has drastically changed the way we manage, process and present data. <br />
  11. 11. What types of Distributed GIS are there?<br />Using KML to distribute basic data to users through a virtual globe.<br />Providing your data in a “slippy” web map.<br />Providing web maps, data services and geoprocessing capabilities through a dedicated GIS server or servers.<br />
  12. 12. What’s not Distributed GIS?<br />Offering data burned to a CD or DVD. <br />Providing GIS data for download.<br />Don’t fall into this trap with KML data! The real power of KML comes from pulling in many data sources. It shouldn’t act as just another data format.<br />Providing PDFs, other static maps on the Web.<br />GeoPDF, while useful, is not Distributed GIS.<br />
  13. 13. Section 2Is Distributed GIS right for you?<br />
  14. 14. Is Distributed GIS right for me?<br /> Every situation is different. If your project would benefit from any of the following, you should consider Distributed GIS:<br /><ul><li>Your users are spread out across offices.
  15. 15. Your data is updated frequently.
  16. 16. Your data is often requested by the public.
  17. 17. Many of your clients are not familiar with GIS.
  18. 18. You currently use or have used ArcIMS or another Internet Mapping Service. </li></li></ul><li>Public and Private Distributed GIS<br />All of the examples in the workshop today will deal with delivering data and maps to the public.<br />You could just as easily cater your system to a specific group, or to only a handful of authorized users.<br />We will not be discussing how to restrict access to your Distributed GIS system.<br />
  19. 19. What type of Distributed GISis right for me?<br />Want users to remix?Deliver it in KML, providing the data in the easiest form to manipulate.<br />Need to paint a picture?Develop a web map with your cartographic styling, framing the data as you want it to be seen.<br />Recreating a desktop GIS on the web?Deploy services using GIS server software.<br />
  20. 20. What’s right for you?<br />The correct answer is: depends on the project.<br />Use the technology that serves your users best.<br />Many alternatives to provide the services you choose, varying in platform, features and cost.<br />Let’s take a look at a few of our options.<br />
  21. 21. KML – it’s not just Google Earth<br />Keyhole Markup Language is the file format developed for the Keyhole Earth Browser, predecessor to Google Earth.<br />After purchasing Keyhole in 2004, Google greatly expanded KML’s capabilities. <br />In 2008, the OGC declared KML 2.2 to be an open standard for geographic data.<br />Many software packages outside of Google Earth support KML data.<br />
  22. 22. Working with KML<br />Other than Google Earth:<br />ArcGIS Explorer<br />ArcGIS Desktop/Server<br />Google Maps<br />SketchUp<br />Arc2Earth<br />Several GPS utilities<br />Many open source projects<br />
  23. 23. Using KML<br />KML is a subset of XML, thus text-editable.<br />KML stores vector data along with symbology. <br />KML can act as a wrapper for WMS services.<br />Network links allow you to push fresh data out to users.<br />It’s a lightweight data format for export and distribution. It’s not going to be your native data format.<br />
  24. 24. How KML is used<br />Because KML is viewed in a virtual globe, your data will be in your users’ control.<br />They may not be viewing the same data as others, as other data and base imagery may be in use.<br />Complicated or complex data may not be suited for KML that will be presented to a general audience.<br />
  25. 25. Web Maps – What’s ArcIMS?<br />Many of you might be familiar with ArcIMS. For many years, ArcIMS was the way to deliver interactive maps across the web.<br />Google introduced Maps in 2004, completely changing the way we think about mapping on the Web.<br />Introduced the “slippy” map interface, where pre-rendered tiles are displayed in a draggable matrix at set zoom levels. <br />
  26. 26. The Slippy Map Interface<br />Smooth, intuitive panning creates a welcoming user experience.<br />Pre-rendered tiles reduce processing overhead, while increasing storage needs.<br />Storage is relatively cheap, compared to upgrading the processing power of a server.<br />The experience is what is important and long wait times negatively impact that experience.<br />It has become the standard for web maps.<br />
  27. 27. Creating your own Web Map<br />There are several methods for creating Web Maps, however most require your own server and software.<br />Arc2Earth allows you to generate the tiles needed from ArcGIS, and then upload them to a server.<br />
  28. 28. Using Web Maps<br />Providing a slippy style web map can help your organization provide users with a simple, easy-to-use interactive web map. <br />Web maps can help acclimate users to your data without requiring a GIS application.<br />Users looking for basic maps and information may turn to your map instead of a desktop GIS.<br />Greater control over the user experience.<br />
  29. 29. How Web Maps will be used<br />While the ability to manipulate the data without your knowledge is not as easy as it is with KML, your maps by their very nature will be shared across the Internet.<br />Make sure your map is clearly depicting what you want to show and that any explanatory narrative is clear and concise.<br />It will be hosted on your website, so it will be treated as a definitive source, on par with the actual GIS data behind the map. <br />
  30. 30. Hosting Your Own Server<br />Your own GIS server could produce KML and web maps like the previous examples, but it can also do much more.<br />Act as a front-end to your GIS database.<br />Provide additional web services, such as geocoding and geoprocessing.<br />Greater control over your clients’ experience.<br />Requires hardware and customization.<br />
  31. 31. Your GIS Server<br />ArcGIS Server is probably the most robust offering out there today, but very costly.<br />Roll your own using Open Source software.<br />GeoServer<br />TileCache<br />OpenLayers<br />
  32. 32. Using your GIS Server<br />The server can feed data to both your KML files and hosted Web Maps.<br />The server can manage your data and provide snapshot “views” to groups of users.<br />Geoprocessing can be executed on the server, removing the processing burden on local workstations.<br />Can support to complement data offerings and common tasks. <br />
  33. 33. How your GIS Server will be used<br />Once the server is up and running, people will use it and expect it to be there when needed.<br />Conversely, if you don’t make it easy to use, users will reject it and revert back to previous workflows (calling you, begging for maps/info)<br />You will want to plan for redundancy, security testing, maintaining quality of service, etc.<br />Plan big and plan to scale services as needed.<br />
  34. 34. Section 3Delivering your data as KML<br />
  35. 35. Your Data in KML<br />If you have not yet worked with KML, you will quickly find that it is a great format for distributing data, as it includes symbology, can support raster and vector data, and can be updated over the network.<br />There is a small learning curve for your users; many will be familiar with the format already.<br />However, there are some issues to consider before you migrate your data to KML.<br />
  36. 36. KML – Technical Issues<br />While it supports many features, not all features are as robust as in a traditional GIS and support varies among the KML viewers.<br />Symbology is limited to outlines and fill for polygon features. Hatching and line styles are not supported.<br />Large features (>10K vertices) are not rendered properly.<br />Network links do not always behave.<br />
  37. 37. KML – Usability Issues<br />While a desktop 3D earth browser is impressive, it’s not the right solution for all data types.<br />If the 3D browser helps people navigate your data, all the better. If they end up getting lost, it’s not very useful.<br />Consider creating camera viewpoints or tours, similar to bookmarks in ArcMap Documents.<br />You can also include political boundaries in your document, allowing users to zoom to an area.<br />
  38. 38. Exporting your data to KML<br />There are many options for converting your existing GIS data to KML: <br />ArcGIS Layers to KML: export from ArcMap.<br />Online conversion services: upload a shapefile, download a KML file.<br />Command line scripts: GDAL/OGR, Python scripts.<br />Arc2Earth<br />3rd party extensions to ArcGIS<br />
  39. 39. Workshop Examples<br />For the purpose of this workshop, the examples assume that you have access to ArcGIS 9.3 or later.<br />Unless specified otherwise, the examples reflect using a typical Windows XP, ArcView-level GIS configuration.<br />
  40. 40. Getting Started with KML<br />For this first example, we will be working with the municipalities of Atlantic County.<br />We will add the layer to ArcMap, then use the Layer to KML tool to export the data.<br />We will view the data in Google Earth to see how the data is modified in the conversion.<br />
  41. 41. Atlantic County Municipalities<br />
  42. 42. Export Layer to KML<br />
  43. 43. Municipality Data in Google Earth<br />
  44. 44. Initial Observations<br />The exported data appears in Google Earth at the proper location. Note that not all export tools will reproject to WGS84 automatically.<br />The symbology is preserved from ArcGIS to Google Earth.<br />The exported file is a .KMZ, which is a ZIP-compressed file format.<br />Clicking on the individual polygons does not cause anything to occur. Google Earth does allow for clickable polygons.<br />
  45. 45. Interactive KML<br />Let’s add some basic functionality to our KML data: clicking on a municipality in Google Earth will cause a balloon to pop up with attribute information.<br />This is enabled through a Layer Properties tab introduced in ArcGIS 9.3 – HTML popup.<br />Along with the hyperlink functionality, the HTML popup will be exported to Google Earth.<br />
  46. 46. The HTML Popup Window<br />
  47. 47. Configuring the HTML Popup<br />We will use the most basic HTML popup, a table with attribute information.<br />We can switch field visibility off in the Fields tab if we do not want select fields in the popup.<br />Advanced formatting is available through the use of XSLT stylesheets. <br />
  48. 48. Popup in Action<br />
  49. 49. Popups in Google Earth<br />
  50. 50. Symbology Shortcomings<br />While configuring the HTML Popup, the symbology was changed to a dashed outline.<br />The dashed outline did not get carried over to the KML symbology, although the color and line weight did.<br />Keep in mind that complex data may need to be generalized to work with the limited cartographic capabilities of earth browsers. <br />
  51. 51. Exporting Raster Data<br />Similar to the process used to export the vector municipality data to Google Earth, we can export raster data to KML.<br />Define a custom extent to clip the exported raster to a bounding box.<br />ArcGIS takes some liberties with resampling, so you may need to tweak settings to get the data to appear as desired.<br />
  52. 52. Raster data in Google Earth<br />
  53. 53. Export Multiple Layers<br />KML supports a mix of geometry types within the same KML file. <br />ArcGIS can export multiple layers of mixed type (point, line, polygon, raster, etc) as one KML document.<br />We can use the Map to KML tool to export all of the layers to a KML file.<br />
  54. 54. Multi-layer KML in Google Earth<br />
  55. 55. Using Web Services with KML<br />KML has the ability to access web services natively. Most earth browsers support this capability.<br />KML can access WMS services and bring in WMS images based on the current extent.<br />KML supports network links, automatically downloading remote KML/KMZ files and adding them to the current list of layers.<br />
  56. 56. Accessing WMS<br />Unfortunately, WMS layers added to ArcGIS do not get exported to KML. Luckily, it’s very easy to add WMS layers within Google Earth.<br />Save the Image Overlay (Google’s KML feature for supporting WMS) as its own KML file, so it is easy to add to other KML files. <br />
  57. 57. WMS in Google Earth<br />
  58. 58. Notes on Image Overlays<br />By default, Google specifies that the image overlay only covers 75% of the current view extent. You will likely want to change this to a value between 1 and 1.25.<br />The default refresh settings are to wait 4 seconds before requesting new WMS imagery. You may want to alter this for your services. <br />
  59. 59. Network Overlays<br />“If my users are already downloading the KML from my website, why do I need this?”<br />When they download the data, they will then need to redownload to receive any updates. <br />The network link will cause their Earth Browser to load the latest data on startup.<br />Network link could point to a static KML or to the KML services provided by ArcGIS Server.<br />
  60. 60. Simple Network Example<br />We will upload our municipalities KML to a website and note the URL.<br />Use Google Earth to add a new Network Link to your earth browser.<br />Save the Network Link to its own KML file.<br />Note the small size of the Network Link file.<br />The data will be pulled in as needed.<br />
  61. 61. Serving KML Online<br />While you could easily post a KML to your website, consider some alternative hosting options.<br />GeoCommons, the open web mapping platform, can host your KML and a web map.<br />Amazon Web Services can store your KML files, allowing the use of the Amazon network to distribute larger files.<br />Depends on costs and service needs.<br />
  62. 62. Complex Network Links<br />Network links can be configured to load based on the current extent.<br />Load balance or use a CDN for larger datasets.<br />Remember, your user will need to download the data every time, so generalized or simple data works best.<br />
  63. 63. KML Review<br />Provides user with an snapshot of your data.<br />Open standard, readable by many programs.<br />Can mix vector, raster and web services. <br />Includes symbology information.<br />Network links ensure users have latest data.<br />Minimally interactive; view but not explore.<br />Easy to produce and distribute.<br />
  64. 64. Section 4Your First Web Map<br />
  65. 65. Your First Web Map<br />Providing a basic web map, similar to Google Maps, has become a simple task.<br />The ability to generate tiles, the rendered GIS data presented to end users, is possible through many different software packages. <br />The heavy lifting will come as you move your map from a general viewer to a specific data interface.<br />
  66. 66. Basis of the Technology<br />Previous methods for generating maps on the Internet were in two forms:<br />Render requests for any map extent and scale.<br />Render a few static maps; provide links between.<br />Google Maps changed this dynamic, as it publicized the “slippy map” concept.<br />Slippy Maps are composed of square tiles rendered into a seamless map at static scales.<br />
  67. 67. Spherical Mercator<br />A new projection was developed to make web mapping easier: Spherical Mercator.<br />A Mercator project based on a spherical datum.<br />Not for high-precision work. Not a problem because no one should be using web maps in place of surveys. <br />
  68. 68. Spherical Mercator<br />Projection creates a square Earth, which can then be divided into square map tiles.<br />Many GIS platforms now support this projection natively.<br />
  69. 69. Map Framework<br />Creating a Slippy Map requires a map framework, such as OpenLayers (JS) or Yahoo! Maps (Flash)<br />Google offers both JS and Flash APIs.<br />Your map framework will request the tiles from a GIS server or a tile cache.<br />A tile cache is simply a set of static map images in a standard directory structure.<br />
  70. 70. Tile Cache<br />A tile cache can greatly improve the responsiveness of your web map.<br />A GIS Server requires multiple connections to a DB or disk to render a map tile.<br />A tile cache does not need active connections to your GIS data. It is “dumb” storage.<br />While the disk storage requirements increase, the latency your users experience decreases. <br />
  71. 71. Cache Creation<br />There are two predominate methods for populating a tile cache with map tiles.<br />Direct: using a desktop computer to generate the tiles from a GIS, storing them locally or remotely.<br />Intermediary: using middle-man software that passes on requests to a GIS server while creating and managing the cache.<br />We will first look at the direct method using Arc2Earth.<br />
  72. 72. Arc2Earth<br />Initially created in 2006 by SpatialDataLogic, Arc2Earth was a tool for bringing GIS data to Google Earth.<br />It has since evolved into a GIS swiss army knife, allowing you to move your GIS data into many new distributed formats.<br />Can supplement your KML as well as your map tile production.<br />
  73. 73. Getting Started with Arc2Earth<br />We will explore Arc2Earth’s tile generating capabilities using Pinelands data for Atlantic County.<br />We will prepare our data in ArcMap, then use Arc2Earth to generate the tiles and basic web map based on our ArcMap settings.<br />
  74. 74. Atlantic County Pinelands Data<br />
  75. 75. Arc2Earth Interface<br />
  76. 76. General Web Map Settings<br />
  77. 77. Items to Consider<br />You may want to experiment with anti-aliasing, as it may improve the legibility and crispness of your maps.<br />Transparency can be implemented within the tiles (alpha-channel PNGs) or in Javascript.<br />Remember to include metadata for your maps.<br />
  78. 78. Generating Zoom Levels<br />
  79. 79. Number of Levels<br />You want to render only the levels needed for your application.<br />Number of tiles quadruple as the zoom level increases.<br />Limit the zoom levels of your map to what is appropriate.<br />Specify the tile ordering scheme.<br />
  80. 80. Storing Your Tiles<br />Arc2Earth will generate your tiles, but you must specify how they will be stored.<br />Local copy is generated for a local cache.<br />Upload to a cloud-based hosting service. <br />
  81. 81. Hosting Your Tiles in the Cloud<br />Arc2Earth can save your tiles locally, allowing you to manually set up your tile cache.<br />Can also export into:<br />Amazon S3 &<br />Arc2Earth managed cloud-hosting using Google.<br />
  82. 82. Benefits of Cloud Hosting<br />Relying on a third-party service for hosting frees you from managing a server.<br />Cloud hosting providers have a much larger infrastructure and capacity.<br />Pre-built viewers remove the need for custom configuration.<br />
  83. 83. Our data on<br />
  84. 84. Hosted with<br /> provides a framework for basic web map functionality.<br />Service provides base map data that you would otherwise need to manage or license.<br />Framework for desktop and mobile access.<br />
  85. 85. Disadvantages of Cloud Hosting<br />If you already have some server infrastructure in place and your expected traffic is low, you may want to consider hosting in-house.<br />Included frameworks are not as flexible or customizable compared to hosted services.<br />Security of data – facilities & infrastructure<br />Purchasing outside software/services can be difficult in government.<br />
  86. 86. Final Thoughts on Arc2Earth<br />Easiest way to build tiles without a dedicated server. No need to manage server infrastructure as you rely on Amazon/Google.<br />Very useful for generating KML files that may not export well using ESRI’s built-in tool.<br />Can create SLD files for use on your own open source GIS server.<br />Costs money for additional features; closed source.<br />
  87. 87. Section 5Developing Your GIS Server<br />
  88. 88. Developing your GIS Server<br />A GIS Server can be relatively simple, providing file or database storage while serving data through the intranet or Web.<br />A GIS Server can be run on one workstation or on a cluster of servers.<br />Your ultimate configuration depends on your needs, budget, and level of know-how.<br />
  89. 89. Assumptions Made<br />While we will discuss GIS Servers in general terms, we will focus on a few software offerings.<br />The software in this workshop is open source, feature rich, well-documented, and relatively straightforward to install and manage.<br />While it may not be the right fit for you, what we discuss today you should be able to try at home with your time being the only cost.<br />
  90. 90. Technologies Used<br />GeoServerA Java-based OGC-compliant, WFS-T capable GIS Server. Handles data and map rendering.<br />TileCache & OpenLayersEnables you to host your own “slippy” maps.<br />PostgreSQL & PostGISOpen source GIS database technology. Compatible with ArcSDE. <br />
  91. 91. Technologies Used<br />GeoServer, TileCache, and PostgreSQL can be switched out for similar software.<br />However, this configuration works with minimal tweaking required.<br />All are open source and freely available.<br />All run on Linux, Mac OS X and Windows.<br />Each has their own dedicated support community and options for purchased support.<br />
  92. 92. GeoServer<br />Based on the GeoTools Java toolkit.<br />Standards compliant & arguably the easiest server platform to incorporate into other GIS systems and products.<br />Java Servlet technology; can run in a container or standalone.<br />Simple to install (binaries available) and manage. Web-based user interface.<br />
  93. 93.<br />
  94. 94. Open Source Support<br />Before we proceed, it should be stated that open source software is not “fix it yourself.”<br />Many organization are hesitant to use open source for “enterprise” level applications due to the perceived lack of support.<br />OpenGeo is the developer behind Geoserver.<br />While open source, OpenGeo provides technical support and custom development to users of GeoServer.<br />
  95. 95.<br />
  96. 96. GeoServer Configuration<br />Most features managed through a web interface.<br />GeoServer is undoubtedly one of the easiest GIS servers to deploy.<br />Upload data to server, then point-and-click configuration.<br />Symbology defined using Styled Layer Descriptors (SLD).<br />
  97. 97. GeoServer Installation<br />Deploy as WAR from within a servlet container<br />Install stand-alone.<br />May need to install some dependencies for additional features.<br />GDAL/OGR<br />Plugins<br />
  98. 98. Post-Install<br />Log in to your server via a web interface.<br />If installing on your own Windows desktop, it’s simply http://localhost:8080/geoserver/web<br />From there, you can add data to the server, configure layers to serve, access service capabilities and much more.<br />
  99. 99. Your Installation Homepage<br />
  100. 100. List of Layers Available<br />
  101. 101. Styled Layer Descriptors<br />SLDs are used to define symbology in GeoServer and in other open source projects.<br />Is an OGC open format. Subset of WMS.<br />You can define several SLDs to be used with a data layer, and give the option for the user to switch between them.<br />Edit SLDs from GeoServer web interface.<br />
  102. 102. GeoServer’s Built-in SLD Editor<br />
  103. 103. Yes, SLDs are XML<br />SLDs are very powerful, but not user-friendly.<br />A GUI editor for SLDs within GeoServer is under development.<br />Part of the GeoExt project for web GIS interfaces in JavaScript.<br />
  104. 104. SLD Cookbook<br />GeoServer’s documentation covers frequently-desired cartographic effects implemented with SLDs.<br />Also available is an SLD reference, that includes notes on vendor-specific (GeoServer only) features. <br />
  105. 105. Now What?<br />Now that you have your data in your server, what can you do with it?<br />Serve the data to users via WMS or WFS, allowing ArcGIS Desktop users access.<br />Serve the data to users through a website.<br />
  106. 106. ArcGIS WMS & WFS Access<br />ArcGIS allows for direct access to WMS services.<br />Under “GIS Servers” select Add New WMS<br />Enter the URL to your server. Use the WMS link on the homepage.<br />NJ’s aerial photography is available through WMS.<br />
  107. 107. WMS Layers in ArcMap<br />
  108. 108. Getting Started with Web Maps<br />On your organization’s website, you can create a page that uses the OpenLayers JavaScript library to create a slippy map on a page of your choosing.<br />You can also install TileCache to speed up the rendering of the slippy map.<br />Warning: some programming ahead!<br />
  109. 109. OpenLayers<br />A JavaScript library for implementing slippy-style web maps.<br />Originally developed by MetaCarta, then became an OSGeo project.<br />Open source and no cost.<br />Can interface with WMS services as well as ArcGIS Server.<br />
  110. 110. Why not Google Maps?<br />While the Google Maps API seems ubiquitous, there are limitations that may impact your use.<br />While free at first, Google will charge for high-traffic sites using its API.<br />Version 2 is deprecated and they are going to turn it off eventually.<br />Cannot be used on your intranet. All pages using the API must be public.<br />
  111. 111. Using OpenLayers<br />OpenLayers provides the same basic functionality as Google Maps. <br />Additional functionality such as in-map editing of vector features, easy configuration of custom projections, etc.<br />If you’re familiar with the Google Maps API, OpenLayers should be an easy transition.<br />OpenLayers does not come with base maps; provide your own or use Google, Bing, Yahoo! <br />
  112. 112. Entirely Your Own<br />While you may want to use Google/Bing as a base map, using their APIs may restrict you from tailoring the application to your users.<br />You can host your own copy of OpenLayers and modify it as needed<br />From the map functionality through to the user interface, the API is customizable.<br />
  113. 113. OpenLayers Examples<br />
  114. 114. Starting from Example<br />One of the OpenLayers examples is a basic web map using a WMS service for the map tiles. <br />We can copy that example to our own website and replace the example WMS URL with our own.<br />Change the starting coordinates and zoom level and we’re off!<br />
  115. 115. Example from OpenLayers<br />
  116. 116. Changing the Example<br />
  117. 117. Additional Functionality<br />OpenLayers or Google Maps are the frameworks for developing custom interactions with the maps and data.<br />OpenLayers even has code for manipulating vector data; modifying vertices in a feature.<br />Additional functionality is performed server side, such as spatial or network analysis.<br />Your server must be able to support those functions.<br />
  118. 118. TileCache<br />
  119. 119. TileCache<br />Once your web mapping application is nearing release, you should consider taking steps to optimize your users’ experience.<br />Caching map tiles will improve overall rendering speeds.<br />Increased storage costs, but reduced CPU & DB demands as you are no longer rendering repeatedly from GIS data. <br />
  120. 120. Intermediary<br />TileCache sits between your interface and your rendering engine.<br />It handles WMS requests, so your interface can continue to use the same request methods.<br />WMS requests that have not been cached are passed along to the rendering engine, then stored when returned to the interface.<br />Caches can be pre-rendered or rendered as needed.<br />
  121. 121. Caching On-The-Fly<br />Web Map<br />GIS Server<br />TileCache<br />Cache<br />Map Tile does not exist:<br />Rendered then stored.<br />Web Map<br />GIS Server<br />TileCache<br />Cache<br />Map Tile does exist:<br />Pre-rendered tile returned.<br />
  122. 122. Configuring TileCache<br />TileCache is written in Python and can run on most modern platforms with minimal configuration.<br />Define layers to be cached using a text-based configuration file.<br />WMS Service<br />Configured for use in a Google-style mashup.<br />
  123. 123. Pieces In Place<br />We now have the pieces to develop our own Distributed GIS system.<br />GeoServer– rendering and processing our GIS data<br />OpenLayers –providing a map interface in a web browser<br />TileCache –optimizing delivery of map data<br />
  124. 124. Section 6Putting The Pieces Together<br />
  125. 125. Your Distributed GIS<br />We have covered the various options available to move your data into a Distributed GIS.<br />Not every tool will work for you, but one or more may be a part of your Distributed GIS.<br />Let’s take a look at a few examples of Distributed GIS systems and see how they are implemented. <br />
  126. 126. National Weather Service<br />The NWS uses KML to distribute weather updates, advisories and radar/satellite imagery.<br />The KML files use network links, allowing for automatic refreshing of the weather data.<br />Weather data is always changing and the interface has to suit a general audience.<br />
  127. 127. Rowan’s Land Change Viewer<br />Built as a part of the ongoing “Changing Landscapes of the Garden State” research jointly conducted by Rowan & Rutgers.<br />Series of animated web maps showing changes in land use in New Jersey over 21 years.<br />Developed using a multiple Distributed GIS technologies and distributed across the Web.<br />
  128. 128. Distributed Land Change Viewer<br />
  129. 129. Distributed Land Change Viewer<br />Land Change Viewer<br />Google MapsBase Maps<br />Bing MapsBird’s Eye<br />CloudFront<br />GeoServer<br />Amazon S3<br />TileCache<br />
  130. 130. Land Change Viewer<br />The Land Change Viewer relies on a mix of hosted and cloud-based services.<br />GeoServer was used to render the Land Use data for the entire state.<br />TileCache generated local and S3-based map tile caches for the interactive maps.<br />Amazon S3 was used to store the production map tiles & CloudFront to distribute. <br />
  131. 131. Tile Creation<br />By using CloudFront to distribute the map tiles using Amazon’s infrastructure, we needed to pre-build our cache.<br />Map tiles were limited to zoom level 8 (all of NJ) through 15 (small town/neighborhood scale)<br />Tile rendering had to begin well in advance of the release date.<br />
  132. 132. Tile Math<br />For the extent of NJ, zoom levels 8-15, approximately 60,000 tiles needed to be created.<br />Each animation frame was one set of tiles.<br />Approximately 1.5 million tiles had to be generated.<br />
  133. 133. Land Change Viewer<br />After testing other possible implementation strategies, we selected a JS-based web map.<br />Authoring the JS, configuring the server and rendering the tiles took about 4 weeks.<br />Distributed GIS allows the user interface to be quick and responsive.<br />More on the NJ Land Change Viewer at the MAC URISA Interactive Expo. <br />
  134. 134. Section 7Final Thoughts<br />
  135. 135. Just the Beginning…<br />While we covered many different technologies and topics, this is just a preview of the new direction GIS is heading.<br />Distributed GIS has been around for several years, but it has never been as easy or available to smaller firms and groups as it is today.<br />
  136. 136. Implementing Your GIS<br />While the goals of your individual organizations vary, informing the public is likely a common goal.<br />A Distributed GIS system can help you in delivering your data while also making it easier for the public to access and understand.<br />The key is finding the right mix of technology to achieve that goal.<br />
  137. 137. Available Technology<br />ArcGIS Server<br />Cloud<br />Services<br /><br />Servers<br />Google AppEngine<br />FME 2010<br />GeoServer<br />Amazon AWS<br />ERDAS Apollo<br />Windows Azure<br />MapServer<br />Change Components To Suit Your Needs<br />Bing Maps<br />Yahoo! Maps<br />Mapnik<br />Arc2Earth<br />Google Maps<br />ESRI JS & Flex<br />Map TileCreation<br />InterfaceAPIs<br />OpenLayers<br />TileCache<br />GeoMoose<br />Mapstraction<br />PolyMaps<br />GeoEXT<br />GeoWebCache<br />
  138. 138. Community Support<br />While not all of the open source packages have technical support, all have a community of users and developers to help with a project.<br />Get involved with your platform’s community.<br />Provide assistance to others.<br />Show off your work.<br />The community drives interest in the technology and sets the course for future development.<br />
  139. 139. After the Workshop<br />Try some of the different applications out with your own data. Many of the applications are free.<br />Start a discussion in your organization on how you can better distribute your data using Distributed GIS technology.<br />
  140. 140. Thank You<br />I hope you enjoyed this discussion of Distributed GIS.<br />Questions or comments:John Reiserjohn@njgeo.org (twitter)856-347-0047<br />