0

i am new ArcGis 10.2 user and I have the attributed data for the land cover type (I use Raster to point tool) but it does not have the exact latitude and Longitude at the point. Could anyone please help or suggest me some idea about it? I read the website, they said I have to use the VBA script to cope with this problem, I tried but it show enter image description here.

8
  • Use this tool resources.arcgis.com/en/help/main/10.1/index.html#//…
    – Learner
    Commented Aug 5, 2015 at 8:39
  • Please add the error you get in the Geoprocessing results window, To Open this window go to the "Geoprocesing" menu at the top of the screen and then select "Results". You will then be able to expand the results for the current session and view the detailed results.
    – Dan_h_b
    Commented Aug 5, 2015 at 8:49
  • @Dan_h_b This one is the script. Dim dblX as double Dim pPoint as IPoint Set pPoint = [Shape] dblX = pPoint.X
    – faris
    Commented Aug 5, 2015 at 8:57
  • @faris can we see the error message and the code so we can help with the process? Otherwise it's a bit of a poke in the dark...
    – spk578
    Commented Aug 5, 2015 at 8:58
  • @spk578 It error show ... 999999: error executing function. :)
    – faris
    Commented Aug 5, 2015 at 9:04

1 Answer 1

0

Use the Add XY Coordinates tool on the points feature class. The tool will add two fields Point_X and Point_Y.

Be careful of:

  • The coordinate system being used by the data itself as the tool add's Latitude and Longitude values as appropriate for Geographic Coordinate Systems and vs linear positions for Projected Coordinate Systems.
  • The tool calculates the X and Y based on the CRS of the data source not the data frame.

Add XY Coordinates tool

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.