Skip to main content
Log in

A novel optimization approach to topology checking of pipeline vector data in browser side

  • Regular Paper
  • Published:
Computing Aims and scope Submit manuscript

Abstract

The topological relationship of spatial data is essential to GIS data processing and spatial analysis such as in analysis of pipe explosion in gas pipeline network. The existing browser-side JavaScript topology check library is inefficient and even crashes when checking the pipe network topology relationships for large amounts of data. In this paper, we present a topology checking and optimization method for pipeline vector data in browser-side using quadtree. Firstly, an algorithm mechanism that conforms to GIS data is designed based on JavaScript shared memory mechanism, topological check algorithm characteristics, and spatial data high-precision characteristics. Then using a fast rejection experiment and straddle test to realize the browser-side topology checking algorithm, through tolerance setting, improve the inspection efficiency and accuracy, which solves the problem that Turf and Jsts libraries cannot set tolerance. Based on the concept of quadtree spatial index, an optimization method of browser-side quadtree topology checking algorithm(BQTCA) is proposed. Without setting tolerance, the topology check of 114 point data and 1881 line data takes 487 milliseconds, and the efficiency of BQTCA is about 12 times and 39 times higher than that of the well-known public libraries Turf and Jsts, respectively. When the data volume increases to 912 point data and 15048 line data, BQTCA takes 6970 ms, which is about 65 times and 190 times more efficient than Turf and Jsts, respectively. The larger the data volume is, the more pronounced the efficiency improvement of BQTCA. Even when the data volume is so large that Turf and Jsts can- not calculate even crash, BQTCA can still complete the checking calculation. Through experiments, BQTCA can significantly improve the efficiency of browser-side vector pipeline topology relationship inspection under a large amount of data, and meet the commercial application requirements.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14

Similar content being viewed by others

