Introduction

The Grand Canal is the longest known man-made canal, and during the Ming Dynasty, the Tonghui River was overhauled and the Huitong River was reopened. It is 1794 kms long and connects the political and economic centers of China [1]. Due to the extensive area covered by the canal, the construction of water engineering facilities is crucial for addressing issues such as canal navigation, agricultural production, and flood control [2]. Additionally, the Grand Canal has significant impacts on the economic development and cultural exchange of the prefectures along its route. In the early 20th century, Chinese scholars began studying canals, focusing on canal changes, management organizations, and historical development. Significant works include The Canals of China [3] and Selected Historical Materials of Chinese Canals [4]. Concurrently, international scholars also produced valuable research on the construction and management of Chinese canals and the history of water conservancy development. Since the 1980 s, the Chinese canal water conservancy project has garnered attention, with Chinese scholars making significant contributions to the study of the development history of water conservancy projects [5, 6], from the overall construction of water engineering facilities to examining individual hydraulic structures. As part of national infrastructure, research on historical infrastructure construction, spatial distribution [7], and its relationship with the regime includes waterworks facilities [8]. Currently, research on water engineering facilities focuses primarily on documentation and local studies, with less emphasis on the relationship between water engineering facilities and social elements such as politics, economy, culture, and folklore. International scholars have conducted extensive research on canals, encompassing studies on the channel structures and facility construction of the Canal du Midi in France [9, 10], the structural system, maintenance, and restoration of the Pontcysyllte Aqueduct and Canal ports in the UK [11, 12], as well as the operation and management of the Rideau Canal water engineering heritage in Canada [13, 14]. In recent years, researchers from other countries have increasingly focused on water conservancy technology and the preservation of water heritage. These studies intersect with disciplines such as archaeology [15], agronomy, biochemistry [16], architectural technology, and tourism development [17], contributing to the research on water engineering facilities. Regarding research methods, spatial distribution and spatial-temporal evolution analysis employ spatial autocorrelation [18], kernel density estimation [19], gini coefficient, and other techniques, whereas the investigation into influencing factors utilizes pearson regression, ordinary least squares [20], tobit regression [21], and similar methods. furthermore, There are studies that has employed the Historical GIS (HGIS) method and Spatial Data Infrastructure (SDI) principles to analyze the spatial development of historical infrastructure [22, 23]. This paper delves into the spatial distribution and influencing factors of water engineering facilities along the Beijing-Hangzhou Grand Canal, building upon existing research. Both natural and social environments influence the siting of water engineering facilities along the Grand Canal. In the process of collecting data and organizing relevant ancient literature, we chose to study the impact of natural factors on the spatial distribution of water engineering facilities as a separate topic. The research team selected two categories of factors, hydrology and topography, and applied structural equation modeling to reveal the correlation between the spatial distribution of water engineering facilities along the Grand Canal and the natural environment [24]. Therefore, this paper will not delve into these factors in detail but will mainly focus on the influence of social factors on the spatial distribution of water engineering facilities, including political, economic, and cultural aspects.

Research materials

Research scope

The scope of this study covers the prefecture areas through which the Grand Canal and its tributaries flowed during the Ming and Qing dynasties. Based on meticulous organization of ancient maps, canal atlases, and other relevant literature from Historical Maps of China [25] the research team utilized ArcGIS Pro 3.0.0 software to redraw the network map of the Grand Canal. The scope of the study during the Ming and Qing dynasties is illustrated in Fig. 1.

Fig. 1
figure 1

Scope of research map of Ming and Qing dynasties

Data on water engineering facilities

This study collected water engineering facility data through field surveys and compilation of historical documents. By compiling literature, we obtained detailed information on water engineering facilities of the Grand Canal, including their locations, administrative affiliations, purposes, construction times, and forms. Water engineering facilities were classified into seven categories based on their purposes: water storage facilities, water distribution facilities facilities, overflow facilities, water retaining facilities, water control facilities, riverworks facilities, and annexed facilities. The specific classification and functions are shown in Table 1.

Table 1 Classification of water engineering facilities

The study reveals 779 water engineering facilities in use and constructed during the Ming Dynasty, and 1168 water engineering facilities in use and constructed during the Qing Dynasty. Simultaneously, the coordinates of the water engineering facilities were acquired using the map coordinate extraction function. The research team conducted surveys of 147 existing water engineering facility relics, meticulously documenting their coordinates, three-dimensional models, preservation status, and surrounding environment. Well-preserved water engineering facility nodes were selected, and their drone-captured point cloud models are compiled in Fig. 2.

