It might be very simple task. But I would appreciate if someone can comment on How I can get easting and northing of a single cell raster using arcpy as this value is used for in further steps. Thanks!
|
|
Exporting to a point file and adding XY should work, and probably be easier than calculating the northing and easting directly from a raster. However, if you absolutely must have the info from the raster, you might try retrieving the x and y extent properties via arcpy.GetRasterProperties_management? Depending on whether the extent of the raster is just the individual cell or if it extends far beyond, this would give you the coordinates of one of the corners. If your raster extent is beyond the cell, then you would have to know what column and row that cell was located at, and use those combined with the cell size and an extent corner to get the northing and easting. |
||||
|
|
|
hi you could also do something like this `rast = arcpy.Raster(inrast) this returns dounblesext = rast.extent Xmax = ext.XMax Xmin = ext.XMin YMax = ext.YMax Ymin = ext.YMin this returns pointsLL = ext.lowerLeft LR = ext.lowerRight UL = ext.upperLeft UR = ext.upperRight` |
|||
|
