32
Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing and environmental analysis. Instituto Nacional de Meteorologia - Eixo Monumental Via S1 - Brasília – Brasil. Email: [email protected] Kleber R. da Paixão Ataíde

Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Embed Size (px)

Citation preview

Page 1: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster)

and querying by web.

Meteorologist INMET, PHD student in Geoprocessing and environmental analysis.

Instituto Nacional de Meteorologia - Eixo Monumental Via S1 - Brasília – Brasil.

Email: [email protected]

Kleber R. da Paixão Ataíde

Page 2: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Objective

• Organize environmental and meteorological data in a database with support for spatial extensions as vectors and images

• Automating the estimation of evapotranspiration using remote sensing and GIS

Page 3: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

The SEBAL algorithm

• Is able to determine the components of surface energy balance using satellite imagery, wind data from meteorological station, size and crop coefficient (Kc), and other surface relief.

λET = Rn - G - H

Rn

Soil heat flux

Sensible Heatflux λET

As we saw last week

Page 4: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Tar

U10

0

Zref Zah

Rg

Tar

U10

0

Zref Zah

t0c

Tar

U10

0

Zref Zah

r0

Satellite Data Images

Processamento

RnGH

Evapotranspiration

The SEBAL algorithm

Page 5: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Fast access• The client wants to know directly how much

the culture looses water, without having all the trouble of doing the calculation.

However

Page 6: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Fast access• For an operational

