Forum

Author Topic: Shapes changed on different projection  (Read 4306 times)

Zeying

  • Newbie
  • *
  • Posts: 20
    • View Profile
Shapes changed on different projection
« on: August 02, 2023, 05:38:48 AM »
Dear Concerned
I've been working with a structure using Agisoft and created 5 facades of this structure.
When I'm trying to create polygons on facade 1 of orthomosaic, and I didn't update their altitude before I start creating polygons on facade2.
then I go back to facade1 and find all the polygons of facade1 changed due to I changed shapes' projection when drawing on facade2.
Is there any way to change polygons of facade1 back to where they are? because I've done lots of work on facede1 now and this is urgent.
Need Help! Thanks in advance!


Zeying

Zeying

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Shapes changed on different projection
« Reply #1 on: August 02, 2023, 06:30:10 AM »
The projection matrix is changed from:

2023-08-02 11:29:04 Matrix([[1.0, 0.0, 0.0, 0.0],
2023-08-02 11:29:04        [0.0, 1.0, 0.0, 0.0],
2023-08-02 11:29:04        [0.0, 0.0, 1.0, 0.0],
2023-08-02 11:29:04        [0.0, 0.0, 0.0, 1.0]])

to:

2023-08-02 11:23:40 Matrix([[-0.28391255343276117, 0.2816258468178476, -0.9165590785145405, -14835.687365811784],
2023-08-02 11:23:40        [-0.3856187134621781, 0.8416477658488211, 0.3780571994678362, -6375214.276503899],
2023-08-02 11:23:40        [0.8778905796459305, 0.4607775175134087, -0.13035416956552265, -40165.12536092498],
2023-08-02 11:23:40        [0.0, 0.0, 0.0, 1.0]])

Is there any way to change them back using these projection parameters.

Paoline

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Shapes changed on different projection
« Reply #2 on: September 06, 2023, 11:47:42 AM »
I have the same issue on Metashape Pro 2.0.2 (it was working fine on 1.8.4).

If I create a shape (polygon) on one orthomosaic, and then another shape on a second orthomosaic, the first shape changes.
The shape's geometry changes as well as the shapes projection matrix :

Code: [Select]
chunk.shapes.projection.matrix
Out[7]: 2023-09-06 10:32:33
2023-09-06 10:32:33 Matrix([[1.0, 0.0, 0.0, -4.190819334493266],
2023-09-06 10:32:33        [0.0, 0.0, 1.0, 15.660437452109326],
2023-09-06 10:32:33        [0.0, -1.0, 0.0, 2.7672848891498756],
2023-09-06 10:32:33        [0.0, 0.0, 0.0, 1.0]])

chunk.shapes[0].geometry
Out[8]: 2023-09-06 10:32:36 <Geometry 'Polygon ((-11.2238 -1.36733, -10.7282 -2.45776, -8.94382 -2.60645, -3.04561 -2.35863, 17.6229 0.565698, 17.5733 1.35874, -11.2238 -1.36733))'>

chunk.shapes.projection.matrix
Out[9]: 2023-09-06 10:32:47
2023-09-06 10:32:47 Matrix([[1.0, 0.0, 0.0, -4.190819334493266],
2023-09-06 10:32:47        [0.0, 1.0, 0.0, -2.7672848891498756],
2023-09-06 10:32:47        [0.0, 0.0, 1.0, 15.660437452109326],
2023-09-06 10:32:47        [0.0, 0.0, 0.0, 1.0]])

chunk.shapes[0].geometry
Out[10]: 2023-09-06 10:32:51 <Geometry 'Polygon ((-11.2238 0, -10.7282 0, -8.94382 0, -3.04561 0, 17.6229 0, 17.5733 0, -11.2238 0))'>

Is this a bug or is there something I'm missing ?