Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tessellation Data Structures

Similar presentations


Presentation on theme: "Tessellation Data Structures"— Presentation transcript:

1 Tessellation Data Structures
Squares Properties: Orientation consistency Recursively subdividable? Radial symmetry Compatible with array data structures and a cartesian coorninate system. Triangles Tessellation models are an alternative to the vector approach. The basic data unit in a tessellation model is a unit of area corresponding to the interior of a region. The three basic areal units that have been used in regular tessellations are squares, triangles, and hexagons. Each shape has different geometric properties that distinguish it from the others. One characteristic is orientation; objects in both square and hexagonal patterns have the same orientation while, in a triangular mesh, objects have a different orientation. A second characteristic is whether two-dimensional space can be recursively subdivided using that shape; both squares and triangles can be subdivided infinitely while a hexagon cannot. Hexagons however have the property of radial symmetry; all neighboring cells of a given cell are the same distance to the centerpoint of that cell. Hexagons also form the most compact shape good for spatial sampling. The square mesh on the other hand is most compatible with array data structures and a cartesian coordinate system. Digital remotely sensed data and output devices such as line printers and the color raster terminals also favor the grid cell structures. The advantages of a square mesh sufficiently outweigh the other two so that it is the most frequently used. Hexagons

2 Rasterization of a Map The simplest data structure for encoding a map in a square tessellation is a rasterization of the map. The area of the map is converted into a grid cell overlay; each cell (pixel) is assigned to a region based on some rule (e.g., if all or most of the grid is within the vector polygon, it is assigned with the gray value for the foreground, otherwise, with the gray value for the background). This information is then stored as a matrix of data. Depending on the size of the raster units, the stylized representation of the map can be very crude; the representation can be improved by making the pixels smaller but this increases the volume of data that is stored in the digital representation. These data can easily be retrieved and a display formed. However, in a rasterization the integrity of a region and the graph topology between regions is lost; only connections between pixels are implicitly retained by their row and column index. A second disadvantage of this approach is that the matrix of data values has very little informational content. A large homogeneous region is now replaced by many pixels having the same value as the original region.

3 Scan Line Structure B A B B A B B A B B P B A B B A B B A B B A B B A
To increase the informational content and thereby reduce storage requirements, the scan line concept was introduced. A scan line is one row of the matrix. Instead of stopping at individual pixels, region segments were identified. The only items recorded for each scan line were the number of regions transversed by the scan line, the region ID value for each region crossed and the column where a region segment ended on the line. This structure is more compact for storing regionalized categories. It is also called the run length coding. B A B L B A B B A B B A B A B B

4 Quad-Tree Structure A 1 2 5 3 4 B C 5 6 7 8 6 9 10 1 2 3 4 7 8 9 10
Scan lines, however, only improve compactness in one dimension. The encoding of areas still includes a lot of redundant data. To improve the overall informational content of objects presented in the data model, maximal blocks are used. A maximal block is the largest square block that contains a homogeneous area. The region also can be represented by the recursive subdivision of two-dimensional space into quadrants stored in a tree structure. It is also called the „Quad-tree structure“. The root vertex of the tree represents the geographic domain of the mapping space. If the entire space of the root vertex is not occupied by the region, it is subdivided into quadrants; each quadrant is a leaf of the root vertex and the eldest sibling is the northwest quadrant followed in turn by the northeast, southwest, and southeast quadrants. If the region fully occupies one of these leaves, subdivision of that leaf is terminated and is colored black (signifying it‘s an element of the region). If none of the region is contained within the area of a leaf, subdivision of that leaf is also terminated and colored white to signify that it is not an element of the region but of its complement. If only part of the leaf area is occupied by the region, then the leaf is colored gray and must be further subdivided to find smaller maximal blocks. If the region of the mapping space is composed of more than one attribute, black leaves are given different gray values that correspond to the appropriate regions and white leaves correspond to the background. In addition to the compactness, quad-trees have several important properties. First, spatial detail can rapidly be attained by recursive division by a power of four. This division can be proceeded until the resolution of the image being encoded is reached. Secondly, it is possible to perform union and intersection operations on quad-tree as leaf operations. Third, the neighbors of a particular block can easily be retrieved. 6 9 10 1 2 3 4 7 8 9 10

5 Linear Indexing Transformations
Transformation of a graph topology into a path topology with the aim to order the objects in a linear sequence while preserving some of the spatial connections between the objects The requirements to space-filling curves (Peano scans): 1. passes once through every object 2. objects close in the space should be near one another in the path transform 3. An inverse operation exists to recover the original space There has been recent interest in the transformation of a graph topology (which may be a tree) into a path topology. The purpose of this transformation is to order the objects of the data model in a linear sequence while preserving some of the spatial connections between objects. A spatial transformation can be applied to any set of spatial units, either polygons, irregular spaced control point data or regular tessellations. Space-filling curves, also known as Peano scans, have several properties. First, the curve must pass once through every object in the space. Secondly, objects close to one another in the original space should be near one another in the path transform. Finally, the curve is a transformation of space such that an inverse operation exists to recover the original space.

