Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pymeos/boxes/stbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,7 @@ def tile(
duration: Optional[Union[timedelta, str]] = None,
origin: Optional[shp.BaseGeometry] = None,
start: Union[datetime, str, None] = None,
border_inc: bool = True,
) -> List[STBox]:
"""
Returns a list of `STBox` instances representing the tiles of
Expand All @@ -1298,6 +1299,7 @@ def tile(
origin will be (0, 0, 0).
start: The start time of the temporal tiling. If not provided,
the start time used by default is Monday, January 3, 2000.
border_inc: Whether the border is inclusive or not.

Returns:
A list of `STBox` instances.
Expand Down Expand Up @@ -1336,7 +1338,9 @@ def tile(
else pgis_geometry_in("Point(0 0 0)", -1)
)
)
tiles, count = stbox_space_time_tiles(self._inner, sz, sz, sz, dt, gs, st)
tiles, count = stbox_space_time_tiles(
self._inner, sz, sz, sz, dt, gs, st, border_inc
)
return [STBox(_inner=tiles + i) for i in range(count)]

# ------------------------- Comparisons -----------------------------------
Expand Down
Loading