Next Article in Journal
Economic Evaluations of Magnetic Resonance Image-Guided Radiotherapy (MRIgRT): A Systematic Review
Next Article in Special Issue
A Study on the Spatial Pattern of the Ecological Product Value of China’s County-Level Regions Based on GEP Evaluation
Previous Article in Journal
The Impact of Environmental Regulation on Agricultural Productivity: From the Perspective of Digital Transformation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Study on Spatial Geometric Similarity Based on Conformal Geometric Algebra

1
School of Civil Engineering & Architecture, Zhejiang University of Science & Technology, 318 Liuhe Road, Hangzhou 310023, China
2
Center of Urban and Rural Development, Zhejiang University of Science & Technology, 318 Liuhe Road, Hangzhou 310023, China
3
Zhejiang Provincial Key Laboratory of Geographic Information Science, Zhejiang University, 148 Tianmushan Road, Hangzhou 310028, China
4
School of Earth Sciences, Zhejiang University, 38 Zheda Road, Hangzhou 310027, China
*
Author to whom correspondence should be addressed.
Int. J. Environ. Res. Public Health 2022, 19(17), 10807; https://doi.org/10.3390/ijerph191710807
Submission received: 6 July 2022 / Revised: 26 August 2022 / Accepted: 29 August 2022 / Published: 30 August 2022

Abstract

:
The study of spatial geometric similarity plays a significant role in spatial data retrieval. Many researchers have examined spatial geometric similarity, which is useful for spatial analysis and data retrieval. However, the majority of them focused on objects of the same type. Methods to support the spatial geometric similarity computation for different types of objects are rare, a systematic theory index has not been developed yet, and there has not been a comprehensive computational model of spatial geometric similarity. In this study, we conducted an analysis of the spatial geometric similarity computation based on conformal geometric algebra (CGA), which has certain advantages in the quantitative computation of the measurement information of spatial objects and the qualitative judgment of the topological relations of spatial objects. First, we developed a unified expression model for spatial geometric scenes, integrating shapes of objects and spatial relations between them. Then, we established a model for the spatial geometric similarity computation under various geographical circumstances to provide a novel approach for spatial geometric similarity research. Finally, the computation model was verified through a case study. The study of spatial geometric similarity sheds light on spatial data retrieval, which has scientific significance and practical value.

1. Introduction

With the diversification of Earth observation technology and the popularization of mobile devices, the amount and types of data related to geospatial positions are increasing rapidly. Determining how to locate spatial geometric scenes in which users are interested from massive spatial geometric scene data is a major issue for spatial data retrieval in urban scenarios. Computing the geometric similarity between a database scene and a query scene in a spatial database is a key point in solving the problem of spatial scene retrieval. The traditional spatial geometric similarity indices are the shape similarity of spatial objects, topological relation similarity, direction relation similarity, and distance relation similarity between spatial objects, and the computation methods are not uniform. The existing spatial data retrieval methods that were developed without comprehensive consideration of the above similarity indices cannot satisfy the demand for spatial geometric scene retrieval.
In 2001, Chinese mathematician Li Hongbo proposed the theory of conformal geometric algebra (CGA), and it was introduced to the geoscience field. This theory can realize the unified expression of different types and dimensions of geographic objects and has certain advantages in the quantitative computation of the measurement information of spatial objects and the qualitative judgment of the topological relations of spatial objects [1].
In this study, we focused on the problem of spatial geometric similarity. Based on CGA theory, a discussion is presented from the perspective of the shape expressions of spatial objects and similarity computation, the expression of the spatial relations and similarity computation, and the computation of the geometric similarity of a spatial scene. Finally, a set of relatively complete spatial geometric similarity retrieval models is proposed, which can satisfy the demand of qualitative spatial data retrieval to a certain degree.
The main contributions of the present study are as follows.
(1)
Based on CGA, we realize a unified representation of spatial geometric scenes with objects of different types. The spatial geometric scene we consider is composed of different types of geometric objects and is not restricted to polygons.
(2)
We perform geometric similarity computations between two spatial geometric scenes, taking the shape, topology, direction, and distance into consideration to attempt to implement spatial geometric retrieval in a comprehensive manner.

2. Literature Review

A spatial scene comprises a collection of spatial objects and their particular spatial arrangement. People construe such spatial geometric scenes in terms of objects and relations [2,3]. Many scholars have explored this topic [4,5,6,7]. Spatial scene similarity is the similarity of two regions in terms of particular object sizes and contents [5,6,7,8]. The spatial geometric similarity in our study involves spatial geometric features, including the shape of spatial objects and the spatial relationship between objects. The existing spatial similarity research is mainly divided into two parts. One is based on the geometric characteristics of spatial objects, and the similarity of spatial objects is studied. Kuijpers et al. [9] and Gottfried [10] used a double cross model and bipartite arrangements, respectively, to obtain qualitative shape expressions and proposed concrete qualitative shape similarity computation algorithms from the perspective of shape description operations. Shapiro et al. [11] proposed a theoretical relational modeling technique to separate objects into thin pieces (e.g., sticks, plates, and blobs). Richards et al. [12] used a codon as the basic unit to describe closed two-dimensional (2D) shapes.
The other approach uses the relations between spatial objects to study the similarity of the spatial relations [13,14,15]. Spatial relation similarity mainly includes spatial topological relation similarity, direction relation similarity, and distance relation similarity. Many scholars have performed some research on the combination of topology and direction, the combination of direction and distance, and the combination of the three and developed similarity evaluation methods, such as feature matching, derivation from equivalence, case reasoning, and fuzzy functions [16,17,18,19,20,21]. The semantic similarity plays an important role in spatial scene retrieval. Many researchers have made some contributions in this area [22,23,24,25].
Geometric algebra is an algebraic language that was proposed by Clifford [26] based on the Hamilton Quaternion and Grassmann expansion algebra to describe and perform computations for geometric problems. The unification of vector, scalar, dimension, and geometric operations makes it possible to apply geometric algebra for the expression of geographic objects and compute the spatial relations. The research on the application of geometric algebra has matured around the world [27,28,29,30], and there are various research results in the theoretical physics [31,32], mathematics [33,34], computer science [35], and geoscience [36,37,38,39,40,41,42,43,44,45,46,47,48] fields.
Li et al. [1] first presented the concept of CGA in the book Geometric Computing with Clifford Algebras, which has been highly praised by the international academic community. Zong [47] obtained a formal expression of the spatial topological relations based on algebraic geometry and the quantitative computation of topological relations by using a meet operator, which was able to distinguish more detailed spatial topological relations, and applied it to the intersection of the 3D surface model of an Antarctic ice sheet. Chen [48] obtained a unified expression of different types of multi-dimensional geographic objects using CGA properties, based on which formal expressions of the spatial topological relations and temporal topological relations were obtained. Furthermore, spatiotemporal topological relations were obtained. These relations were applied to the computation of spatiotemporal topological relations. This approach has value for various applications, such as checking the spatiotemporal topological rules of current land use and the historical backtracking of spatiotemporal objects.

3. Methodology

