Skip to main content
Solved

Is it possible to add the coordinates from the coordinate extractor transformer to a writer?


lily
Participant
Forum|alt.badge.img+3
  • Participant

Is it possible to add the coordinates from the coordinate extractor transformer to a writer? Like example from coordinate extractor column _indices{}.x (64 bit real) into a shapefile with column x. 

I tried changing data type from double, float, char... but the line connecting the transformer to writer simply will not connect to each other.

Best answer by jlbaker2779

{} indicates a list. The coordinate exactor has an option for Specify Coordinate. That will extract the coordinate to an attribute.

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

4 replies

Forum|alt.badge.img+2
  • Best Answer
  • November 21, 2020

{} indicates a list. The coordinate exactor has an option for Specify Coordinate. That will extract the coordinate to an attribute.


lily
Participant
Forum|alt.badge.img+3
  • Author
  • Participant
  • November 22, 2020

@jlbaker2779​  Thank you so much!!! Now it writes XY into my writer!


bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • November 23, 2020
lily wrote:

@jlbaker2779​  Thank you so much!!! Now it writes XY into my writer!

Note that the default Coordinate is the Coordinate of Point{0}, ie. The Start Point. Whilst this is fine for Point Geometries, it may not be the "X, Y" wanted for a Polyline or Polygon.

 

If instead the Centre X, Y is desired, use CenterPointExtractor instead.


lily
Participant
Forum|alt.badge.img+3
  • Author
  • Participant
  • November 23, 2020
bwn wrote:

Note that the default Coordinate is the Coordinate of Point{0}, ie. The Start Point. Whilst this is fine for Point Geometries, it may not be the "X, Y" wanted for a Polyline or Polygon.

 

If instead the Centre X, Y is desired, use CenterPointExtractor instead.

@bwn​ ​ Thank you!! I have both point file and polygon file. so I will try your suggestion too!


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