import ascii point data to globalmapper 11.01 using script

montasermontaser Global Mapper UserPosts: 41Trusted User
edited January 2011 in Technical Support
Dear All,

I have the following ascii which contains the following:

DESCRIPTION=Stadium
NAME=maha2
POINT_SYMBOL=Stadium
FONT_SIZE=12
FONT_COLOR=RGB(0,0,0)
FONT_CHARSET=0
721037.462 3277267.915 -999999

I'm trying to use the following script:


GLOBAL_MAPPER_SCRIPT VERSION=1.00

IMPORT_ASCII FILENAME=">C:\Users\Maria\Desktop\maha5.xyz"
EDIT_VECTOR POINT_TYPE="Stadium"



I'm trying to show point symbol (stadium) but with no further success.....why??

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited January 2011
    Since the symbol name is in the text file you don't need to use the EDIT_VECTOR command, but your IMPORT_ASCII command needs some work. First off, remove the > at the beginning of the filename. Also add other parameters as follows:

    IMPORT_ASCII FILENAME="C:\Users\Maria\Desktop\maha5.xyz" TYPE=POINT_ONLY COORD_DELIM=WHITESPACE

    See http://globalmapper.com/helpv12/ScriptReference.html#cmd_import_ascii for a description of the IMPORT_ASCII command.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • montasermontaser Global Mapper User Posts: 41Trusted User
    edited January 2011
    It's still not showing the feature type( Description: Stadium) icon on GM....why??
    I'm using the following script:

    GLOBAL_MAPPER_SCRIPT VERSION=1.00
    IMPORT_ASCII FILENAME="C:\Users\Maria\Desktop\maha5.xyz" TYPE=POINT_ONLY COORD_DELIM=AUTO PROJ_FILENAME="C:\Users\Maria\Desktop\jtm.prj"

    with projection file that contains the folllowing:

    PROJCS["UTM Zone 36, Northern Hemisphere",GEOGCS["Geographic Coordinate System",DATUM["D_WGS84",SPHEROID["WGS84",6378137,298.257223560493]],
    PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",33],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]
  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited January 2011
    Hmmm I just tested your script with the small sample feature that you provided and it worked fine for me. What version of Global Mapper are you using? Can you provide the actual .xyz file that you are using?

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • montasermontaser Global Mapper User Posts: 41Trusted User
    edited January 2011
    I'm using the 11.01 and demo version of 12

    I've changed the extension of both gps1.gms into gps1.gms.txt / and maha5.xyx into maha5.xyx.txt
    to upload files into the forum
  • PaulTocknellPaulTocknell Forum Administrator Posts: 307
    edited January 2011
    I can allow new file extensions format for the forum. Just to confirm you need .gms and .xyz formats allowable for upload, correct?
  • montasermontaser Global Mapper User Posts: 41Trusted User
    edited January 2011
    Sure..confirmed.
    thanks for ur quick response
    ..Impressive actions from GM's Family!!
  • PaulTocknellPaulTocknell Forum Administrator Posts: 307
    edited January 2011
    Those file extensions are added.

    Mike always brings his "A" game to customer support. I'm just attempting to match him with forum issues.
  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited January 2011
    I just tried your script with files and it works fine for me. The point comes in with the Stadium symbol and a type of Summit (since that is what your description attribute listed). What do you see when you run the script? Are you making sure to check the option to run the script in the context of the main view so that the data will actually show in the main map view?

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • montasermontaser Global Mapper User Posts: 41Trusted User
    edited January 2011
    Thanx Mike
    It's a great software with great support.
Sign In or Register to comment.