Forum

Author Topic: buildOrthoMosaic/buildDEM projection Python v1.6  (Read 2562 times)

sven_a

  • Newbie
  • *
  • Posts: 19
    • View Profile
buildOrthoMosaic/buildDEM projection Python v1.6
« on: January 07, 2020, 07:01:37 PM »
Hi,

I used to build the orthomosaic with the following line of code:

chunk.buildOrthomosaic(surface_data=data_source_ortho, projection=localCRS, progress=progress_print)

I get a Value Error: Invalid argement value: projection:

localCRS = Metashape.CoordinateSystem("EPSG::" + str(utm1))

in this case:

localCRS = <CoordinateSystem 'WGS 84 / UTM zone 31N (EPSG::32631)'>

How do I need to provide the correct coordinate system with the new API?

Thanks in advance,

Sven

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: buildOrthoMosaic/buildDEM projection Python v1.6
« Reply #1 on: January 08, 2020, 03:19:20 PM »
Hello Sven,

Please try the following:
Code: [Select]
proj = Metashape.OrthoProjection()
proj.crs = localCRS
chunk.buildOrthomosaic(projection = proj)
Best regards,
Alexey Pasumansky,
Agisoft LLC

sven_a

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: buildOrthoMosaic/buildDEM projection Python v1.6
« Reply #2 on: January 08, 2020, 05:47:39 PM »
Thank you for your help. Our scripts are up and running again with v1.6 :)