36
Integrating Geospatial Data to your Applications November 14, 2015 by Ian Panganiban

Integrating Geospatial Data to your Applications

Embed Size (px)

Citation preview

Page 1: Integrating Geospatial Data to your Applications

Integrating Geospatial Data to your ApplicationsNovember 14, 2015by Ian Panganiban

Page 2: Integrating Geospatial Data to your Applications

Hi I'm Ian

SRS IIProject PhilSHORE

Geodetic EngineerHackathons

lkpanganiban

@lkpanganiban

Ian Panganiban

Page 3: Integrating Geospatial Data to your Applications

Motivation

Page 4: Integrating Geospatial Data to your Applications

Agenda

Spatial 101

Data sources

Spatial app development

Beyond spatial

Page 5: Integrating Geospatial Data to your Applications

Spatial 101

Page 6: Integrating Geospatial Data to your Applications

Pixelated much?Raster data

“a raster graphics image is a dot matrix data structure representing a generally rectangular grid of pixels”

GeoEye Satellite Imagery

Page 7: Integrating Geospatial Data to your Applications

Story of points, lines and polygonsVector data

“Vector is a representation of the world using points, lines, and polygons. Vector models are  useful  for  storing data that  has  discrete boundaries,  such as country borders, land parcels, and streets.”

Java OSM Editor

Page 8: Integrating Geospatial Data to your Applications

Vector formats

Java OSM Editor

Geojson

GPX

Shapefiles

Page 9: Integrating Geospatial Data to your Applications

Coordinate Reference Systems

“Every dataset has a coordinate system, which is used to  integrate  it with other geographic datasets within a common coordinate framework. Allows you  to perform various  integrated analytical operations,  such as  overlaying data  layers  from  disparate  sources  and  coordinate systems.”

Page 10: Integrating Geospatial Data to your Applications

EPSG what?

“EPSG  Geodetic  Parameter  Dataset  is  a  structured  dataset  of Coordinate Reference Systems and Coordinate Transformations”

Page 11: Integrating Geospatial Data to your Applications

Munging spatial data using GIS

QGIS in Action: Soil data of Isabela

Page 12: Integrating Geospatial Data to your Applications

Some free data :)

BSWM Maps

philgis.org

USGS - earthexplorerOSM data via QGIS plugin

Page 13: Integrating Geospatial Data to your Applications

Let's build some apps

Page 14: Integrating Geospatial Data to your Applications

A very spatial app

Frontend

Application Frameworks

Databases

Page 15: Integrating Geospatial Data to your Applications

A spatial baggage counterSpatial databases

“A spatial database, or geodatabase is a database that is optimized to  store  and  query data  that  represents  objects  defined  in  a geometric space. Most spatial databases allow representing simple geometric objects such as points, lines and polygons.”

Spatialite

Page 16: Integrating Geospatial Data to your Applications

A look into PostGIS

extensions

Over 1000 functionshttp://workshops.boundlessgeo.com/postgis-intro/

Page 17: Integrating Geospatial Data to your Applications

Choose your framework

Page 18: Integrating Geospatial Data to your Applications

Spatial libraries

“Spatial libraries allow you to read and write spatial data. These libraries have spatial processes like buffer, intersect and transform.”

Page 19: Integrating Geospatial Data to your Applications

Using gdal for raster files

Cols: 16171Rows: 20766Bands: 1Pixel value at 167,196: 32767Minimum value of elevation: -197

Page 20: Integrating Geospatial Data to your Applications

Using ogr for vector files

Provinces: 82Extent:(116.92833709716797, 126.60534667968753, 4.586939811706543, 21.07014083862329)Second Province: Agusan del Norte

Page 21: Integrating Geospatial Data to your Applications

Visualizing spatial data through web maps

“What you see when you view a map on Mapbox or an embedded map on your website is the result of many moving parts working together.”

-Mapbox

Leaflet Openlayers 3

Page 22: Integrating Geospatial Data to your Applications

An open-source JavaScript library for mobile-friendly interactive maps | Leaflet

Vladimir AgafonkinLeaflet Plugins

Page 23: Integrating Geospatial Data to your Applications

A feature-packed library for all your mapping needs | Openlayers 3

Page 24: Integrating Geospatial Data to your Applications

Add processing power to your web maps

Page 25: Integrating Geospatial Data to your Applications

Spatial frameworks

Cartaro: Geospatial Drupal

Page 26: Integrating Geospatial Data to your Applications

Spatial frameworks

Geonode: Django Application

Page 27: Integrating Geospatial Data to your Applications

Spatial frameworks

Geoserver: Java based geospatial server

Page 28: Integrating Geospatial Data to your Applications

Beyond spatial

Story Maps

Page 29: Integrating Geospatial Data to your Applications

Beyond spatial

3D Maps

Page 30: Integrating Geospatial Data to your Applications

Beyond spatial

Indoor Maps

Page 31: Integrating Geospatial Data to your Applications

Build and Contribute

Page 32: Integrating Geospatial Data to your Applications

List of Resources

geographic data http://maptime.io/geodata/ http://mapschool.io/ http://spatialreference.org/ref/epsg/

spatial databases http://dna.fernuni-hagen.de/papers/IntroSpatialDBMS.pdf http://postgis.net/ http://workshops.boundlessgeo.com/postgis-intro/ web mapping http://leafletjs.com/ http://openlayers.org/

visualization & processing http://d3js.org/ http://turfjs.org/ http://www.gdal.org/gdal_tutorial.html

Page 33: Integrating Geospatial Data to your Applications

List of Resources

visualization & processing http://geotools.org/ http://raphaeljs.com/ spatial data repository http://philgis.org/ http://www.bswm.maps.da.gov.ph/maps-library http://earthexplorer.usgs.gov/

spatial frameworks http://cartaro.org/ http://geoserver.org/ http://geodjango.org/ http://geonode.org/

Page 34: Integrating Geospatial Data to your Applications

Do you have any questions?

Page 35: Integrating Geospatial Data to your Applications

Thank you

“Everything is related to everything else, but near things are more related than distant things.”

-Waldo Tobler

Page 36: Integrating Geospatial Data to your Applications

Integrating Geospatial Data to your ApplicationsNovember 14, 2015by Ian Panganiban