The paper presents the structure of a new original FDPS (Functional Discrete Perfect Sets) algorithm used to filter and arrange the layers of the geospatial data into the homogenous groups and identify dense homogenous condensations. The latter may be related to the deep zones of dynamic instability in the upper part of the Earth's crust. Synthetic and real examples of this algorithm's usage are presented, demonstrating its capabilities as part of the system analysis of the geological environment stability in the area of construction of a deep disposal site for high-level radioactive waste. Testing the algorithm allowed us to identify the most stable blocks, thereby demonstrating its usage value. This shows the necessity of further development and use of the FDPS algorithm.