11 2023 档案
摘要:1. 渲染多级菜单, 并调整数据 # 生成 菜单树状目录 class MenuTreeView(APIView): # 多层级 生成树状目录 def generate_menu_tree(self, parent_menu): temp_menu_list = [] sub_menus = mode
阅读全文
摘要:转载地址 https://blog.csdn.net/ProceduralMan/article/details/128682590
阅读全文
摘要: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
阅读全文