Forum

Author Topic: Export crs to EPSG  (Read 2196 times)

MMNN

  • Newbie
  • *
  • Posts: 17
    • View Profile
Export crs to EPSG
« on: May 23, 2016, 01:40:27 PM »
Is there any way to get the EPSG from the project crs?

I tried to use
Code: [Select]
repr(chunk.crs) but it only returns:

<CoordinateSystem 'WGS 84 / UTM zone 32N (EPSG::32632)'>

which is very descriptive, but I just want the "32632"

Can anyone help?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14843
    • View Profile
Re: Export crs to EPSG
« Reply #1 on: May 23, 2016, 04:12:01 PM »
Hello MMNN,

You can use chunk.crs.authority. It will return the string in the following format: "EPSG::32632", so if you only need the code you can remove first six symbols.
Best regards,
Alexey Pasumansky,
Agisoft LLC

MMNN

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Export crs to EPSG
« Reply #2 on: May 24, 2016, 12:20:29 PM »
That totally worked, thank you so much!