1 Introduction

The increase in population and urbanization causes an increase in the amount of waste produced [1], which requires the construction of landfills considering many factors. Landfills that are randomly located have harmful and sometimes dangerous consequences (bad smells, water pollution, soil pollution) on the environment and society [2]. Therefore, many factors must be considered to avoid environmental and social crises in locating a landfill. The protection of water networks and groundwater [3], the protection of forests and agricultural lands [4], the distance from parks and tourist sites [5] and the protection of the quality of the area in the cities [6] are among the essential factors in locating a landfill; other factors can be taken into account to reduce the costs (distance from roads, etc.).

For example, the presence of water surfaces near the landfill was a significant concern because it influenced the quality of the surrounding water. Similarly, the area's topography, including elevation, slope and slope direction, was crucial to understanding water flows; the proximity of residential areas can increase risks to human health and generate worries about security. Protected areas, forests and farmland are often sensitive to pollution and environmental degradation; the proximity of a landfill can have a negative impact on biodiversity.

The AHP is a multi-criteria method based on a pair-wise comparison approach proposed by Saaty [7, 8], which enables comparing items two by two according to their relative importance based on the Saaty scale. Many studies that have been conducted to locate a landfill have used other methods, such as Fuzzy AHP [9,10,11], The PROMETHEE method [12, 13] (Preference Ranking Organization Method for Enrichment Evaluation), the ELECTRE [14, 15] method (Elimination And Choice Translating Reality), and the TOPSIS [16, 17] method (Technique for Order Preference by Similarity to Ideal Solution). The integration of GIS and AHP is an approach that is also widely used in other installations such as solar panels, wind farms, etc.

Recent studies on landfill site selection have seen significant developments in the factors considered and implemented. These studies have taken a holistic approach, integrating information from various sources, including geospatial data environmental and socio-economic factors. For example, several studies have implemented Geographic Information Systems (GIS) to integrate data relating to topography, water surface, proximity to populated and protected areas, and other factors vital to the landfill site selection process. In addition, the Analytic Hierarchy Process (AHP) methodology has been increasingly used to classify these factors according to their respective importance, enabling more objective decision-making based on well-defined criteria.

This study developed a GIS-based model to identify appropriate areas to locate a solid waste landfill by considering nine criteria using the AHP method. Most studies have used the integration of Geographic Information Systems (GIS) and the analytical hierarchy process (AHP) as a search methodology to locate a landfill.

2 Materials and methods

2.1 Study area

The province of Fez is located in the region of Fez-Meknes in the northern part of Morocco (Fig. 1) [18]; according to the High Commission of the Plan of Morocco (HCP) in 2014, the total population of the province was about 1,146,478 inhabitants. It is the largest population of the region Fez-Meknes [19]. Therefore, the province of Fez is considered one of the most urbanized provinces in Morocco, which produces large amounts of waste. This urbanization has adverse effects on the environment and society.

Fig. 1
figure 1

Geographic location of Fez province

2.2 Data collection and processing

The criteria used in this study were chosen to protect the province of Fez from environmental and social crises resulting from the wrong location of a waste landfill and minimize costs.

The data and methodology used in this study to select suitable areas for locating a solid waste landfill are presented in Fig. 2. First, before starting the process, it is essential to understand the context of the study, including the geographical area in which the landfill is located and the specific environmental issues associated with it. These may include geographical, climatic, economic, social or political factors influencing the impact and management of the landfill. This is known as the Contextual relevancy principle. So, nine criteria are selected and examined, including distance from residential areas, distance from surface water, distance from protected areas (parks and gardens), distance from forests, farmlands, elevation, slope, the direction of the slope and distance from roads.

Fig. 2
figure 2

Flowchart of the methodology for selecting suitable areas for landfill location