Fig. 2
figure 2

Aerial drone point cloud model summary map

Social development indicators system

Selection of social influence factors

Social development has multifaceted and profound impacts on water engineering facilities, including political factors, levels of commercial and agricultural development, population size and behavior, transportation convenience, local culture, and values. National policies significantly influenced the opening of the Great Canal and the construction of its water engineering projects. For instance, in 1405, the Tonghui River was constructed to address the need for construction materials and food transport during the reconstruction of Beijing [26]. In May 1407, the government repaired the dams and canals in the Beijing section to address water supply issues. Cessation of maritime transportation in 1415, reliance on inland waterways, increased reliance on inland waterways for food security in the north [27]. Additionally, the government was responsible for constructing water engineering facilities and established specialized management agencies. The Central Water Conservancy Bureau was responsible for managing national water engineering projects and the construction of canal waterways. By establishing rules and procedures, local officials were actively encouraged to participate in the construction of water engineering facilities. It’s evident that political factors have a direct impact on the construction of water engineering facilities, without the need for complex quantitative research.Therefore, this paper will focus on further quantitative research on economic and cultural aspects in the social domain.

Economic and cultural development involves the entire urban social system, with significant changes occurring in Ming and Qing social development and government policies.This study aims to establish a more scientific measure for assessing the changes in the historical development of Ming and Qing societies. It constructs measurement indicators from five dimensions to evaluate social development during the Ming and Qing dynasties, as presented in Table 2.

Table 2 Ming dynasty Tobit model regression results

Regarding indicator of commercial development, local commercial taxation in the Ming dynasty became a significant source of national revenue, with goods flowing north and south along the canal, subject to customs duties. Therefore, the number of chaoguan and local commercial taxes were selected as indicators to measure commercial development in various regions of the Ming dynasty. Taxation in the Qing dynasty mainly comprised land tax, salt tax, customs duties, and miscellaneous taxes [28]. Among these, the salt tax was a unified levy imposed on salt merchants. the chaoguan collected tariffs on goods in transit [29]. Therefore, this study selected the salt tax and chaoguan as factors reflecting the scale of local commercial development in the Qing dynasty. As for indicator of agricultural development, the quantity of fertile land and the collection of land tax in each prefecture during the Ming and Qing dynasties served as factors to measure the scale of agricultural development in the respective regions [30]. Concerning population size indicator, the xiangli system functioned as a grassroots management system in the Ming dynasty [31]. Thus, the number of xiangli could directly reflect the local population size. In the Qing dynasty, the local population count was chosen instead. Regarding indicator of transportation convenience, the postal relay system was a significant communication and transportation system in ancient China. In both the Ming and Qing dynasties, this system primarily consisted of relay stations and jidi pu. This study collected data on these factors to reflect the level of transportation convenience in various regions. In terms of indicator of cultural prosperity, the level of cultural prosperity in various regions is reflected in various aspects. Different natural and social environments have shaped unique regional cultures, which have continuously developed into current material and non-material cultural heritage. These factor reflects the characteristics of regional folk culture. The number of poets in the Ming dynasty and the number of successful candidates in the Qing dynasty’s imperial examination in each prefecture are considered important indicators for measuring the level of cultural development in the Ming dynasty. They can reflect the development of mainstream culture in various regions.

Data sources

