Forum

Author Topic: specifying local coord system in new Python API  (Read 3005 times)

gelwo

  • Newbie
  • *
  • Posts: 3
    • View Profile
specifying local coord system in new Python API
« on: November 06, 2015, 05:23:46 AM »
Hello Alexey,


Hopefully an easy question for you. How do I programatically set coordinate system to Local?  I've tried a few different possibilities based on the example below but none of them worked.

>>> import PhotoScan
>>> chunk = PhotoScan.app.document.chunk
>>> chunk.crs = PhotoScan.CoordinateSystem("EPSG::32641")


Cheers,
GE

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14968
    • View Profile
Re: specifying local coord system in new Python API
« Reply #1 on: November 06, 2015, 01:52:14 PM »
Hello gelwo,

you can use WKT definition to assign the Local Coordinate system:

Code: [Select]
crs = PhotoScan.CoordinateSystem('LOCAL_CS["Local Coordinates",LOCAL_DATUM["Local Datum",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]')
Best regards,
Alexey Pasumansky,
Agisoft LLC