@@ -1282,6 +1282,7 @@ def tile(
12821282 duration : Optional [Union [timedelta , str ]] = None ,
12831283 origin : Optional [shp .BaseGeometry ] = None ,
12841284 start : Union [datetime , str , None ] = None ,
1285+ border_inc : bool = True ,
12851286 ) -> List [STBox ]:
12861287 """
12871288 Returns a list of `STBox` instances representing the tiles of
@@ -1298,6 +1299,7 @@ def tile(
12981299 origin will be (0, 0, 0).
12991300 start: The start time of the temporal tiling. If not provided,
13001301 the start time used by default is Monday, January 3, 2000.
1302+ border_inc: Whether the border is inclusive or not.
13011303
13021304 Returns:
13031305 A list of `STBox` instances.
@@ -1336,7 +1338,9 @@ def tile(
13361338 else pgis_geometry_in ("Point(0 0 0)" , - 1 )
13371339 )
13381340 )
1339- tiles , count = stbox_space_time_tiles (self ._inner , sz , sz , sz , dt , gs , st )
1341+ tiles , count = stbox_space_time_tiles (
1342+ self ._inner , sz , sz , sz , dt , gs , st , border_inc
1343+ )
13401344 return [STBox (_inner = tiles + i ) for i in range (count )]
13411345
13421346 # ------------------------- Comparisons -----------------------------------
0 commit comments