6 A Y-Coordinate Projection Path Transformation
For an irregular distribution of points, one path topology would be to connect the points based on their Y-coordinate value in a descending manner. Such a curve would preserve the nearness of points based on the projection of their Y-coordinate. P14 P12 P10 P5 P2

7 A Minimal Distance Path Transformation
An alternative would be a minimal distance path. The minimal distance path passes through every object in space once given an origin and a final destination such that the total distance travelled between the origin and destination is minimized. However, no exact efficient algorithm exists to determine this path and different heuristics are normally used to find a close approximation to the true minimal distance path. P14 P12 P10 P2 P5

8 Row Order More interest has been shown in the space tranformation of tessellations. A number of Peano scans have been proposed to transform a square mesh. Each of these scans has certain desirable properties. The row-order, of course, is the simplest manner to organize all the cells of a square mesh.

9 Row-Prime The row-prime order minimized the total distance associated with the entire path.

10 Morton Order The Morton and Pi orders recursively subdivide the original space and are related to quad-trees in this manner. The address or sequence number of each object in the Morton and row orders can be easily computed.

11 Pi Order The Pi order, like the row-prime order, minimizes the total distance associated with the entire path.

12 Diagonal Order Diagonal order is also one of the common Peano scans.

13 Spiral Order It is also possible to store and retrieve tessellation data with spiral order.

14 Address Computation of Morton Order
X | 1 2 3 4 5 6 7 Y 000 001 002 003 004 005 006 007 0 000 1 001 4 010 5 011 16 100 17 101 20 110 21 111 000 2 002 3 003 6 012 7 013 18 102 19 103 22 112 23 113 X 0 1 1 1 001 8 020 9 021 12 030 13 031 24 120 25 121 28 130 29 131 2 002 Y 1 0 0 10 022 11 023 14 032 15 033 26 122 27 123 3 30 132 31 133 003 32 200 33 201 36 210 37 211 48 300 49 301 52 310 53 311 4 004 For the Morton order, the binary digits of the X- and Y-coordinates are interlaced and the resulting bit string is partitioned into digit pairs. For example, the address of a point at coordinate (3, 4) in the original space is found by interweaving the binary strings 011 and 100 to form the string This digit string is next partitioned into or 211 which is the base four representation of address 37. The ability to compute this address permits the back and forth transformation between the space-filling curve and the original space. These two properties have enabled the Morton order to be used in conjunction with quad-tree structures to construct linear quad-trees. For the row order, the binary string of the Y-coordinate is simply adjoined to the binary string of the X-coordinate. The address of the point at the coordinate (3, 4) is found by adjoining 100 to 011 to form the binary string which is the binary representation of address 35. 34 202 5 35 203 38 212 39 213 50 302 51 303 54 312 005 55 313 40 220 56 320 6 006 41 221 44 230 45 231 57 321 60 330 61 331 42 222 43 223 46 232 47 233 58 322 59 323 62 332 63 333 7 007

15 Summary Data organization remains an important topic in digital cartography. The structure that is chosen depends on the type of base map being stored and the purpose of the digital cartographic information processing system. Data organization remains an important topic in digital cartography. The structure that is chosen depends on the type of base map being stored and the purpose of the digital cartographic information processing system.

16 Questions for Review Which are the mainly used three tessellation data structures? Which properties do they have? What is the mostly used data structure for raster data? What are the data representations in raster data for points, lines, and regions? What is the scan line structure (or run- length coding)? How does a quad-tree record and restore a map image? Which are the mainly used three tessellation data structures? Which properties do they have? What is the mostly used data structure for raster data? What are the data representations in raster data for points, lines, and regions? What is the scan line structure (or run- length coding)? How does a quad-tree record and restore a map image?

17 Questions for Review What are the requirements for the space-filling curves (Peano scans)? According to your knowledge, what are the commonly used Peano scans? What are their advantages and disadvantages? Can you calculate the linear path topology address from the original cartesian coordinate system using Morton order? What is the reversal formula for the address transformation using the Morton order? What are the requirements for the space-filling curves (Peano scans)? According to your knowledge, what are the commonly used Peano scans? What are their advantages and disadvantages? Can you calculate the linear path topology address from the original cartesian coordinate system using Morton order? What is the reversal formula for the address transformation using the Morton order?


Download ppt "Tessellation Data Structures"

Similar presentations


Ads by Google