In this paper, we introduce a multidimensional unified expression and geometric computation based on CGA. The unified expression of multidimensional geometric objects is realized based on the multivector. By using the geometric product, the similarity relationship of spatial objects, spatial topology, direction, and distance can be conveniently computed, which provides a new solution for the spatial geometric similarity retrieval.
According to Figure 1, first, we resolve the central objects that satisfy a specified shape similarity threshold. Second, the Voronoi graph is built to obtain the spatial neighborhood objects. From this, we can obtain a certain number of scenes. Third, according to the spatial constraints for the query scene, the variable ordering is set, and the forward checking algorithm is used to match the query scene with the sub-scenes from the database scene. If no such sub-scene meets the condition, we can relax the condition and compute the similarity between the query scene and the retrieved scene until we achieve our goal. The main theories covered in this paper are described in this section as follows.

3.1. Conformal Geometric Algebra

CGA is a new geometric representation and computing system that provides a unified and simple homogeneous algebraic framework for classical geometry and has notable advantages in geometric data processing and geometric computation [49]. The inner product, outer product, and geometric product are core operations in the geometric object representation and algorithm construction. CGA is the most common geometric algebra (GA) space. Based on the traditional Euclidean space, two extra base vectors, e0 and ei, are used to represent basic geometric objects. A hierarchical geometric structure corresponds to the hierarchical Grassmann structure for the outer product in CGA. The inner product in CGA can describe basic metric information, such as the distance and angle.

3.2. Shape Similarity Computation

Falomir et al. [50] conducted similarity measurements of spatial objects based on qualitative shape descriptions. The complete description of the shape of a 2D object is given from a set of qualitative features as follows:
[ E C 1 , A 1 | T C 1 , L 1 , C 1 ] , [ E C 2 , A 2 | T C 2 , L 2 , C 2 ] , , [ E C n , A n | T C n , L n , C n ]
where n is the total number of relevant points of the object, ECi describes the edge connection that occurs at the point Pi, Ai|TCi describes the angle or the type of curvature at Pi, Li describes the compared length of the edges connected at Pi, and finally, Ci describes the convexity at Pi.
In this study, the qualitative shape representation model (QSDM) of spatial objects is established on the basis of their research. The spatial objects are edge-connected, so we employ the other three features.
As shown in Figure 2, it is assumed that P2, P3, and P4 are three points of the spatial object S, which are connected in turn. At point P3, a three-tuple is defined to represent the relevant point,
A P , L P , C P ,
where AP denotes the angle between line segments P2P3 and P3P4, LP denotes the ratio of the length of the line segments, and CP denotes the concavity and convexity of point P3.

3.2.1. Angle Computation

The angle between two adjacent line segments of the polygon is computed at relevant points by using the inner product. For one-dimensional vectors a and b, which are constructed by connecting a relevant point P3 to its previous point P2 and its next point P4, respectively, the angle is computed by GA, which encodes the inner and the outer product; the inner product is proportional to the cosine, and the outer product is the sine. Thus, the value of the angle can be computed by the arctan2 function. At first, we partition the angle into five intervals, {[0, 40], (40, 85], (85, 95], (95, 140], (140, 180]}, and the corresponding semantic expressions of the five intervals are {very_acute, acute, right, obtuse, very_obtuse}. In this work, we use an open ball Br(c) (Borelian notation) where c = a + b / 2 (center) and r = b a / 2 (radius). Given two internals, I 1 = a 1 , b 1 = B r 1 c 1 and   I 2 = a 2 , b 2 = B r 2 c 2 , a family of distances between intervals was defined [51], which depends on three parameters as follows:
d 2 I 1 , I 2 = Δ c   Δ r A Δ c Δ r ,
where Δ c = c 2 c 1 , Δ r = r 2 r 1 , and A is a symmetrical 2 × 2 matrix of weights. Here, we use the most natural choice for the A matrix, which is the identity matrix that provides the next distance:
d 2 I 1 , I 2 = Δ 2 c + Δ 2 r = c 2 c 1 2 + r 2 r 1 2 .
Using Borelian notation and the interval distance, for example, for the two intervals [0, 40] and [40, 85], I 1 = 0 , 40 = B 20 20 and I 2 = 40 , 85 = B 22.5 62.5 , d 2 I 1 , I 2 = 62.5 20 2 + 22.5 20 2 = 42.6, which is the distance between the very acute and acute. Using the same process, we obtain all the angle relation distances, as shown in Table 1.

3.2.2. Ratio of Length Computation

The lengths of two adjacent line segments of polygon feature points are computed using the inner product. The Euclidean distance between two points is directly embedded in the inner product computation with the expression p 1 p 2 = 1 2 d E 2 p 1 , p 2 , and the ratio of the lengths is the ratio of the lengths of two adjacent line segments.
We partition the ratio of the lengths into seven intervals, {(0, 0.4], (0.4, 0.6], (0.6, 0.9], (0.9, 1.1], (1.1, 1.9], (1.9, 2.1], (2.1, 10]}, and the corresponding semantic expressions of the seven intervals are {much_shorter (msh), half_length (hl), a_bit_shorter (absh), similar_length (sl), a_bit_longer (abl), double_length (dl), much_longer (ml)}. Using Borelian notation and the interval distance, the computing method is the same as Formula (3), and we obtain the angle relation distances, as shown in Table 2.

3.2.3. Concavity and Convexity Judgment

The concavity and convexity of the angle between two adjacent line segments of the polygon are judged using the inner product. For example, for point P2, its concavity and convexity can be determined by the relation between a one-dimensional vector a = P1P2 and the point P3. If the point P3 is on the left of vector a, the point P2 is concave; otherwise, P2 is convex. The concrete computation can construct a one-dimensional vector c = P1P3 and a one-dimensional vector m that is perpendicular to P1P2 on the right, and then the sign of the inner product c·m is examined. If c·m > 0, point P3 is on the right of vector a. If c·m < 0, point P3 is on the left of vector a. For concavity relation distance, it equals 0 if they are the same; otherwise, it equals 1. For two concave or convex relations, the distance is 0, and for one concave and the other convex, the distance is 1.
The computations of the three parameters above are the components of the shape computation, which mainly rely on inner product computation. An inner product contains the information of the angle and distance, which can obtain the three-tuple quantitative values of the shape expression model concisely and intuitively and lay the foundation for the computation of the shape similarity.
For two objects, we adopt the following formula to compute the shape similarity between them:
S i m ( R P A , R P B ) = 1 i { A , L , C } w i d s ( i ) D s ( i ) ,
where RPA and RPB denote the relevant points of objects A and B, respectively; ds(i) denotes the distance between two relations; Ds(i) denotes the maximum distance; and wi denotes weights for each relation.

3.3. Topological Relations Similarity Computation

Zong [47] performed research on spatial topological relations based on geometric algebra and discussed the topological relations between a point, line segment, and triangle. Chen [48] sought the topological relations between two polygons by decomposing a polygon into triangles. In this article, we do not distinguish the topological relations as Chen did, but rather, we take the polygon as a whole.
The spatial topological relations are determined based on the research of Zong and Chen. We divide the object into the interior, boundary, and exterior (the point can be divided into the interior and the exterior, without the boundary), use the geometric product, and construct different discriminants. Thus, topological relations between objects of different types can be obtained.

