Features
Support
Community
Downloads
Buy
About
Forum
Home
Search
Login
Register
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Export crs to EPSG
« previous
next »
Print
Pages: [
1
]
Author
Topic: Export crs to EPSG (Read 2196 times)
MMNN
Newbie
Posts: 17
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?
Logged
Alexey Pasumansky
Agisoft Technical Support
Hero Member
Posts: 14843
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.
Logged
Best regards,
Alexey Pasumansky,
Agisoft LLC
MMNN
Newbie
Posts: 17
Re: Export crs to EPSG
«
Reply #2 on:
May 24, 2016, 12:20:29 PM »
That totally worked, thank you so much!
Logged
Print
Pages: [
1
]
« previous
next »
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Export crs to EPSG
Features
Support
Community
Downloads
Buy
About
Features
Support
Community
Downloads
Buy
About
Metashape presentation
(PDF, 5 Mb)