Skip to main content
Solved

FME 2020.1 to 2021.2 - GeometryValidator giving different results

  • February 22, 2023
  • 2 replies
  • 24 views

kkq
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 1 reply

Hi,

We have noticed a difference of behaviour in the GeometryValidator transformer in FME 2020.1 and 2021.2 without upgrading the transformer.

 

A sample geometry in WKT :

LINESTRING (45.02687462450092 0.06721615791320801,45.025979838437365 0.06841778755187988,45.02593434046724 0.06878256797790527,45.02601017039738 0.06899714469909668,45.02638931854123 0.06853580474853515,45.02621491070693 0.06806373596191406,45.02639690147848 0.0685572624206543,45.02660922331399 0.0685572624206543,45.02700353320486 0.06818175315856933)

 

The transformer is configured as such :

Screenshot 2023-02-22 173842And we have the following results in FME 2020.1/2021.2 :

Screenshot 2023-02-22 173601Screenshot 2023-02-22 174039In FME 2021.2, the geometry fails OGC Simple while it doesn't in FME 2020.1. One of the issue with that, is that the geometry is being repaired in FME 2020.1 but not in FME 2021.2.

 

I have noticed that version 8 of the transformer made the OGC checks stricter, but the transformer was not upgraded and is still at version 4.

 

Is there any way to restore the old behaviour?

Best answer by daveatsafe

Hi @kkq​,

The sample geometry does fail both tests, since a simple linestring cannot intersect or cross itself. The earlier version of FME is outputting the linestring on the first failed test (self-intersection), and not carrying out the subsequent tests, which was incorrect behavior. The newer version of FME is properly catching all the failures.

To restore the old behavior, you will need to remove the OGC tests, since they are not repairable faults, and perhaps move them to a second GeometryValidator.

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.

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • Best Answer
  • February 22, 2023

Hi @kkq​,

The sample geometry does fail both tests, since a simple linestring cannot intersect or cross itself. The earlier version of FME is outputting the linestring on the first failed test (self-intersection), and not carrying out the subsequent tests, which was incorrect behavior. The newer version of FME is properly catching all the failures.

To restore the old behavior, you will need to remove the OGC tests, since they are not repairable faults, and perhaps move them to a second GeometryValidator.


kkq
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 1 reply
  • February 22, 2023

Hi @daveatsafe​ ,

Thank you for your answer and your solution to restore the old behavior.