21 lines
700 B
Python
21 lines
700 B
Python
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") |