Ignore:
Timestamp:
12/06/06 15:02:41 (14 years ago)
Author:
domlowe
Message:

Added new FeatureFileMap? option to Scanner. The option is called oneonly and means that the structure of just one file represents a feature spannign mulptiple directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmlscan.py

    r1083 r1156  
    102102        sys.argv =optargs 
    103103    try: 
    104             opts, args = getopt.getopt(sys.argv[1:], "d:c:t:frpo:h", ["directory=", "csmlfeaturetype=", "timedimension=", "filemapping=", "recursive", "printscreen", "outputfile=", "help"]) 
     104            opts, args = getopt.getopt(sys.argv[1:], "d:c:t:f:rpo:h", ["directory=", "csmlfeaturetype=", "timedimension=", "filemapping=", "recursive", "printscreen", "outputfile=", "help"]) 
    105105    except getopt.error, msg: 
    106106            print "Invalid options, use --help for help" 
    107107            sys.exit() 
    108108    print sys.argv 
     109     
    109110    # process options 
    110111    directory = None 
     
    114115    recursive = 0 
    115116    printscreen=0 
    116     print printscreen 
    117117    individual = False 
    118118    outputfile = 'csmloutput.xml' 
     
    129129                    elif v == '1n': 
    130130                        mapping = 'onetomany' 
     131                    elif v == '1o': 
     132                        mapping = 'oneonly' 
    131133            elif o in ("-p", "--printscreen"): 
    132134                    printscreen = 1 
     
    136138                    print usage 
    137139                    sys.exit()                           
    138      
    139140             
    140141    #create CSML: 
     
    167168 
    168169    csmldataset=csmllibs.csmlbuilder.csmlBuilder(directory,csmlfeaturetype,mapping,timedimension, outputfile, printscreen) 
    169     print "building csml..." 
     170    print 'building csml... with %s mapping '%mapping 
    170171    csmldataset.build() 
    171172     
Note: See TracChangeset for help on using the changeset viewer.