I see where to choose what X/Y coordinates to use for the point but this doesn't seem to add a attribute as the point with those coordinates. Am i missing something or doing something wrong. The reason I am doing this is I have a line segment and the database I am saving it to only has start and end point locations. So nothing for the actual segment. I did like you said used a extractor to get my start/end point x/y coordinates. Now I need to create a attribute that stores them as a coordinate (X:Y)
I see where to choose what X/Y coordinates to use for the point but this doesn't seem to add a attribute as the point with those coordinates. Am i missing something or doing something wrong. The reason I am doing this is I have a line segment and the database I am saving it to only has start and end point locations. So nothing for the actual segment. I did like you said used a extractor to get my start/end point x/y coordinates. Now I need to create a attribute that stores them as a coordinate (X:Y)
If you need to create a string like "(x:y)" from a pair of x and y, just use the AttributeCreator or the StringConcatenator.
However, your comment after @rollo's answer makes me think you don't want geometry for your first and last points, but rather you want attributes. In that case the CoordinateExtractor is the way to go -- use two of them back to back to get the first / last points, be careful what you name them, then use an attribute creator potentially (or a StringConcatenator) to glue the values together if that is what you need done. CHeck out http://docs.safe.com/fme/html/FME_Transformers/FME_Transformers.htm#Transformers/stringconcatenator.htm for descriptions of how to get into the "string editor" to do this type of thing.
snipperfirstlast.fmw
Is it addressed?
However, your comment after @rollo's answer makes me think you don't want geometry for your first and last points, but rather you want attributes. In that case the CoordinateExtractor is the way to go -- use two of them back to back to get the first / last points, be careful what you name them, then use an attribute creator potentially (or a StringConcatenator) to glue the values together if that is what you need done. CHeck out http://docs.safe.com/fme/html/FME_Transformers/FME_Transformers.htm#Transformers/stringconcatenator.htm for descriptions of how to get into the "string editor" to do this type of thing.
snipperfirstlast.fmw
I would recommend creating a new forum Q&A; post for greater visibility. You can link to this post and also provide more context regarding your workflow in the new post. Would you be able to do that?
However, your comment after @rollo's answer makes me think you don't want geometry for your first and last points, but rather you want attributes. In that case the CoordinateExtractor is the way to go -- use two of them back to back to get the first / last points, be careful what you name them, then use an attribute creator potentially (or a StringConcatenator) to glue the values together if that is what you need done. CHeck out http://docs.safe.com/fme/html/FME_Transformers/FME_Transformers.htm#Transformers/stringconcatenator.htm for descriptions of how to get into the "string editor" to do this type of thing.
snipperfirstlast.fmw
I would like to download this WB, however, i don't seem to see attachments, where can i find it?
I would like to download this WB, however, i don't seem to see attachments, where can i find it?
@sabine I've attached an example workspace (FME 2020.2). It has three options you can use, depending on what output you need. Since this article was created someone has created a custom transformer on the FME HUB to do this (Extract_End_Points) which is probably what you need.