import sys import os os.environ["OGR_ORGANIZE_POLYGONS"] = "SKIP" from pathlib import Path # 添加项目根目录到路径 sys.path.insert(0, str(Path(__file__).parent.parent)) import app gdb_path = r"E:\@三普\@临时文件夹\临时数据库.gdb\马关综合后图斑" shp_path = r"E:\@三普\@临时文件夹\新建文件夹\靖西二普样点\AK.shp" shp = r"E:\@三普\@临时文件夹\新建文件夹\靖西二普样点" gdb = r"E:\@三普\@临时文件夹\新建文件地理数据库.gdb" # 列出图层 # layers = geo_tools.readers.list_gdb_layers(gdb_path) # print(layers) # 读取图层 gdf = app.readers.read_vector(gdb_path) print(gdf.crs) # 获取几何类型 print(gdf.head())