References

  1. Ahn D, Park J, Lee J (2018) Defining geospatial data fusion methods based on topological relationships. Int Arch Photogramm Remote Sens Spat Inf Sci 42:317–319. https://doi.org/10.5194/isprs-archives-XLII-4-W9-317-2018

    Article  Google Scholar 

  2. Alghabi F, Soryani M (2008) Direct computation of epipoles using two pairs of point-line correspondences. In: 2008 second international symposium on intelligent information technology application, pp 486–489

  3. Baolin Y, Yucai F (2005) An improved consistency maintenance model for rule-based spatiotemporal topology. Comput Eng pp 28–30

  4. Belussi A, Migliorini S, Negri M (2020) A framework for evaluating 3d topological relations based on a vector data model. Geoinformatica 24(4):915–950. https://doi.org/10.1007/s10707-020-00413-y

    Article  Google Scholar 

  5. Blaschke T, Merschdorf H, Cabrera-Barona P et al (2018) Place versus space: from points, lines and polygons in gis to place-based representations reflecting language and culture. ISPRS Int J Geo Inf 7(11):452. https://doi.org/10.3390/ijgi7110452

    Article  Google Scholar 

  6. Chakladar DD, Panda D (2019) Multithreaded query processing using quadtree. In: International conference on innovative computing and communications, pp 89–97

  7. Chao-de Y, Xue-sheng Z (2004) The review of spatial indexes in gis. Geogr Geo Inf Sci 23–26

  8. Chatzigeorgakidis G, Patroumpas K, Skoutas D et al (2019) Visual exploration of geolocated time series with hybrid indexing. Big Data Res 15:12–28. https://doi.org/10.1016/j.bdr.2019.02.001

    Article  Google Scholar 

  9. Chengren L (2018) Research and implementation of single-page webgis visualization framework based on vue.js. Geospat Inf 83–86

  10. Chunyu Y, Guihui P, Mengqi D (2019) A method of index construction and real-time generation of pipe network considering weight. Remote Sens Inf 125–130

  11. Corcoran P, Jones CB (2018) Stability and statistical inferences in the space of topological spatial relationships. IEEE Access 6(18):907–18. https://doi.org/10.1109/access.2018.2817493

    Article  Google Scholar 

  12. Dong C, Qiaoyan W, Hua Z, et al (2021) Qml: a hybrid spatial index structure. J Commun 1–16

  13. Du X, Liu H, Tseng HW (2021) Adaptive method to locate seed points based on information entropy and quadtree. Sens Mater 33(2):789–804. https://doi.org/10.18494/SAM.2021.3047

    Article  Google Scholar 

  14. George R, Michael V, Antonio C, et al (2018) An efficient algorithm for bulk-loading xbr+-trees. Comput Standards Interfaces 83–100

  15. Grady L, Schwartz EL (2004) Faster graph-theoretic image processing via small-world and quadtree topologies. In: CVPR (2), pp 360–365

  16. Hao L, Shao-hua W, Er-shun Z, et al (2014) A topology relations checking algorithm for large-scale spatial data. Geogr Geo Inf Sci 17–21

  17. Hari S, Seema B (2017) A mapreduce-based efficient h-bucket pmr quadtree spatial index. Int J Comput Syst Sci Eng 32(5)

  18. Hongsong W, Xiaoguang Z (2020) A quadtree spatial index method with inclusion relations for complex polygons. J Hunan Univ (Nat Sci) pp 99–109

  19. Jian-feng L, Shi-ping C, Lin-mao D, et al (2018) Research on a spatial data index of cloud data management for supporting range query. J Chin Mini Micro Comput Syst 967–972

  20. Jingli J, Li G, Tiejun C, et al (2019) A topology relation calculation method using improved scan line algorithm. J Geom Sci Technol 90–94

  21. Jun C, Wan-zeng L, Zhi-lin L, et al (2006) The refined calculation method of topological relationships between line objects. J Geom Sci Technol 255–260

  22. Jun-jun H (2022) A survey on lsm tree index for spatial data. Wirel Commun Technol 42–47

  23. Jun-peng Z, Jun L (2021) Application on arcgis(arcpy) data inspection technology based on python. J Hebei For Sci Technol 61–63

  24. Knoth L, Atazadeh B, Rajabifard A (2020) Developing a new framework based on solid models for 3d cadastres. Automatica 92(104):480. https://doi.org/10.1016/j.landusepol.2020.104480

    Article  Google Scholar 

  25. Leonard L (2019) Multilevel mesh workflows towards conus scale watersheds: how small should triangles be to capture stream curvature for hydrological modeling? Environ Modell Softw 122(104):104. https://doi.org/10.1016/j.envsoft.2017.11.036

    Article  Google Scholar 

  26. Lincheng G (2020) Rules and system design of urban underground pipeline data quality check. Geospat Inf 106–108

  27. Liu B, Li D, Ruan J et al (2015) A model of fuzzy topological relations for simple spatial objects in gis. Boletim de Ciências Geodésicas 21:389–408. https://doi.org/10.1590/S1982-21702015000200022

    Article  Google Scholar 

  28. Majic I, Naghizade E, Winter S et al (2019) Discovery of topological constraints on spatial object classes using a refined topological model. J Spat Inf Sci. https://doi.org/10.5311/JOSIS.2019.18.459

    Article  Google Scholar 

  29. McKenney M, Schneider M (2008) Topological relationships between map geometries. In: International conference on database systems for advanced applications, pp 110–125

  30. Min D, Wen-bao L, Xing-yuan H, et al (2006) Modeling topological relations of spatial objects and its applications in gis. J Image Graph 1743–1749

  31. Park K (2019) A hierarchical binary quadtree index for spatial queries. Wirel Netw 25(4):1913–1929. https://doi.org/10.1007/s11276-018-1661-z

    Article  Google Scholar 

  32. Qun H, Yizhou Y, Jiateng G, et al (2018) Efficient parallelization of topology checking for cadastral data in cloud computing environment. Bullet Surv Mapp pp 74–78

  33. Ravishankar B, Vaishali S, Bhattacharya D et al (2021) Astrosat/ssm data pipeline. J Astrophys Astron 42(2):1–10

    Article  Google Scholar 

  34. Wu C (2019) Detailed model of topological and metric relationships between a line and region. Arab J Geosci 12(4):1–8. https://doi.org/10.1007/s12517-019-4273-8

    Article  Google Scholar 

  35. Wu J (2018) Continuous optimization of adaptive quadtree structures. Comput Aided Des 102:72–82. https://doi.org/10.1016/j.cad.2018.04.008

    Article  MathSciNet  Google Scholar 

  36. Xiaolin M, Kunlong N, Shirong C, et al (2021) Technical framework and advances of open source web geographic information system. Comput Eng Appl 1–22

  37. Ying J, Chen L, Liu M (2018) Research on check method of feeder topology model for distribution main station. In: 2018 2nd IEEE conference on energy internet and energy system integration (EI2), pp 1–5

  38. Yizhou Y, Lixin W, Jiateng G, et al (2015) Parallel checking method for point-line topological consistency in cadastral database. J Natl Univ Def Technol 40–46

  39. Zexue Y (2017) Research on hybrid index structure in spatial database. Comput Eng Appl 20–23

  40. Zhonghua L, Pengfei L, Zhangping X (2019) Research on improved quadtree spatial index based on point cloud data. Geom Spat Inf Technol 38–39

Download references

Funding

The authors express gratitude to, the Open Fund from Research Platform of Grain Information Processing Center in Henan University of Technology(NO.KFJJ2022012), and the Key Scientific Research Projects of Colleges and Universities in Henan Province (NO.23A170013).

Author information

Authors and Affiliations

Authors

Contributions

[W.L.] and [C.S.]. contributed to the study conception and design. Material preparation and data collection were performed by [C.S.]. Analysis was performed by [W.L.] and [C.S.]. The first draft of the manuscript was written by[C.S.], [Y.Y.] and [Z.W.]. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Weidong Li.

Ethics declarations

Conflict of interest

The authors declare that they have no conflicts of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Li, W., Shi, C., Yu, Y. et al. A novel optimization approach to topology checking of pipeline vector data in browser side. Computing 106, 627–649 (2024). https://doi.org/10.1007/s00607-023-01241-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00607-023-01241-2

Keywords

Mathematics Subject Classification

Navigation