Hi,

how could you do this? good question, let us think aloud ...

Take a point, sent its Z to a GlobalValueSetter. Go to the next one, get the
Globalvalue, compare it with the Z, change Z if necessary and go on....

In Workbench I would do this like this.

Reader - > "global value setter" = 0. => Counter to get a common ID =>
Chopper "1" -> Coordinate Fetcher => Global Value Getter => Tester (Z >
global value?) => Attributesetter if necessary => Global Value Setter (last
Z) =>  PointConnector (on the common ID) => Writer ...

What do you think about this?

Greetings,
Jeff

On 5/23/07, jeka.trud <[EMAIL PROTECTED]> wrote:

  Hi group,

You helped me a lot to jump-start the learning curve of FME.
And now I'm stuck again. I have polylines (streams…again) with
certain Z value. The streams are not cleaned, meaning I could have
bumps in elevation (streams going up the hill and descending). I
arranged to have first vertex with the highest elevation and lowest
is the last. The troubles are the vertices between. My task is to
assign the same elevation, as the previous vertex to the vertex with
the error.
Ex. Of the stream with error list of possible elevations starting
with the first vertex:
45, 45, 44, 42, 40, 40, 42, 41, 40, 39, 36, 35,33
As you can see the elevation 42,41 should be 40,40
I thought of using chopper of two vertices, but then if I change
elevation at one end the other is not going to be updated.
If I cold iterate somehow through the polyline, take first vertex
compare with next if it's less or equal, if not put the same
elevation as previous vertex and continue.

Thanks in advance




--
Jeff Konnen
INSER SA
Switzerland
+41 (0) 21 643 77 11

Reply via email to