mlago16

Getting raster cell indexes from point coordinates

Discussion created by mlago16 on Oct 29, 2013
Latest reply on Nov 5, 2013 by modybsystematics-co-il-esridist
Hi,

I have a point shape file (IFeatureLayer) and a raster file (IRaster) taken from an ArcMap project. My goal is to convert from the point coordinates to raster cell indexes. So, the following steps may be necessary

1) get coordinates (XF,YF) of each point in the feature layer
2) convert coordinates (XF,YF) to raster spatial reference (XR,YR)
3) convert from coordinates (XR,YR) to grid cell indexes (kXR,kYR) in raster file

I am not sure how to code these steps by using the ArcObjets .NET. I am using ArcMap 10.1 and coding in C#. If you could send me some hints or snippets for these steps, it would be greatly appreciated.

Thanks in advance for all your help, Marcelo.

Outcomes