/ Published in: Python
courtesy of Luke Pinner @environment.gov.au
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import arcgisscripting gp = arcgisscripting.create() inshape_1 = 'c:/temp/%s' % gp.ValidateTableName('feature1.shp') inshape_2 = 'c:/temp/%s' % gp.ValidateTableName('feature2.shp') outshape = 'c:/temp/%s.shp' % gp.ValidateTableName('My-Merge-Output') print inshape_1 >>> >>> c:/temp/feature1_shp print inshape_2 >>> >>> c:/temp/feature2_shp print outshape >>> >>> c:/temp/My_Merge_Output.shp # Note; don't use on full path! print gp.ValidateTableName('c:/temp/My-Merge-Output.shp') >>> >>> c__temp_My_Merge_Output_shp