Skip to main content

I would like to drap points (FMEPoint), from a ShapeFile, onto a mesh (FMEMesh) from OBJ file format, or retrieve the Z coordinate on the mesh from the XY position of the point.

 

I used in my script the transformer SurfaceDraper, but it rebuild a new mesh that doesn't match the original mesh of OBJ file. So some points are not draped properly.

 

I would like to use PythonCaller to do it instead, but my knowledge in Python is limited. 😥

Hey!

I currently don't have time to reproduce your workflow, but here are some tips:

With regards to the SurfaceDraper producing unexpected results, I would recommend checking out the Transformer's documentation and Parameter Settings. Maybe adjusting the DrapeMethod will already produce more accurate results.

 

As an alternative, you could extract the Z-value at the XY location of the points by:

  1. Feeding your mesh into a PointCloudCombiner to generate a pointcloud of the mesh
  2. Feeding the pointcloud in a RasterDEMGenerator to generate a Digital Elevation Model raster of the mesh
  3. Feeding the raster and the points into a PointOnRasterValueExtractor

Reply