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?
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?
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
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
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
I can create the start/end points but I don't know how I can create the polyline. Do you have any ideas?
Extract the two sets of Lat/Long values, then use two VertexCreator one after another, configured as follows (notice the Mode setting):
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
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?
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
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?
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 ;)
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
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.
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.