Then, the collection of these criteria is done from different sources, The data for residential areas, surface water areas, forests, farmland, protected areas and roads were extracted from OpenStreetMap (OSM), an online mapping database powered by contributors worldwide. The elevation data was obtained from the United States Geological Survey (USGS), a US government agency specializing in mapping and geology, from which the slope and slope direction were calculated. Finally, the input data and reclassification processing are done using GIS software.

The criteria were then subdivided into sub-criteria, and the importance of each criterion concerning the other criteria was identified using the Saaty Scale to identify the weights of the criteria using the AHP method. Finally, the map of suitable areas for the location of a solid waste landfill was developed by considering all criteria with their weight.

2.3 Methodology and applications

The AHP method was applied to identify the weight of each criterion after data preparation and processing. First, the Saaty scale, a scale from 1 to 9 [20, 21], was used to identify the importance of each criterion to another (Table 1); this scale was used to calculate the pairwise comparison matrix; the weights are calculated by normalizing the comparison matrix, so the more critical the criterion is the higher the weight.

Table 1 AHP scale for pair-wise comparison [25]

In order to maintain the consistency of judgments, we employed the consistency index (CI), which was derived from the comparison matrix. The CI serves as a metric to gauge the level of consistency among the judgments provided by decision-makers [22]. To calculate the CI, we subtracted the number of criteria (n) from the geometric mean of the eigenvectors (L.max) and then divided the result by n − 1. A CI value below 0.1 is acceptable, whereas values exceeding 0.1 indicate inconsistent judgments. The formula (1) for CI is expressed as follows:

$$CI = ~\frac{{L.\max - ~n}}{{n - 1}}$$
(1)

The Consistency Ratio (CR) is an essential indicator that measures the consistency of the judgments made in the pairwise comparison matrix [23]. To ensure the reliability of the judgments, the CR should be less than or equal to 0.1. Conversely, if the CR value is more significant than 0.1, the judgments are inconsistent and may need to be revised.

The Consistency Index (CI) is divided to calculate the CR by the Random Index (RI). The RI is a reference threshold value used to calculate the CR [24]. It is determined based on the size of the pairwise comparison matrix. The RI is calculated using a random set of comparison matrices of the same size and averaging their CI values.

The CR formula (2) is as follows:

$$CR = \,\frac{CI}{{RI}}$$
(2)

The input data was of two types—shapefile and raster. There were six shapefile data layers: surface water, residential areas, roads, protected areas, forests, and farmland. The other data layers were raster type: elevation, slope, and direction.

The raster data layers were reclassified directly, while the shapefile data layers required an additional step to calculate buffer zones. The buffer zones were calculated for each shapefile data layer in five classes. The distances chosen for each class were based on specific criteria. For example, for protected areas, farmland, and forests, the distances were less than 300 m for the first class, between 300 and 900 m for the second class, between 900 and 1500 m for the third class, between 1500 and 2100 m for the fourth class, and more than 2100 m for the fifth class. Similarly, for surface water, the distances were less than 500 m for the first class, between 500 and 1000 m for the second class, between 1000 and 1500 m for the third class, between 1500 and 2000 m for the fourth class, and greater than 2000 m for the fifth class. Each class was set at a distance of 1000 m for residential areas, while for roads, each class was set at 250 m.

After calculating the buffer zones for the shapefile data, the resulting data was converted to raster format with a specified cell size of 30 m and reclassified. This grid size was chosen to ensure an appropriate level of spatial resolution for our analysis. This step was necessary to ensure that all the criteria were in the same format, making it easier to analyze and compare them.

The resulting data in raster format for all the criteria were combined into a single map, as shown in Fig. 3. This map was then used to identify suitable sites for the solid waste landfill using the AHP approach based on GIS.

Fig. 3
figure 3

Criteria considered in the study: distance from surface water (a), distance from residential areas (b), distance from protected areas (c), distance from forests (d), farmland (e), direction of the slope (f), distance from roads (g), elevation (h) and slope (i)

3 Results and discussion

