Forum

Author Topic: help in geocentric coordinates  (Read 4097 times)

arafat

  • Newbie
  • *
  • Posts: 28
    • View Profile
help in geocentric coordinates
« on: January 31, 2022, 01:05:40 AM »
Hello, rookie question

Is the geocentric coordinate system in meters? , I use the following function to get it but I don't know the unit 
Code: [Select]
chunk.transform.matrix.mulp(chunk.cameras[0].center)
if so can I compare between two different points using only X and Y to get the Euclidean distance between them in meters?

thanks in advance

Paulo

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: help in geocentric coordinates
« Reply #1 on: January 31, 2022, 03:57:24 PM »
Hi arafat,

you could look at chunk.crs.geoccs.proj4 and see units entry as in:

Quote
chunk = Metashape.app.document.chunk

chunk.crs.geoccs.proj4
Out[8]: 2022-01-31 06:51:50 '+proj=geocent +ellps=WGS84 +datum=WGS84 +units=m'

chunk.transform.matrix.mulp(chunk.cameras[0].center)
Out[9]: 2022-01-31 06:52:08 Vector([4776929.508012832, -109377.39947718395, 4211329.972593664])

as you can see  units are m and geocentric coordinates are in meter...
Best Regards,
Paul Pelletier,
Surveyor