Top Banner
What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing Pontypridd WALES, U.K. CF37 1DL e-mail: [email protected]
30

What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Dec 18, 2015

Download

Documents

Denis Manning
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

What’s the Point?Interpolation & Extrapolation with a Regular Grid DEM

David Kidner, Mark Dorey & Derek SmithUniversity of GlamorganSchool of ComputingPontypriddWALES, U.K. CF37 1DLe-mail: [email protected]

Page 2: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

What’s the Point?

• Digital Terrain Modelling and “Grids”– What’s the Point ?

• Interpolation Algorithms– Tests and Results

• Extrapolation Algorithms• Data Compression

– Tests and Results

• Conclusions

Page 3: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

A Digital Elevation Model (DEM)

• Regular grid of elevations represents the heights at discrete samples of a continuous surface– vertices are sampled or interpolated independently– represented in a 2D matrix

• No direct topological relationship between points

• 2D Grid imposes an implicit representation of surface form– usually as a linear relationship between vertices

• Simple and convenient

Page 4: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Which One’s the DEM?

(a) Discrete Elevation Samples (b) Implicit (Linear) Continuous Surface

Page 5: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Interpolation• DEM resolution should be dependent upon the

variability of each terrain surface– … but rarely is

• The requirement of the DEM is to represent the terrain surface such that elevations can be retrieved or inferred for any given location– i.e. usually by interpolation

• The method of interpolation is often ignored

• Required for most, if not all applications

Page 6: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

What’s the Point?• Does Interpolation matter?

– What’s the height at D ?– Where’s the 60m Contour(s) ?

68 54

50 72

D

Page 7: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Interpolation for Visibility Analysis

68 54

50 72A

B

0.4

0.6

0.2 0.8

C

D

• What’s the profile through the “cell” ?

Page 8: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Interpolation for Visibility Analysis

(a) Linear with Diagonal (b) Linear without Diagonal (c) Bilinear

20m Object(a) Completely Obscured (b) Completely Visible (c) Partially Visible

Page 9: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Interpolation Algorithms

• Very small interpolation errors may lead to very large application errors– visibility analysis, hydrological modelling,

contouring, etc.

• Interpolation is flawed if we only consider the grid cell of the point to be estimated

• Most GIS only consider the 4 vertices of the grid cell !– bilinear interpolation

Page 10: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Interpolation Alternatives

• For the most part, we can use polynomial interpolation of the form:

hi = a00 + a10x + a01y + a20x2 + a11xy + a02y2 + a30x3 +

a21x2y + a12xy2 + a03y3 + a31x3y + a22x2y2 + a13xy3 +

a32x3y2 + a23x2y3 + a33x3y3 + … + amnxmyn

• solved from the set of simultaneous equations which are set up, one for each point.

Page 11: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Interpolation Alternatives

• Level Plane (1 coefficient)• Linear Plane (3)• Double Linear and Bilinear (4)• Biquadratic (8 or 9)• Bicubic (12 or 16)• Biquintic (36)• Jancaitis Biquadratic, Piecewise

Cubics, etc.

Page 12: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

288 278 253

264 250 230

232 232 249

218 233 267

252

264

277

287

Linear 1 Linear 2 Double Linear Bilinear

Biquadratic Bicubic Jancaitis Biquintic (9 term) (16 term) (36 term)

Page 13: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Results (1) Test Surface Functions

(Franke, 1979; Akima, 1996)

Page 14: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Results (1) Test Surface Functions

Page 15: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Results (1) Test Surface Functions

Page 16: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Results (1) Test Surface Functions

• Higher-order interpolation algorithms will always out-perform linear techniques

Page 17: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Based on Ordnance Survey data for S. Wales:

• 1:50,000 Scale (50 m) DEMs and 1:10,000 Scale (10 m) DEMs– Higher-order interpolation algorithms will

always out-perform linear techniques– By 3% to 10% (of the RMSE)– Less correlation as to which algorithm

performs best

Results (2) Actual Terrain

Page 18: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Extrapolation

• Interpolation outside the spatial extent

• Extrapolation can be considered to be at the heart of the best techniques for spatial data compression

– i.e. what is the next symbol in the series

– or “standing on the surface and given my field of view, what is the elevation if I take one step backwards?”

Page 19: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Why do we need DEM compression?• Seen as yesterday’s problem ?

