PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ parse_block_size()

raster2pgsql.parse_block_size (   options)

Definition at line 272 of file raster2pgsql.py.

272def parse_block_size(options):
273 assert options is not None
274 assert options.block_size is not None
275
276 wh = options.block_size.split('x')
277 if len(wh) != 2:
278 wh = options.block_size.split('X')
279
280 assert len(wh) == 2, "invalid format of specified block size"
281 return ( int(wh[0]), int(wh[1]) )
282