49
19.09.13 Modelling 3D Underground Data in a webbased 3D-Client Till Adams (terrestris GmbH & Co Kg) Emmanuel Belo (Camptocamp SA) www.terrestris.de

FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

Embed Size (px)

DESCRIPTION

In the German federal state of Brandenburg geological borehole data, depth profiles and geological layer-data will be visualized in a 2D and 3D-based webclient. This talk will present the technical solution based on PostGIS 2.0, GeoServer as a W3D-Server, OpenLayers, GeoExt2 on the 2D and ExtJs 4.x and X3Dom on the 3D-side.

Citation preview

Page 1: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

19.09.13

Modelling 3D Underground Datain a webbased 3D-Client

Till Adams (terrestris GmbH & Co Kg)Emmanuel Belo (Camptocamp SA)

www.terrestris.de

Page 2: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Preview on the System

Problems, Problems, Problems ....

Introduction

Page 3: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Preview on the System

Problems, Problems, Problems ....

Introduction

Page 4: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Team of terrestris:

Geoinformatics since 2002Geoinformatics since 2002

13 people, mainly Geographers 13 people, mainly Geographers

and computer scientistsand computer scientists

Consulting, Projects, 100% OpenSourceConsulting, Projects, 100% OpenSource

Core development in OpenLayers, GeoExt and several own Core development in OpenLayers, GeoExt and several own projects, e.g. SHOGun, our Middlewareprojects, e.g. SHOGun, our Middleware

Partner of OpenGeo, OGC-Member, very active in german local Partner of OpenGeo, OGC-Member, very active in german local chapter of OsGeo (DACH)chapter of OsGeo (DACH)

Introduction

Page 5: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Till Adams

Geoinformatics since 1998 Shareholder of terrestrisProject-CoordinatorGeographer (know much but nothing really) FOSSGIS e.V. (DACH local chapter of OsGeo)

Introduction

Page 6: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Problems, Problems, Problems ....

Preview on the System

3D Underground Data

Page 7: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Geological Data:

2D Geological Map

3D Underground Data

Page 8: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D Underground Data

Geological Data:

2D Geological Map + Geological Drilling

Page 9: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D Underground Data

Geological Data:

2D Geological Map + Geological Drilling

x,y,z,attribute

x,y,z,attribute

x,y,z,attribute

x,y,z,attribute

...

Page 10: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D Underground Data

Geological Data:

2D Geological Map + Geological Profile

Page 11: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D Underground Data

Geological Data:

2D Geological Map + Geological Profile

Page 12: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D Underground Data

Geological Data:

Brandenburg/Germany

Page 13: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D Underground Data

Geological Data:

Brandenburg/Germany:

Top of Permian Layers

Page 14: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Preview on the System

Problems, Problems, Problems ....

2D GIS and 3D Data

Page 15: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Presenting this Data:

Points

Page 16: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Presenting this Data:

PointsLines

Page 17: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Presenting this Data:

PointsLinesPolygons

Page 18: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Presenting this Data:

PointsLinesPolys

WebGIS !

Page 19: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Presenting this Data:

2D - WebGIS !

Page 20: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Presenting this Data:

2D - WebGIS !

Page 21: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Presenting this Data:

2D - WebGIS !

Page 22: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Put this Data into ….

…. PostGIS 2.0 !!

Page 23: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

WKT imported toPostGIS

2D GIS and 3D Data

Put this Data into PostGIS

… enables us to request it!

3D Model data in GST(proprietary) exported

As WKT

Data1: ST_GeomFromEWKT()

Points (x,y,z)

Data2:

ST_AsX3d() Polyhedralsurface

Page 24: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

ST_GeomFromEWKT():

Points(x,y,z,attribute)

Image from: http://www.gomatlab.de/flaeche-aus-punkten-erzeugen-t3607.html

Page 25: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Geological Data:

2D Geological Map + Geological Drilling

Page 26: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Page 27: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Geological Data:

2D Geological Map + Geological Profile

Page 28: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

Page 29: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

ST_3DClosestPoint(geometry g1, geometry g2);

X

X

X

X

XX

- strategy is known (max. 12 surfaces)

- defined max-distance (less surfaces possible)

- 1 query per surface

Page 30: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

2D GIS and 3D Data

ST_3DClosestPoint(geometry g1, geometry g2);

X

X

X

X

XX

XX

XX

X

Page 31: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Preview on the System

Problems, Problems, Problems ....

2D GIS and 3D Data

Page 32: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Architecture and Setup

Architecture 2D Client

Geo-DB

Tomcat

WebGIS

42

Page 33: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Preview on the System

Problems, Problems, Problems ....

3D GIS and 3D Data

Page 34: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

WKT imported toPostGIS

Put this Data into PostGIS

… enables us to request it!

3D Model data in GST(proprietary) exported

As WKT

Data1: ST_GeomFromEWKT()

Points (x,y,z)

Data2:

ST_AsX3d() Polyhedralsurface

3D GIS and 3D Data

Page 35: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D GIS and 3D Data

ST_AsX3d():

Polyhedralsurfaces

Surfaces!

Image from: http://eslab.bu.edu/publications/publications.php

Page 36: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Geological Data:

Brandenburg/Germany:

Top of Permian Layers

3D GIS and 3D Data

Page 37: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D GIS and 3D Data

Geological Data:

Brandenburg/Germany:

Base of Tertiary Layers+ Top of Permian Layers

Page 38: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

3D GIS and 3D Data

Geological Data:

We need s.th. Like this:

Page 39: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Problems, Problems, Problems ....

Preview on the System

3D GIS and 3D Data

Page 40: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Architecture and Setup

Architecture 2D Client

Geo-DB

Tomcat

WebGIS

42

Page 41: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Architecture and Setup

Architecture 3D Client

Geo-DB

Tomcat

WebGIS

4„3D“

W3DS

Page 42: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Architecture 2D Client 3D Client

X3Dom-Viewer

GeoServer X3DomW3DS

Architecture and Setup

Page 43: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

„GeoExt 3D“ combines ExtJS with X3Dom

- uses API on top of X3DOM

- uses ExtJS 4 elements such as Viewport, Panels, etc.X

3DO

M A

PI

4

Architecture and Setup

Page 44: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

„GeoExt 3D“ combines ExtJS with X3Dom

- API methods such as - setScaleZ(scale) - setLayerVisibility(layerID, visibility) - setLayerColor(layer, color) - getState(); // setState(state)

- Navigation with Mouse/Keys

Architecture and Setup

Page 45: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Architecture and Setup

WebGIS

W3DS Service:- data sent to client in X3D format- data rendered in the client

Page 46: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Preview on the System

Problems, Problems, Problems ....

Preview on the System

Page 47: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

We talk about....

Us first

What do we mean with „3D Underground Data“ … ?

2D WebGIS and 3D Data

Architecture and Setup 3D WebGIS and 3D Data

Preview on the System

Problems, Problems, Problems ....

Problems, Problems, Problems

Page 48: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Problems, Problems, Problems

Problems we had to catch up ….

- … Performance - reduce data density

- enhance hardware - wait ….

- … W3DS is not officially supported by GeoServer, so had to use GeoServer UX

- … no API in X3Dom, so created one

- …

Page 49: FOSS4G 2013: Modelling 3D underground data in a webbased 3D-Client

16.07.20133D Data in a 2D & 3D WebGIS

Many thanks!

Many thanks for listening !!!

terrestris GmbH & Co. KG

Pützchens Chaussee 56

53227 Bonn

Germany

Dipl.-Geogr. Till Adams

Tel. +49 - 228 – 962 899 52

[email protected]