– expensive hardware; small capacity disks, etc.

• File/Internet Transfer• Higher Resolutions

O.S. 50m DEMO.S. 50m DEM O.S. 10m DEMO.S. 10m DEM2m LiDAR DEM

Page 20: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

DEM Extrapolation & Prediction

Page 21: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

DEM Transformation for Compression

Elevation Range

Freq

uenc

y

5%

10%ORIGINAL DEM

Elevation Correction Range(Prediction Errors)

Freq

uenc

y

20%

40%DEM OF ERROR CORRECTIONS

Page 22: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

TerrainExtrapolators

Page 23: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

a

f g

Z

Linear Predictor:Z = a + g - f

e.g. 462 = Z = 458 + 461 - 454 = 465 (Correction = -3)343 338 -2 3 1 -1 5 -6 7 5 6 -2 1 4 1 -1 0 420 421356 352 1 1 -1 5 -3 5 0 4 0 5 -1 1 3 1 0 417 418378 368 3 2 0 0 1 2 -4 1 7 -1 2 2 2 1 2 413 413393 382 1 1 0 4 0 0 -1 -5 3 5 1 2 1 3 0 409 409403 394 3 0 2 2 0 1 0 -1 -4 5 -3 3 5 1 3 402 403413 407 -2 2 0 2 3 1 2 2 0 -3 4 0 -1 3 1 397 398423 418 -3 1 -1 2 1 1 3 1 1 0 2 0 0 1 2 394 395432 426 1 -5 2 0 4 3 1 0 1 1 2 2 3 -2 0 390 391438 435 -2 4 0 2 4 0 2 0 0 1 3 3 1 3 -2 385 384450 448 -4 -4 -2 3 -3 3 6 3 1 1 2 1 2 5 -1 379 377455 454 -1 -3 -2 -3 0 2 0 7 0 0 1 0 1 1 6 373 370460 457 -1 -2 -3 1 -3 -2 0 3 5 0 1 0 0 1 2 368 364460 459 -1 -3 0 -4 0 -2 -1 1 4 3 0 2 0 -1 1 361 359458 459 -2 -1 -4 0 1 0 -2 -4 4 3 3 0 1 -1 0 361 357452 458 -3 -3 0 -3 2 -1 -1 -2 -2 5 1 3 -1 1 -1 363 358448 454 461 467 470 470 464 461 454 445 430 413 400 389 383 375 369 364 359442 449 456 462 469 470 466 461 457 450 440 420 406 390 382 376 370 366 361

343 338 333 332 327 337 343 347 352 358 369 375 381 393 405 413 420 420 421 356 352 349 345 339 350 351 361 359 360 365 373 378 386 397 406 413 417 418 378 368 364 359 354 360 364 369 367 364 369 372 378 385 393 401 408 413 413 393 382 375 368 363 369 372 375 377 373 371 375 379 384 390 397 402 409 409 403 394 386 378 373 375 378 381 384 385 380 379 382 385 390 394 399 402 403 413 407 396 388 381 381 384 386 389 391 390 384 390 390 390 393 395 397 398 423 418 409 399 392 390 390 391 392 392 391 388 390 390 391 391 392 394 395 432 426 420 409 403 399 398 398 396 395 393 390 390 390 391 390 389 390 391 438 435 428 422 414 410 405 402 399 398 395 391 389 387 385 386 385 385 384 450 448 443 433 425 419 410 407 402 401 398 393 388 383 380 378 379 379 377 455 454 453 447 441 432 426 420 409 405 401 395 388 382 377 370 372 373 370 460 457 457 454 450 444 438 430 419 408 404 398 390 384 378 370 366 368 364 460 459 460 459 458 451 448 442 431 417 408 402 393 387 381 372 366 361 359 458 459 461 463 462 459 456 452 442 427 414 405 396 388 382 374 367 361 357 452 458 462 465 468 465 461 457 449 438 421 409 397 389 382 375 368 363 358 448 454 461 467 470 470 464 461 454 445 430 413 400 389 383 375 369 364 359 442 449 456 462 469 470 466 461 457 450 440 420 406 390 382 376 370 366 361

Page 24: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

12-Point Predictor:

e.g. Z = w1*458+w2*454+...+w12*469 = 464 (Correction = -2)

