Skip to main content
Solved

Invalid WKT encountered: LINESTRINGZ

  • April 4, 2018
  • 3 replies
  • 60 views

ponceta
Contributor
Forum|alt.badge.img+7

Hi,

I've encountered a problem when using a GeometryReplacer With LineStringZ

Invalid WKT encountered: LINESTRINGZ(541502.5560000000 152585.6960000000 583.544, 541502.4660000000 152585.4560000000 583.775, 541501.2901908699 152581.1464218800 0.0)

I do assume that LinestringZ is not an OGC WKT recognized format yet, although it is recognized as a valid OGC WKB format.

http://portal.opengeospatial.org/files/?artifact_id=25355

My goal is to check the geometry validity from my linestringz features before sending these to my postgis database.

SELECT ST_ISVALID(ST_GeomFromText('LINESTRINGZ(541502.5560000000 152585.6960000000 583.544, 541502.4660000000 152585.4560000000 583.775, 541501.2901908699 152581.1464218800 0.0)'))

Any idea how I could deal with this on FME 2018?

Best answer by takashi

Or, "LINESTRING Z" (insert a space before 'Z') should work. See the section 7.2.3 BNF Productions for Three-Dimension Geometry WKT, page LV in the specification you have linked.

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.

3 replies

david_r
Celebrity
  • 8394 replies
  • April 4, 2018

It seems FME doesn't like the "LINESTRINGZ" moniker. You can use a StringReplacer to replace it with simply "LINESTRING" and it'll work.


takashi
Celebrity
  • 7843 replies
  • Best Answer
  • April 4, 2018

Or, "LINESTRING Z" (insert a space before 'Z') should work. See the section 7.2.3 BNF Productions for Three-Dimension Geometry WKT, page LV in the specification you have linked.


lifalin2016
Supporter
Forum|alt.badge.img+38
  • Supporter
  • 592 replies
  • April 5, 2018

Or, "LINESTRING Z" (insert a space before 'Z') should work. See the section 7.2.3 BNF Productions for Three-Dimension Geometry WKT, page LV in the specification you have linked.

Funny how all the odd numbered pages seem to be numbered using Roman numerals :-)