import arcpy from arcpy import env if __name__ == '__main__': env.workspace = 'c:/temp/python' zPath = "c:/temp/python/test.shp" print"toto" pDesc = arcpy.Describe(zPath) # error here RuntimeError: DescribeData: Method DatasetType does not exist print pDesc.DatasetType # and here pExtent = pDesc.Extent # and here print "Extent of shape :\nXMin: %f, YMin: %f, \nXMax: %f, YMax: %f" % \ (pExtent.XMin,pExtent.YMin,pExtent.XMax,pExtent.YMax) # and here pSr = pDesc.spatialReference print pSr.name
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.