I discovered that the OGC WKT geometry obtained by the geometryCoercer is not a string object but a bytearray object
In a python caller:
wkt = feature.getAttribute('_geometry')
print type(wkt)
>>> <type 'bytearray'>
I think that's weird because WKT stands for Well Known Text and should be just string object. In my experience FME is the only tool where WKT geometry is not a string. Why FME store WKT in a bytearray object?
Best answer by burton449
Alright the answer to convert WKT bytearray to string is the following:
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.