3.3.1. Point and Other Objects

(1)
Topological relations between two points
For two points A and B, the discriminant is constructed as follows:
t = A B .
If t = 0, A intersects B, and the topological relation is pp-equal. If t <> 0, A does not intersect B, and the topological relation is pp-disjoint. The topological relations are shown in Figure 3.
Using the topological relation operation between two points, we obtain two relations: pp-disjoint and pp-equal. Figure 4 shows the corresponding conceptual neighborhood diagram. For two points, when the topological relation is the same as the other two, the relation distance is 0; otherwise, the relation distance is 1.
(2)
Topological relations between point and line segment
A line segment is a straight line with a boundary constraint. For a straight line L passing through points A and B, the judgment expression is L = A ^ B ^ ei. The topological relations between point P and line segment AB can be determined by the two following expressions:
t 1 = ( A P e i ) L ,   t 2 = ( P B e i ) L .
If t1 > 0 and t2 > 0, P is within AB, and the topological relation between them is pl-inside. If t1 = 0 or t2 = 0, P coincides with the edges of AB, and the topological relation between them is pl-touch. If t1 < 0 or t2 < 0, P does not intersect with AB, and the topological relation between them is pl-disjoint. The topological relations are shown in Figure 5.
Using the topological relation operation between a point and a line segment, we obtain three relations: pl-disjoint, pl-touch, and pl-inside. Figure 6 shows the corresponding conceptual neighborhood diagram. The topological relation distances which are decided according to the conceptual neighborhood diagram are shown in Table 3.
(3)
Topological relations between point and polygon
The relations can be computed using the following judgment expression:
t = P L · Φ ,
where P is the point, L is the boundary of the polygon, and Φ is the plane that contains the polygon M. Φ = C e i , C is the boundary circle, ei denotes infinity, and L denotes the straight line at which the boundary of the polygon M is located.
If t < 0 for all judgment expressions, P is inside M. The topological relation between them is ps-inside. If t = 0, P is in the boundary of M. The topological relation between them is ps-touch. In other situations, P is outside M. The topological relation between them is ps-disjoint. The topological relations are shown in Figure 7.
Using the topological relation operation between a point and a polygon, we obtain three relations: ps-disjoint, ps-touch, and ps-inside. Figure 8 shows the corresponding conceptual neighborhood diagram. The topological relation distances which are decided according to the conceptual neighborhood diagram are shown in Table 4.

3.3.2. Two Line Segments

Using the operation between a point and a line segment, we can construct a computing strategy to determine the topological relations between two line segments. For two line segments L1 and L2, the relation between the two edge points of L1 and the line segment L2 is computed. When one of the edge points of L1 is within L2 or coincident with the edge points of L2, the topological relation is ll-touch. When the two edges of L1 coincide with two edges of L2, the topological relation is ll-equal. When the two edge points of L1 are inside L2 and the two edge points of L2 are outside L1, the topological relation is ll-inside. When the two edge points of L2 are inside L1 and the two edge points of L1 are outside L2, the topological relation is ll-contains. When the interior of L2 intersects with that of L1, the topological relation is ll-overlap. When both the interior and the two edge points of L2 do not intersect with the interior and the two edge points of L1, the topological relation is ll-disjoint. The topological relations are shown in Figure 9.
Using the topological relation operation between two line segments, we obtain six relations: ll-disjoint, ll-touch, ll-overlap, ll-equal, ll-contains, and ll-inside. Figure 10 shows the corresponding conceptual neighborhood diagram. The topological relation distances which are decided according to the conceptual neighborhood diagram are shown in Table 5.

3.3.3. Line Segment and Polygon

Using the operation between a point and a polygon and the operation between two line segments, we compute the topological relations as follows. For the two edge points of L, if both are inside polygon S, the topological relation between L and S is ls-inside1. If one edge point of L is inside polygon S and the other edge point is on the boundary of S, the topological relation between L and S is ls-inside2. If the two edge points of L are on the boundary of S, the topological relation between L and S is ls-inside3. If one edge point of L is on the boundary of S and the other is outside S, the topological relation between L and S is ls-touch. If one edge point of L is inside S and the other is outside S, the topological relation between L and S is ls-overlap1.
If the two edge points of L are outside S, the relation between the line segment L and the boundary of S is judged. If L does not intersect with the boundary of S, the topological relation between L and S is ls-disjoint. If L intersects with the boundary of S, the topological relation between L and S is ls-overlap2.
In summary, we can distinguish four topological relations: ls-disjoint, ls-overlap, ls-inside, and ls-touch. The relations ls-inside1, ls-inside2, and ls-inside3 can be recognized as ls-inside, and the relations ls-overlap1 and ls-overlap2 can be recognized as ls-overlap. The topological relations are shown in Figure 11.
Using the topological relation operation between a line segment and a polygon, we obtain four relations: ls-disjoint, ls-touch, ls-overlap, and ls-inside. Figure 12 shows the corresponding conceptual neighborhood diagram. The topological relation distances which are decided according to the conceptual neighborhood diagram are shown in Table 6.

3.3.4. Two Polygons

Based on the operation between a point and a line segment, between a point and a polygon, and between two line segments, we compute the topological relations as follows.
For all vertices {U1, U2, …, Um} of S1, if all are inside S2, the operation between a point and a polygon is used, and the condition is recorded as C1. If all the vertices are outside S2, the condition is recorded as C2. If they are all on the boundary of S2, the condition is recorded as C3. If some of the vertices are inside S2 and some are outside S2, the condition is recorded as C4. If some of the vertices are inside S2 and some are on the boundary of S2, the condition is recorded as C5. If some of the vertices are outside S2 and some are on the boundary of S2, the condition is recorded as C6. Likewise, we obtain the conditions D1, D2, D3, D4, D5, and D6.
If C1 is satisfied but D1 is not, the topological relation between S1 and S2 is ss-contains. If D1 is satisfied but C1 is not, the topological relation between S1 and S2 is ss-inside. If both C2 and D2 are satisfied, the topological relation between S1 and S2 is ss-disjoint. If both C3 and D3 are satisfied, the topological relation between S1 and S2 is ss-equal. If C4 or D4 is satisfied or both are, the topological relation between S1 and S2 is ss-overlap. If D5 is satisfied, the topological relation between S1 and S2 is ss-covers. If C5 is satisfied, the topological relation between S1 and S2 is ss-covered-by. If both C6 and D6 are satisfied, the topological relation between S1 and S2 is ss-touch. The topological relations are shown in Figure 13.
Using the topological relation operation between two polygons, we obtain eight relations: ss-disjoint, ss-touch, ss-overlap, ss-covers, ss-covered-by, ss-contains, ss-inside, and ss-equal. Figure 14 shows the corresponding conceptual neighborhood diagram. The topological relation distances which are decided according to the conceptual neighborhood diagram are shown in Table 7. The topological relations between two polygons can be distinguished using the same topological relations with the RCC8 model.

3.3.5. Topological Relation Similarity Computation Strategy

