PostGIS
3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
◆
pt2numpy()
rtrowdump.pt2numpy
(
pt
)
Translate WKT Raster pixel type to NumPy data type
Definition at line
52
of file
rtrowdump.py
.
52
def
pt2numpy(pt):
53
"""Translate WKT Raster pixel type to NumPy data type"""
54
numpytypes = {
55
'8BUI'
: numpy.uint8,
56
'16BSI'
: numpy.int16,
57
'16BUI'
: numpy.uint16,
58
'32BSI'
: numpy.int32,
59
'32BUI'
: numpy.uint32,
60
'32BF'
: numpy.float32,
61
'64BF'
: numpy.float64
62
}
63
return
numpytypes.get(pt, numpy.uint8)
64
rtrowdump
Generated by
1.9.8