TileWKT#

class torch_geopooling.transforms.TileWKT(exterior: Tuple[float, float, float, float], precision: int = 7, internal: bool = False)[source]#

Convert a Tile to a WKT polygon given the exterior of the whole geometry.

Module returns a tile geometry in WKT format, which comprises a polygon.

Parameters:
  • exterior – Exterior coordinates in (X, Y, W, H) format. The exterior is used to calculate boundaries of a tile to produce a final WKT.

  • precision – A precision of the resulting geometry, digits after the decimal point.

  • internal – When True, output includes internal nodes of the quadtree tiles. Otherwise (default) returns only geometry of terminal nodes.