I am having a bunch of .csv files containing "x" and "y" of some locations (to be specific, Brazil and the coordinate system is SIRGAS 2000). I want to convert them into wgs84 i.e, lat/long using arcpy and rewrite the .csv files having lat/longs to corresponding "x" and"y" using python. Can anyone please help me doing that?


Here is one option to create the arcpy code:

  1. Create a ModelBuilder model
  2. Add/connect Make XY Event Layer -> Feature Class to Feature Class -> Project -> Add XY Coordinates -> Copy Rows tools, and define all parameters and run model. This will convert your .csv table to a layer that you can re-project and add new x/y field with the 4326 coord values
  3. Finally, in the model export out python script, Model (menu) -> Export -> To Python Script...

This will produce the related arcpy/python script which you may use and tweek as needed.

  • I have a doubt...does this Project take .csv files directly??
    – Nil
    Mar 17 '16 at 7:05
  • 1
    @Nil, updated my answers to handle initial .csv data.
    – artwork21
    Mar 17 '16 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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