Skip to main content
Solved

Pattern matrix for OGC "Equals" relation

  • June 15, 2020
  • 2 replies
  • 15 views

Hello:

At https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/spatialrelations.htm the Pattern Matrix for OGC "Equals" relation is filled with some * characters .

However, Simple Features OGC 06-103r4 document (p. XXXV) at https://www.ogc.org/standards/sfa defines "Equals" relation with no * characters:

a.Relate(b, “TFFFTFFFT”)

To follow OGC specifications, shouldn't the matrix be filled up accordingly?

Thank you very much

Best answer by markatsafe

@pmonteiro I'm not sure what the OGC specification you referenced is trying to tell us - I find that presentation very confusing as I odn't really understand the matrix algebra. But I'm pretty sure Equals is typically thought to be T*F**FFF*. Equals is equivalent to Within & Contains:

Within

 

T*F**F***

 

ContainsT*****FF*

 

EqualT*F**FFF*

 

Also defined for PostGIS here

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

Forum|alt.badge.img+2
  • 1891 replies
  • Best Answer
  • June 15, 2020

@pmonteiro I'm not sure what the OGC specification you referenced is trying to tell us - I find that presentation very confusing as I odn't really understand the matrix algebra. But I'm pretty sure Equals is typically thought to be T*F**FFF*. Equals is equivalent to Within & Contains:

Within

 

T*F**F***

 

ContainsT*****FF*

 

EqualT*F**FFF*

 

Also defined for PostGIS here


  • Author
  • 1 reply
  • June 16, 2020

@pmonteiro I'm not sure what the OGC specification you referenced is trying to tell us - I find that presentation very confusing as I odn't really understand the matrix algebra. But I'm pretty sure Equals is typically thought to be T*F**FFF*. Equals is equivalent to Within & Contains:

Within

 

T*F**F***

 

ContainsT*****FF*

 

EqualT*F**FFF*

 

Also defined for PostGIS here

Thanks Mark.

Googling a bit, found here that OGC definition is not fully compliant with some situations, such as equality between points: the boundary of a Point is by definition empty, whereas OGC states a non-empty intersection between boundaries of equal geometries: TFFFTFFFT.

Better to use T*F**FFF*, then.

Best regards.