343 338 333 332 327 337 343 347 352 358 369 375 381 393 405 413 420 420 421 356 352 349 345 339 350 351 361 359 360 365 373 378 386 397 406 413 417 418 378 368 364 359 354 360 364 369 367 364 369 372 378 385 393 401 408 413 413 393 382 375 368 363 369 372 375 377 373 371 375 379 384 390 397 402 409 409 403 394 386 378 373 375 378 381 384 385 380 379 382 385 390 394 399 402 403 413 407 396 388 381 381 384 386 389 391 390 384 390 390 390 393 395 397 398 423 418 409 399 392 390 390 391 392 392 391 388 390 390 391 391 392 394 395 432 426 420 409 403 399 398 398 396 395 393 390 390 390 391 390 389 390 391 438 435 428 422 414 410 405 402 399 398 395 391 389 387 385 386 385 385 384 450 448 443 433 425 419 410 407 402 401 398 393 388 383 380 378 379 379 377 455 454 453 447 441 432 426 420 409 405 401 395 388 382 377 370 372 373 370 460 457 457 454 450 444 438 430 419 408 404 398 390 384 378 370 366 368 364 460 459 460 459 458 451 448 442 431 417 408 402 393 387 381 372 366 361 359 458 459 461 463 462 459 456 452 442 427 414 405 396 388 382 374 367 361 357 452 458 462 465 468 465 461 457 449 438 421 409 397 389 382 375 368 363 358 448 454 461 467 470 470 464 461 454 445 430 413 400 389 383 375 369 364 359 442 449 456 462 469 470 466 461 457 450 440 420 406 390 382 376 370 366 361

343 338 -1 3 -3 2 0 -4 2 1 5 -1 0 3 2 0 1 420 421356 352 -2 -1 -5 4 -5 5 -1 0 -1 3 -2 -1 1 0 0 417 418378 368 2 1 -3 0 0 3 -1 0 4 -1 1 1 1 0 0 413 413393 382 0 -1 -3 3 0 0 0 -3 1 3 1 0 -1 1 -1 409 409403 394 2 0 0 1 -1 -1 -2 -2 -4 -1 -3 -1 1 0 2 402 403413 407 -2 1 -1 1 2 0 1 1 0 -4 4 -1 -1 1 0 397 398423 418 0 1 -1 0 -2 -1 1 0 0 -2 0 -3 -1 -1 0 394 395432 426 2 -4 -1 -2 0 2 0 1 0 -1 0 -1 1 -2 -1 390 391438 435 1 4 2 4 3 1 -1 0 -1 -1 1 0 -1 1 -1 385 384450 448 -2 -3 -1 1 -4 0 0 1 1 1 1 1 2 2 0 379 377455 454 2 -1 0 -2 1 2 -2 3 0 0 0 1 1 -2 2 373 370460 457 1 0 0 1 0 -1 -1 -1 2 -1 -1 -1 0 -1 1 368 364460 459 2 0 2 -4 0 0 0 -1 0 1 -2 1 1 -1 1 361 359458 459 0 1 -2 -1 0 1 -1 -3 0 1 1 0 1 -1 0 361 357452 458 -2 -2 1 -2 0 0 1 1 -1 2 -1 0 0 1 0 363 358448 454 461 467 470 470 464 461 454 445 430 413 400 389 383 375 369 364 359442 449 456 462 469 470 466 461 457 450 440 420 406 390 382 376 370 366 361

h i

b

e

l m n o p

a

f g

Z

Page 25: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Frequency Distribution of 15x15 Corrections

-17-15-14-13-12-11-10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12

Horizontal

3-Point

4-Point

12-Point

0

10

20

30

40

50

60

Frequency

Height Correction (m)

Page 26: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

O.S. South Wales 1201x801 DEM

Page 27: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Prediction (extrapolation) Corrections

Page 28: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.
Page 29: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Data Compression Results

• GZIPped DEM requires a storage capacity of 261% of the best extrapolator and Arithmetic Coding method

Page 30: What’s the Point? Interpolation & Extrapolation with a Regular Grid DEM David Kidner, Mark Dorey & Derek Smith University of Glamorgan School of Computing.

Geocomputation’99 July 25th - 28th

Summary• Mathematical modelling has now largely

been forgotten by today’s GIS developers

• Many GIS techniques are of limited value and may propagate through to application error (e.g. visibility analysis)

• For DEM Interpolation– don’t use linear algorithms

• Mathematical modelling offers significant savings for spatial data compression