这里以导出S57海图数据点为例
UNLOAD_ALL
IMPORT FILENAME="S57文件路径" TYPE="S57" \
LAYER_DESC="Base Display Group" LAYER_GROUP="CN300602.000 [Scale 1:90000]" ELEV_UNITS="METERS" \
LABEL_FIELD_FORCE_OVERWRITE="NO" LABEL_FORMAT_NUMBERS="YES" LABEL_PRECISION="-1" \
LABEL_REMOVE_TRAILING_ZEROS="YES" LABEL_USE_SCIENTIFIC_NOTATION="NO" LOAD_FLAGS="1"
EXPORT_VECTOR EXPORT_LAYER="Depth and current information" EXPORT_LAYER="Depth and current information" \
TYPE="SHAPEFILE" FILENAME="输出矢量文件路径" SHAPE_TYPE="POINTS" \
EXPORT_MEASURES="NO" GEN_MULTI_PATCH="NO" DISCARD_EMPTY_ATTRS="YES" ALLOW_COMMA_DECIMAL="NO" \
INC_MAP_NAME_ATTR="YES" INC_STYLE_ATTRS="NO" CODE_PAGE="65001" GEN_3D_FEATURES="NO" \
INC_ELEV_ATTR="YES" INC_LAYER_ATTR="YES" CREATE_EXTRUDE_FACES="NO" GEN_PRJ_FILE="YES"
特别注意,对于一次同时处理多个数据时,每次IMPORT
前,都要调用UNLOAD_ALL
,否则文件将会被不断追加!
将以上文件保存成.gms文件,同时创建一个批处理文件
@echo off
chcp 65001
"D:\Program Files\GlobalMapper24.0_64bit\global_mapper.exe" temp.gms /showprogress
pause
文章评论