Internet-enabled GIS Using Free and Open Source Tools John Reiser [email protected].
-
Upload
aden-adney -
Category
Documents
-
view
218 -
download
2
Transcript of Internet-enabled GIS Using Free and Open Source Tools John Reiser [email protected].
![Page 2: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/2.jpg)
What exactly is Open Source?
• Freedom to allow others to adapt and reuse while retaining some rights over code
• Community-driven software• Precursor to the Open Content movement• Eric Raymond's "The Cathedral and the Bazaar"
![Page 3: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/3.jpg)
The Cathedral and the Bazaar
"I believed that the most important software needed to be built like cathedrals, carefully crafted by individual wizards or small bands of mages working in splendid isolation, with no beta to be released before its time."
"The Linux community seemed to resemble a great babbling bazaar of differing agendas and approaches out of which a coherent and stable system could seemingly emerge only by a succession of miracles."
![Page 4: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/4.jpg)
No Miracles Necessary
• Open source does work• Thousands of software packages are available
under open source licenses– Operating systems, development tools, web
browsers, web and file servers, communications tools, graphic design applications, etc…
• All with no upfront monetary cost• How does GIS fit in?
![Page 5: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/5.jpg)
The Cathedral
![Page 6: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/6.jpg)
The Bazaar
![Page 7: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/7.jpg)
Open Source GIS
• Software that allows us to share our data with everyone using open standards
• Software that we can modify and improve• GIS data released under an open license• GIS data updated and enriched by community
input and participation
![Page 8: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/8.jpg)
Open Source GIS
• Developing an open source GIS has many benefits– Low-cost of entry– Adaptable and extendable– Entry into the greater open source community
• "Open Source doesn't come with support" is no longer a valid excuse
• Several companies now provide support to OS GIS packages
![Page 9: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/9.jpg)
Sharing Data: Accessibility
• We can easily share data now– FTP– ZIP files posted to the web
• Helps GIS users, but outsiders are left in the dark• Inviting, easy to use map interfaces are the new
way to share
![Page 10: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/10.jpg)
Making GIS Accessible
![Page 11: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/11.jpg)
NYCityMap gis.nyc.gov/doitt/nycitymap/
![Page 12: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/12.jpg)
Delivering On Changewhitehouse.gov/change/
![Page 13: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/13.jpg)
Getting the parts together
• Protocols– Web Map Service– Web Feature Service– Keyhole Markup Language
• Server side tech– MapServer and/or GeoServer– Tilecache
• Client side– OpenLayers– Google Maps and Virtual Earth (free but not OS)
![Page 14: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/14.jpg)
Configuration of a Web Map
MapServer
GeoServer
GIS Data
Other WMS
TileCache
Map Cache
OpenLayers
Server Client
![Page 15: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/15.jpg)
Web Map Service
• WMS is a protocol for requesting rendered map tiles from a GIS server
• Allows access to the attribute information via XML
• REST-ful protocol – necessary info within the URL
![Page 16: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/16.jpg)
Web Feature Service
• WFS allows for retrieval of GIS features and properties from a remote server
• WFS also allows updating GIS data on a remote server
• Returns XML data
![Page 17: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/17.jpg)
KML
• Once a "closed" language, Google pushed for its adoption as an open standard
• KML is a subset of XML and related to GML• KML stores vector data along with symbology • KML can act as a wrapper for WMS services
![Page 18: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/18.jpg)
Choosing a Server
• MapServer and GeoServer fill similar roles, but there are some things to consider in choosing:– Hosting environment– Focus on rendering data or manipulating data– Familiarity with command-line interface– Patience
![Page 19: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/19.jpg)
MapServer – mapserver.org
![Page 20: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/20.jpg)
MapServer
• MapServer is robust software– launched mid-1990s, currently version 5.4.0
• MapServer is lightweight• Runs in either Apache httpd or IIS• MapServer supports many file formats• Easy to install • More difficult to configure
![Page 21: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/21.jpg)
GeoServer – geoserver.org
![Page 22: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/22.jpg)
GeoServer
• GeoServer is also robust software– launched 2001, currently version 1.7.4
• Written in Java, runs in Apache Tomcat• Complicated to install in shared hosting
environment• Easy to configure
![Page 23: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/23.jpg)
Tile-based Mapping
• Common complaint of ArcIMS is that the service is painfully slow
• The map extent is rendered from GIS data for every request
• Caching pre-rendered maps allows the server to send a static file without GIS processing
![Page 24: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/24.jpg)
Tile-based Mapping
• Enforce a set of scales at which the map is rendered
• Break each map scale into a grid of rendered map tiles
• Map tiles can be stored on disk after rendering• Removes the need to render from data for each
map request• TileCache can manage the rendered tile cache
![Page 25: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/25.jpg)
TileCache – tilecache.org
![Page 26: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/26.jpg)
TileCache
• TileCache sits between the client and server• Client requests map tiles (using WMS)• TileCache checks the stored tiles• If it exists, it returns the rendered tile to client• If tile is missing, it passes the request to a GIS
server• Once it receives the rendered tile, TileCache
stores the tile and sends it to the client
![Page 27: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/27.jpg)
TileCache
• Written in Python, with extensions for server environment
• Can cache tiles directly from MapServer or any WMS-capable GIS server
• Can reduce the strain on infrastructure and lower costs
![Page 28: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/28.jpg)
OpenLayers – openlayers.org
![Page 29: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/29.jpg)
OpenLayers
• JavaScript library for implementing a "Google Maps" style interface
• Allows interactive mapping within most modern web browsers
• Originally from the same company as TileCache, now a project of OSGeo
• Supports both WMS and WFS• Supports tiles from Google Maps, Virtual Earth• Highly customizable
![Page 30: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/30.jpg)
Information Warehousenjgin.state.nj.us
![Page 31: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/31.jpg)
NuMaps DemographicDrapesdemos.numaps.com.au
![Page 32: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/32.jpg)
Freedom to Mix and Match
• You could develop your interactive map using entirely open source software– "OpenGeo Architecture"
• You can mix and match parts as necessary– ArcGIS & OpenLayers– MapServer & Google Maps/Google Earth
• Open standards give you the freedom of choice
![Page 33: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/33.jpg)
Open Source Community
• The strength of OS software comes from the community
• "Given enough eyeballs, all bugs are shallow."• Propose or contribute new functionality• Community is not limited to software
![Page 34: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/34.jpg)
Collaboration
• Data can benefit from collaboration• Parcels from a surveyor and tax assessor• Free alternatives to high-cost data– OpenStreetMap
• POI databases become truly valuable once released to the crowd to update
• Just beginning to explore the value in Volunteered Geographic Information
![Page 35: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/35.jpg)
OpenStreetMap – openstreetmap.org
![Page 36: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/36.jpg)
GeoNames – geonames.org
![Page 37: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/37.jpg)
GeoCommons – geocommons.com
![Page 38: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/38.jpg)
GeoCommons Finder!
![Page 39: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/39.jpg)
GeoCommons Maker!
![Page 40: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/40.jpg)
Open Source Community
• Equality, transparency and collaboration• A community of passionate individuals• Use the software and become part of something
greater• Consider sharing your data with the community
![Page 41: Internet-enabled GIS Using Free and Open Source Tools John Reiser jreiser@njgeo.org.](https://reader034.fdocuments.in/reader034/viewer/2022051515/55178c875503460e6e8b57f6/html5/thumbnails/41.jpg)
Resources• Open Source Initiative
– http://www.opensource.org/
• Open Source Geospatial Foundation (OSGeo)– http://www.osgeo.org/
• Source images for "Cathedral" & "Bazaar" are GNU licensed images from Wikimedia Commons– http://commons.wikimedia.org/wiki/File:Catedral_Metropolitana_de_Sao_Paulo_1_Brasil.jpg– http://commons.wikimedia.org/wiki/File:Bd_bazaar.jpg
• Full text of "The Cathedral and the Bazaar" is available online:– http://www.catb.org/~esr/writings/cathedral-bazaar/
• Web Mapping Illustrated is a great resource for developing your own web maps– http://oreilly.com/catalog/9780596008659/
• Whitepaper on "OpenGeo" Architecture from GeoServer– http://opengeo.org/publications/opengeo-architecture/ (published April 2009)