Method Relate
Relate(Geometry, Geometry, String)
Compares the spatial relationship of two geometries. Can compare Interior, Boundary and Exterior of two geometries based on a DE-9IM encoded string. This must be 9 characters long and contain combinations only of these characters: TF*012
Declaration
public static bool Relate(Geometry geometry1, Geometry geometry2, string relation)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | geometry1 | The geometry that will be compared to geometry2 for relation |
| Geometry | geometry2 | The geometry that will be compared to geometry1 for relation |
| System.String | relation | The DE-9IM encoded string. |
Returns
| Type | Description |
|---|---|
| Boolean | Returns |
Remarks
Supports true curves.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.15 |