Function: compareWkt

qgis.core.compareWkt(a: str | None, b: str | None, tolerance: float = 1e-06) bool

Compare two WKT strings with some tolerance

Parameters:
  • a (Optional[str]) – first WKT string

  • b (Optional[str]) – second WKT string

  • tolerance (float = 1e-06) – tolerance to use (optional, defaults to 0.000001)

Return type:

bool

Returns:

bool indicating if the WKT are sufficiently equal