PostGIS
3.0.6dev-r@@SVN_REVISION@@
◆
dump_block_numpy()
def raster2pgsql.dump_block_numpy
(
pixels
)
Definition at line
630
of file
raster2pgsql.py
.
630
def
dump_block_numpy
(pixels):
631
assert
pixels.ndim == 2
632
print(
'BEGIN BLOCK SCANLINES (numpy): (%d, %d)'
%(len(pixels[0]), len(pixels)))
633
634
i = 0
635
for
row
in
range (0, len(pixels)):
636
s = binascii.hexlify(pixels[row])
637
print(
'%d (%d)\t%s'
% (i, (len(s) / 2), s))
638
i = i + 1
639
640
print(
'END BLOCK SCANLINES'
)
641
raster2pgsql.dump_block_numpy
def dump_block_numpy(pixels)
Definition:
raster2pgsql.py:630
raster2pgsql
Generated by
1.9.1