import arcgisscripting gp = arcgisscripting.create(9.3) gp.SetProduct("ArcEditor") try: gp.workspace = r"/home/sde/ptest/script/SDE_SQLServer.sde" # gp.workspace = r"/home/sde/ptest/script/SDE_Oracle.sde" fcs = gp.ListDatasets() print "Listing datasets:\n" for fc in fcs: print fc except: errMsg = gp.GetMessage(0) errMsg += gp.GetMessage(2) print "Error:" + str(errMsg)
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.