diff --git a/LabelPortShipRasterSlice/Portshapefile2dota_AA.py b/LabelPortShipRasterSlice/Portshapefile2dota_AA.py index ceaa3da..c81d62e 100644 --- a/LabelPortShipRasterSlice/Portshapefile2dota_AA.py +++ b/LabelPortShipRasterSlice/Portshapefile2dota_AA.py @@ -415,8 +415,8 @@ def PortShapeProces(shp_path, output_path, MLCPath,JLCPath,JMLCPath,difficulty_v def getParams(): parser = argparse.ArgumentParser() - parser.add_argument('-i','--infile',type=str,default=r'D:\Annotation_Y\港口\聚束模式\20250505_sp\bc3-sp-org-vv-20250410t053930-020615-000034-005087-01_LC.shp', help='输入shapefile文件') - parser.add_argument('-o', '--outfile',type=str,default=r'D:\Annotation_Y\港口\聚束模式\20250505_sp\bc3-sp-org-vv-20250410t053930-020615-000034-005087-01_LC.txt', help='输出geojson文件') + 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') @@ -439,7 +439,7 @@ if __name__ == '__main__': print('jLCPath=',jLCPath) print('jmLCPath=',jmLCPath) print('difficulty=',difficulty) - + PortShapeProces(inFilePath, outpath, mLCPath, jLCPath, jmLCPath, difficulty_value=difficulty) exit(2) except Exception as e: print(e)