pygeoops.split_tiles#

pygeoops.split_tiles(input_tiles: GeoDataFrame, nb_tiles_wanted: int) GeoDataFrame#

Split tiles till the number of tiles approaches nb_tiles_wanted.

For tiles that are split, any values in additional attribute columns in the GeoDataFrame will be retained in the result.

Parameters:
  • input_tiles (GeoDataFrame) – the input tiles to split.

  • nb_tiles_wanted (int) – the number of tiles wanted in the result.

Returns:

tiles that are the result of splitting input tiles and approaching

nb_tiles_wanted as close as possible.

Return type:

GeoDataFrame