m spatial objects in query scene V are denoted as v1, v2, …, vm. n spatial objects in the query database U are denoted as u1, u2, …, un. We adopt the following strategy to compute the topological relations between two scenes. First, the topological relation operation is used to resolve the relation between two objects in the query scene, which is denoted as T1. Furthermore, we obtain the relation between two objects in the database scene, which is denoted as T2. By utilizing the corresponding conceptual neighborhood diagram, the relation distance is computed. Furthermore, the similarity SRi between T1 and T2 is computed.
We compute all topological relation similarities between objects in the query scene and corresponding objects in the database scene as follows:
S R e l = i = 1 t · t 1 / 2 W R i · S R i i = 1 t · t 1 / 2 W R i ,
where WRi denotes the weight values of the topological relations. In this paper, the weight values are the same; however, for future work, the weight values can be different according to the actual scene. For example, the topological relation inside may be more important than disjoint. SRi denotes the similarity between two relations, and t denotes the number of matched objects.

3.4. Direction Relation Similarity Computation

The outer product realizes the dimensional and geometric operations, while the inner product provides the angle and distance information. For two geometric objects O1 and O2 of arbitrary dimensions, the metric information between two basic objects is as follows:
cos ( θ ) = o 1 o 2 | o 1 | | o 2 | ,
θ = ( o 1 , o 2 ) = arccos ( o 1 o 2 | o 1 | | o 2 | ) .
For example, as shown in Figure 15a, for two vectors O1 and O2, the inner product is the distance that O1 projects onto O2. In Figure 15b, for the vector O1 and the plane O2, the inner product is the vector that is in O2 and perpendicular to O1. Owing to high-dimensional scalability, the operation is conferrable to arbitrary dimensions, not limited to vectors [52].
If P1(0,1) and P2(1,0) belong to a 2D Euclidean space, by converting them into the conformal space, we obtain C2ga_P1 = e2 + 0.5e + e0 and C2ga_P2 = e1 + 0.5e + e0. The origin point is C2ga_O = e0. The outer product between two points and infinity can be used to construct a line. Thus, the line P1P2 can be represented as C2ga_P1 ^ C2ga_P2 ^ e. The magnitude of P1P2 is |P1P2| =   2 , and the magnitude of the unit base vector is |OE| = 1. Thus, the inner product P1P2·OE = |P1P2||OE| cos θ , and the computation result is   cos θ = 2 / 2 , that is, θ = 135 ° .
The conformal space is angle-preserving. The angle computed by the inner product in conformal space reflects the angle in Euclidean space. The cosine function was symmetric within the scope of [0°, 360°]. If yOA − yOB < 0, then θ 0 ,   180 ° . If yOA − yOB > 0, then θ 180 ° ,   360 ° .
In CGA, according to the Grassmann hierarchical structure, the minimum bounding circle can be constructed by the vertices of the polygon. The radius of the circle is obtained by r = C 2 C e i 2 , and the center of the circle is computed by O = CeiC.
Thus, for two geometric objects A and B, the direction relation operation is implemented as follows. (1) The center points OA and OB of the minimum bounding circles are computed for A and B, respectively. (2) The inner product between OAOB and the unit base vector are computed, and then the angle value can be computed.
The angle value can be mapped to the corresponding angle interval, and the corresponding semantic expression can be acquired. Figure 16 illustrates the relation between the direction relation semantic expression and the angle value.
The direction relation semantic expression is as follows: {N, NE, E, SE, S, SW, W, NW}, representing north, northeast, east, southeast, south, southwest, west, and northwest, respectively. The corresponding value intervals are {[67.5, 112.5), [22.5, 67.5), [337.5, 22.5), [292.5, 337.5), [247.5, 292.5), [202.5, 247.5), [157.5, 202.5), [112.5, 157.5)}. In Borelian notation, we obtain {B22.5(90), B22.5(45), B22.5(0), B22.5(315), B22.5(270), B22.5(225), B22.5(180), and B22.5(135)}. Using Formula (3), we find all r = 22.5, and the distance d = 45 between two adjacent directions. Hence, we simplify the distance, which is similar to the conceptual neighborhood diagram.
The direction relation is reflexive. When the direction relation distance surpasses 4, the format DirMaxDirCal is used to compute the relation distance. The final direction relation distances are shown in Table 8.
We employ the direction relation operation to compute the angle value between two objects, map the angle value to an angle interval, obtain the semantic expression, and compute the distance and similarity of the direction relations. The similarity computation formula of the direction relation is as follows:
S i m ( D r 0 , D r 1 ) = 1 d r D r ,
where dr denotes the direction relation distance and Dr denotes the maximal distance.

3.5. Distance Relation Similarity Computation

As discussed in Section 3.4, the inner product contains the angle and distance information. In this section, we compute the distance information. The inner product is C2ga_P1·C2ga_P2 = (e2 + 0.5e + e0)(e1 + 0.5e + e0). Based on the equations e 0 2 = e 2 = 0 and e 0 · e = 1 , the value of the inner product is −1. The Euclidean distance is embedded in the inner product based on the expression a · b = 1 2 d E 2 a , b , and thus, the Euclidean distance is 2 * 1 = 2 .
For two geometric objects A and B, the distance relation operation is implemented as follows. (1) The center points OA and OB of the minimum bounding circles are computed for A and B, respectively. (2) The inner product between OA and OB is computed, and then the distance value can be computed.
In CGA, the distance relation operation is used to compute the distance between two objects. We determine the relation between the quantitative distance value and the distance interval and obtain the semantic distance expression. Using the distance relation table, we can compute the distance relation similarity.
In an actual scene, the distance value range is uncertain. We use the ratio of the specific value and maximal value to represent the distance relation. In this study, we define the distance relation semantics expression as {very close (vc), close (cl), a bit close (abc), commensurate (co), a bit far (abf), far (f), very far (vf)}. The corresponding distance intervals are {[0, 0.1), [0.1, 0.16), [0.16, 0.2), [0.2, 0.3), [0.3, 0.5), [0.5, 0.7), [0.7, ∞)}. In Borelian notation, we obtain {B0.05(0.05), B0.03(0.13), B0.02(0.18), B0.05(0.25), B0.1(0.4), B0.1(0.6), B0.15(0.85)}. The distance relation distances computed by using Formula (3) are shown as Table 9.
The similarity computation formula for the distance relation is as follows:
S i m ( D i s 0 , D i s 1 ) = 1 d s D s ,
where ds denotes the relation distance and Ds denotes the maximal distance.

3.6. Spatial Geometric Similarity Computation

