Skip to main content

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.

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


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


@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.


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!


Reply