Skip to main content
Solved

VertexCreator


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?

View original
Did this help you find an answer to your question?

13 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • 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
  • 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
Evangelist
  • 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
  • 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
Evangelist
  • 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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • April 3, 2019
george_g wrote:

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
Evangelist
  • April 3, 2019
danilo_fme wrote:

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
  • April 3, 2019
george_g wrote:

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
Evangelist
  • 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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • April 3, 2019
george_g wrote:

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
  • April 3, 2019
david_r wrote:

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
Evangelist
  • April 3, 2019
george_g wrote:

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
  • April 3, 2019
david_r wrote:

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.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings