初次提交

This commit is contained in:
2026-03-04 17:07:07 +08:00
commit af988ea7b9
37 changed files with 3674 additions and 0 deletions

21
tests/test_proj.py Normal file
View File

@@ -0,0 +1,21 @@
import sys
import os
os.environ["OGR_ORGANIZE_POLYGONS"] = "SKIP"
from pathlib import Path
# 添加项目根目录到路径
project_root = Path(__file__).parent.parent
sys.path.insert(0, str(project_root))
import geo_tools
from geo_tools.core import projection
from geo_tools.config.project_enum import CRS
info = projection.get_crs_info(CRS.CGCS2000_6_DEGREE_ZONE_18.value)
print(info)
print(type(CRS.CGCS2000_3_DEGREE_ZONE_27))
# aa = geo_tools.read_vector(r"E:\@三普\@临时文件夹\样点异常值剔除\容县\异常样点数据\AB_outliers.shp")
# projection.reproject_gdf(aa,CRS.CGCS2000_3_DEGREE_ZONE_37).to_file(r"E:\@三普\@临时文件夹\样点异常值剔除\容县\AB_ou.shp")