Skip to main content
Question

I have a table with start and end x/y and need to create line for each. I created vertexes but no line is produced. How do I create a line for each coordinate pair?

  • June 1, 2023
  • 7 replies
  • 32 views

gcarmich
Participant
Forum|alt.badge.img+1

image

7 replies

nielsgerrits
VIP
Forum|alt.badge.img+64

Use 2 VertexCreators and add them in serie. In the first one create a point from begin xy, in the second one, add a point from end xy.


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • June 1, 2023

Adding to that: probably VertexCreator_5 needs to be in mode "Replace with point".


gcarmich
Participant
Forum|alt.badge.img+1
  • Author
  • Participant
  • June 1, 2023

I have tried both those approaches. The first VertexCreator creates a point on the map but the second VertexCreator (as Add Point) seems to remove all geographic entities.


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • June 1, 2023

Strange. See the attached example.

VertexCreators.pngNote that in your data there will be (at least) 304 features with start_X = end_X and start_Y = end_Y. I got rid of those in the TestFilter, but the presence of these features should not be the source of your problem.


gcarmich
Participant
Forum|alt.badge.img+1
  • Author
  • Participant
  • June 1, 2023

Thanks. Your workflow works as expected.

I noticed that my CreateVertex has an extra parameter under advanced that yours does not - "Closed Line Handling" I wonder why they are different and if that could be the source of the issue?:

 

imageimage


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • June 1, 2023

I'm still using version 2020.0, where the VertexCreator has fewer settings. This should not be the source of your problems though.


gcarmich
Participant
Forum|alt.badge.img+1
  • Author
  • Participant
  • June 1, 2023

I exported the table and created a new workflow with a reader for the table and two vertexcreators. This process was sucessful but it still does not work in the larger/original workflow. Seems to be a bug? I'll see if I can report it.