<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Conflating linear features using turning function distance: A new orientation‐sensitive similarity measure</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>06/01/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10308762</idno>
					<idno type="doi">10.1111/tgis.12726</idno>
					<title level='j'>Transactions in GIS</title>
<idno>1361-1682</idno>
<biblScope unit="volume">25</biblScope>
<biblScope unit="issue">3</biblScope>					

					<author>Ting L. Lei</author><author>Rongrong Wang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Measuring the similarity between counterpart geospatial features is crucial in the effective conflation of spatial datasets from difference sources. This article proposes a new similarity metric called the "map turning function distance" (MTFD) for matching linear features such as roads based on the well-known turning function (TF) distance in computer vision. The MTFD overcomes the limitations of the traditional TF distance, such as the inability to handle partial matches and insensitivity to differences in scale and rotation. In particular, the MTFD allows one to: (a) partially match a linear feature to a portion of a larger feature from a certain position of match; and (b) consider both the shape and orientation differences of polylines based on comparing their turning angles. In finding the best match position, we prove that the optimal position can be found among a finite set of positions on the target feature. We then combine the MTFD with widely used point-offset distances such as the Hausdorff distance to form a composite similarity metric. Our experiments with real road datasets demonstrate that the new metric has greater discriminative power than traditional point-offset-based similarity measures, and significantly improves the precision of two tested conflation models.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">| INTRODUC TI ON</head><p>Conflation is needed in a wide range of spatial analyses because data about a spatial phenomenon are often produced by different agencies and vendors, each with a different role and scope. Take road networks for example.</p><p>Public agencies such as the U.S. Census and the U.S. Geological Survey maintain regularly updated databases such as TIGER/Line (with rich socioeconomic attributes). Private companies such as TomTom and HERE provide network datasets for navigation and planning purposes, with better geometric accuracy and attributes of transportation infrastructure. Open data projects, such as OpenStreetMap (OSM), have made an increasingly richer set of data available as volunteered geographic information (VGI). Transportation research often needs comprehensive information from all these sources in order to study travel behavior, predict traffic flow, and develop future policies and plans. For this reason, conflation has an important role in transportation studies.</p><p>In conflating linear features such as road segments, a fundamental question is how to effectively measure the similarity between features. Traditionally, offset-based metrics, such as the Hausdorff distance, have been used widely to measure the difference between coordinates of a pair of features (e.g., <ref type="bibr">Chehreghan &amp; Abbaspour, 2017b;</ref><ref type="bibr">Li &amp; Goodchild, 2010</ref><ref type="bibr">, 2011;</ref><ref type="bibr">Tong, Liang, &amp; Jin, 2014;</ref><ref type="bibr">Xavier, Ariza-L&#243;pez, &amp; Ure&#241;a-C&#225;mara, 2016)</ref>. However, Hausdorff-like distances can be unstable, especially in matching small features. As will be discussed in the next section, due to its size, a small linear feature can often be matched to any nearby polylines without regard to its shape and orientation, resulting in erroneous matches.</p><p>In this article, we propose to measure the (dis)similarity between two linear features by considering their angular differences in terms of shape (deformation) and orientation (rotation), respectively. Inspired by the standard turning function (TF) distance <ref type="bibr">(Arkin, Chew, Huttenlocher, Kedem, &amp; Mitchell, 1991)</ref> between polygons, we develop an orientation-sensitive "map turning function distance" (MTFD) for measuring the discrepancies of linear features in terms of angular differences. We prove that the correct shape deformation and rotation can be found by evaluating the difference of directional angles at a finite number of match positions on the target feature (called critical event positions). We then combine the new angular similarity measure with the conventional offset-based Hausdorff distance. We evaluate the effectiveness of the combined similarity measure with case studies and performance tests using two open datasets in Santa Barbara, CA from OSM and TIGER/Line, respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">| BACKG ROU N D</head><p>In this section, we briefly review related work and concepts for linear feature conflation, with a focus on geometric similarity measures and typical match-selection methods. The interested reader is referred to <ref type="bibr">Ruiz, Ariza, Ure&#241;a, and Bl&#225;zquez (2011)</ref> and <ref type="bibr">Xavier et al. (2016)</ref> for comprehensive reviews on other aspects of the conflation problem.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">| Measures of similarity between features</head><p>A fundamental concept for matching geographic features is the closeness or similarity between a pair of features.</p><p>It indicates the likelihood that the two features may belong to the same object in reality. Effective conflation relies on good similarity measures, since a conflation method may produce very different results depending on the measures used <ref type="bibr">(Xavier et al., 2016)</ref>. Numerous similarity measures have been developed in the literature based on the geometries, attributes, or spatial contexts of geographic features, with geometric and attribute-based similarity measures <ref type="bibr">(Xavier et al., 2016)</ref> being the most commonly used methods.</p><p>A straightforward way of measuring the geometric similarity of two features is to compute a certain geometric property for each feature and compare the difference in that geometric property. For example, <ref type="bibr">Zhang et al. (2012)</ref> used geometric properties including size, shape, and orientation to match polygons of building footprints. Each geometric property is described by a number (or index). This includes a shape index based on well-known compactness measures <ref type="bibr">(MacEachren, 1985;</ref><ref type="bibr">Wentz, 1997)</ref>, an orientation index based on a statistical weighting method <ref type="bibr">(Duch&#234;ne et al., 2003;</ref><ref type="bibr">Zhang et al., 2012)</ref>, and the size of the polygon itself. For each index, the dissimilarity between two building polygons is then computed as either the difference or the ratio between their values of the index. Similarly, Yang, <ref type="bibr">Zhang, and Luan (2013)</ref> have used the length and orientation of linear features to match roadways. Other scholars have used geometric properties including size <ref type="bibr">(Tang, Hao, Zhao, &amp; Li, 2008)</ref>, bounding box <ref type="bibr">(Tong, Shi, &amp; Deng, 2009)</ref>, and inertial axis to compare geographic features.</p><p>A potential limitation of geometric property-based methods is that the geometry of each feature is reduced to a single number on an individual basis, and specific information about the geometry may be lost before the comparison. For example, <ref type="bibr">Wentz (1997)</ref> found that geometries with very different shapes can have near-identical compactness measures. Researchers <ref type="bibr">(Tang et al., 2008;</ref><ref type="bibr">Yang et al., 2013;</ref><ref type="bibr">Zhang et al., 2012)</ref> often find it necessary to use other similarity metrics such as positional similarity to support the matching process <ref type="bibr">(Xavier et al., 2016)</ref>.</p><p>Similarity can also be computed directly from the coordinates of two geometries. For example, the similarity between two areal features can be computed based on their percentage overlap <ref type="bibr">(Ruiz-Lend&#237;nez, Ariza-L&#243;pez, &amp; Ure&#241;a-C&#225;mara, 2013)</ref>. This polygon overlap method may also be used to measure the similarity of two linear features if their buffer polygons are generated first and then compared. This leads to the simple buffer method (SBM) of <ref type="bibr">Goodchild and Hunter (1997)</ref>. In a similar vein, one can employ various distance metrics between features to measure similarity. The simplest example is the Euclidean distance, which has been widely used to match point features <ref type="bibr">(Beeri, Kanza, Safra, &amp; Sagiv, 2004)</ref>. More complex distance metrics are required to match linear and areal features. Considering the relevance to the proposed method, in the sequel, we introduce three types of distance measures: point-offset distance, shape-based, and orientation-based distances.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.1">| Point-offset distance measures</head><p>A type of generic geometric similarity for points, lines, and polygons is pointwise offset-based distances such as the widely used Hausdorff distance <ref type="bibr">(Chehreghan &amp; Abbaspour, 2017b;</ref><ref type="bibr">Li &amp; Goodchild, 2010</ref><ref type="bibr">, 2011;</ref><ref type="bibr">Tong et al., 2014;</ref><ref type="bibr">Xavier et al., 2016)</ref>. The directed Hausdorff distance H d (A, B) from a feature A to a second feature B is: Pointwise distance measures such as the Hausdorff or Frechet distance may be incomplete. If a linear feature is very short, it may be matched to many neighboring features with very different shapes and orientations by the Hausdorff distance. Figure <ref type="figure">1</ref> presents an example of matching roads in two street networks near Alameda Avenue, Santa Barbara, CA. The two street networks are from OSM (in green) and the U.S. Census TIGER/Line (red), respectively. Figure <ref type="figure">1</ref> demonstrates the matches between roads using the offset-based directed Hausdorff distance and a conflation model to be discussed in Section 3. Each arrow represents a partial match-that is, the source feature corresponds to a part of the target feature. We can observe many partial matches near Alameda Avenue here because it was divided into many small segments in the OSM data (green), but it was represented as one polyline in the TIGER/Line data (red).</p><p>Moreover, we can observe that a fire lane in the OSM network is matched to Alameda Avenue in the TIGER/ Line network. Clearly, this match is incorrect (rendered as a yellow arrow in Figure <ref type="figure">1</ref>) as the fire lane has very different shape (and orientation) to Alameda Avenue. Yet an offset-based similarity metric such as the Hausdorff</p><p>distance would not be able to tell, because the fire lane is a small feature with a total length of about 150 m (or effectively 70 m considering the fact that it is almost a double line). The directed Hausdorff distance from the fire lane to Alameda Avenue will be 70 m at most, which is comparable to the normal positional displacement between real corresponding features (such as the polylines representing Verona Avenue nearby).</p><p>Figure <ref type="figure">2a</ref> presents the specific computation of the directed Hausdorff distance from the geometry of the fire lane to that of Alameda Avenue in Figure <ref type="figure">1</ref>. The directed Hausdorff distance (53.66 m) is the distance from the dead-end loop of the fire lane to its nearest point on Alameda Avenue. Figure <ref type="figure">2b</ref> presents the directed Hausdorff distance in the opposite direction, from Alameda Avenue to the fire lane. We can observe that the directed Hausdorff distance in this direction is much larger (216.97 m). The large directed-distance value in Figure <ref type="figure">2b</ref> indicates correctly that the geometry of Alameda Avenue is unlikely to correspond to a part of the fire lane. The relatively small distance value in Figure <ref type="figure">2a</ref>, however, is misleading. One may be led to believe that the fire lane corresponds to a part of Alameda Avenue, even though they look different. Clearly, the difference in shape and orientation here should be accounted for during the matching process.</p><p>In addition to the Hausdorff distance, the Frechet distance <ref type="bibr">(Alt &amp; Godau, 1995;</ref><ref type="bibr">Eiter &amp; Mannila, 1994)</ref> is also based on pointwise offset. Also known as the dog-leashing distance, it is defined to be the minimum length of a leash that allows a dog and its owner to walk along their respective paths without backtracking <ref type="bibr">(Chambers et al., 2010)</ref>. The Frechet distance is better at differentiating certain circuitous curves but is also more expensive computationally. It has been used in GIS for matching coast lines <ref type="bibr">(Mascret, Devogele, Le Berre, &amp; H&#233;naff, 2006)</ref> and other linear features <ref type="bibr">(Devogele, 2002)</ref>.</p><p>F I G U R E 1 An incorrect match (yellow arrow) of roads caused by insensitivity to shape and direction using Hausdorff distances. Blue arrows represent correct matches</p><p>In solving the gateway shortest-path problem, researchers have studied the similarity of alternative paths <ref type="bibr">(Lombard &amp; Church, 1993;</ref><ref type="bibr">Matisziw &amp; Demir, 2016)</ref> between a fixed origin-destination pair in one network dataset. The spatial difference between two paths is measured either as the total area separating the two paths or as two paths' average area of deviation between their unshared portions. Two paths may share certain network nodes, and the areal deviation in these shared portions is counted as zero.</p><p>These methods address a different problem from conflation. While conflation aims to match two heterogeneous datasets, the above methods are aimed at finding the deviation of paths in one dataset. In conflation, counterpart polylines from two different data sources rarely have any shared portion. However, the areal deviation metrics are similar to the Hausdorff and Frechet distances in that they all measure deviation. Their difference is that the areal deviation metrics measure the accumulated or average deviation while the Hausdorff distance or Frechet distance measures the worst-case deviation. Neither the Hausdorff distance nor the areal deviation metrics consider angular differences as we do in this article. Therefore, they may be insensitive to shape differences in Figure <ref type="figure">2a</ref>. In addition, the areal deviation metrics are defined between a fixed pair of origin and destination and imply a one-to-one comparison between two lines. Partial matching is therefore not accounted for.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.2">| Shape measures</head><p>Shape is another criterion that can be used to tell the difference between linear features. The standard TF distance <ref type="bibr">(Arkin et al., 1991)</ref> was designed to compare shapes of two polygons that may be in different orientations and scales. <ref type="bibr">Frank and Ester (2006)</ref> used the TF distance to evaluate the quality of generalized maps. <ref type="bibr">Li, Li, and Xie (2017)</ref> used the TF distance to evaluate the difference between different generalizations of a building's footprint that they produced using a "morphing" algorithm. The possibility of using the TF distance to measure polyline similarity was also discussed by <ref type="bibr">Zhang (2009)</ref> and <ref type="bibr">Chehreghan and Abbaspour (2017a)</ref>, but no experimental results are reported.</p><p>The turning function is a function for describing the shapes of objects using cumulative turning angles. In the function, the angles between the segments of a polygon's boundary and the horizontal axis are accumulated over the length of the boundary lines. The lengths of the two boundary lines are typically scaled to 1 (unit length) and F I G U R E 2 Directed Hausdorff distances between the fire lane (OSM) and Alameda Avenue (TIGER) in Figure <ref type="figure">1</ref>: (a) from OSM to TIGER; and (b) from TIGER to OSM the area between the cumulative functions of two lines is defined to be their shape dissimilarity. The area is computed as the accumulated L p distance of the TF over the unit length, with L 2 distance being used originally <ref type="bibr">(Arkin et al., 1991)</ref>. <ref type="bibr">Zhang (2009)</ref> and <ref type="bibr">Chehreghan and Abbaspour (2017a)</ref> described the formula of the shape dissimilarity measure between polylines A and B (using L 1 distance) as shown in Equation ( <ref type="formula">1</ref>):</p><p>In the above, A (s) is the turning function of polyline A; t is the position in percentage length for a point on A measured from the starting point of A. Of note is that this definition assumes that the two polylines to be compared are approximately of the same length, and are scaled to unit length. The comparison of turning angles is therefore performed on the unit interval [0, 1]. This assumption may not hold if one polyline is a (proper) part of the other (or in a partial match situation in Figure <ref type="figure">1</ref>). As will be discussed in Section 3, we allow the features with different lengths to be compared in the proposed MTFD distance, and overcome the scale-insensitivity by not rescaling the line features at all.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.3">| Orientation measures</head><p>Orientation is another useful geometric property for measuring the similarity between polylines <ref type="bibr">(Zhang, 2009)</ref> and polygons <ref type="bibr">(Duch&#234;ne et al., 2003;</ref><ref type="bibr">Zhang et al., 2012)</ref>. According to <ref type="bibr">Zhang (2009)</ref>, the orientation difference between two polylines A and B can be calculated by where A , B are orientations of A and B; v A is the vector from the starting point of polyline A to its end point; and v B is a similar vector for polyline B. This definition of orientation difference is effective when two polylines are relatively straight. However, when they are curved, this definition will be problematic as it does not reflect variation of directions within each polyline. Moreover, this definition may not be suitable for the partial matching of a shorter polyline to a longer one to which it "belongs" (Figure <ref type="figure">1</ref>). As we will demonstrate in Section 3, a more subtle definition of orientation difference (or rotation) is needed for the partial matching of polylines. We will show that one can measure the shape and orientation difference in one algorithm.</p><p>In addition to geometric similarity metrics, attribute metrics compute the difference of two features based on their non-spatial properties, such as street names or place names <ref type="bibr">(McKenzie, Janowicz, &amp; Adams, 2014)</ref>. For example, the Levenshtein distance measures the difference between two strings as the number of operations (insertion, deletion, or substitution) required to change one string into the other. Other string distances, such as the Hamming distance, have been used to match streets <ref type="bibr">(Li &amp; Goodchild, 2011)</ref>. While the focus of this article is on enhancing geometric similarity measures, it should be noted that attribute-based similarity measures can be incorporated, when available, to enhance a geometric similarity measure.</p><p>(1)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">| Conflation methods</head><p>Given one of the similarity measures mentioned above, a method is needed to decide which pairs of features should be selected as matched features. One of the earliest match-selection methods is the so-called one-sided nearest-neighbor join <ref type="bibr">(Beeri et al., 2004)</ref>. In its simplest form, one can match a feature in one dataset to its closest feature in the other dataset with respect to a distance or similarity metric. This kind of operation can readily be performed using many existing GIS packages or spatial databases.</p><p>However, the one-sided nearest-neighbor join is flawed in that the closeness relation can be inconsistent. As pointed out by <ref type="bibr">Beeri et al. (2004)</ref>   <ref type="figure">3b</ref> (or Calle Granada in TeleAtlas in Figure <ref type="figure">3a</ref>) to.</p><p>One possible method to avoid the aforementioned inconsistency is to use a "greedy" strategy called the k-closest pair query (KCPQ) [e.g., <ref type="bibr">Ahmadi &amp; Nascimento (2016)</ref> and Equation ( <ref type="formula">1</ref>)]. It is widely used in the database literature and in pattern recognition due to its simplicity. The KCPQ method is iterative. In each iteration, it selects the closest pair of features from the two datasets as a pair of matched features, and then removes them from both datasets. The selection process stops after k pairs of features are selected or when no more features can be matched. Since a matched pair is excluded from further consideration, there will be no conflict in the selected The dissimilarity between a pair of features is then used as the assignment cost. Similar to the KCPQ method, the assignment problem is suitable for one-to-one matches only.</p><p>Multiple attempts have been made to extend optimization methods to handle (two-sided) one-to-many matches. <ref type="bibr">Li and Goodchild (2011)</ref> developed a variant of the assignment problem that utilizes the directed Hausdorff distance to capture part-whole relationships. They employed two independent assignment-like models, one for each direction of matching, to find one-to-many matches in both directions. They then resolved the conflicts described by <ref type="bibr">Beeri et al. (2004)</ref> (see Figure <ref type="figure">3</ref>) after the optimization by deleting inconsistent matches. Beyond one-to-many conflation methods, some methods can handle the more complex "many-to-many" matches. <ref type="bibr">Walter and Fritsch (1999)</ref> proposed a "buffer-growing process," which connects adjacent polylines to form paths and then matches the paths. <ref type="bibr">Masuyama (2006)</ref> proposed a similar method for matching polygons (census boundaries of 1990 and 2000, respectively), in which the author manually merged smaller boundary polygons into larger polygons until one-to-one matches can be established.</p><p>We have reviewed closely related methods in the literature both for measuring feature similarity and for selecting matches. This review is not comprehensive by any means. The reader may refer to Xavier, Ariza-L&#243;pez, and Ure&#241;a-C&#225;mara (2017) for more comprehensive reviews of similarity measures, as well as <ref type="bibr">Ruiz et al. (2011)</ref> for reviews of various processes of conflation, including useful pre-and post-processing procedures.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">| ME THOD</head><p>This section presents the definition of the proposed MTFD, which measures the difference of linear features both in terms of shape and orientation. We then demonstrate how to use the new metric in combination with traditional point-offset-based metrics to match linear features.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">| Limitations of the standard TF distance</head><p>The TF distance <ref type="bibr">(Arkin et al., 1991)</ref> was designed originally in the image processing and pattern recognition literature for matching the shapes of the same object appearing in different image scenes. It describes polygon boundaries using the mathematical construct of TFs and measures the difference between the shapes of two polygon boundaries as the difference of their TFs. The TF distance is rotation-and scale-invariant. This is desirable because the rotation and scale difference between objects in different image scenes is often caused by a difference in perspectives and does not matter. Due to its generality, the TF distance has found a wide range of applications in matching objects in computer vision and many other fields, including GIS.</p><p>However, the standard TF distance has a number of restrictions that limit its usage in conflating geographic features in maps and GIS. First, rotation is important in map data. Large discrepancies of orientation between corresponding features (i.e., rotation) rarely happen in proper maps. Rotation should not be ignored in the conflation of maps. For example, two straight, perpendicular road segments have zero shape distance, but they are unlikely to represent the same road in two maps of the same coordinate system.</p><p>Second, the standard TF distance cannot handle partial matches. Instead, it can only match an entire polygon to another one. For example, a polygon A will match perfectly with itself. But if one splits A into two equal halves, A 1 and A 2 , neither part will match A due to the deviation of turning angles at the common boundary of A 1 and A 2 .</p><p>This means that the standard TF distance can only handle one-to-one matches; it cannot handle the more complex many-to-one (or many-to-many) matches because a part of the shape can have a very large distance to the shape itself. This is where the TF distance falls short while quasi-distance measures such as the directed Hausdorff distance (or the proposed partial TF distance) work well.</p><p>Third, and related to the one-to-one matching assumption, the standard TF distance depends on rescaling two shapes so that their boundaries have the same length (or unit length). While scale-invariance is required in object recognition, it is undesirable to match two features of different sizes in GIS, since two shapes representing the same object should have approximately the same size. Therefore, introducing scale-invariance can lead to false matches.</p><p>Fourth, the standard TF definition is mathematically dependent on the fact that the boundaries of the two polygons form closed loops, and the extension of turning functions cyclically to an infinite domain. Such an assumption does not apply to non-closed polylines. Nonetheless, the TF is a powerful tool in matching shapes in that it provides a direct measurement of the shape deformation between two counterpart features. This is often lacking in other similarity measures such as the Hausdorff distance or the Frechet distance. Next, we present the orientation-sensitive MTFD, based on extending the standard TF distance <ref type="bibr">(Arkin et al., 1991)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">| MTFD</head><p>To define the MTFD, the following notation is needed. Given a polyline A (or a curve in general), suppose a person walks along it from the beginning to the end at unit speed (e.g., 1 m/s). Then each point on A is uniquely identified by the time t at which it is visited. Therefore, we can write each point of A as A(t). Since we assume a unit speed of travel, t also represents the length of curve on A between the starting point and A(t). Essentially, t defines an intrinsic coordinate system for points on the curve, which is commonly known as a linear referencing system in GIS.</p><p>The use of the intrinsic coordinate t to uniquely identify any point A(t) of A is also called a parameterization of A,</p><p>where the time t is also referred to as a parameter of the curve A.</p><p>Mathematically, the turning function &#920; A (t) of a curve A is a function of the tangent direction at any point A(t)</p><p>on A versus intrinsic coordinate t <ref type="bibr">(Arkin et al., 1991)</ref>. The tangent direction at A(t) is also called the turning angle, and is defined in radians and relative to the x-axis. Figure <ref type="figure">4</ref> depicts the turning angles and turning function of the fire lane in Figure <ref type="figure">1</ref>, respectively. As shown in Figure <ref type="figure">4a</ref>, the turning angle for a polyline is constant within each of its straight-line segments. Therefore, its turning function (Figure <ref type="figure">4b</ref>) is a step function, in which changes of direction angle only happen at each time point t associated with a vertex of the polyline. If a polyline is a straight line (similar to Alameda Avenue in Figure <ref type="figure">1</ref>), its turning function will be a constant function. Clearly, the difference between the turning functions of the fire lane and Alameda Avenue (Figure <ref type="figure">1</ref>) will be large. The turning function of a polyline A essentially carries the same information as the curvature at point A(t), as the curvature is merely the rate of change of the turning function at t. Roughly speaking, the proposed MTFD is used to gauge the difference between the two turning functions.</p><p>Given the above definitions, the basic assumptions of the MTFD are as follows. First, it is intended for matching a linear feature A to a larger linear feature B, and A possibly corresponds to a part of feature B in reality. We call A the "from-feature" and B the "to-feature." Suppose the lengths of A and B are l and L, respectively, with l &#8804; L . Then in case of a perfect match, all points of A (i.e., A (t) , t &#8712; 0, l ) should coincide with a subset of B starting at a certain point B(s) (i.e., A (t) = B (t + s) , t &#8712; 0, l ). In this case, the directions (and locations) of A and B must match everywhere in this interval of B, and their MTFD (as well as Hausdorff distance) should be zero. The MTFD distance is non-zero otherwise. In the remainder of the article, we call the time s associated with the starting point B(s) the starting position of comparison. Each starting position s on B may give rise to a different value of dissimilarity. The MTFD is defined to be the smallest dissimilarity of all starting positions s.</p><p>Intuitively speaking, we restrict our attention to the part-whole or many-to-one matches. This is more general than the one-to-one matches considered in the standard TF distance. In addition, we do not normalize the two polylines to the same length as in the traditional TF distance, and instead measure dissimilarity without any rescaling. This makes our similarity measure sensitive to differences in scale, a property that is essential in comparing GIS features. We do not consider the symmetric case of matching a larger feature B to a smaller feature A. This is because without rescaling, a portion of B will have no counterpart in A, and it is not obvious how a distance or similarity metric for this part of B can be defined.</p><p>Second, if rotation is required to "align" feature A to feature B (or in other words, a systematic difference of orientation exists between the two features), the rotation is considered a type of dissimilarity between the two features. Just like shape deformation, rotation is an angular measurement. Among all possible starting positions of comparison, the position that minimizes the sum of shape deformation and rotation is used to characterize the difference between the features.</p><p>Third, we rely on well-established metrics (such as the Hausdorff distance) to determine the amount of pointwise offset between two features. We then combine a point-offset metric with our angular metric (deformation and rotation) to form a composite similarity metric. (with p = 2) between their turning functions in the space of the intrinsic coordinate (or time) t (Figure <ref type="figure">5b</ref>). For a given starting position s on B, we measure the angular difference between A(t) and B(t + s) for each value of time</p><p>Conceptually, the accumulated angular difference between A(t) and B(t + s), t &#8712; 0, l contains two types of difference-a global rotation between A and B, and the shape deformation (i.e., the remaining difference after the global rotation is removed). To distinguish these two types of difference, we create an auxiliary variable &#952; for the global rotation, and the correct value of &#952; is yet to be found. Then, &#920; A (t) -&#920; B (t + s) decomposed into two parts: the overall rotation &#952; and the residue &#920; A (t) -&#920; B (t + s) -, which represents the shape deformation (called deformation hereafter). The deformation between A and B for a given starting position s and rotation &#952; is:</p><p>where l and L are the lengths of A and B, respectively, with l &#8804; L. Since shape deformation should not include any angular difference that can be accounted for by the systematic rotation, we need to find the minimum m p (A, B, s, ) over &#952;. That is we seek, for any given s, the following:</p><p>as well as the associated optimal &#952; value in Equation ( <ref type="formula">4</ref>):</p><p>The optimal value &#945; (s) represents the estimated rotation, and (A, B, s) is the deformation. Then, at a second (higher) level of optimization, we seek to find the starting position s that minimizes the weighted sum of deformation and rotation as follows:</p><p>(3) In the above, we use a weight value w r to represent the relative importance of seeking a position that minimizes rotation versus one that minimizes shape deformation. m(A, B) is the MTFD. If the weight value w r is zero and l = L, then the MTFD reduces to the regular TF distance. The solution of the lower-level minimization problem (4) can be found by setting m p (A, B, s, ) = 0, which renders:</p><p>Insert Equation (7) into Equation ( <ref type="formula">4</ref>) and, after simplification, we obtain the estimated deformation:</p><p>The overall MTFD ( <ref type="formula">6</ref>) can be obtained by substituting Equations ( <ref type="formula">7</ref>) and ( <ref type="formula">8</ref>) into Equation ( <ref type="formula">6</ref>):</p><p>In addition, we define m (B, A) = &#8734;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">| Choosing minimum shape difference versus minimum rotation</head><p>The above computation implicitly looks for the portion of the to-feature B from a certain point B(s) that best matches the from-feature A. We seek to find the starting position s of B with the minimum overall deformation and rotation. Our criterion for aligning A with B (in the space of time t) is more general than that of the standard TF distance. The new criterion is needed because we may get wrong answers about the relationship between two features if we use only deformation. Figure <ref type="figure">6a</ref> presents an example of a potential partial match of a straight line A to a polyline B with three segments. If they are in a map, one would expect that A should be matched to the two horizontal segments of B in Figure <ref type="figure">6a</ref>, since it will incur a reasonably small shape deformation, but nearly no rotation. However, if deformation is the only match criterion as with the standard TF metric, A will be matched to the longer segment of B that is almost perpendicular to A, because this match will incur zero shape deformation (as shown in Figure <ref type="figure">6b</ref>). Meanwhile, the TF distance will report that A is perpendicular to B. This is clearly not the case in GIS. To avoid such issues, we set the weight value of the rotation objective in Equation ( <ref type="formula">6</ref>) to a positive value. In this article, we assume that</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">| Finite-optimality set for locating partial matches</head><p>The work of <ref type="bibr">Arkin et al. (1991)</ref> is important not only because they defined the TF distance mathematically, but also because they identified a finite set of starting positions on B called the critical events. They proved, in a series of lemmas and theorems, that it is only necessary to evaluate shape deformation at this finite set to find the optimal match position s. In this subsection, we provide a proof of the finite optimality of the generalized MTFD distance (6) and show that a similar finite-optimality set is sufficient for the new distance.</p><p>Definition 1 Given a polyline A, a time point t 0 is called a vertex position of A if A(t 0 ) is a vertex of A.  Lemma 1 Let e 1 , &#8230;, e K be the set of crossing points. For any interval e i , e i+1 , (s) is a linear function of the form:</p><p>Minimizing shape deformation is insufficient: (a) potential partial match; and (b) optimal match by shape alone and new intervals with new angular difference between the two polylines may appear. On such occasions, new linear relationships between (s) and s may take over. Therefore, a (s) is piecewise linear between each pair of consecutive crossing points. And we can write:</p><p>for some constants g i and h i . From the above computation, we have g i = 1 l &#8721; q j = 1 b j D j and</p><p>By the same argument above, the first main term of m (A, B) in Equation ( <ref type="formula">9</ref>) (shown below) is a piecewise linear function of starting position s:</p><p>Since (s) is piecewise linear, the second term w r -1 &#8901; 2 (s) is a piecewise quadratic in s and the boundaries of the pieces are in the set of crossing points. Therefore, 2 (s) is a piecewise quadratic function of s in each interval e i , e i+1 .</p><p>Theorem 1 If w r &#8804; 1, the minimizers of m (A, B) in Equation ( <ref type="formula">9</ref>) occur at the crossing points</p><p>the minimizers occur either at the crossing points in E, or at the set of stationary points</p><p>Proof m (A, B) and m 2 (A, B) have the same minimizer, and m 2 B) is piecewise quadratic in each e i , e i+1 by Lemma 1.</p><p>If w r &#8804; 1, the fact that w r -1 &#8804; 0 implies that the objective function in Equation ( <ref type="formula">9</ref>) is concave (downwards). Hence, the minimizers only occur at e i , i = 1, &#8230;, K.</p><p>If w r &gt; 1, then m (A, B) is convex (downwards) in e i , e i+1 , and the minimizer must be at either the boundary points e i , or the stationary point determined by: <ref type="bibr">and inserting Equation (11)</ref> into the above, we have:</p><p>The proof of the finite-optimality set above is similar, at least in spirit, to the proofs of the finite-optimality sets of the p-maxima problem <ref type="bibr">(Church &amp; Garfinkel, 1978)</ref> and the vector assignment ordered median problem <ref type="bibr">(Lei &amp; Church, 2015)</ref>. In essence, we proved that improvements of the objective function (here, the sum of deformation and rotation) can be made in continuous regions of positions until certain critical event positions (E and F here) are encountered. Therefore, an optimal solution must exist among the break points. Overall, Theorem 1 means that to find the best position for matching A to B, we only need to enumerate the MTFD objective function at all critical events and then select the position with the smallest value of the following expression:</p><p>In particular, as we assume w r = 1 in this article, we only need to find the smallest</p><p>for all the critical events along B.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">| Combining angular difference and pointwise offset</head><p>To complement the angular discrepancy measure (shape deformation and rotation), we incorporate the directed Hausdorff distance and the MTFD to form a composite similarity measure that considers both pointwise offset and angular difference. The composite measure, called the directed turning function Hausdorff distance (DTFH distance), is defined as follows:</p><p>In the above, AB and AB are the shape deformation and rotation from A to B; h AB is the directed Hausdorff distance (i.e., point "offset") from A to B. m &#65533; (A, B) is a weak angular distance, defined as: It should also be noted that when the angular weight w a is set to 0, the DTFH measure involves the Hausdorff distance measure with a preprocessing step using the multiple cutoff distances (e.g., rotation and shape deformation). So even if w a = 0, the composite DTFH measure is not purely the Hausdorff distance measure.</p><p>(13) <ref type="formula">20</ref> F I G U R E 8 Recall rates for the KCPQ and unified conflation models on six test sites, with angular weight 0 and angular cutoff ranging over 0.1, 0.2, &#8230;, 1.5 radians initially kept the angular weight at 0 as a baseline and tested a series of angular cutoff distances 0.1, 0.2, &#8230;, 1.5 radians. We stop at 1.5 radians (approximately &#8725;2 ) because it is the maximum possible rotation and also a large value for angular shape difference. The offset cutoff and total cutoff values are set at 100 and 150 m, respectively, as these are what we found to be sufficiently large values.</p><p>Not surprisingly, the recall rates (Figure <ref type="figure">8</ref>) for models with the composite TF Hausdorff distance dropped compared to those of the original Hausdorff distance, since angular cutoff distances were used to remove candidate matches. This is especially true for stringent angular cutoff values of 0.3 radians or below, for which recall rates of the composite DTFH distance dropped below those of the baseline for all six test sites. For angular cutoff values of F I G U R E 1 0 Recall rates for the KCPQ and unified conflation models with angular weight from 0 to 1.0 0.4 radians or greater, we observe no drop in recall rates. All that was captured by standard Hausdorff distance is captured by the composite DTFH distance.</p><p>Somewhat surprisingly though, the recall rates for the composite distance are actually higher than those of the standard Hausdorff distance for several sites with suitable angular cutoffs. For sites 4 and 5, at angular cutoff 0.4, recall increased by 2.4 and 7.4% respectively for the KCPQ model, and by 2.6 and 3.6% respectively for the unified model. This could be explained by the fact that in removing unlikely matches, the composite metric can free some road features from being incorrectly assigned and thereby allow them to be assigned correctly (thereby increasing recall).</p><p>F I G U R E 11 Precision rates for the KCPQ and unified conflation models with angular weight from 0 to 1.0 weighted angular distance, a very large angular weight value may the composite distance to exceed the total cutoff value and therefore serve as a penalty. From Figure <ref type="figure">10</ref>, there is no discernible drop in recall rates with the increase of angular weight values (except for a slight drop in recall for the unified model for site #2 at large angular weight values).</p><p>Figure <ref type="figure">11</ref> presents the precision rates for the same test (on angular weights) as Figure <ref type="figure">10</ref>. We observe slight increases of precision rates with increasing angular weights for sites 4 and 5. Overall, using angular cutoff (c a ) values seems to be a more effective strategy in enhancing traditional distances with orientation and shape differences.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">| Case studies</head><p>To illustrate the effectiveness of the new DTFH distance metric, we present in Figures 12 and 13 solutions of the unified conflation model using the standard Hausdorff distance and the new distance, respectively. The blue arrows in both figures represent correct matches and the yellow arrows represent false matches. In Figure <ref type="figure">12</ref>, we can observe typical errors associated with the lack of angular information in the standard Hausdorff distance.</p><p>Near the bottom of the map, two short horizontal lines were incorrectly matched to a street that is almost perpendicular to them. These should either have been forbidden or allowed only with great penalty. On the right edge and the lower left corner of the figure, we can observe two similar errors. By comparison, the model solution with composite TF Hausdorff distance (Figure <ref type="figure">13</ref>) avoided most of these problems. While there are still some remaining error matches in Figure <ref type="figure">13</ref>, they are primarily false matches associated with small segments in the OSM (green) dataset that do not have counterparts in the TIGER (red) dataset. Overall, the angular measure improved the accuracy of the match considerably. </p></div></body>
		</text>
</TEI>
