{"title":"浏览器端管道矢量数据拓扑检查的新型优化方法","authors":"Weidong Li, Chunbo Shi, Yongbo Yu, Zhe Wang","doi":"10.1007/s00607-023-01241-2","DOIUrl":null,"url":null,"abstract":"<p>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.</p>","PeriodicalId":10718,"journal":{"name":"Computing","volume":"82 1","pages":""},"PeriodicalIF":3.3000,"publicationDate":"2023-12-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A novel optimization approach to topology checking of pipeline vector data in browser side\",\"authors\":\"Weidong Li, Chunbo Shi, Yongbo Yu, Zhe Wang\",\"doi\":\"10.1007/s00607-023-01241-2\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>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.</p>\",\"PeriodicalId\":10718,\"journal\":{\"name\":\"Computing\",\"volume\":\"82 1\",\"pages\":\"\"},\"PeriodicalIF\":3.3000,\"publicationDate\":\"2023-12-12\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computing\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://doi.org/10.1007/s00607-023-01241-2\",\"RegionNum\":3,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"COMPUTER SCIENCE, THEORY & METHODS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computing","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1007/s00607-023-01241-2","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
A novel optimization approach to topology checking of pipeline vector data in browser side
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.
期刊介绍:
Computing publishes original papers, short communications and surveys on all fields of computing. The contributions should be written in English and may be of theoretical or applied nature, the essential criteria are computational relevance and systematic foundation of results.