[postgis-tickets] [PostGIS] #4102: rt_grayscale fails on raspberrypi
PostGIS
trac at osgeo.org
Sun Jul 22 15:40:16 PDT 2018
#4102: rt_grayscale fails on raspberrypi
---------------------+---------------------------
Reporter: komzpa | Owner: Bborie Park
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.5.0
Component: raster | Version: trunk
Resolution: | Keywords:
---------------------+---------------------------
Comment (by komzpa):
NODATA value gets set to 0 for 16BSI and 32BSI rasters if it was negative,
on raspi:
{{{
postgis_reg=# SELECT ST_BandNoDataValue(ST_AddBand(ST_MakeEmptyRaster(2,
2, 0, 0, 1, -1, 0, 0, 0), 1, '16BSI', 0, -1000),1) AS rast;
rast
------
0
(1 row)
postgis_reg=# SELECT ST_BandNoDataValue(ST_AddBand(ST_MakeEmptyRaster(2,
2, 0, 0, 1, -1, 0, 0, 0), 1, '16BSI', 0, 1000),1) AS rast;
rast
------
1000
(1 row)
postgis_reg=# SELECT ST_BandNoDataValue(ST_AddBand(ST_MakeEmptyRaster(2,
2, 0, 0, 1, -1, 0, 0, 0), 1, '8BSI', 0, -10),1) AS rast;
rast
------
-10
(1 row)
postgis_reg=# SELECT ST_BandNoDataValue(ST_AddBand(ST_MakeEmptyRaster(2,
2, 0, 0, 1, -1, 0, 0, 0), 1, '32BSI', 0, -10),1) AS rast;
rast
------
0
(1 row)
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4102#comment:3>
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