From cf2423fc6b868094dc233241d0017c808d737647 Mon Sep 17 00:00:00 2001 From: chenzenghui <3045316072@qq.com> Date: Fri, 26 Sep 2025 10:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LabelPortShipRasterSlice/Portshapefile2dota_AA.py | 4 ++-- LabelPortShipRasterSlice/shpfile2dotaBatch.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LabelPortShipRasterSlice/Portshapefile2dota_AA.py b/LabelPortShipRasterSlice/Portshapefile2dota_AA.py index 0a2a41e..ce1dbd2 100644 --- a/LabelPortShipRasterSlice/Portshapefile2dota_AA.py +++ b/LabelPortShipRasterSlice/Portshapefile2dota_AA.py @@ -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 diff --git a/LabelPortShipRasterSlice/shpfile2dotaBatch.py b/LabelPortShipRasterSlice/shpfile2dotaBatch.py index 5549614..080429e 100644 --- a/LabelPortShipRasterSlice/shpfile2dotaBatch.py +++ b/LabelPortShipRasterSlice/shpfile2dotaBatch.py @@ -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)