Based on the whole process shown in Figure 1, we designed a retrieval method taking the shape and spatial relations (including topological, direction, and distance relation) into account. During the whole process, we assume that the weights are equivalent for the objects and the spatial relations between them. The topology, direction, and distance relations have the same effect on the spatial relation.
The scenes in Figure 17 are considered as an example. We apply the object shape and spatial relation similarity computation model to analyze the example. For the query scene (a), using the multivector and corresponding relation operations, we obtain the following integrating representation [46] form:
G S a = { A , B + A , C + A , D + A , E + B , C + B , D + B , E + C , D + C , E + D , E }
The shape and spatial relation information are implied in the representation. The related operations including topological relation, direction relation, and distance relation can be called to compute the corresponding relations directly. The topological, direction, and distance relations in the query scene are listed in Table 10, Table 11 and Table 12, respectively.
For the database scene (b), following the same computation strategy, we obtain the topological, direction, and distance relations, as shown in Table 13, Table 14 and Table 15, respectively.
Based on the spatial relations computed by the corresponding operations, the topological, direction, and distance relation similarities between (a) and (b) are STop = (0.75 × 1 + 1 × 9)/10 = 0.975, SDir = (1 × 10)/10 = 1.0, and SDis= ((1 − 0.255/0.806) × 2 + (1 − 0.158/0.806) + 7 × 1.0)/10 = 0.917, respectively. For (a) and (b), the attribute and shape are the same, so the spatial similarity is Sim (a, b) = 1/2 + (STop + SDir + SDis)/6 = 0.968.
In the database scene (c), the different colors represent different attributes, and only object B was different. When taking the shape and spatial relations into consideration, the similarities between (c) and (a) are equal, and both are 1. For the database scene (d), we obtain the spatial relation tables shown in Table 16, Table 17 and Table 18.
Based on the spatial relations computed by corresponding operations, the topological, direction, and distance relation similarities between (a) and (d) are STop = (1 × 10)/10 = 1.0, SDir = ((1 − 0.25) × 3 + (1 − 0.75) × 3 + 1 × 4)/10 = 0.7, and SDis = ((1 − 0.2/0.806) × 2 + (1 − 0.255/0.806) × 1 + (1 − 0.158/0.806) × 1 + 1.0 × 6)/10 = 0.899, respectively. The attributes and shapes of the two scenes are the same, so the shape similarity is 1. Hence, the spatial similarity is Sim (a, d) = 1/2 + (STop + SDir + SDis)/6 = 0.933. According to the computation results, the spatial similarity between (b) and (a) is bigger than that between (d) and (a), so the scene (b) is more similar than (d) to (a).
For the database scene (e), the spatial relations are the same as in the query scene (a). The shape of the object C is different: it is a triangle in (a) and a square in (e). The shape similarity operation is used first to construct a three-tuple representation for the relevant points. For scene (a), the relevant point representations of object C1 are <acute, sl, convex>, <acute, sl, convex>, and <acute, sl, convex>. Similarly, the point representations of object C5 are <right, sl, convex>, <right, sl, convex>, <right, sl, convex>, and <right, sl, convex>. Thus, the shape similarity between C1 and C5 is Sim = ((1 − 32.6/(140.0 × 3)) × 3)/4 = 0.69. Thus, the spatial similarity between scenes (a) and (e) is Sae = 0.5 + ((0.69 + 4)/5)/2 = 0.969. The similarity values between each scene and the query scene are shown in Table 19.

4. Case Study

4.1. Related Background

For resident areas in a city, public transportation stations are common facilities along the roads. Public transportation stations are simplified as point objects, roads as polyline objects, and resident buildings as polygons. The resident areas are spatial geometric scenes with objects of different types. The traditional methods cannot satisfy the retrieval demands for these scenes very well. In this section, we attempt to obtain a unified representation and computation for spatial geometric scenes to overcome the disunity of the representation and complexity of the spatial relation computation.

4.2. Retrieval Process

(1)
An integrating representation model of geographical objects and geographical scenes is developed based on CGA. The model contains the geometric and spatial relation information for the scene. We can call related operations to resolve the information. For example, one query scene is shown in Figure 18. The database scene is shown in Figure 19.
(2)
Objects that satisfy the specified similarity threshold with the scene’s central objects are resolved. Three parameters, i.e., closeness, perimeter, and area, are employed to compute the central objects. The closeness computation formula is as follows:
F o r m F a c t o r = 4 π × A r e a O b j e c t P e r i m e t e r O b j e c t 2 .
The normalization formula is as follows:
V a l = C o m A C o m B M a x M i n .
Reasonable weights for each normalized parameter are assigned, and their weighted sum is calculated as follows:
V a l f i n a l = i = 1 n w Val i i .
(3)
The Voronoi graph and corresponding sub-scenes based on the neighborhood relations are constructed.
(4)
The spatial geometric similarity computation method is used, and then the similarity between each sub-scene and the query scene is obtained. The retrieval results are shown in Figure 20.
The method proposed in this study can be used to retrieve spatial scenes with objects of different types. The retrieval results will be helpful for real estate developers and civilians to retrieve similar spatial geometric scenes. It is of great scientific significance and practical value to conduct spatial scene retrieval.

5. Conclusions

The amount of spatial geometric data in urban scenarios is increasing. In this study, we propose a method of computing the spatial geometric similarity in urban spatial patterns based on CGA. Operations for the shape and spatial relations are constructed using the inner, outer, and geometric products in CGA, and the relation distance tables are developed by means of conceptual neighborhood diagrams and interval distances. Then, the process of spatial geometric similarity computation is designed and realized based on the expression and computation of the object shape and spatial relations between two objects. From the aspects of the spatial object shape, spatial topology, direction, and distance between two objects, the spatial geometric similarity is evaluated more completely, which is important in the field of spatial data retrieval. In further research, on the one hand, semantic similarity should be taken into consideration for spatial similarity computation. The relations between the topology, direction, and distance can be deduced before the spatial similarity computation to improve the retrieval efficiency. On the other hand, we will adopt some computation strategies, such as parallel computing using MapReduce, to improve the efficiency. The method proposed in this paper can carry out comprehensive quantitative calculation by integrating spatial topology, direction, distance, and spatial object, which has important reference significance for urban planning and city site selection, providing a new perspective for spatial planning.

Author Contributions

Writing—original draft, X.J.; Writing—review & editing, Y.H. and F.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China grant number 41471313.

Data Availability Statement

