Solved

FME 2020.1 to 2021.2 - GeometryValidator giving different results

  • 22 February 2023
  • 2 replies
  • 0 views

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?

icon

Best answer by daveatsafe 22 February 2023, 21:17

View original

2 replies

Userlevel 2
Badge +17

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.

Hi @daveatsafe​ ,

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

Reply