refactor: 重构项目结构,将geo_tools重命名为app并更新相关引用

- 将主包名从geo_tools改为app
- 更新所有模块中的引用路径
- 迁移并更新测试用例
- 添加项目规则文档
- 保持原有功能不变,仅进行结构调整
This commit is contained in:
2026-04-12 19:49:56 +08:00
parent fcb8e1f255
commit db51d41aef
41 changed files with 4132 additions and 808 deletions

View File

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