# #end checks # if outFC != "#": outFC = outFC.replace("\\", "/") fullName = os.path.split(outFC) outFolder = fullName[0].replace("\\", "/") shapeClass = "Point" # #collect the points # outPnts = [] # #generate the points # pnts = PM.rect_ext(n, L, R, B, T) # outPnts.append(pnts) # #optional shapefile creation if outFC != "#": fieldsToAdd = [["Group", "LONG", "9", "#"], ["X", "DOUBLE", 16, 7], ["Y", "DOUBLE", 16, 7]] py_gp.createPointFile(outFC, shapeClass, "#", outPnts, fieldsToAdd, arcpy) arcpy.AddMessage("\n" + "You can join the original table to " \ + "this shapefile table if you want other attributes." + "\n") # #optional csv file creation or output to screen if outCSV != "#": PM.to_CSV(outCSV, outPnts) #
# # end checks # if outFC != "#": outFC = outFC.replace("\\", "/") fullName = os.path.split(outFC) outFolder = fullName[0].replace("\\", "/") shapeClass = "Point" # # collect the points # outPnts = [] # # generate the points # pnts = PM.rect_ext(n, L, R, B, T) # outPnts.append(pnts) # # optional shapefile creation if outFC != "#": fieldsToAdd = [["Group", "LONG", "9", "#"], ["X", "DOUBLE", 16, 7], ["Y", "DOUBLE", 16, 7]] py_gp.createPointFile(outFC, shapeClass, "#", outPnts, fieldsToAdd, arcpy) arcpy.AddMessage( "\n" + "You can join the original table to " + "this shapefile table if you want other attributes." + "\n" ) # # optional csv file creation or output to screen if outCSV != "#": PM.to_CSV(outCSV, outPnts) #