Global Mapper Pro

CSV Export Elevation Units

gklmdawson
gklmdawson Global Mapper User

I have an issue when importing a points list, reprojecting the points, and then exporting them in different coordinate system. I can get everything to work correctly except for the elevation units on export. they seem to use the unit assigned in global mapper. my hope would be to have the script run independently of any settings in global mapper. here is my script. any help or suggestions would be appriciated.


GLOBAL_MAPPER_SCRIPT VERSION=1.00

IMPORT FILENAME="C:\GMS\ELP2MG.bgd" ELEV_UNITS=METERS

IMPORT_ASCII FILENAME=".\GPSCOORDS.csv" TYPE=POINT_ONLY COORD_DELIM=AUTO COORD_ORDER=Y_FIRST INC_COORD_LINE_ATTRS=Yes SKIP_COLUMNS=1 SKIP_ROWS=1 PROJ=EPSG:4326 ELEV_UNITS=METERS

LOAD_PROJECTION PROJ="C:\GMS\MG.prj"

EDIT_VECTOR FILENAME=* APPLY_ELEVS=YES ADD_EXISTING_ELEV=YES INC_UNIT_SUFFIX=NO

EDIT_VECTOR ATTR_TO_KEEP="ATTR_1" ATTR_TO_KEEP="Elevation"

EXPORT_VECTOR TYPE=CSV FILENAME=".\output-final.csv" COORD_DELIM=COMMA EXPORT_ATTRS=NO_STYLE PRECISION=4 EXPORT_HEADER=YES INC_ELEV_ATTR=NO

Sign In or Register to comment.