The FOSS4G Map

752 views
711 views

Published on

The FOSS4G Map by Jason Sanford of Ubisense

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
752
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

The FOSS4G Map

  1. 1. The foss4g Map
  2. 2. <ul><li>or ... </li></ul><ul><li>how many open source geo tools can I use </li></ul><ul><li>to create a simple web map </li></ul>
  3. 7. mobile edition
  4. 8. mobile edition
  5. 9. mobile edition
  6. 10. mobile edition
  7. 11. <ul><li>Yet another slippy map API, but options are good </li></ul><ul><li>Very active development, bug fixes </li></ul><ul><li>Polymaps/jQuery-like object chaining </li></ul><ul><li>my_map.addLayer( my_layer ).setView( new L.LatLng( 39.741, -105.011 ), 18 ); </li></ul><ul><li>Open Source BSD-licensed </li></ul><ul><li>Use it behind the firewall, in disconnected environments </li></ul>
  8. 12. Map Tiles = MapQuest OSM Tiles + Custom Tiles
  9. 13. OSM Based Tiles Open Aerial Tiles <ul><li>From my experience, updated almost instantly </li></ul><ul><li>Great cartography </li></ul><ul><li>Free to use </li></ul><ul><li>just attribute MapQuest and OSM contributors </li></ul>
  10. 14. what about these? <ul><li>Custom overlay tiles also OSM based </li></ul>
  11. 15. osm2pgsql
  12. 16. Geofabrik offers OSM downloads that are updated daily ...
  13. 17. ... cut down to the state level in the US.
  14. 18. <ul><li>We use the data loaded into PostGIS for: </li></ul><ul><li>map tile creation </li></ul><ul><li>map feature selection </li></ul>For more information on PostGIS, see the 54 other talks during this conference
  15. 19. Browser based web map design studio Changes to map styles are visible immediately, not after a test run Pan and zoom the map like any other slippy map to see scale dependent changes Multiple data source options like PostGIS, GeoJSON, shapefile, KML, GeoTIFF, SQLite
  16. 20. Easily set tile export extent Tile Exports Adjust zoom levels to export and view immediate change in tile count No more accidental 4 million tile jobs
  17. 21. TileMill Exports = MBTiles file Tiles are stored in a single file, not thousands (or millions), making them much more portable MBTiles files are simple SQLite databases
  18. 22. MBTiles files can be served a few different ways mbutil MapProxy
  19. 23. Feature Selection var marker = new L.Marker( new L.LatLng( 39.74, -104.98 ), { icon: new Foss4gIcon() } ); marker.bindPopup( “<h2>The Conference</h2>....” );
  20. 24. Feature Selection map.on( “click”, handleMapClick ); function handleMapClick ( event ) { var lat = event.latlng.lat; var lng = event.latlng.lng; $.getJSON( “select?lat=” + lat + “&lon=” + lng + “&zoom=” + map.getZoom(), handleResponse ); } function handleResponse ( data /* GeoJSON FeatureCollection */ ) { // Pass GeoJSON Feature(s) to instance of L.GeoJSON (GeoJSON layer) to create markers or lines // Populate Information panel with feature type/name and appropriate image (fork and knife) }
  21. 25. Thanks! @JCSanford [email_address] http://geojason.info

×