intro to spatial data

49
Spatial Data, Spatial Analysis & OSM Devdatta Tengshe Datameet, Pune

Upload: devdatta-tengshe

Post on 18-Aug-2015

125 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Intro to Spatial data

Spatial Data, Spatial Analysis &

OSMDevdatta TengsheDatameet, Pune

Page 2: Intro to Spatial data

What Will We cover?

● What is Spatial Data?

● How can It be used?

● GIS 101

● Where Do I get it?

● OSM

Page 3: Intro to Spatial data

What Is Spatial Data ?

Page 4: Intro to Spatial data

What Is Spatial Data?

● Answers the Question “Where”?

● Any Data that has a spatial

component, i.e. location

○ Address

○ Census Information

○ Land records

Page 5: Intro to Spatial data

What Can you do with

Spatial Data ?

Page 6: Intro to Spatial data

Using Spatial Data, you can solve problems with Spatial

Components.

Mostly, you are finding Spatial patterns,

discovering Correlations, querying, filtering &

processing data and performing spatial

modelling

Page 7: Intro to Spatial data

Spatial patterns

Page 8: Intro to Spatial data
Page 9: Intro to Spatial data

https://github.com/openbangalore/bm

tc

Page 10: Intro to Spatial data

http://routemaster.hydlab.in/

Page 11: Intro to Spatial data

Correlations

Page 12: Intro to Spatial data

Percent residents with level 4 qualifications & above

Percent residents employed in manufacturing

www.geofutures.com/2012/02/spot-hard-data-pattern-add-soft-knowledge/

Page 13: Intro to Spatial data

processing data

Page 14: Intro to Spatial data
Page 15: Intro to Spatial data

spatial modelling

Page 16: Intro to Spatial data

SLEUTH modelwww.nasa.gov/centers/goddard/news/topstory/2004/0322sleuth.html

Page 17: Intro to Spatial data

What Do I Need to Know?

Page 18: Intro to Spatial data

Data Models

Page 19: Intro to Spatial data
Page 20: Intro to Spatial data

Raster

raster data model: A representation of the world as a surface divided into a regular grid of cells.

Page 21: Intro to Spatial data

Vector

vector data model: A representation of the world using points, lines, and polygons.

Page 22: Intro to Spatial data

File Formats

• Shapefile• GeoJSON• KML• TIFF• Spatial Databases• & Many More

Page 23: Intro to Spatial data

ShapefileMandatory files

● .shp — shape format; the feature geometry itself● .shx — shape index format; a positional index of the

feature geometry to allow seeking forwards and backwards quickly

● .dbf — attribute format; columnar attributes for each shape, in dBase IV format

Other files

● .prj — projection format; the coordinate system and projection information, a plain text file describing the projection using well-known text format

● .sbn and .sbx — a spatial index of the features● .shp.xml — geospatial metadata in XML format

Page 24: Intro to Spatial data

GeoJSON

{

"type": "Feature",

"properties": {},

"geometry": {

"type": "Point",

"coordinates": [

73.7773346,

18.5108148

]

}

}

Page 25: Intro to Spatial data

Spatial Database

• Supported by usual RDBMS like: Oracle, MS SQL Server, Postgres

• Also supported by Spatialite• Direct Query via SQL:

Select VILLAGE_NAME, CODE from Village where ST_Contains(geom, ST_PointFromText("POINT (73.7773346 18.5108148)"));

Page 26: Intro to Spatial data

Applications

v

Page 27: Intro to Spatial data

Big Data, GIS & Business Analytics

Page 28: Intro to Spatial data

Retail & Business

Page 29: Intro to Spatial data

Retail & Business

Page 30: Intro to Spatial data

Retail & Business

Page 31: Intro to Spatial data

Retail & Business

Page 32: Intro to Spatial data

Land & Realty

Page 33: Intro to Spatial data

Land & Realty

Page 34: Intro to Spatial data

Utilities

Page 35: Intro to Spatial data

TRANSPORTATION

Page 36: Intro to Spatial data

TRANSPORTATION

Page 37: Intro to Spatial data

Where Do I get Spatial Data From?

Page 38: Intro to Spatial data

• You can collect the data directly on the field, via GPS etc• Or Create it by Digitizing from Satellite Maps

Create It yourself

Page 39: Intro to Spatial data
Page 40: Intro to Spatial data

• You will get Data from different sources, and in different formats, such as:• Tables• Excel Files• PDF• Images

Convert it

Page 41: Intro to Spatial data

• Scrape It • Github: https://github.com/datameet/maps/• Download it from sites like Geocommons

COPY IT

Page 42: Intro to Spatial data

OpenStreetMap

Page 43: Intro to Spatial data
Page 44: Intro to Spatial data

OSM Stats

# of users: 22,12,002# of uploaded GPS points: 48,058,19,177# of nodes: 29,867,22,183# of ways: 3,030,45,294# of relations : 35,87,570

Page 45: Intro to Spatial data
Page 46: Intro to Spatial data

OSM Demo

Page 47: Intro to Spatial data

OSM Downloads

• http://download.geofabrik.de • http://extract.bbbike.org/• http://overpass-turbo.eu/

Page 48: Intro to Spatial data

Spatial Data -Indian Context

• How many Districts in India?• Village Boundaries?• Pin Codes• Census Data?• Others?

Page 49: Intro to Spatial data

Questions?