Could We Flag EXPORT As When IMPORTING?

kbelliskbellis Global Mapper UserPosts: 518Trusted User
edited October 2013 in GM Script Language
After a regex cleaning up the EXPORT_METADATA looks like the following for loading all available lidar classes (see MAGILLA-stat.gms) - however, we cannot tell which layer represents which class. Is there anyway without spending $450 to have the associated layer identified at export as when they're imported; e.g.?,
LOAD_FLAGS="3145728,6.000,0,128~0~0~0~0~0~0~0,,4294967295,0.00,5.00,1"
TILE NAME:19_05604900
153672
0.50
-3.42
36.32


TILE NAME:19_05604900
149106
0.33
-1
19.42


TILE NAME:19_05604900
127
0.0001461586
-26.41
17


TILE NAME:19_05604900
220093
0.60
-1.96
29.08


TILE NAME:19_05604900
692788
0.44
-1.68
0.56

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited October 2013
    Do you maybe just need another parameter to the EXPORT_METADATA command for a header line to add to the results in the file?

    Thanks,

    Mike
    Global Mapper Guru
    geohelp@bluemarblegeo.com
    Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation
  • kbelliskbellis Global Mapper User Posts: 518Trusted User
    edited October 2013
    Sure... though I'm not sure what you're thinking, I'm betting it will work ;)

    Thank you Mike!
  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited October 2013
    I have added support for adding a HEADER parameter to the EXPORT_METADATA command to specify some text at the start of the output for an EXPORT_METADATA command. If you want to specify extra new lines just use \n. For example add HEADER="First Header Line\nSecond Header Line" to add 2 header lines before the metadata output.

    I have placed a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper15.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v15.xx installation folder to give it a try. If you are using the 64-bit v15 version there is a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper15_64bit.zip .

    Thanks,

    Mike
    Global Mapper Guru
    geohelp@bluemarblegeo.com
    Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation
  • kbelliskbellis Global Mapper User Posts: 518Trusted User
    edited October 2013


    i_neva_meta.gms
    GLOBAL_MAPPER_SCRIPT VERSION=1.00
    
    
    EXPORT_METADATA FILENAME="*" \
    HEADER="This is a very nice addition to any export\n\
    Thank you Mike! :)\n\n " \
    METADATA_FILENAME="i_neva_meta.txt"
    
    

    i_neva_meta.txt
    This is a very nice addition to any export
     Thank you Mike! :)
    
     
    FILENAME=C:\Jobs\2012\1245 Cold Spring\AS270\AS270.csv
    DESCRIPTION=AS270.csv
    AREA COUNT=0
    LINE COUNT=0
    POINT COUNT=2 (1 deleted)
    UPPER LEFT X=1028033.89
    UPPER LEFT Y=297270.38
    LOWER RIGHT X=1056990.77
    LOWER RIGHT Y=265619.57
    WEST LONGITUDE=68° 19' 56.9249" W
    NORTH LATITUDE=44° 28' 55.4871" N
    EAST LONGITUDE=68° 13' 16.5945" W
    SOUTH LATITUDE=44° 23' 42.1373" N
    PROJ_DESC=State Plane (Maine East) / NAD83 / feet
    PROJ_DATUM=NAD83
    PROJ_UNITS=feet
    COVERED AREA=21040 acres
    
    FILENAME=F:\2008 Low Tide imagery\Lamoine Village.gmc
    DESCRIPTION=Lamoine Village
    LIDAR POINT COUNT=0
    POINT CLOUD MEMORY=0.1 MB
    LIDAR POINT DENSITY=0 samples / m^2
    LIDAR OFFSET=( 0, 0, 0 )
    LIDAR SCALE=( 1, 1, 1 )
    UPPER LEFT X=549686.000
    UPPER LEFT Y=4927682.500
    LOWER RIGHT X=557188.000
    LOWER RIGHT Y=4922883.500
    WEST LONGITUDE=68° 22' 31.6391" W
    NORTH LATITUDE=44° 30' 2.7034" N
    EAST LONGITUDE=68° 16' 50.2685" W
    SOUTH LATITUDE=44° 27' 25.1773" N
    PROJ_DESC=UTM Zone 19 / NAD83 / meters
    PROJ_DATUM=NAD83
    PROJ_UNITS=meters
    EPSG_CODE=26919
    COVERED AREA=8896.3 acres
    NUM BANDS=3
    BIT DEPTH=24
    MAPS IN CATALOG=6
    
    FILENAME=C:\Jobs\2012\1245 Cold Spring\control.shp
    DESCRIPTION=control.shp
    AREA COUNT=0
    LINE COUNT=0
    POINT COUNT=11
    UPPER LEFT X=1028033.89
    UPPER LEFT Y=297270.37
    LOWER RIGHT X=1029051.60
    LOWER RIGHT Y=296679.99
    WEST LONGITUDE=68° 19' 56.0478" W
    NORTH LATITUDE=44° 28' 55.4871" N
    EAST LONGITUDE=68° 19' 41.9926" W
    SOUTH LATITUDE=44° 28' 49.6359" N
    PROJ_DESC=State Plane (Maine East) / NAD83 / feet
    PROJ_DATUM=NAD83
    PROJ_UNITS=feet
    COVERED AREA=13.793 acres
    
    




    This is a great addition for annotating any export! Thanks Mike!!
Sign In or Register to comment.