修复bug

master
chenzenghui 2025-09-26 10:28:31 +08:00
parent db88494e41
commit cf2423fc6b
2 changed files with 5 additions and 5 deletions

View File

@ -418,8 +418,8 @@ def getParams():
parser.add_argument('-i','--infile',type=str,default=r'D:\港口\港口\Geo_bc2-sm-org-vv-20231016t135315-008424-0020e8-01.military_harbor.shp', help='输入shapefile文件')
parser.add_argument('-o', '--outfile',type=str,default=r'D:\港口\港口dota\Geo_bc2-sm-org-vv-20231016t135315-008424-0020e8-01.military_harbor.txt', help='输出geojson文件')
parser.add_argument('-m', '--mLC',type=str,help=r'MLC', default=r'D:\TYSAR-德清院\目标点位信息更新\0828目标点位\港口(民船).shp')
parser.add_argument('-j', '--jLC',type=str,help=r'JLC' ,default=r'D:\TYSAR-德清院\目标点位信息更新\0828目标点位\港.shp')
parser.add_argument('-jm', '--jmlc',type=str,help=r'JMLC', default=r'D:\TYSAR-德清院\目标点位信息更新\0828目标点位\民一体港口.shp')
parser.add_argument('-j', '--jLC',type=str,help=r'JLC' ,default=r'D:\TYSAR-德清院\目标点位信息更新\0828目标点位\港.shp')
parser.add_argument('-jm', '--jmlc',type=str,help=r'JMLC', default=r'D:\TYSAR-德清院\目标点位信息更新\0828目标点位\民一体港口.shp')
parser.add_argument('-d', '--difficulty',type=int,default=1, help='输出geojson文件')
args = parser.parse_args()
return args

View File

@ -7,7 +7,7 @@ from pathlib import Path
# 函数区
########################################################
spacetySliceEnvPathExEPath=r"D:\ProgramData\miniconda3\envs\spacetySliceEnv\python.exe"
spacetySliceEnvPathExEPath=r"d:\ProgramData\anaconda3\envs\spacetySliceEnv\python.exe"
def find_tif_files_pathlib(directory):
"""
@ -66,8 +66,8 @@ def preProcessLabelshapefile(shpfilepath,preFolderPath):
# 流程执行区
########################################################
if __name__ == '__main__':
srcFolderPath = r"D:\Annotation_Y\港口\聚束模式"
preFolderPath= r"D:\Annotation_Y\港口\聚束模式"
srcFolderPath = r"D:\港口\港口"
preFolderPath= r"D:\港口\港口dota"
shpPaths = find_shp_files_pathlib(srcFolderPath)
for shppath in shpPaths:
preProcessLabelshapefile(shppath, preFolderPath)