54
Geoapplications development http://rgeo.wikience.org Higher School of Economics, Moscow, www.cs.hse.ru

Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Geoapplications development

http://rgeo.wikience.org

Higher School of Economics, Moscow, www.cs.hse.ru

Page 2: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Agenda2

• What is geospatial data?

• How is it different from other types of data?

• Examples of geospatial data

• What is geoapplication?

• Course goals & organization

• Real-world examples: companies using geospatial data

• Tentative projects to participate in

• Main readings

• Quiz

• Practical lesson: 3D Globes

Page 3: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Geospatial data: 2 types (simplified)3

VECTOR

What is raster data?http://help.arcgis.com/EN/arcgisdesktop/10.0/help/index.html#//009t00000002000000

RASTER

matrix

Page 4: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

The main difference from other data types (simplified)4

RASTER

matrix

A fundamental difference: the presence of spatial coordinates

each cell has (lat, lon, value)(lat_i, lon_i) for

each vertice

VECTOR

Page 5: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Is that all?5

Page 6: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

is there something strange here??6

Hint: areas…

Page 7: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

is Greenland larger than Africa??7

Let us consult an Encyclopedia or Wikipedia

2,175,600 km2

World size ranking: 1430,370,000 km2

World size ranking: 2

Page 8: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

is Greenland larger than Africa??8

https://takeitscienceblog.wordpress.com/2016/08/31/how-big-is-your-country/http://geoffboeing.com/2015/08/map-projections-that-lie/

Page 9: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Distances9

Two airplanes are flying …

Plane A: (60ᵒN, 40ᵒE) → (60ᵒN, 30ᵒE)

Plane B: (40ᵒN, 40ᵒE) → (40ᵒN, 30ᵒE)

40ᵒ - 30ᵒ = 10ᵒ

Both traveled the same distance?

Page 10: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Everything is not so simple…10

To name a few:* distances between two points with the same longitudes are different for different latitudes

Page 11: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

A small caveat: circular/periodic axes11

longitude range is [ –180 … +180 ]

but what if I want to move 10 degrees eastward from 179 degrees?179 + 10 = 189 …. actually -171

Page 12: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Lesson learned12

Areas, shapes, angles, distances depend on…

Page 13: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Examples of geospatial data: vector13

Page 14: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Geo prefix14

Page 15: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Examples of geospatial data: raster & vector15

More details are at:http://www.wikience.org/tropical-cyclones/wind-swaths/

Page 16: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Examples of geospatial data: satellite raster16

Page 17: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Visualization examples17

Much more examples are at: http://goworldwind.org/demos/

Video on terrainAnalytic Surface

AirspacesExtruded ShapesScankort Denmark Data

We can do more together during course work

NASA World Wind engine

Page 18: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

18

Satellites,

smartphones, GPS

(1): basic theory: geographic coordinate systems, geocoding, vector and raster data types and operations (3): I/O with vector (SHP, KML, GeoJSON, WKT) and raster (GeoTIFF, NetCDF, HDF) formats (4): network protocols for geodata exchange: WCS, WFS, WMS, OPeNDAP(4): frameworks: Mina, Netty that is used by Twitter(3,4,5): spatial databases and servers: PostGIS, SciDB, GeoServer, TDS(5): software libraries for geodata processing: vector Java Topology Suite and raster ImageMagic, GDAL(6): visualizing geodata with NASA WorldWind, Mapbox, Leaflet, CartoDB

Course goals & organization

Topics cover technologies for a complete geospatial data management stack:

Page 19: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

19Course assessment

Code Description Contribution, %

LP Lecture presence 20

PP Work during practical lessons 5

CW Control work 10

HA1 Home assignment 1 30

HA2 Home assignment 2 15

EX Exam 20

TT Total contribution

Page 20: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Geospatial technology stack (not exhaustive)20

Storage

Transmission

Processing

Visualization

DBMS

Files

Almost all DBMS are geo-enabled

SHP, KML, GeoJSON, GeoTIFF, NetCDF, HDF

network protocols WCS, WFS, WMS, OPeNDAP

Libraries in Java, Python, R, JavaScript, …

Page 21: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Geospatial theory stack (not exhaustive)21

Notations

Topology

Processing

GPS, WiFi, geohash, …

Projections

ISO/IEC standard

Page 22: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

The technologies and theory are building blocks for solving real-world tasks

22

Page 23: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

The technologies and theory are building blocks for solving real-world tasks

23

Example task:Because of dramatic traffic increase, the town planners want to widen the main road and add a second lane. The lane width is 20 meters. Find properties that must be demolished.

main road

new lane(its central line)

house

tree

Page 24: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

The solution (DBMS, WKT, Buffer, Topology, SQL, …)24

LINESTRING (290 230, 330 250, 390 260, 440 260, 495 252, 535 238, 560 220, 580 190, 590 150)

main road

house

tree

new lane(its central line)

