# # WGS_1984 works for coverages defined with an equivalent custom Transverse projection definition gp.GeographicTransformations = 'NZGD_1949_To_WGS_1984_3_NTv2' srOut = gp.CreateObject("SpatialReference") srOut.CreateFromFile("c:/arcgis/nzmg.prj") # this is a good on-the-fly switch for the searchcursor # srOut must be a com object, not a file ref or a factory code rows = gp.SearchCursor(ds+"/polygon",'"PAR_ID" > 0',srOut) n = 0 rows.Reset() row = rows.Next() while row : print >> f1,"%d,%s" % (row.par_id,row.shape.Extent.replace(" ",",")) row = rows.Next() n +=1 del rows
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.