Skip to main content
Question

Replace feature z-value with point z-value

  • October 11, 2018
  • 5 replies
  • 146 views

In the first step Im doing a PointOnAreaOverlay which connects the features with a point inside the features.

The next step I want to replace the z-value of the feature with the z-value of the point. I have tried with both CoordinateReplacer and GeometryReplacer. So how to replace z-value of the feature with the z-value of the point?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

owen
Forum|alt.badge.img+1
  • 156 replies
  • October 11, 2018

Have you tried the 3dForcer?


Forum|alt.badge.img+2
  • 719 replies
  • October 11, 2018

Hi @maschlin,

I agree with @owen but have some additional pointers. First in the PointOnAreaOverlay make sure the Merge Attributes box is checked under the Attribute Accumulation parameters and leave the Accumulation Mode set to Merge Incoming. Then add a 3DForcer just to the Area output with the Elevation set to the Point _z value and Preserve Existing Z values to no.

Also I don't think you need the ElevationExtractor after your area features - but if you do either make sure this attribute has a different name than the point _elevation or make sure the Conflict Resolution parameter in the POAO is set to 'Use Incoming' so the features retain the point z values to be used in the 3DForcer rather than their own.


  • Author
  • 1 reply
  • October 11, 2018

Thanks a lot! It all worked when checking the Merge Attributes box and with the 3dForcer :)


od10
Contributor
Forum|alt.badge.img+4
  • Contributor
  • 11 replies
  • May 27, 2021

How do you set a Z value per vertex instead of keeping the same elevation for entire feature?


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • May 28, 2021

How do you set a Z value per vertex instead of keeping the same elevation for entire feature?

Use Chopper set By Vertex and Maximum Vertices to 1, connect it to a Counter so you can preserve the vertex order further down the workflow, PointOnPointOverlayer set to Merge Attributes where you merge the vertices on your feature with the points containing the Z value in an attribute, DuplicateFilter to keep only unique points based on the count key attribute, 3DForcer to put the attribute value from the features you overlayed to elevation, Sorter by count to bring the vertices in the original order (just in case they randomized themselves) and, finaly, LineBuilder to recreate your line.

Merge eleation on verticecsUsing this method you can transform the yellow-ish feature to the magenta feature:

2D to 3D