DBMSSELECT a_geom, address, ownerFROM city_databaseWHERE ST_Intersects (

ST_Buffer(ST_GeomFromText("LINESTRING (290 230,…) ",4326),10),

a_geom)

POLYGON ((325.5278640450004 258.94427190999915, 326.90755828109235, ….))

BUFFER (ST_Buffer)

WKT: ISO/IEC standard

Page 25: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Consumers of geospatial data

25

Who needs geospatial data?How do they process them?What kinds of geospatial data exist?

Page 26: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Consumers of geospatial data: motivating examples26

http://www.spatial.cs.umn.edu/Book/sdb-chap1.pdf

Page 27: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Consumers of geospatial data: motivating examples27

http://www.spatial.cs.umn.edu/Book/sdb-chap1.pdf

Page 28: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Consumers of geospatial data: motivating examples28

http://www.spatial.cs.umn.edu/Book/sdb-chap1.pdf

Page 29: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Consumers of geospatial data: motivating examples29

http://www.spatial.cs.umn.edu/Book/sdb-chap1.pdf

Page 30: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Consumers of geospatial data: motivating examples30

http://www.spatial.cs.umn.edu/Book/sdb-chap1.pdf

Page 31: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Geoapps: Marine Traffic31Real-time ship tracking

http://www.marinetraffic.com

http://shipfinder.co/https://www.vesselfinder.com/

Page 32: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Geoapps: FlightRadar32

www.flightradar24.com

Page 33: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

EigenRisk33

Hurricane swaths, flood footprints, assets

Spatial operations

Visualization

Hurricane

Katrina, 2005

Page 34: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Zillow34

Selling real

estates

Filter, nearby,

etc.

Page 35: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Examples of geoapplications – 2GIS35

Places

Positioning

Routes

….

Page 36: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Yelp36

Seek restaurants, hairdressing saloons, etc. + add other

Page 37: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

UrtheCast37

Live video streaming from International Space Station

A platform for imagery processing

Page 38: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Sputnix, Dauria – Skolkovo residents38

Native satellite manufacturers –

ensure Russian national interests

Д.К. Мозговой и О.В. Кравец «Использование данных MODIS для экологического мониторинга и контроля чрезвычайных ситуаций»

Blooming in Каховском водохранилище

Precision agriculture

Page 39: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

UAV: Unmanned Aerial Vehicles

http://www.youtube.com/watch?v=4ErEBkj_3PY

Page 40: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Consumer:40

Optimize wind farms locations and operation

Data: wind speed and direction reanalysis and forecasts – raster data

For calendar year 2014, the electricity produced from wind power in the United States amounted to 181.79 terawatt-hours, or 4.44% of all generated electrical energy. https://en.wikipedia.org/wiki/Wind_power_in_the_United_States

Page 41: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Wind speed data41

Energy sector, hazard monitoring, etc.

https://earth.nullschool.net

http://wikience.org

Page 42: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Thermal power stations42

Optimize load depending on climate/weather forecast

-> reduce penalties

Air temperature is

one of the crucial

factors upon

which the station

load depends

Page 43: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Railroads43

Qingyun (Jeffrey) Xie, High Performance Raster Database Manipulation and Data Processing with Oracle Spatial and Graph

Page 44: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

More examples44

Page 45: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Our Projects45

ChronosDB – a new DBMS

Michael Stonebraker

PostgreSQL, Vertica, Streambase, Illustra, VoltDB,

IEEE John von Neumann Medal (2005)ACM Turing Award (2014)

ChronosDB outperforms SciDB by up to 75× on average

R.A. Rodriges Zalipynis. ChronosDB: Distributed, File Based, Geospatial Array DBMS

Rio de Janeiro, Brazil27 – 31 August 2018

VLDB (Very Large Data Bases) –a top conference on

Big Data, Distributed Systems, Databases

2018: the only talk from Russia10 years ago: the previous talk

from Russia

SciDB

University of California, Berkeley,

University of Michigan,

Massachusetts Institute of Technology

https://db-engines.com/en/ranking

Page 46: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Moscow & Rio 46

Page 47: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Corcovado47

The photo is not mine

Page 48: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

www.climate.wikience.org

Tentative course work topics

JavaScript: Web GIS (Geographical Information Service)Data compression, processing, visualization, user interaction

Page 49: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Performance evaluation

Tentative course work topics

performance evaluation

We will develop distributed & multithreaded application to simulate a large load

DASKGeoTrellisRasDaManSciDB….

Page 50: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Tentative course work topics: machine learninghttps://habrahabr.ru/company/avito/blog/325632/https://habrahabr.ru/company/ods/blog/325096/

Page 51: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Main readings51

http://www.spatial.cs.umn.edu/Book/

Page 52: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Web sites52

http://flowingdata.com/

Page 53: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United

Web sites53

http://geoawesomeness.com/

Page 54: Geoapplications development  · Data: wind speed and direction reanalysis and forecasts –raster data For calendar year 2014, the electricity produced from wind power in the United