I have a workspace with a single 3D model (a tree) and a point dataset of several thousand points. Is it possible to replicate the 3D model and geo-reference it for every point?
Page 1 / 1
Hi @proudgis, a possible way I can think of is:
- CoordinateExtractor: Extract (x, y, z) for every point feature.
- FeatureMerger: Unconditionally merge the tree geometry to every point (i.e. replace all point geometries with an identical tree geometry). To do that, send the point features to the Requestor port, send the tree feature to the Supplier port, set an identical constant value (e.g. 1) to the Join On for both Requestor and Supplier, and set "Geometry" to the Feature Merge Type parameter.
- Offsetter: Move each tree to desired location based on coordinates (x, y, z) of the original point.
Hi @proudgis, a possible way I can think of is:
- CoordinateExtractor: Extract (x, y, z) for every point feature.
- FeatureMerger: Unconditionally merge the tree geometry to every point (i.e. replace all point geometries with an identical tree geometry). To do that, send the point features to the Requestor port, send the tree feature to the Supplier port, set an identical constant value (e.g. 1) to the Join On for both Requestor and Supplier, and set "Geometry" to the Feature Merge Type parameter.
- Offsetter: Move each tree to desired location based on coordinates (x, y, z) of the original point.
Hi @proudgis, a possible way I can think of is:
- CoordinateExtractor: Extract (x, y, z) for every point feature.
- FeatureMerger: Unconditionally merge the tree geometry to every point (i.e. replace all point geometries with an identical tree geometry). To do that, send the point features to the Requestor port, send the tree feature to the Supplier port, set an identical constant value (e.g. 1) to the Join On for both Requestor and Supplier, and set "Geometry" to the Feature Merge Type parameter.
- Offsetter: Move each tree to desired location based on coordinates (x, y, z) of the original point.
Another approach. This workflow would also be possible.
- Read the tree feature.
- GeometryExtractor (Geometry Encoding: FME Binary): Save the tree geometry as an attribute called e.g. "_geometry".
- FeatureReader: Read the point features. Here, set "Merge Initiator and Result" to the Accumulation Mode parameter, in order to merge "_geometry" to every point feature. Leave the Geometry parameter "Use Result" (default).
- CoordinateExtractor: Extract coordinates (x, y, z) for each point.
- GeometyReplacer (Geometry Encoding: FME Binary): Replace the point geometry with the tree geometry from "_geometry".
- Offsetter: Move the geometry to desired location based on the (x, y, z).
hi Takashi!
The format of the feature merger seems to have changed a bit since 2017, but for the most part it seems to work (testing it now). Do you know if there is a way to 1) randomly rotate the points and 2) draw the trees at different sizes/scales based on a height attribute in points?
thanks much