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
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.