Looking for Інтелектуальні геоінформаційні системи (F3 Комп'ютерні науки, ОП "Інтелектуальний аналіз даних в КІС") test answers and solutions? Browse our comprehensive collection of verified answers for Інтелектуальні геоінформаційні системи (F3 Комп'ютерні науки, ОП "Інтелектуальний аналіз даних в КІС") at moodle.chnu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
import geopandas as gpd
def spatial_query(buildings_gdf, rivers_gdf, distance=50): rivers_buffer = rivers_gdf.buffer(distance) rivers_buffer_union = gpd.GeoSeries(rivers_buffer).unary_union buildings_in_buffer = buildings_gdf[buildings_gdf.intersects(rivers_buffer_union)] return buildings_in_buffer
import geopandas as gpdfrom shapely.geometry import LineString, Point
def analyze_network(roads_gdf): endpoints = [] for idx, row in roads_gdf.iterrows(): if isinstance(row.geometry, LineString): endpoints.append(Point(row.geometry.coords[0])) endpoints.append(Point(row.geometry.coords[-1])) points_gdf = gpd.GeoDataFrame(geometry=endpoints) intersections = points_gdf[points_gdf.duplicated(keep=False)] dangling_nodes = points_gdf[~points_gdf.duplicated(keep=False)] return { 'intersections': len(intersections) // 2, 'dangling_nodes': len(dangling_nodes) }
Яку топологічну проблему виявляє цей код?