Forum

Author Topic: import local coordinates (m)  (Read 7990 times)

jpaton

  • Newbie
  • *
  • Posts: 12
    • View Profile
import local coordinates (m)
« on: November 23, 2023, 11:12:02 AM »
im having an issue trying this example from the users guide

import Metashape
chunk = Metashape.app.document.chunk
chunk.crs = Metashape.CoordinateSystem("EPSG::32641")
chunk.importReference("gcp.txt", Metashape.ReferenceFormatCSV)
chunk.updateTransform()

The manual says yhat you can set the reference system local, geographic or projected.

I want to set my coordinate system to Local Coordinates (m) from a csv file, but i dont Know how to do it.

its been a while...
« Last Edit: March 26, 2024, 11:04:53 AM by jpaton »

jpaton

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: import local coordinates (m)
« Reply #1 on: March 26, 2024, 11:38:16 AM »
i reply to my self ;)
to do so, just:
doc.chunk.crs = Metashape.CoordinateSystem('LOCAL_CS["Local Coordinates (m)",LOCAL_DATUM["Local Datum",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]')

janalbertschenk

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: import local coordinates (m)
« Reply #2 on: October 22, 2024, 02:15:10 PM »
Thank you, that works :)