Skip to main content
Question

How to translate mesh in local coordinates into a rectangle region in EPSG:4326?

  • March 26, 2021
  • 2 replies
  • 64 views

I want to translate my fbx mesh in local coordinates to a rectangle region in EPSG:4326. The mesh XY bounds has the same ratio as the rectangle region. I tried reprojecting the mesh from XY-M to EPSG:4326 and apply an offset to shift it to the rectangle center, but the reprojection doesn't seem to change the mesh vertex coordinates. How can I translate the fbx mesh in arbitrary coordinates to a point (or the origin) in EPSG:4326 coordinate system?

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • March 30, 2021

Hi @meancat​ ,

If you know the lat/long coordinates of the origin the mesh, you can use the LocalCoordinateSystemSetter to create a custom local coordinate system on it. The mesh can now be reprojected to any other coordinate system with the CsmapReprojector or PROJReprojector.

The XY-M coordinate system isn't quite the same as a local coordinate system - it basically tells FME that you know the data is in meters, but you don't know where it is.


  • Author
  • 2 replies
  • March 31, 2021

Thanks Dave, I realized that the Scaler and Offsetter transformers are not applying their transformations to the mesh vertex coordinates, but rather modifying the transformation matrix attribute. How can I transform mesh coordinates (i.e. coordinates in the IFMEMesh's vertex pool)?