In the Ming Dynasty, the data on chaoguan, land tax, fertile land and population factors are mainly from the Code of Great Ming Dynasty, while the data on commercial taxes, Relay stations and jidi pu are from the relevant prefectural records. In the Qing Dynasty, the data on land tax, fertile land and population factors were taken from the Qing Historical Manuscripts, while the data on the chaoguan, relay stations and jidi pu were collected from the Qin Ding Da Qing Huidian. In addition, the data on salt tax comes from the relevant prefectural records of the Qing Dynasty. As for the cultural prosperity indicator, the data on intangible cultural heritage come from the China Intangible Cultural Heritage Website (https://www.ihchina.cn/) and the batches of cultural relics protection units announced by the State Administration of Cultural Heritage. The data of inscriptions come from the first batch of inscriptions and the list of cultural relics protection units. The number of words in the Ming Dynasty comes from the All Ming Poetry of the Ming Dynasty, and the number of Jinshi in the Qing Dynasty comes from the Qing Dynasty Jinshi Inscription List. (For more information, please see the Appendix B).

Methodology for the construction of the indicators

In this paper, the entropy method is used to measure the five comprehensive measurement indicators. The entropy method can eliminate the bias caused by subjective factors to determine the weights of the indicators and reduce the influence of data extremes, and can effectively deal with the superposition of information between the indicators [32]. Due to the obvious differences in the scale between the indicators, the standardization of the indicators is carried out using the method of standardization of extreme deviation [33]. The formula is as follows:

$$\begin{aligned} x^{\prime }=\frac{x-\min (x)}{\max (x)-\min (x)}. \end{aligned}$$
(1)

The information entropy \(e_{j}\) is calculated as:

$$\begin{aligned} e_{j}=\frac{-1}{\ln n} \sum _{j=1}^{m} P_{i j} \ln P_{i j}, \end{aligned}$$
(2)

\(P_{i j}\) is the ratio of the value of indicator j of the ith house to the sum of all houses; n is the number of houses and m is the number of indicators.

The indicator weight value \(w_j\) is calculated by the formula:

$$\begin{aligned} w_j=\frac{1-e_j}{n-\sum _{j=1}^{m}e_j}. \end{aligned}$$
(3)

Finally, a linear weighting method was used to calculate the indicators for each of the ith governments:

$$\begin{aligned} s_i=\sum _{j=1}^{m}{w_jx_{ij}}\, i=1,\ldots ,n. \end{aligned}$$
(4)

Research methods

Global spatial autocorrelation, center of gravity analysis, hotspot analysis, kernel density analysis, tobit regression and other analytical methods are used to explore the distribution pattern of the water engineering facilities in the Beijing-Hangzhou Grand Canal and its influence mechanism.

Global spatial autocorrelation

In this study, the global spatial autocorrelation method is applied to describe the overall distribution of the number of water engineering facilities in different regions [34]. The global Moran’s I indicates whether there is an aggregation property of water engineering facilities in space [35].

$$\begin{aligned} I= \,& {} \frac{n}{S_0}\frac{\sum _{i=1}^{n}\sum _{j=1}^{n}{W_{ij} \left( x_i-\bar{x}\right) \left( x_j-\bar{x}\right) }}{\sum _{i=1}^{n}\left( x_i-\bar{x}\right) ^2}. \end{aligned}$$
(5)
$$\begin{aligned} S_0= & {} \sum _{i=1}^{n}\sum _{j=1}^{n}W_{ij}. \end{aligned}$$
(6)

In Eq. n represents the number of water engineering facilities, \(S_0\) is the aggregation of the spatial weights belonging to it. x represents each indicator used to quantify the spatial structure of the water engineering facilities, \(x_i\) and \(x_j\) represent the attribute values of objects i and j, and \(W_{ij}\) is the value of the spatial weights.

Center of gravity analysis

The center of gravity model is an effective method to reflect the spatial evolution of the object [36]. The change characteristics of the calculation results can reflect the spatial and temporal evolution characteristics of water engineering facilities, and its calculation formula is as follows.

$$\begin{aligned} X_t= \,& {} \frac{\sum _{i=1}^{n}\left( M_i\times X_i\right) }{\sum _{i=1}^{n}M_i}, \end{aligned}$$
(7)
$$\begin{aligned} Y_t= \,& {} \frac{\sum _{i=1}^{n}\left( M_i\times Y_i\right) }{\sum _{i=1}^{n}M_i}, \end{aligned}$$
(8)

where: (\(X_t\), \(Y_t\)) is the coordinates of the center of gravity of the distribution of water engineering facilities in the study area during the Ming or Qing Dynasties; (\(X_i\), \(Y_i\)) is the geometric center of the ith evaluation unit.

Hotspot analysis

In the study, the hotspot analysis method was used to determine the spatial distribution characteristics of the number of different House water engineering facilities in the study area [37]. The specific calculation formula is as follows:

$$\begin{aligned} G_i^*=\frac{\sum _{j=1}^{n}{W_{ij}x_j}}{\sum _{i=1}^{n}x_i}. \end{aligned}$$
(9)

In Eq. \(G_i^*\) denotes the spatial autocorrelation statistic of water engineering facilities, \(x_j\) represents the attribute value of feature j, \(W_{ij}\) is the spatial weight between features i and j, and n is the total number of features.

Kernel density analysis

Kernel density analysis is primarily used to calculate surface density indicators, estimate data aggregation from sample data, and analyze changes in element density via the distance decay function. This method explores hotspot distribution and change characteristics in spatial regions. In this study, kernel density analysis will examine the spatial distribution density of hydraulic facilities. The analysis was performed using the Density tool in ArcGIS ToolBox. The estimation of g (x) at a point x is calculated as:

$$\begin{aligned} g(x)=\frac{1}{n h} \sum _{i=1}^{n} k\left( \frac{x-X_{i}}{h}\right) , \end{aligned}$$
(10)

where: k is the kernel function; h>0 is the bandwidth; (x-\(X_{i}\)) denotes the distance from the valuation point x to the event \(X_{i}\).

Tobit regression

Since the social indicators are between 0 and 1, which are restricted dependent variables, the use of ordinary least squares for parameter estimation will lead to biased and inconsistent parameter estimates [38], and the choice of the Tobit model can effectively solve the regression problem of the restricted dependent variables [39]. The formula is:

$$\begin{aligned}{} & {} y_{it}^*=\alpha +{\beta x}_{it}+u_i+\varepsilon _{it},y_{it}^*>0, \end{aligned}$$
(11)
$$\begin{aligned}{} & {} 0,y_{it}^*\le 0, \end{aligned}$$
(12)

where \(y_{it}^*\) is the restricted dependent variable; \(x_{it}\) is the independent variable; \(\alpha\) is the intercept term; \(\beta\) is the value of the regression parameter; \(u_i\) is the individual effect; and \(\varepsilon _{it}\) is the random error term, which is independent and follows a normal distribution.

Results and discussion

Characteristics of spatial and temporal distribution

Evolution of the overall spatial distribution

The global spatial autocorrelation calculations of the number of water engineering facilities in each of the Ming and Qing dynasty prefectures were carried out by the formula (5) and (6), and the results are detailed in Table 3 below.

Table 3 Summary of global spatial autocorrelation results for the Ming and Qing dynasties

Spatial autocorrelation analysis of water engineering facilities in the Ming and Qing Dynasties revealed that Moran’s I values were positive, and Z-scores passed the test at P<0.05. This indicates significant spatial clustering characteristics and autocorrelation of water engineering facilities in both dynasties. The Moran’s I value was 0.23424 in the Ming Dynasty and 0.200471 in the Qing Dynasty, indicating a decreasing trend, suggesting a discrete trend in the continuous improvement of water engineering facilities.

Fig. 3
figure 3

Center of gravity map of water engineering facilities in Ming and Qing dynasties

To further explore the evolution of the overall construction focus of water engineering facility spatial distribution patterns, combined with the formula (7) and (8), the centroid transfer results of water engineering facilities are shown in Fig. 3. By comparing the results, it can be observed that the spatial distribution of the center of gravity of water engineering facilities in the Ming and Qing Dynasties exhibits an overall southward movement trend, with a transfer distance of 10287 ms. This indicates rapid growth in the construction of water engineering facilities in the southern region.

Evolution of spatial distribution patterns

Hotspot analysis of the spatial distribution of Grand Canal water engineering facilities is shown in Fig. 4. In the Ming Dynasty, the hotspot areas of water engineering facilities were mainly distributed in Shuntian Prefecture, Yanzhou Prefecture, and Yangzhou Prefecture. Among them, Yanzhou Prefecture and Yangzhou Prefecture were hotspots with a confidence level of 99%. Yangzhou Prefecture had 175 water engineering facilities, accounting for 22.5% of all water engineering facilities. The next was the aggregation area of Yanzhou Prefecture, with 173 water engineering facilities, accounting for 22.2% of all water engineering facilities; in addition, there was a clustering phenomenon in the vicinity of Shuntian Prefecture, with water engineering facilities accounting for 14.2% of all water engineering facilities. In the Qing Dynasty, the hotspot areas of Grand Canal water engineering facilities were in Shuntian Prefecture, Yanzhou Prefecture, Huai’an Prefecture, and Yangzhou Prefecture. Among them, Yangzhou Prefecture was a hotspot area with a confidence level of 99%, with 234 water engineering facilities, accounting for 20.03% of all water engineering facilities. Huai’an Prefecture and Yanzhou Prefecture were hotspot areas with a confidence level of 95%, accounting for 13.27% and 12.67% of all water engineering facilities, respectively.

Fig. 4
figure 4

Hotspot map of water engineering facilities in the Ming and Qing dynasties

From the perspective of water engineering facility classification, the distribution of various types of water engineering facilities in each prefecture is shown in Fig. 5. In the Ming Dynasty, Huai’an Prefecture had the largest proportion of water retaining facilities, accounting for 23.91%. With continuous construction, the proportion increased in the Qing Dynasty, with water retaining facilities in Huai’an Prefecture accounting for 24.25%. Yangzhou Prefecture had the largest proportion of water storage facilities, water control facilities, and overflow facilities, accounting for 36.36%, 28.09%, and 36.98%, respectively. In the Qing Dynasty, the proportion decreased in Yangzhou Prefecture, with water storage facilities at 34.78%, water control facilities at 22.15%, and overflow facilities at 34.30%. Yanzhou Prefecture had the largest proportion of water storage facilities and water distribution facilities, accounting for 36.36% and 26.92%, during the Ming dynasty; in the Qing Dynasty, Shuntian Prefecture has the largest proportion at 21.16% of annexed facilities, and Yanzhou Prefecture had the largest proportion of water distribution facilities. This study employed kernel density analysis to analyze the spatial distribution patterns of water engineering facilities along the Grand Canal in the Ming and Qing Dynasties, generating their kernel density distribution maps (Figs. 67).

Fig. 5
figure 5

Distribution and percent age of each type of water engineering facilities in the Prefectures

Fig. 6
figure 6

Kernel density map of different types of wate engineering facilities in the Ming Dynasty

Fig. 7
figure 7

Kernel density map of different types of water engineering facilities in the Qing Dynasty

The results show that in both the Ming and Qing Dynasties, the Grand Canal water engineering facilities formed three overall aggregation areas. In the Ming Dynasty, the aggregation areas of water engineering facilities in Huai’an Prefecture and Yangzhou Prefecture were the most dense and had the largest aggregation area. In the Qing Dynasty, this trend continued to develop based on the Ming Dynasty. Among different types of water engineering facilities, in the Ming Dynasty, overflow facilities formed two aggregation areas, The density of the clustered areas in the central part of the country decreased in the Qing Dynasty. By comparing the kernel density distribution maps of water retaining facilities, water distribution facilities, and water control facilities in the Ming and Qing Dynasties, it can be concluded that water engineering facilities did not concentrate in a single area but exhibited a multi-point aggregation effect during the continuous improvement process. Annexed facilities and water storage facilities in the Qing Dynasty showed varying degrees of density enhancement based on the aggregation characteristics in the Ming Dynasty.

Analysis of influencing indicators

Time-series analysis of social development indicators

Regarding commercial development indicator, because of the greater weight of the influence of banknote customs in the Ming and Qing dynasties, their rapid growth led directly to a yearly increase in indicator. With regard to agricultural development indicator. Figures 8 and 9 demonstrate significant agricultural development, attributed to the government’s policy of encouraging land reclamation during the Ming and Qing dynasties. This led to a threefold expansion of China’s arable land area compared to the previous generation, along with a 77% increase in grain production [30]. Concerning population size indicator, the population grew significantly during the Ming and Qing dynasties, with particularly noticeable increases in the southern regions. For instance, the population of Suzhou increased from 2.01 million in 1578 to 5.2 million in 1810 [40]. As for transportation convenience indicator, there was a decline in the level of transportation convenience, especially evident in the southern regions. The main arterial relay roads, centered around Beijing and connecting various provinces, were established during the Ming dynasty [41]. However, subsequent developments were disorderly. In the Qing dynasty, limited financial resources for relay stations were concentrated on these main arterial roads, leading to their reorganization and a reduction in the number of relay stations and jidi pu [42]. Concerning indicator of cultural prosperity, the cultural prosperity index increased during the Qing dynasty, particularly evident in the prefectures along the Grand Canal. The Grand Canal not only facilitated commodity transportation but also carried rich spiritual and cultural elements. It facilitated the mutual integration of architectural technology, folk art, folk customs, and beliefs along its route [43], forming a unique cultural landscape and style [44].

Fig. 8
figure 8

Spatial and temporal patterns of development of various indicators of Ming society

Fig. 9
figure 9

Spatial and temporal patterns of development of various indicators of Qing society

Impact effect analysis of social development indicators

The study applied Tobit model to regression analysis of factors affecting spatial distribution of water engineering facilities. Before model estimation, the variables were first tested for multiple covariance, and the results in Table 4 showed that the maximum variance inflation factor (VIF) values were all less than 5 [45], so there was no covariance problem. There aren’t many historical records of riverworks facilities, and the limited data from these sites can make it difficult for the model to accurately compute the features and patterns of the data it receives, which lowers the model’s accuracy. In addition, the model will calculate data incorrectly and overfit the training set. For this reason, the Tobit regression model does not address the riverworks facilities. The results of the Tobit regression models for the Ming and Qing Dynasties are shown in Tables 5 and 6 below.

Table 4 Summary of VIF values for each social indicator in the Ming and Qing Dynasties
Table 5 Ming dynasty Tobit model regression results
Table 6 Qing dynasty Tobit model regression results

The regression coefficient of commercial development indicator in the Ming Dynasty on the water engineering facility model is 0.44 with a p-value of 0.005, while the regression coefficient of commercial development indicator in the Qing Dynasty is 0.417, also with a p-value less than 0.05. This indicates that the impact of commercial development in both the Ming and Qing Dynasties on the spatial distribution of water engineering facilities is positively correlated. From the perspective of water engineering facility classification, commercial development indicator in the Ming Dynasty have a positive correlation with the spatial distribution of water retaining facilities, water distribution facilities, ancillary facilities, and overflow facilities, while in the Qing Dynasty, there is a positive influence on the spatial distribution of damming facilities. Goods are transported and traded along the canal, resulting in numerous commercial towns. The main distribution centers in these towns require the construction of docks, towpaths, and wharves, among other shipping facilities, to ensure the smooth transportation of goods [46]. By the Qing Dynasty, local gentry gained greater influence, Their construction of numerous water engineering facilities has promoted the development of autonomous civil water management activities. Therefore, commercial development indicator played a significant role in promoting the construction of water engineering facilities.

From Tables 5 and 6, it can be observed that the agricultural development indicator of the Ming and Qing Dynasties did not show significant effects on the spatial distribution of water engineering facilities. Thus, it can be seen that the construction of the Grand Canal water conservancy system primarily served the transportation of grain northwards to meet the grain demands of the imperial court, bureaucrats, and the surrounding garrison. Moreover, due to the relative scarcity of water in localized sections of the Shandong Canal, during the Ming and Qing Dynasties, to ensure the water supply for the canal, it was strictly forbidden for people on both banks to divert river water for irrigating rice fields [47]. Therefore, water engineering facilities function to ensure the navigation of the canal, while the influence of arable land and land tax factors in agriculture on its spatial distribution is not significant.

In the area of population size indicator. Population size indicator from the Ming and Qing dynasties did not significantly influence the spatial distribution of water engineering facilities. Analyzing from the perspective of water engineering facility classification, the population size indicator from the Ming dynasty had a negative impact on the spatial distribution of water distribution facilities. Water distribution facilities were constructed to meet the demand for shipping water supply. The construction areas were relatively short of water resources, necessitating stricter protection measures. Historical records state that private citizens were prohibited from stealing or intercepting spring water for irrigation and domestic use. The environment was not conducive to population growth, resulting in smaller population sizes compared to water-rich areas. Overall during both the Ming and Qing dynasties, As water engineering facilities are predominantly planned by state agencies and constructed using mandatory labor from surrounding states and counties, large-scale population movements have not transpired, leading to an absence of significant correlation between population size indicator and the spatial distribution of water engineering facilities.

In the area of transportation accessibility indicator. According to the results of the water engineering facility model, the regression coefficient of the transportation convenience indicator during the Ming dynasty was 0.545, with a p-value of 0.022, indicating that the postal relay system promoted the construction of regional water engineering facilities. The transportation convenience indicator during the Qing dynasty did not demonstrate a significant influence on the spatial distribution of water engineering facilities. Analyzing results from different types of water engineering facilities, water control facilities and water distribution facilities had positive effects during the Ming dynasty, while transportation promoted water supply facilities during the Qing dynasty. The postal relay system was an important freight transportation system during the Ming and Qing dynasties, for which the court provided substantial funding, aiming to maintain the normal operation of the postal relay system [48]. There were numerous water relay stations along the Grand Canal, relying on the canal for rapid transportation and delivery, thus imposing higher requirements on the canal route, thereby promoting the construction of water engineering facilities.

In terms of cultural prosperity indicator. In the water engineering facility regression model, the cultural prosperity indicator from the Ming dynasty significantly influenced the spatial distribution of water engineering facilities. Simultaneously, it had a positive impact on the spatial distribution of water retaining facilities and annexed facilities. The cultural prosperity indicator from the Qing dynasty also had a positive influence on the spatial distribution of water distribution facilities and annexed facilities. The Ming government’s efforts in regulating the Huitong River section and opening the Qingjiangpu Canal and other projects led to the emergence of many water-related folk customs, legendary stories, and commemorative buildings. Successive water workers accumulated a wealth of hydraulic knowledge, which was passed down in these regions [49]. The belief in water deities spread southward along the canal, becoming integrated into the lives of local residents and widely worshipped [50]. This belief brought about hydraulic knowledge and experience, thus exerting a profound influence on the spatial distribution of water engineering facilities.

Conclusions and outlook

This study focuses on the prefecture traversed by the Grand Canal during the Ming Dynasty, collecting historical data and extracting ten factors from both the Ming and Qing dynasties. The entropy method is employed to construct indicators for commercial development, agricultural development, population size, transportation convenience, and cultural prosperity. ArcGIS Pro 3.0.0 software is utilized to quantitatively analyze the spatial distribution characteristics of water engineering facilities along the Grand Canal, while the Tobit model is employed to study the influencing factors of water engineering facility spatial distribution. The main conclusions are as follows:

  1. 1.

    The spatial distribution of water engineering facilities in the Ming and Qing Dynasties exhibits an aggregated pattern. with a shift towards a more dispersed pattern during the Qing Dynasty compared to the Ming Dynasty. The center of gravity of construction of water engineering facilities moves south. The spatial distribution pattern of water engineering facilities during the Ming Dynasty was characterized by hotspots such as Shuntian Prefecture, Yanzhou Prefecture, and Yangzhou Prefecture. In the continuous development of the canal in the process of construction of waterworks facilities are not concentrated in a certain region, but showing multi-point sub-regional aggregation phenomenon.

  2. 2.

    During the Ming and Qing dynasties, commerce continued to develop and the number of chaoguan increased, and the greater weight of chaoguan contributed to the yearly increase in commercial development indicators. Agricultural development indicator from the Ming and Qing dynasties indicate significant agricultural progress. Regarding transportation convenience indicators, there was a decline in transportation convenience, with the most significant decrease observed in southern regions. Population size indicator show significant population growth during the Ming and Qing dynasties, particularly notable in southern regions. Regarding cultural prosperity indicator, there was an increase in the cultural prosperity index during the Qing Dynasty, particularly notable in prefectures along the Grand Canal.

  3. 3.

    The regression coefficients for commercial development indicator during the Ming and Qing dynasties were 0.44 and 0.417, respectively, with p-values below 0.05, The influence of commercial development indicator on the spatial distribution of water engineering facilities is positively correlated in both the Ming and Qing dynasties. The impacts of the indicator on different types of water engineering facilities vary between the two dynasties. During the Ming Dynasty, The regression coefficients for transportation convenience indicators and cultural prosperity indicator during the Ming Dynasty were 0.545 and 0.93, respectively, both with p-values below 0.05, the indicators facilitated the construction of regional water engineering facilities, whereas in the Qing Dynasty, they significantly influenced several types of water engineering facilities. During the Ming and Qing Dynasties, neither the agricultural development indicator nor the population size indicator significantly affected the distribution of water engineering facilities. However, there was a negative correlation between the population size indicator and the distribution of water distribution facilities in the Ming Dynasty.

This study delves into the spatial distribution of water engineering facilities along the Grand Canal and their close relationship with social development, aiming to provide theoretical foundations for the construction and preservation of the Grand Canal heritage corridor. This study employs the Tobit model in an empirical investigation within the historical heritage field to analyze the quantitative impact of China’s urban historical development on canal constructionThis provides a new perspective for understanding the construction of the Grand Canal during the Ming Dynasty, the development of canal transportation, and cultural exchanges. This study enhances the importance of protecting historical social environments and provides guidance for effectively preserving, inheriting, and reasonably utilizing the cultural heritage of the canal. As one of the world’s major linear cultural heritages, the study of the Grand Canal of China is not only significant domestically but also provides valuable references for the spatiotemporal evolution and historical development research of other international linear cultural material heritages.