摘要:
import pandas as pd from pathlib import Path def backwardtrace(file: str): if not Path(file).is_file(): raise ValueError('File does not exist!') else: 阅读全文
摘要:
1. 读取 shp/geojson 边界文件 import geopandas as gpd file = 'media/abc.geojson' gdf = gpd.read_file(file) # 将 GeoDataFrame 转换为 GeoJSON 字符串 geojson = json.lo 阅读全文