Invariant Spatial Relation-Based Road Network Graphics Retrieval for GPS Art
Abstract
1. Introduction
2. Related Work
2.1. Generation of Paths with a Specific Shape
2.2. Alignment of Sketches and Maps
3. Methods
3.1. Graphics Retrieval Algorithm
3.1.1. Invariant Spatial Relationships
- Turning angle: In traverse surveying techniques, the turning angle between adjacent directed line segments ab and bc is defined as follows:where represents the azimuth angle of line segment ab and represents the azimuth angle of line segment bc when moving directionally from a→b→c. In this study, coordinate azimuth angles for the input graphic and compass azimuth angles for road networks are used to calculate turning angles. These turning angles can be used to determine the relative positional relationships between line segments.
- Length ratio: This is the ratio between the lengths of adjacent line segments. The length ratio is independent of scale and can be used to constrain the length of each line segment, thereby avoiding compression or stretching effects on the retrieval results.
3.1.2. Dynamic Graph of Road Network
- Randomly selecting a line segment or approximate line segment from the road network as an initial node for dynamic graph construction.
- Obtaining adjacent and unvisited line segments or approximate line segments that satisfy the length ratio constraint with the line segment or approximate line segment represented by the initial node, considering them as adjacent nodes of the initial node.
- Expanding the dynamic graph by continuously adding successfully matched nodes from adjacent nodes until successful retrieval is achieved or there are no more matching nodes available among adjacent ones.
3.1.3. Subgraph Matching
- Candidate nodes in the dynamic graph should have a degree equal to or greater than that of their corresponding nodes in the input graph to avoid ineffective searching.
- Corresponding nodes between the dynamic and input graphs should maintain consistent topological adjacency relationships.
- The difference in length ratio and turning angle between edges from the current matched nodes to the candidate nodes in the dynamic graph and their corresponding edges in the input graph should be within the allowable error ranges of [−ε, ε] and [−φ, φ], respectively. By relaxing the constraints within these error ranges, retrieval results can deviate slightly from the original shapes. This increases retrieval success rates while avoiding situations with too few or no results due to strict constraints.
3.1.4. Graphics Evaluation
3.2. Graphics Combination Algorithm
3.2.1. Graphics Combination Problem
3.2.2. Graphics Combination Algorithm
- Obtain the retrieval result set with the fewest number of elements and randomly select one from as the current sub-graphic being combined.
- Based on the arrangement order of sub-graphics in the combined graphics, obtain the retrieval result set for adjacent and unvisited sub-graphic to the current one. Next, iterate through all the graphics in this set and determine whether they can be combined with the current sub-graphic using Formula (3). If all attempts fail, select another sub-graphic from set as the current sub-graphic being combined, and restart the graphics combination process. Otherwise, quantitatively evaluate all graphics that satisfy combination principles using the scoring Formula (4). A certain number of high-scoring candidates are then selected from them in descending order based on their scores, and the one closest to the currently combined sub-graphic is selected as the final combination result and replaces the currently combined sub-graphic.
- Repeat step 2 until there are no uninvolved graphics left in set .
3.2.3. Combined Graphics Evaluation
4. Results
4.1. Experimental Data
4.2. Graphics Retrieval Algorithm
4.2.1. Experiment Results in the Simulated Road Network
4.2.2. Experiment Results in the Real Road Network
4.3. Graphics Combination Algorithm
5. Discussion
5.1. Method Effectiveness Explanation
5.2. Advantages Compared to Previous Methods
5.3. Limitations and Future Works
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Strava. Available online: https://www.strava.com (accessed on 25 December 2025).
- A Creative Spin: Pedaling My Art. Available online: https://www.youtube.com/watch?v=OsMMysaZRyg (accessed on 25 December 2025).
- Yassan’s GPS Drawing Project. Available online: https://gpsdrawing.info/ (accessed on 25 December 2025).
- Joyrun. Available online: https://www.thejoyrun.com/ (accessed on 25 December 2025).
- Hajian, A.; Baloian, N.; Inoue, T.; Luther, W. Collaborative Technologies and Data Science in Artificial Intelligence Applications; Universität Duisburg-Essen: Essen, Germany, 2020. [Google Scholar]
- Rosner, D.K.; Saegusa, H.; Friedland, J.; Chambliss, A. Walking by Drawing. In Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems, Seoul, Republic of Korea, 18–23 April 2015; pp. 397–406. [Google Scholar]
- Waschk, A.; Krüger, J. Automatic route planning for GPS art generation. Comput. Vis. Media 2019, 5, 303–310. [Google Scholar] [CrossRef]
- Chipofya, M.; Wang, J.; Schwering, A. Towards Cognitively Plausible Spatial Representations for Sketch Map Alignment. In Proceedings of the Conference On Spatial Information Theory; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
- Lu, Y.; Sun, Y.; Liu, S.; Li, J.; Liu, Y.; Yao, K.; Wang, Y.; Fu, Z.; Lu, S.; Shao, S. Hand-drawn sketch and vector map matching based on topological features. Front. Earth Sci. 2023, 11, 1081445. [Google Scholar] [CrossRef]
- Chipofya, M.C.; Schultz, C.; Schwering, A. A metaheuristic approach for efficient and effective sketch-to-metric map alignment. Int. J. Geogr. Inf. Sci. 2015, 30, 405–425. [Google Scholar] [CrossRef]
- Fogliaroni, P.; Weiser, P.; Hobel, H. Qualitative Spatial Configuration Search. Spat. Cogn. Comput. 2016, 16, 272–300. [Google Scholar] [CrossRef]
- Sioutis, M.; Wolter, D. Qualitative Spatial and Temporal Reasoning: Current Status and Future Challenges. In Proceedings of the International Joint Conference on Artificial Intelligence, Montreal, QC, Canada, 19–27 August 2021. [Google Scholar]
- Çivicioglu, P. Backtracking Search Optimization Algorithm for numerical optimization problems. Appl. Math. Comput. 2013, 219, 8121–8144. [Google Scholar] [CrossRef]
- DeVore, R.A.; Temlyakov, V.N. Some remarks on greedy algorithms. Adv. Comput. Math. 1996, 5, 173–187. [Google Scholar] [CrossRef]
- Balduz, P. Walk Line Drawing. Ph.D. Thesis, Vienna University of Technology, Vienna, Austria, 2017. [Google Scholar]
- Riemann, B. Ueber die Darstellbarkeit einer Function durch eine trigonometrische Reihe. In Bernard Riemann’s Gesammelte Mathematische Werke und Wissenschaftlicher Nachlass; Riemann, B., Weber, H.M., Dedekind, R., Eds.; Cambridge Library Collection—Mathematics; Cambridge University Press: Cambridge, UK, 2013; pp. 213–253. [Google Scholar]
- Schwering, A.; Wang, J.; Chipofya, M.; Jan, S.; Li, R.; Broelemann, K. SketchMapia: Qualitative Representations for the Alignment of Sketch and Metric Maps. Spat. Cogn. Comput. 2014, 14, 220–254. [Google Scholar] [CrossRef]
- Jan, S.; Schwering, A. SketchMapia: A Framework for Qualitative Alignment of Sketch Maps and Metric Maps. 2015. Available online: https://www.researchgate.net/publication/275154644 (accessed on 24 February 2026).
- Wang, J.; Schwering, A. Invariant spatial information in sketch maps—A study of survey sketch maps of urban areas. J. Spat. Inf. Sci. 2015, 11, 31–52. [Google Scholar] [CrossRef]
- Zardiny, A.Z.; Hakimpour, F.; Shahbazi, M. Sketch maps for searching in spatial data. Trans. GIS 2020, 24, 780–808. [Google Scholar] [CrossRef]
- Zare Zardiny, A.; Hakimpour, F. Route Matching in Sketch and Metric Maps. J. Geogr. Syst. 2021, 23, 381–405. [Google Scholar] [CrossRef]
- Rapant, P.; Menšík, M.; Albert, A. Automatic sketch map creation from labeled planar graph. Int. J. Geogr. Inf. Sci. 2024, 38, 981–1006. [Google Scholar] [CrossRef]
- Manivannan, C.; Krukar, J.; Schwering, A. An algorithmic approach to detect generalization in sketch maps from sketch map alignment. PLoS ONE 2024, 19, e0304696. [Google Scholar] [CrossRef] [PubMed]
- Schneider, N.R.; O’Sullivan, K.; Samet, H. The Future of Graph-based Spatial Pattern Matching (Vision Paper). In Proceedings of the 2024 IEEE 40th International Conference on Data Engineering Workshops (ICDEW), Utrecht, The Netherlands, 13–16 May 2024; pp. 360–364. [Google Scholar]
- Ullmann, J.R. An Algorithm for Subgraph Isomorphism. J. ACM (JACM) 1976, 23, 31–42. [Google Scholar] [CrossRef]
- Zhou, K.; Yang, C.; Liu, J.; Xu, Q. Dynamic Graph-Based Feature Learning with Few Edges Considering Noisy Samples for Rotating Machinery Fault Diagnosis. IEEE Trans. Ind. Electron. 2022, 69, 10595–10604. [Google Scholar] [CrossRef]
- Boeing, G. OSMnx: New methods for acquiring, constructing, analyzing, and visualizing complex street networks. Comput. Environ. Urban Syst. 2017, 65, 126–139. [Google Scholar] [CrossRef]
- Baader, D. Openstreetmap Using and Enhancing the Free Map of the World; UIT Cambridge: Cambridge, UK, 2016. [Google Scholar]