The data is not available due to legal restrictions. The authors of this study did not agree for their data to be shared publicly, so supporting data is not available.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hongbo, L.; David, H.; Alyn, R. Geometric Computing with Clifford Algebras; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2001. [Google Scholar]
  2. Bruns, T.; Egenhofer, M. Similarity of spatial scenes. In Proceedings of the Seventh International Symposium on Spatial Data Handling, Delft, The Netherlands, 12–16 August 1996; pp. 31–42. [Google Scholar]
  3. Goldstone, R.L.; Medin, D.L.; Gentner, D. Relational similarity and the nonindependence of features in similarity judgments. Cogn. Psychol. 1991, 23, 222–262. [Google Scholar] [CrossRef]
  4. Zhang, D.; Chen, Z.; Xie, Z. Spatial Scenes Matching with on Relaxation Labeling Approach. Geomat. Inf. Sci. Wuhan Univ. 2018, 43, 752–758. [Google Scholar]
  5. He, B.; Wang, D.; Chen, C. A novel method for mineral prospectivity mapping integrating spatial-scene similarity and weights-of-evidence. Earth Sci. Inform. 2015, 8, 393–409. [Google Scholar] [CrossRef]
  6. Tang, M.; Falomir, Z.; Sheng, Y. A Multilevel Road Alignment Model for Spatial-Query-by-Sketch. Appl. Sci. 2020, 10, 7685. [Google Scholar] [CrossRef]
  7. Wang, C.; Stefanidis, A.; Agouris, P. Spatial content-based scene similarity assessment. ISPRS J. Photogramm. Remote Sens. 2012, 69, 103–120. [Google Scholar] [CrossRef]
  8. Holt, A.; Benwell, G. Using spatial similarity for exploratory spatial data analysis: Some directions. In Proceedings of the the 2nd International Conference on GeoComputation, University of Otago, Dunedin, New Zealand, 26–29 August 1997; pp. 279–288. [Google Scholar]
  9. Kuijpers, B.; Moelans, B.; Van de Weghe, N. Qualitative polyline similarity testing with applications to query-by-sketch, indexing and classification. In Proceedings of the 14th Annual ACM International Symposium on Advances in Geographic Information Systems, Arlington, VA, USA, 10–11 November 2006; pp. 11–18. [Google Scholar]
  10. Gottfried, B. Qualitative similarity measures—The case of two-dimensional outlines. Comput. Vis. Image Underst. 2008, 110, 117–133. [Google Scholar] [CrossRef]
  11. Shapiro, L.G.; Moriarty, J.D.; Mulgaonkar, P.G.; Haralick, R.M. Sticks, Plates, and Blobs: A Three-Dimensional Object Representation for Scene Analysis. In Proceedings of the AAAI, Stanford, CA, USA, 18–21 August 1980. [Google Scholar]
  12. Richards, W.; Hoffman, D.D. Codon constraints on closed 2D shapes. Comput. Vis. Graph. Image Process. 1985, 31, 265–281. [Google Scholar] [CrossRef]
  13. Holt, A. Spatial similarity and GIS: The grouping of spatial kinds. In Proceedings of the Eleventh Annual Colloquium of the Spatial Information Research Center (SIRC05), Dunedin, New Zealand, 13–15 December 1999; pp. 241–250. [Google Scholar]
  14. Papadias, D. Processing fuzzy spatial queries: A configuration similarity approach. Int. J. Geogr. Inf. Sci. 1999, 13, 93–118. [Google Scholar] [CrossRef]
  15. Nedas, K.A.; Egenhofer, M.J. Spatial-scene similarity queries. Trans. GIS 2008, 12, 661–681. [Google Scholar] [CrossRef]
  16. Chen, Z.; Zhu, R.; Xie, Z.; Wu, L. Hierarchical model for the similarity measurement of a complex holed-region entity scene. ISPRS Int. J. Geo-Inf. 2017, 6, 388. [Google Scholar] [CrossRef]
  17. Yang, F.; Wang, Z.; Yan, H.; Lu, X. Geometric Similarity Measurement Method for Micro Scene Generalization. Appl. Sci. 2022, 12, 628. [Google Scholar] [CrossRef]
  18. Liao, W.; Hou, D.; Jiang, W. An approach for a spatial data attribute similarity measure based on granular computing closeness. Appl. Sci. 2019, 9, 2628. [Google Scholar] [CrossRef]
  19. Chehreghan, A.; Ali Abbaspour, R. An assessment of spatial similarity degree between polylines on multi-scale, multi-source maps. Geocarto Int. 2017, 32, 471–487. [Google Scholar] [CrossRef]
  20. Yan, H.; Shen, Y.; Li, J. Approach to calculating spatial similarity degrees of the same river basin networks on multi-scale maps. Geocarto Int. 2016, 31, 765–782. [Google Scholar] [CrossRef]
  21. Xu, Y.; Xie, Z.; Chen, Z.; Xie, M. Measuring the similarity between multipolygons using convex hulls and position graphs. Int. J. Geogr. Inf. Sci. 2021, 35, 847–868. [Google Scholar] [CrossRef]
  22. Xiao, J.; He, Z. A Novel Approach to Semantic Similarity Measurement Based on a Weighted Concept Lattice: Exemplifying Geo-Information. ISPRS Int. J. Geo-Inf. 2017, 6, 348. [Google Scholar] [CrossRef]
  23. Batet, M. Ontology-based semantic clustering. AI Commun. 2011, 24, 291–292. [Google Scholar] [CrossRef]
  24. Moreno, A.; Valls, A.; Martinez, S.; Vicient, C.; Marin, L.; Mata, F. Personalised recommendations based on novel semantic similarity and clustering procedures. AI Commun. 2015, 28, 127–142. [Google Scholar] [CrossRef]
  25. Li, W.; Raskin, R.; Goodchild, M.F. Semantic similarity measurement based on knowledge mining: An artificial neural net approach. Int. J. Geogr. Inf. Sci. 2012, 26, 1415–1435. [Google Scholar] [CrossRef]
  26. Clifford, P. Applications of Grassmann’s extensive algebra. Am. J. Math. 1878, 1, 350–358. [Google Scholar] [CrossRef]
  27. Dorst, L.; Fontijne, D.; Mann, S. Geometric Algebra for Computer Science: An Object-Oriented Approach to Geometry; Elsevier: Amsterdam, The Netherlands, 2010. [Google Scholar]
  28. Lasenby, J.; Fitzgerald, W.J.; Lasenby, A.N.; Doran, C. New geometric methods for computer vision: An application to structure and motion estimation. Int. J. Comput. Vis. 1998, 26, 191–213. [Google Scholar] [CrossRef]
  29. Hildenbrand, D. Foundations of geometric algebra computing. In Proceedings of the AIP Conference Proceedings, Philadelphia, PA, USA, 1–2 August 2012; pp. 27–30. [Google Scholar]
  30. Hestenes, D.; Sobczyk, G. Clifford Algebra to Geometric Calculus: A Unified Language for Mathematics and Physics; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012; Volume 5. [Google Scholar]
  31. Doran, C.; Gullans, S.R.; Lasenby, A.; Lasenby, J.; Fitzgerald, W. Geometric Algebra for Physicists; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  32. Pavšič, M. Clifford space as a generalization of spacetime: Prospects for QFT of Point Particles and Strings. Found. Phys. 2005, 35, 1617–1642. [Google Scholar] [CrossRef]
  33. Cameron, J.; Lasenby, J. Oriented conformal geometric algebra. Adv. Appl. Clifford Algebras 2008, 18, 523–538. [Google Scholar] [CrossRef]
  34. Hughes, J.F. Oriented Projective Geometry: A Framework for Geometric Computations (Jorge Stolfi). SIAM Rev. 1993, 35, 321–323. [Google Scholar] [CrossRef]
  35. Fuchs, L.; Théry, L. Implementing geometric algebra products with binary trees. Adv. Appl. Clifford Algebras 2014, 24, 589–611. [Google Scholar] [CrossRef]
  36. Yuan, L.; Lü, G.; Luo, W.; Yu, Z.; Yi, L.; Sheng, Y. Geometric algebra method for multidimensionally-unified GIS computation. Chin. Sci. Bull. 2012, 57, 802–811. [Google Scholar] [CrossRef]
  37. Yuan, L.; Yu, Z.; Chen, S.; Luo, W.; Wang, Y.; Lü, G. CAUSTA: Clifford algebra-based unified spatio-temporal analysis. Trans. GIS 2010, 14, 59–83. [Google Scholar] [CrossRef]
  38. Yuan, L.; Yu, Z.; Luo, W.; Hu, Y.; Feng, L.; Zhu, A.-X. A hierarchical tensor-based approach to compressing, updating and querying geospatial data. IEEE Trans. Knowl. Data Eng. 2014, 27, 312–325. [Google Scholar] [CrossRef]
  39. Yuan, L.; Yu, Z.; Luo, W.; Yi, L.; Hu, Y. Pattern forced geophysical vector field segmentation based on Clifford FFT. Comput. Geosci. 2013, 60, 63–69. [Google Scholar] [CrossRef]
  40. Yuan, L.; Yu, Z.; Luo, W.; Yi, L.; Lü, G. Geometric algebra for multidimension-unified geographical information system. Adv. Appl. Clifford Algebras 2013, 23, 497–518. [Google Scholar] [CrossRef]
  41. Yuan, L.; Yu, Z.; Luo, W.; Yi, L.; Lü, G. Multidimensional-unified topological relations computation: A hierarchical geometric algebra-based approach. Int. J. Geogr. Inf. Sci. 2014, 28, 2435–2455. [Google Scholar] [CrossRef]
  42. Yuan, L.; Yu, Z.; Luo, W.; Zhang, J.; Hu, Y. Clifford algebra method for network expression, computation, and algorithm construction. Math. Methods Appl. Sci. 2014, 37, 1428–1435. [Google Scholar] [CrossRef]
  43. LÜ, G.; YUAN, L.; YU, Z.; LUO, W.; ZHOU, L.; YAN, Z. Role of Geometric Algebra in High Dimensional Space Representation of Geographic Information. Geomat. Inf. Sci. Wuhan Univ. 2020, 45, 1328–1333. [Google Scholar]
  44. Li, S. Research on Formal Expression and Parallel Computation of Spatial Relations Based on Conformal Geometric Algebra; Nanjing Normal University: Nanjing, China, 2021. [Google Scholar]
  45. Zhang, J.-Y.; Yin, P.-C.; Li, G.; Shi, Z.-F.; Liu, Y.-Z.; Yu, J.-Y. Study on Construction for the Three-Dimensional Cadastral Data Model Based on Conformal Geometric Algebra. Geogr. Geo-Inf. Sci. 2018, 5, 20. [Google Scholar] [CrossRef]
  46. Zhang, F.; Jiang, X.; Zhang, X.; Wang, Y.; Du, Z.; Liu, R. Unified spatial intersection algorithms based on conformal geometric algebra. Math. Probl. Eng. 2016, 2016. [Google Scholar] [CrossRef]
  47. Zong, Z. Spatial Relationship Expression and Computation Model Based on the Geometric Algebra; Nanjing Normal University: Nanjing, China, 2013. [Google Scholar]
  48. Chen, M. Study on Spatio-Temporal Topological Relationship Expression and Computation Based on Conformal Geometric Algebra; Zhejiang University: Hangzhou, China, 2014. [Google Scholar]
  49. Hongbo, L. Conformal geometric algebra-a new framework for computational geometry. J. Comput. Aided Des. Comput. Graph. 2005, 17, 2383. [Google Scholar]
  50. Falomir, Z.; Gonzalez-Abril, L.; Museros, L.; Ortega, J.A. Measures of similarity between objects based on qualitative shape descriptions. Spat. Cogn. Comput. 2013, 13, 181–218. [Google Scholar] [CrossRef]
  51. González Abril, L.; Velasco Morente, F.; Angulo, C.; Ortega Ramírez, J.A.; Ruiz Vegas, F. Sobre núcleos, distancias y similitudes entre intervalos. Intel. Artif. 2004, 8, 111–117. [Google Scholar] [CrossRef]
  52. Hildenbrand, D.; Benger, W.; Zhaoyuan, Y. Analyzing the inner product of 2 circles with Gaalop. Math. Methods Appl. Sci. 2018, 41, 4049–4062. [Google Scholar] [CrossRef]
