[PostGIS] #5941: Support GDT_Float16 Pixel Type

PostGIS trac at osgeo.org
Mon Nov 2 16:10:09 PST 2026


#5941: Support GDT_Float16 Pixel Type
--------------------------+---------------------------
  Reporter:  pramsey      |      Owner:  pramsey
      Type:  enhancement  |     Status:  reopened
  Priority:  high         |  Milestone:  PostGIS 3.7.1
 Component:  raster       |    Version:  master
Resolution:               |   Keywords:
--------------------------+---------------------------
Comment (by robe):

 This was reported on matrix/irc #postgis channel


 {{{
 OS/Version Information:
 OS Ubuntu 24.04.5
 Postgis version: 3.7.0
 GDAL: 3.13
 $: raster2pgsql
 RELEASE: 3.7.0 GDAL_VERSION=31303 (1fdbb1c)
 Issue:
 It looks like raster2pgsql still cannot ingest rasters with the "float16"
 data type. This was supposedly fixed in
 https://trac.osgeo.org/postgis/ticket/5941.
 Reproduction Steps:
 # Convert any Float32 or Float62 raster into float 16 using gdal_translate
 gdal_translate -ot float16 out.tif out2.tif
 Input file size is 2345, 1597
 0...10...20...30...40...50...60...70...80...90...100 - done.
 $ raster2pgsql out2.tif
 Processing 1/1: out2.tif
 ERROR: rt_pixtype_size: Unknown pixeltype 13
 ERROR: rt_raster_from_gdal_dataset: Unknown pixel type for GDAL band
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5941#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list