institute that receives data and satellite images, it`s interesting use a database that supports multiple types of data and large storage capacity;

• Evapotranspiration is generated on demand by the client via internet.

Page 7: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

PostgreSQL

• PostgreSQL is the system database open source world's most advanced, with a global community of thousands of users and developers, businesses and organizations.

Page 8: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

PostgreSQL• The PostgreSQL project has more than 20

years of engineering, starting at the University of California, Berkeley, and an unparalleled development speed today.

Page 9: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

PostgreSQL• The feature set of PostgreSQL not only equals

that of database systems owners more advanced, but exceeds them in advanced features, extensibility, security and stability.

Page 10: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

POSTGIS

• PostGIS: It is a geospatial extension for postgresql;

• PostGIS Guide : http://www.webgis.com.br/postgis/

Page 11: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

what is a spatial data?

• The data that have location informationand vector or raster form.

• Location of roads, rivers, lakes, LinesElectric Transmission, Forests, Parks,States, Cities. Also imagesrecorded by sensors.

Page 12: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Vector files

• These entities are represented

• as polygons.• as lines ;• as points and• Raster (satellite image)

Page 13: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Vector files

• These entities are represented

• as polygons.• as lines ;• as points and• Raster (satellite image)

Page 14: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Vector files

• These entities are represented

• as polygons.• as lines ;• as points and• Raster (satellite image)

Page 15: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Raster data Satellite image• 16 bits• geottif• jpg

Page 16: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

What kind of geometric objects can I store?

Figura 1 – Um buffer circular(a)vetorial que intersecta com dois tipos de vegetação vetoriais (tipo 1 e tipo 2) com resultado em vetor.

Operations:

BUFFER(the_geo,distance);GEOMUNION(A.the_geom,B.the_geom);INTERSECTION(A.the_geom,B.the_geom);DIFFERENCE(A.the_geom,B.the_geom);CONVEXHULL(A.the_geom); DISTANCE (geometry a, geometry b); between 2 points. LENGTH(geometry); Length of the linePERIMETER(g geometry); Perimeter of an poligon.AREA(geometry); de um poligon.

Page 17: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

What kind of geometric objects can I store?

Operations:

BUFFER(the_geo,distance);GEOMUNION(A.the_geom,B.the_geom);INTERSECTION(A.the_geom,B.the_geom);DIFFERENCE(A.the_geom,B.the_geom);CONVEXHULL(A.the_geom); DISTANCE (geometry a, geometry b); between 2 points. LENGTH(geometry); Length of the linePERIMETER(g geometry); Perimeter of an poligon.AREA(geometry); de um poligon.

Page 18: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

What kind of geometric objects can I store?

Operations:

BUFFER(the_geo,distance);GEOMUNION(A.the_geom,B.the_geom);INTERSECTION(A.the_geom,B.the_geom);DIFFERENCE(A.the_geom,B.the_geom);CONVEXHULL(A.the_geom); DISTANCE (geometry a, geometry b); between 2 points. LENGTH(geometry); Length of the linePERIMETER(g geometry); Perimeter of an poligon.AREA(geometry); de um poligon.

Page 19: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

What kind of geometric objects can I store?

Operations:

BUFFER(the_geo,distance);GEOMUNION(A.the_geom,B.the_geom);INTERSECTION(A.the_geom,B.the_geom);DIFFERENCE(A.the_geom,B.the_geom);CONVEXHULL(A.the_geom); DISTANCE (geometry a, geometry b); between 2 points. LENGTH(geometry); Length of the linePERIMETER(g geometry); Perimeter of an poligon.AREA(geometry); de um poligon.

Page 20: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

CONTAINS

CROSSEXAMPLES OF KINDS OF RELATIONS

DISJOINT

TOUCHES

Page 21: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

EXAMPLEWhat are the states that border the state of Minas Gerais?

SQL - Strucutred Query Language

Page 22: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Original data stored in

postgresql

Query the pixel value of the database via web

Page 23: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Example

26.3 ˚C

Query the pixel value of the database via web

Page 24: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Materials & Methods

The access is via Internet. Using Google maps interface with some features and tools to facilitate access and interaction with the system to obtain the final result (final product) –

in other words the evapotranspiration.

Page 25: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Materials & Methods

The access is via Internet. Using Google maps interface with some features and tools to facilitate access and interaction with the system to obtain the final result (final product) –

in other words the evapotranspiration.

Page 26: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Materials & Methods

The access is via Internet. Using Google maps interface with some features and tools to facilitate access and interaction with the system to obtain the final result (final product) –

in other words the evapotranspiration.

Page 27: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Materials & Methods

The access is via Internet. Using Google maps interface with some features and tools to facilitate access and interaction with the system to obtain the final result (final product) –

in other words the evapotranspiration.

Page 28: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Materials & Methods

Page 29: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Materials & Methods

29

weather station

Page 30: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

Evapotranspiration cycle for fine weather conditions

As an example, a farmer who has registered his farm in the National Supply Company (Conab).

He must fill some fields as planting dates, crop planted, the farm area with geographic location, etc.

(here in Brazil is starting the registration of agricultural areas with the use of GPS for production control)

Page 31: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

References• REFERÊNCIA BIBLIOGRÁFICA• KOZIEVITCH, N. P. Dados meteorológicos: um estudo de viabilidade utilizando

um SGBD em plataforma de baixo custo, dissertação de mestrado, Curitiba-PR, 2005, p.70.

• OBE, REGINA. O.; HSU, LEO. S. PostGIS in Action: MEAP Edition Manning Early. Manning Publications Co. Acces Program. p. 425, ISBN: 9781935182269, May. 2009. Disponível em: <www.manning.com>. Acessado em: 10/01/2010.

• POSTGIS MANUAL. Disponível em <http://postgis.refractions.net/docs/postgis.pdf>.Acesso em: 10/10/2009.

• THE MAPSERVER TEAM. MapServer: MapServer documentation, Release 5.6.1, 2010, p. 714.

• Ataide, K.R.P, Bezerra, W.A. - Dados Meteorológicos e Ambientais em PostgreSQL (PostGIS / WKT Raster) e consulta via WEB, XVI Congresso Brasileiro de Meteorologia, 2010, Belém-PA.

Page 32: Meteorological and Environmental Data in Data base PostgreSQL (PostGIS / WKT Raster) and querying by web. Meteorologist INMET, PHD student in Geoprocessing

• Thank you• Obrigado• Gracias

• 谢谢 (xiè xiè)

• (Shkrā) شكرا

• Спасибо (Spasibo)

• Dhanyavaadaalu • Eyalama