| I (Shenzhen) | II (Wuhan) | III (Beijing) | IV (Shanghai) | V (Xi’an) | |
| Nodes | 20,356 | 8670 | 4555 | 6417 | 5468 |
| Edges | 92,024 | 30,890 | 18,416 | 25,018 | 18,922 |
| “A” | “G” | “K” | “M” | “N” | “8” | “3” | “V” | Heart Shape | Pentagram | |
|---|---|---|---|---|---|---|---|---|---|---|
| Ours w/o ALS | 0 | 0 | 1 | 1 | 1 | 1 | 2 | 0 | 0 | 0 |
| Ours w/o LR | 2 | 19 | 16 | 1 | 4 | 1 | 40 | 2 | 1 | 1 |
| Ours | 1 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 1 | 1 |
| Truth Value | 1 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 1 | 1 |
| “E” | “8” | Heart Shape | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Quantity | Time | Epoch | Quantity | Time | Epoch | Quantity | Time | Epoch | |
| I | 9447 | 1792 | 5,274,226 | 19 | 450 | 744,495 | 57 | 311 | 890,732 |
| II | 6349 | 103 | 278,846 | 42 | 109 | 166,621 | 212 | 74 | 214,373 |
| III | 74,940 | 298 | 801,645 | 10 | 154 | 231,829 | 167 | 179 | 450,347 |
| IV | 207,559 | 437 | 1,175,460 | 32 | 257 | 445,519 | 1679 | 341 | 903,459 |
| V | 216,485 | 522 | 1,295,781 | 152 | 232 | 342,107 | 3949 | 602 | 1,436,994 |
| 0° | 5° | 10° | 15° | 0.0 | 0.1 | 0.2 | 0.3 | |
|---|---|---|---|---|---|---|---|---|
| “E” | 0 | 2848 | 5402 | 6349 | 3 | 274 | 1672 | 6349 |
| “8” | 0 | 19 | 26 | 42 | 0 | 11 | 20 | 42 |
| Heart shape | 0 | 142 | 151 | 212 | 0 | 6 | 90 | 212 |
| “520” | “1314” | “I♥y” | “LOVE” | |||||
|---|---|---|---|---|---|---|---|---|
| Number | Time | Number | Time | Number | Time | Number | Time | |
| I | 25 | 5.6 | 4129 | 236.5 | 25 | 7.6 | 25 | 7.2 |
| II | 48 | 5.7 | 2307 | 52.7 | 165 | 7.3 | 59 | 6.9 |
| III | 12 | 6.0 | 19,217 | 1725.6 | 119 | 10.5 | 27 | 9.8 |
| IV | 24 | 5.9 | 39,113 | 1652.4 | 1298 | 43.1 | 87 | 13.5 |
| V | 139 | 7.4 | 12,129 | 532.1 | 1417 | 35.5 | 255 | 18.0 |
| “L” | “O” | “V” | “E” | |
|---|---|---|---|---|
| Quantity | 2179 | 397 | 11,331 | 12,926 |
| Time | 30 | 13 | 88 | 113 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Published by MDPI on behalf of the International Society for Photogrammetry and Remote Sensing. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Li, G.; Fu, Z. Invariant Spatial Relation-Based Road Network Graphics Retrieval for GPS Art. ISPRS Int. J. Geo-Inf. 2026, 15, 98. https://doi.org/10.3390/ijgi15030098
Li G, Fu Z. Invariant Spatial Relation-Based Road Network Graphics Retrieval for GPS Art. ISPRS International Journal of Geo-Information. 2026; 15(3):98. https://doi.org/10.3390/ijgi15030098
Chicago/Turabian StyleLi, Gang, and Zhongliang Fu. 2026. "Invariant Spatial Relation-Based Road Network Graphics Retrieval for GPS Art" ISPRS International Journal of Geo-Information 15, no. 3: 98. https://doi.org/10.3390/ijgi15030098
APA StyleLi, G., & Fu, Z. (2026). Invariant Spatial Relation-Based Road Network Graphics Retrieval for GPS Art. ISPRS International Journal of Geo-Information, 15(3), 98. https://doi.org/10.3390/ijgi15030098