Figure 1. Spatial geometric similarity retrieval process.
Figure 1. Spatial geometric similarity retrieval process.
Ijerph 19 10807 g001
Figure 2. Sketch of shape parameter computation.
Figure 2. Sketch of shape parameter computation.
Ijerph 19 10807 g002
Figure 3. Topological relations between two points.
Figure 3. Topological relations between two points.
Ijerph 19 10807 g003
Figure 4. Conceptual neighborhood diagram of topological relations between two points.
Figure 4. Conceptual neighborhood diagram of topological relations between two points.
Ijerph 19 10807 g004
Figure 5. Topological relations between a point and a line segment.
Figure 5. Topological relations between a point and a line segment.
Ijerph 19 10807 g005
Figure 6. Conceptual neighborhood diagram of topological relations between a point and a line segment.
Figure 6. Conceptual neighborhood diagram of topological relations between a point and a line segment.
Ijerph 19 10807 g006
Figure 7. Topological relations between a point and a polygon.
Figure 7. Topological relations between a point and a polygon.
Ijerph 19 10807 g007
Figure 8. Conceptual neighborhood diagram of topological relations between a point and a polygon.
Figure 8. Conceptual neighborhood diagram of topological relations between a point and a polygon.
Ijerph 19 10807 g008
Figure 9. Topological relations between two line segments.
Figure 9. Topological relations between two line segments.
Ijerph 19 10807 g009
Figure 10. Conceptual neighborhood diagram of topological relations between two line segments.
Figure 10. Conceptual neighborhood diagram of topological relations between two line segments.
Ijerph 19 10807 g010
Figure 11. Topological relations between a line segment and a polygon.
Figure 11. Topological relations between a line segment and a polygon.
Ijerph 19 10807 g011
Figure 12. Conceptual neighborhood diagram of topological relations between a line segment and a polygon.
Figure 12. Conceptual neighborhood diagram of topological relations between a line segment and a polygon.
Ijerph 19 10807 g012
Figure 13. Topological relations between two polygons.
Figure 13. Topological relations between two polygons.
Ijerph 19 10807 g013
Figure 14. Conceptual neighborhood diagram of topological relations between two polygons.
Figure 14. Conceptual neighborhood diagram of topological relations between two polygons.
Ijerph 19 10807 g014
Figure 15. Inner product. (a) Inner product between two vectors; (b) Inner product between one vector and one plane.
Figure 15. Inner product. (a) Inner product between two vectors; (b) Inner product between one vector and one plane.
Ijerph 19 10807 g015
Figure 16. Relation graph between direction relation semantic expression and angle value.
Figure 16. Relation graph between direction relation semantic expression and angle value.
Ijerph 19 10807 g016
Figure 17. (a) Query scene. (be) Database scenes.
Figure 17. (a) Query scene. (be) Database scenes.
Ijerph 19 10807 g017
Figure 18. One query scene.
Figure 18. One query scene.
Ijerph 19 10807 g018
Figure 19. Database scene.
Figure 19. Database scene.
Ijerph 19 10807 g019
Figure 20. Retrieval results.
Figure 20. Retrieval results.
Ijerph 19 10807 g020
Table 1. Angle relation distances.
Table 1. Angle relation distances.
Very AcuteAcuteRightObtuseVery Obtuse
Very acute0.042.671.697.5140.0
Acute42.60.032.655.097.5
Right71.632.60.032.671.6
Obtuse97.555.032.60.042.6
Very obtuse140.097.571.642.60.0
Table 2. Length ratio relation distances.
Table 2. Length ratio relation distances.
mshhlabshslabldlml
msh0.000.320.550.811.321.806.95
hl0.320.000.250.501.041.506.75
absh0.550.250.000.250.791.256.52
sl0.810.500.250.000.581.006.35
abl1.321.040.790.580.000.585.77
dl1.801.501.251.000.580.005.59
ml6.956.756.526.355.775.590.00
Table 3. Topological relation distances between a point and a line segment.
Table 3. Topological relation distances between a point and a line segment.
Point–Linepl-Disjointpl-Touchpl-Inside
pl-disjoint012
pl-touch101
pl-inside210
Table 4. Topological relation distances between a point and a polygon.
Table 4. Topological relation distances between a point and a polygon.
Point–Polygonps-Disjointps-Touchps-Inside
ps-disjoint012
ps-touch101
ps-inside210
Table 5. Topological relation distances between two line segments.
Table 5. Topological relation distances between two line segments.
Line–Linell-Disjointll-Touchll-Overlapll-Equalll-Containsll-Inside
ll-disjoint012344
ll-touch101233
ll-overlap210122
ll-equal321011
ll-contains432102
ll-inside432120
Table 6. Topological relation distance between a line segment and a polygon.
Table 6. Topological relation distance between a line segment and a polygon.
Line–Polygonls-Disjointls-Touchls-Overlapls-Inside
ls-disjoint0123
ls-touch1012
ls-overlap2101
ls-inside3210
Table 7. Topological relation distances between a line segment and a polygon.
Table 7. Topological relation distances between a line segment and a polygon.
Polygon–Polygonss-Disjointss-Touchss-Overlapss-Coversss-Covered-byss-Containsss-Insidess-Equal
ss-disjoint01233443
ss-touch10122332
ss-overlap21011221
ss-covers32102121
ss-covered-by32120211
ss-contains43212021
ss-inside43221201
ss-equal32111110
Table 8. Direction relation distance.
Table 8. Direction relation distance.
NNEESESSWWNW
N01234321
NE10123432
E21012343
SE32101234
S43210123
SW34321012
W23432101
NW12343210
Table 9. Distance relation distance.
Table 9. Distance relation distance.
Length × Δvcclabccoabffvf
vc0.0000.0820.1330.2000.3540.5520.806
cl0.0820.0000.0510.1220.2790.4750.730
abc0.1330.0510.0000.0760.2340.4280.682
co0.2000.1220.0760.0000.1580.3540.608
abf0.3540.2790.2340.1580.0000.2000.453
f0.5520.4750.4280.3540.2000.0000.255
vf0.8060.7300.6820.6080.4530.2550.000
Table 10. Topological relations in the query scene (a) in Figure 17.
Table 10. Topological relations in the query scene (a) in Figure 17.
A1B1C1D1E1
A1ss-equalss-touchss-disjointss-disjointss-disjoint
B1ss-touchss-equalss-disjointss-disjointss-disjoint
C1ss-disjointss-disjointss-equalss-disjointss-disjoint
D1ss-disjointss-disjointss-disjointss-equalss-touch
E1ss-disjointss-disjointss-disjointss-touchss-equal
Table 11. Direction relations in the query scene (a) in Figure 17.
Table 11. Direction relations in the query scene (a) in Figure 17.
A1B1C1D1E1
A1ONWWSWW
B1SEOWSWSW
C1EEOSES
D1NENENWOW
E1ENENEO
Table 12. Distance relations in the query scene (a) in Figure 17.
Table 12. Distance relations in the query scene (a) in Figure 17.
A1B1C1D1E1
A1/abfvfvfvf
B1abf/vffvf
C1vfvf/ff
D1vfff/co
E1vfvffco/
Table 13. Topological relations in the database scene (b) in Figure 17.
Table 13. Topological relations in the database scene (b) in Figure 17.
A2B2C2D2E2
A2ss-equalss-touchss-disjointss-disjointss-disjoint
B2ss-touchss-equalss-disjointss-disjointss-disjoint
C2ss-disjointss-disjointss-equalss-disjointss-disjoint
D2ss-disjointss-disjointss-disjointss-equalss-disjoint
E2ss-disjointss-disjointss-disjointss-disjointss-equal
Table 14. Direction relations in the database scene (b) in Figure 17.
Table 14. Direction relations in the database scene (b) in Figure 17.
A2B2C2D2E2
A2ONWWSWW
B2SEOWSWSW
C2EEOSES
D2NENENWOW
E2ENENEO
Table 15. Distance relations in the database scene (b) in Figure 17.
Table 15. Distance relations in the database scene (b) in Figure 17.
A2B2C2D2E2
A2/abfvffvf
B2abf/vffvf
C2vfvf/vff
D2ffvf/abf
E2vfvffabf/
Table 16. Topological relations in the database scene (d) in Figure 17.
Table 16. Topological relations in the database scene (d) in Figure 17.
A4B4C4D4E4
A4ss-equalss-touchss-disjointss-disjointss-disjoint
B4ss-touchss-equalss-disjointss-disjointss-disjoint
C4ss-disjointss-disjointss-equalss-disjointss-disjoint
D4ss-disjointss-disjointss-disjointss-equalss-touch
E4ss-disjointss-disjointss-disjointss-touchss-equal
Table 17. Direction relations in the database scene (d) in Figure 17.
Table 17. Direction relations in the database scene (d) in Figure 17.
A4B4C4D4E4
A4ONWWWW
B4SEONEWW
C4ESWONNW
D4EESOW
E4EESEEO
Table 18. Distance relations in the database scene (d) in Figure 17.
Table 18. Distance relations in the database scene (d) in Figure 17.
A4B4C4D4E4
A4/abfvfvfvf
B4abf/vfabff
C4vfvf/abff
D4vfabfabf/abf
E4vfffabf/
Table 19. Geometric similarity values between each scene and query scene.
Table 19. Geometric similarity values between each scene and query scene.
Sa-SbSa-ScSa-SdSa-Se
Similarity Value0.9681.0000.9330.969
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jiang, X.; Huang, Y.; Zhang, F. Study on Spatial Geometric Similarity Based on Conformal Geometric Algebra. Int. J. Environ. Res. Public Health 2022, 19, 10807. https://doi.org/10.3390/ijerph191710807

AMA Style

Jiang X, Huang Y, Zhang F. Study on Spatial Geometric Similarity Based on Conformal Geometric Algebra. International Journal of Environmental Research and Public Health. 2022; 19(17):10807. https://doi.org/10.3390/ijerph191710807

Chicago/Turabian Style

Jiang, Xiaomin, Yangfei Huang, and Feng Zhang. 2022. "Study on Spatial Geometric Similarity Based on Conformal Geometric Algebra" International Journal of Environmental Research and Public Health 19, no. 17: 10807. https://doi.org/10.3390/ijerph191710807

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop