Skip to main content
Question

How to write attribute based on the contents of a wkt field?

  • July 24, 2014
  • 1 reply
  • 31 views

Forum|alt.badge.img
I have an attribute in my xml reader which contains WKT geometries. I would like to either split the writer according the whether the geometry is point, line, polyline,or polygon, or test whether the field contains these words and write  "point", "line", "polyline",or "polygon" to another attribute in the writer.

 

 

Which transformers would do the best job?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • July 25, 2014
Hi,

 

 

If you have created geometries based on WKT, you can branch the data flow into Point, Line and Area with the GeometryFilter. And then, the Tester can be used to branch the Line features into line and polyline (@NumCoords() = 2 or not).

 

 

Takashi