PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pt2numpy()

def raster2pgsql.pt2numpy (   pt)
Translate GDAL data type to NumPy data type

Definition at line 230 of file raster2pgsql.py.

230 def pt2numpy(pt):
231  """Translate GDAL data type to NumPy data type"""
232  ptnumpy = {
233  gdalc.GDT_Byte : numpy.uint8,
234  gdalc.GDT_Int16 : numpy.int16,
235  gdalc.GDT_UInt16 : numpy.uint16,
236  gdalc.GDT_Int32 : numpy.int32,
237  gdalc.GDT_UInt32 : numpy.uint32,
238  gdalc.GDT_Float32: numpy.float32,
239  gdalc.GDT_Float64: numpy.float64
240  }
241  return ptnumpy.get(pt, numpy.uint8)
242 
def pt2numpy(pt)

Referenced by wkblify_band().

Here is the caller graph for this function: