Skip to main content
Solved

VertexCreator

  • April 2, 2019
  • 13 replies
  • 296 views

Forum|alt.badge.img

Hi all,

 

 

I used the SubstringExtractor to pull out a polyline, and now I want to use the VertexCreator. My question is what X and Y coordinates are correct? What value can I use?

 

 

Best answer by david_r

In fact, looking at your sample data again, you seem to already have the complete track geometry in the "polyline" attribute. Try the following:

Result:

Does this correspond with your initial question?

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.

13 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • April 3, 2019

Hi @george_g

What do you want to do? Replace a point geometry ( x and y coordinates )?

Could you share us your Workspace? Or print file?

 

 

Thanks,

Danilo

 


Forum|alt.badge.img
  • Author
  • 5 replies
  • April 3, 2019

Here is a sample of the data

 

 

start_latit,start_long,end_latit,end_long,polyline

 

51.492472,-0.0911039,51.5045804185264,-0.0862417893094511,{lhyH|nQUzA}@vAcE_CyBwCuJcTm@XgB|G{AeAaBgEaFxBiDtFUAmGkCeFiFyIeN

david_r
Celebrity
  • 8394 replies
  • April 3, 2019

The X and Y values should be a floating point number expressed in your local ground units (e.g. meters or degrees). Assuming these values are in degrees Lat/Long, they should be OK for creating a point in Lat/Long space:

X=51.492472 
Y=-0.0911039 

Forum|alt.badge.img
  • Author
  • 5 replies
  • April 3, 2019

I can create the start/end points but I don't know how I can create the polyline. Do you have any ideas?


david_r
Celebrity
  • 8394 replies
  • April 3, 2019

Extract the two sets of Lat/Long values, then use two VertexCreator one after another, configured as follows (notice the Mode setting):


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • April 3, 2019

I can create the start/end points but I don't know how I can create the polyline. Do you have any ideas?

Hi @george_g

After the two transformers VertexCreator according @david_r wrote you, its possible to use the transformer LineBuilder ( for connect both points and create line ):

Thanks,

Danilo

 


david_r
Celebrity
  • 8394 replies
  • April 3, 2019

Hi @george_g

After the two transformers VertexCreator according @david_r wrote you, its possible to use the transformer LineBuilder ( for connect both points and create line ):

Thanks,

Danilo

 

Why complicate life with a LineBuilder, when simply chaining one VertexCreator after another does the same thing?


Forum|alt.badge.img
  • Author
  • 5 replies
  • April 3, 2019

I can create the start/end points but I don't know how I can create the polyline. Do you have any ideas?

In this way, if I will connect the points I will have only straight lines and not tracks, isn't it?

 

The part of the polyline represents a track.

 

Might be the polyline wrong?

 

I will try to fix it with your suggestion and I will be back to you with the result.

 

Thank you a lot,

 

George

david_r
Celebrity
  • 8394 replies
  • Best Answer
  • April 3, 2019

In fact, looking at your sample data again, you seem to already have the complete track geometry in the "polyline" attribute. Try the following:

Result:

Does this correspond with your initial question?


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • April 3, 2019

In this way, if I will connect the points I will have only straight lines and not tracks, isn't it?

 

The part of the polyline represents a track.

 

Might be the polyline wrong?

 

I will try to fix it with your suggestion and I will be back to you with the result.

 

Thank you a lot,

 

George

Excellent @george_g ;)


Forum|alt.badge.img
  • Author
  • 5 replies
  • April 3, 2019

In fact, looking at your sample data again, you seem to already have the complete track geometry in the "polyline" attribute. Try the following:

Result:

Does this correspond with your initial question?

It looks like to have the right result.

 

Did you use only the geometry replacer tool?

 

I am going to try it when I will be back and I will let you know.

 

 

Thank you,

 

George

david_r
Celebrity
  • 8394 replies
  • April 3, 2019

It looks like to have the right result.

 

Did you use only the geometry replacer tool?

 

I am going to try it when I will be back and I will let you know.

 

 

Thank you,

 

George

Yes, only the GeometryReplacer transformer. No need for the VertexCreator etc.


Forum|alt.badge.img
  • Author
  • 5 replies
  • April 3, 2019

In fact, looking at your sample data again, you seem to already have the complete track geometry in the "polyline" attribute. Try the following:

Result:

Does this correspond with your initial question?

Thank you a lot david_r

 

I solved it!

 

I really appreciate your guidance, and the time you spent.