Openshift GeoSpatial Capabilities
-
Upload
steven-citron-pousty -
Category
Technology
-
view
2.772 -
download
0
description
Transcript of Openshift GeoSpatial Capabilities
![Page 1: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/1.jpg)
1
Platform as a Service (OpenShift PaaS) for
Geospatial Applications
Steven Citron-PoustyPaaS Dust Spreader, Red Hat
![Page 2: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/2.jpg)
2
Agenda
• Learn a little about Cloud and PaaS
• See some spatial running on PaaS
• Let you ask questions
• Set you up to ROCK!
![Page 3: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/3.jpg)
3
1) You can use the command line
2) You know some spatial
3) You prefer to write code and apps over managing servers
Assumptions
![Page 4: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/4.jpg)
4
What is OpenShift?
Red Hat's free, auto-scaling Platform as a Service (PaaS) for applications in the cloud.
![Page 5: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/5.jpg)
5 Dalbera on Flickr
![Page 6: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/6.jpg)
6
Kind of like Amazon, right? Nope.
![Page 7: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/7.jpg)
7
What’s supported?
![Page 8: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/8.jpg)
8Cook24v on Flickr
![Page 9: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/9.jpg)
9
![Page 10: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/10.jpg)
10
Looks great, but what’s the catch?• OpenShift is free-as-in-beer & free-as-in-freedom
• Three gears – 512mb RAM, 1 gig Disk (always free)
• Need more resources, just ask!
• The Catch is we are in developer preview right now
+ =
![Page 11: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/11.jpg)
11Crsan on flickr
![Page 12: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/12.jpg)
12
Let’s do some spatial
![Page 13: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/13.jpg)
13
What do you need first – A spatial datastore
Let’s start with PostGIS
![Page 14: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/14.jpg)
14 New Jersey Bird on flickr
![Page 15: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/15.jpg)
15
1. Sign up
2. Install the command line tools (you can use the web for some but not all)
3. Create a domain
4. Create a Java application (will put GeoServer here later)
5. Add PostgreSQL cartridge
6. Make changes in your git repo this once
7. SCP and SSH into your “server” to
1. Create postgis DB
2. load the data
3. Make a query or two
Demo (PostGIS) *-domain.rhcloud.com
![Page 16: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/16.jpg)
16
But since we all like to be cutting edge – time for NoSQL with MongoDB!
![Page 17: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/17.jpg)
17
Brief Facts about MongoDB
1) Document Store – stores in JSON (really BSON)
2) FOSS – written by the people at 10gen
3) Has very limited spatial
4) Good Enough for FourSquare, Craig’s List, and OpenShift Service
![Page 18: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/18.jpg)
18
1. Create a Java application
2. Add MongoDB cartridge
3. SCP and SSH into your “server” to
1. load the data
2. Make a query or two
Demo (MongoDB)
![Page 19: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/19.jpg)
19
But what if you don’t want to write your own code
Time to deploy GeoServer and hook it up to PostGIS
Demo
1)Download the war file
2)Insert the jboss file
3)Add to local git repo
4)Deploy to OpenShift
5)Configure
![Page 20: Openshift GeoSpatial Capabilities](https://reader033.fdocuments.us/reader033/viewer/2022050906/555146a5b4c905bd1c8b504a/html5/thumbnails/20.jpg)
20
1. All the spatial parts are ready to use today
2. OpenShift makes life great for devs
3. The tools are easy to use
4. Almost anything you need on a server
5. Did I mention – Free (as in Beer and FREEDOM!)
Conclusion