MongoDB + GeoServer

15,600 views

Published on

This presentation will dive into a development team’s use case for choosing MongoDB as their spatially enabled NoSQL solution. The talk will also cover how the integration of GeoServer can expand the accessibility of your data. GeoServer is the open source implementation of Open Geospatial Consortium (OGC) standards and a core component of the Geospatial Web.

0 Comments
9 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
15,600
On SlideShare
0
From Embeds
0
Number of Embeds
8,582
Actions
Shares
0
Downloads
120
Comments
0
Likes
9
Embeds 0
No embeds

No notes for slide

MongoDB + GeoServer

  1. 1. MongoDB + GeoServer
  2. 2. Outline Why we use MongoDB What is GeoServerThe MongoDB GeoServer Plugin Lessons Learned 2
  3. 3. Why we use MongoDBStore Large Number Store Mixed Geospatial of Documents Document Metadata Support + + 3
  4. 4. Why we use MongoDB Small Team+ = 4
  5. 5. Our Use of MongoDB Document { “_id”: Processor "metadata" : { “event”:”MongoDB DC 2013”, “url”:” http://www.10gen.com/events/mon godb-washington-dc-2013”, }Original Files Extracted Text "geo" : [ { + + “place” : “Newseum”, Metadata Metadata "location" : [-77.0194, 38.8930] }, { " place " : “Penn Quarter Sports Tavern", "location" : [ -77.0215, 38.8942] } ], ]} spatial index created for geo.location 5
  6. 6. Store Document Spatial Document Analytic Services Services Services REST API Custom Web Client How we expose our data6
  7. 7. I love your data, but… 7
  8. 8. I love your data, but…How can I integrate it into my existingworkflow? 8
  9. 9. I love your data, but…How can I integrate it into my existingworkflow?Answer: Open Geospatial Standards 9
  10. 10. What is GeoServer? Open source software server that allows users to share geospatial data Reference implementation of the Open Geospatial Consortium (OGC) standards  WMS (Web Map Service)  WFS (Web Feature Service)  WCS (Web Coverage Service) Open API allows integration of back-end data stores 10
  11. 11. WFS WMS 11
  12. 12. Examples 12
  13. 13. GeoServer & MongoDBhttp://repo.opengeo.org/org/geotools/gt-mongodb/ 13
  14. 14. Existing MongoDB Plugin Open sourced in 2011 by Data Tactics Corp. GeoJSON { "type": "FeatureCollection", Developed against MongoDB 1.8.x "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-77.0194, 38.8930]}, "properties": {" place": “Newseum"} }, Natively supports GeoJSON { "type": "Feature", "geometry": { documents "type": "Point", "coordinates": [-77.0215, 38.8942]}, "properties": {" place": " Penn Quarter Sports Tavern "} }, } Supports all geometry types 14
  15. 15. Added support for multi- location documents Leveraged existing { “_id”: "metadata" : { GeoServer MongoDB Plugin “event”:”MongoDB DC 2013” “url" : “http://www.10gen.com/events/mo ngodb-washington-dc-2013” http://repo.opengeo.org/org/geotools/gt- } mongodb/ "geo" : [ { “place” : “Newseum” "location" : [-77.0194, 38.8930] }, {Skipped calculating full schema " place " : “Penn Quarter Sports Tavern",& geospatial extents "location" : [ -77.0215, 38.8942] } ], Configurable to work with ]} your existing schema Authentication support OR
  16. 16. MongoDB + GeoServer GeoServerDocument WMS Store WFS KML REST API Custom Web Client 16
  17. 17. Lessons Learned… Translating MongoDB document results to GeoServer Feature Data is not 1:1 Challenging to filter bounding box results when location is within nested document Challenging to provide accurate page limits Not perfect, lots of room for improvement… but was worth it Code provided to OpenGeo development team 17
  18. 18. References http://geoserver.org/display/GEOS/What+is+GeoServer http://opengeo.org/publications/opengeo-architecture/ Getting Started:  Download Plugin: http://repo.opengeo.org/org/geotools/gt-mongodb/  FOSS4G2011 Presentation: http://fosslc.org/drupal/content/integration-geoserver-nosql-databases 18
  19. 19. JP Prochazkajprochazka@radiantblue.comRich Fecher Sam Kramerrfecher@radiantblue.com skramer@radiantblue.com

×