mongodb + geoserver

19
MongoDB + GeoServer

Upload: mongodb

Post on 12-May-2015

10.999 views

Category:

Documents


2 download

DESCRIPTION

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.

TRANSCRIPT

Page 2: MongoDB + GeoServer

Why we use MongoDB

What is GeoServer

The MongoDB GeoServer Plugin

Lessons Learned

2

Outline

Page 3: MongoDB + GeoServer

Why we use MongoDB

3

Store Large Number of Documents

+

Store Mixed Document Metadata

+

Geospatial Support

Page 4: MongoDB + GeoServer

Why we use MongoDB

4

Small Team

+ =

Page 5: MongoDB + GeoServer

Our Use of MongoDB

5

Original Files +

Metadata

Extracted Text +

Metadata

Document Processor { “_id”:

"metadata" : { “event”:”MongoDB DC 2013”, “url”:” http://www.10gen.com/events/mongodb-washington-dc-2013”, } "geo" : [ { “place” : “Newseum”, "location" : [-77.0194, 38.8930] }, { " place " : “Penn Quarter Sports Tavern", "location" : [ -77.0215, 38.8942] } ], ] }

spatial index created for geo.location

Page 6: MongoDB + GeoServer

How we expose our data

6

Custom Web Client

Document Store

Do

cum

ent

Se

rvic

es

Spat

ial

Serv

ices

A

nal

ytic

Se

rvic

es

RES

T A

PI

Page 7: MongoDB + GeoServer

I love your data, but…

7

Page 8: MongoDB + GeoServer

I love your data, but…

8

How can I integrate it into my existing workflow?

Page 9: MongoDB + GeoServer

I love your data, but…

9

How can I integrate it into my existing workflow?

Answer: Open Geospatial Standards

Page 10: MongoDB + 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

What is GeoServer?

Page 11: MongoDB + GeoServer

11

WFS WMS

Page 12: MongoDB + GeoServer

Examples

12

Page 13: MongoDB + GeoServer

13

GeoServer & MongoDB

http://repo.opengeo.org/org/geotools/gt-mongodb/

Page 14: MongoDB + GeoServer

Open sourced in 2011 by Data Tactics Corp.

Developed against MongoDB 1.8.x

Natively supports GeoJSON

documents

Supports all geometry types 14

Existing MongoDB Plugin

GeoJSON

{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-77.0194, 38.8930]}, "properties": {" place": “Newseum"} }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-77.0215, 38.8942]}, "properties": {" place": " Penn Quarter Sports Tavern "} }, }

Page 15: MongoDB + GeoServer

Skipped calculating full schema & geospatial extents

{ “_id”: "metadata" : { “event”:”MongoDB DC 2013” “url" : “http://www.10gen.com/events/mongodb-washington-dc-2013” } "geo" : [ { “place” : “Newseum” "location" : [-77.0194, 38.8930] }, { " place " : “Penn Quarter Sports Tavern", "location" : [ -77.0215, 38.8942] } ], ] }

Added support for multi-location documents

Authentication support

Configurable to work with your existing schema OR

Leveraged existing GeoServer MongoDB Plugin http://repo.opengeo.org/org/geotools/gt-mongodb/

Page 16: MongoDB + GeoServer

MongoDB + GeoServer

16

RES

T A

PI

Custom Web Client

Geo

Serv

er

WMS

WFS

Document Store

KML

Page 17: MongoDB + GeoServer

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

Lessons Learned…

Page 18: MongoDB + GeoServer

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

References

Page 19: MongoDB + GeoServer

JP Prochazka [email protected]

Sam Kramer [email protected]

Rich Fecher [email protected]