The CR value of 0.056 obtained in this study (Fig. 2) indicates that the pairwise criteria comparisons were consistent and reliable. The CR values for the sub-criteria were also satisfactory, with all values less than 0.10 (Fig. 2). The CR value for elevation, slope, and distance from roads was found to be 0.015. In contrast, the direction of the slope had a CR value of 0.056. The other criteria had a CR value of 0.039, which indicates their reliability.

Table 2 presents the weight of each criterion, with the distance from residential areas being the essential criterion with a weight of 0.344. This indicates that locating a solid waste landfill far away from residential areas is crucial to minimize the impact on human health. The second most important criterion was the distance from surface water, with a weight of 0.219. This is because surface water is a valuable resource that should be protected from contamination. The distance from roads also had a significant weight of 0.160, as it is necessary to minimize the transportation cost of waste.

Table 2 Weights of criteria and sub-criteria

Moreover, the distance from protected areas was also crucial, weighing 0.078. This indicates the need to avoid locating a solid waste landfill near parks, gardens, and tourist areas to preserve their ecological value. The remaining criteria, including forests, farmland, and residential areas, had varying levels of importance.

Figure 4 illustrates the suitability map for locating a solid waste landfill in the province of Fez. The map clearly shows that the northern and northwestern parts of the province, where urban areas, parks, and surface water are located, are unsuitable for landfill sites. These areas are represented in red color, indicating the lowest suitability. On the other hand, the southern and southeastern parts of the province have a large area that is moderately suitable for landfill sites, represented in yellow and orange colors. Interestingly, the map also shows two areas with the highest suitability for landfill sites, represented in green color, in the southern and southeastern parts of the province. These areas are far from residential areas to protect the public from pollution, and they are also located away from surface water, protected areas, and forests to preserve the natural environment and resources. In addition, the two areas are situated near the road, making transporting the waste more accessible and more cost-effective.

Fig. 4
figure 4

Suitability map for locating a solid waste landfill in the Province of Fez

The suitability map provides valuable information for decision-makers and stakeholders to identify suitable locations for landfill sites considering environmental, social, and economic factors. It also highlights the importance of using advanced spatial analysis tools, such as GIS and AHP, to support decision-making processes in solid waste management.

Several significant implications and applications arise from this research. By better understanding the factors influencing the landfill situation in the province of Fez, the results of this study can also be used to identify high-risk areas, enabling appropriate preventive measures to be put in place. In addition, our methodology can be adapted to other environmental problems, providing a replicable model for similar assessments in different regions. Ultimately, the research aims to contribute to the protection of the environment, the preservation of public health, and the well-being of the inhabitants of Fez by providing usable information for more effective waste management.

4 Conclusion

The results of this study indicate that integrating GIS with the AHP technique is a feasible strategy for determining appropriate sites for solid waste disposal facilities. The findings indicate that the proximity of residential areas, surface water, and road networks are the primary variables to consider while determining a landfill location. The regions towards the province's south and southeast have been identified as the most suitable locations for establishing a landfill. Conversely, the north and northwest regions, encompassing urban areas, parks, and gardens, have been deemed less appropriate. In addition, integrating a Geographic Information System (GIS) and Analytical Hierarchy Process (AHP) can facilitate decision-making by prioritizing and evaluating diverse social, environmental, and economic factors. This approach can lead to the identification of optimal landfill sites, as they minimize the adverse effects on the environment and society. The evaluations of specialists in environmental and socio-economic domains who participate in the decision-making process may impact the outcomes of appraisal models that rely on the Analytic Hierarchy Process (AHP) technique. The present study’s outcomes can provide significant perspectives to policymakers in the Moroccan province of Fez and other territories facing similar difficulties in managing solid waste. The methodology proposed in this investigation has the potential to make a valuable contribution to the advancement of sustainable development by ensuring the optimal siting of waste disposal sites while simultaneously reducing negative ecological and health consequences.