# # 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
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.