Terrain Elevation Data Operations in Computational Cartography
Terrain Elevation
z=f(x,y)
Possible formats:
- gridded (in a matrix),
- Triangulated Irregular Network (TIN),
- contours.
Variations
- combined with a spline,
- lossily compressed, (Said and Pearlman's wavelets)
Measure of goodness:
- RMS error,
- the accuracy of derivative properties such as
- visibility indices, and
- drainage patterns.
So What's New?
Computational cartography has existed for over 30 years now.
But now new:
- data (1 meter grid soon),
- hardware,
- algorithms.
Special or General Algorithm?
Question: Use a special-purpose compression algorithm (say, TIN) or
general-purpose (image processing algorithms)?
Reflect on: Lisp machines, floating
point processors, database engines, special graphics engines, and
parallel machines. Dead!
A lot of money has been spent improving general-purpose compression
algorithms.
Sample Data
- 24 USGS DEMs
- Alphabetically the first starting with each letter: A-W,Y.
(No cells start with X or Z).
- 1201x1201 elements.
| Name | Stdev Elevs | Gzip, KB | Progcode, KB | Lossless, bpp |
| Aberdeen E | 36. | 222 | 167 | 0.93 |
| Baker E | 377. | 1,395 | 626 | 3.48 |
| Caliente E | 335. | 1,264 | 534 | 2.96 |
| Dalhart E | 87. | 431 | 262 | 1.46 |
| Eagle E | 88. | 494 | 273 | 1.52 |
| Fairmont E | 34. | 367 | 240 | 1.33 |
| Gadsden E | 74. | 872 | 440 | 2.44 |
| Hailey E | 516. | 1,566 | 610 | 3.39 |
| Idaho Fls E | 145. | 455 | 270 | 1.50 |
| Jacksonl W | 7.7 | 120 | 93 | 0.52 |
| Kalispell E | 343. | 1,421 | 682 | 3.78 |
| La Crosse E | 49. | 1,028 | 612 | 3.40 |
| Average | 166. | 753 | 382 | 2.12 |
Lossy Compression
- Use progcode.
- User specifies bpp (bits per point). One bpp is
1201x1201/8=180300 bytes.
- Try 0.005, 0.010, 0.015, 0.02 (0.02) up to lossless rate.
- Next image shows bpp vs RMS elevation error for first 12
DEMs, and the stdev of the original elevations.
Hailey-E, Lossless
Hailey-E, 0.03 bpp
5400 bytes. Median error=37 m, worst error=224 m. (Elevation
range=2646 m.)
Hailey-E, 0.005 bpp
Compressing Hurts Interactivity?
- Don't want to have to decompress whole cell to use only a
piece.
- Partition, then compress blocks separately?
- Does total compressed size grow? (Not much. gzip sometimes
shrinks.)
- What is variance of compressed sizes? (Maybe a problem.)
Effect on Visibility Index
Question: Does lossily compressing data affect visibility
index calculations?
- For each of the 1201x1201 points (observers) in cell,
fire 16 rays out to distance of 50 points to estimate fraction of
targets within that range that are visible from that point.
Observer and target heights are 10.
- Result is a number from 0 to 100 for each point, i.e., a new
image. 25-, 50-, 75- percentiles are 38, 50, 62.
- Next slides show visibility indices of the original
Hailey-E cell, and of it when compressed to 0.03 bpp, or
5409 bytes.
Hailey-E, Visibility Indices
Hailey-E, 0.03 bpp, Visibility Indices
Quantify that?
Point by point comparison of difference in visibility indices:
- 25-percentile: 2.3 (out of 100).
- median: 5.7.
- 75-percentile: 11.
Less aggressive compression is even better. Comparing original
visibility indices with that of the cell compressed to 0.3 bpp.
- 25-percentile: 0.75.
- median: 1.5.
- 75-percentile: 3.8.
Transformations: Contour to Gridded
- An old problem, but
- We can do it better.
- Mike Gousie's PhD work.
Techniques
- Lagrangian PDE:
the surface ``droops'' unacceptably between
the contour lines.
- Thin plate equation:
Generated surfaces oscillate.
- Other PDEs?
- Interpolating gradients (lofting)
- Interpolating Splines:
- Techniques From Medical Imaging: No.
- {Interpolation by Compression}
Transformations: Gridded to Planar TIN
- I did it first (1973).
- TINs are obvious.
- Do they deserve their reputation?
Note that:
- Inherently lossy.
- Topology takes space.
- Surprisingly hard to implement
- Even when implemented correctly, the topology can
take ten times as much storage as the heights. This seems excessive.
Experimenting with the succinct data structures mentioned above is
a possible future research area.
- Probably, in the limit, all
compression methods would take the same space for the same
accuracy.
- The remaining question would be algorithm complexity
and programmer time.
Planar TIN to Spline TIN
- No new info, but
- Might increase accuracy.
- Real world not always $C^0$.
Transformations: Gridded to Visibility
- Where to play the good guys to watch the bad guys?
- Clark Ray's PhD thesis
N37E127 DTED Cell
Visibility Index For Each Point
Visibility Index vs Elevation of Some Random Points
Visibility Indices to Features
Negative of Visibility Index of Baboon
Fitting the Pieces Together
Towards a General Model of Surfaces
- Is available data statistically representative of the
real world?
- Much existing input, e.g., autocorrelations or fractals.
- With enough parameters, anything works, c.f., Ptolemaic
planetary model.
- Shallow or deep model?
Implementation Details
- Sun Sparc IPC and 10/30 workstations,
- SunOS Unix,
- about 32MB of memory,
- C++ with the Apogee compiler.
- Tomas Rokicki's dvips,
- Jef Poskanzer's Portable Bit Map (PBM) package, Netpbm version,
- John Bradley's xv.
Conclusions
- Unified view of various terrain representation data
structures.
- Sometime generic (IP) algorithms are best.
- Multimedia research is forcing continuous research: better algorithms in the future.
- Future: Effect of compression on drainage etc.
Wm. Randolph Franklin,
Associate Professor
Email: wrfATecse.rpi.edu
http://wrfranklin.org/
☎ +1 (518) 276-6077; Fax: -6261
ECSE Dept., 6026 JEC, Rensselaer Polytechnic Inst, Troy NY, 12180 USA
(GPG and PGP keys available)