[postgis-tickets] [PostGIS] #5386: ST_MapAlgebra not respecting NULL nodatavalues

PostGIS trac at osgeo.org
Fri May 19 04:28:22 PDT 2023


#5386: ST_MapAlgebra not respecting NULL nodatavalues
---------------------+---------------------------
  Reporter:  robe    |      Owner:  robe
      Type:  defect  |     Status:  new
  Priority:  high    |  Milestone:  PostGIS 3.0.9
 Component:  raster  |    Version:  3.3.x
Resolution:          |   Keywords:
---------------------+---------------------------
Comment (by robe):

 I also tried the original signature:


 {{{
 st_mapalgebraexpr(
         rast raster,
         band integer,
         pixeltype text,
         expression text,
         nodataval double precision DEFAULT NULL::double precision)
 }}}


  and this also seems to ignore the input nodataval even calling by named
 args


 {{{
 SELECT ST_BandNoDataValue(st_mapalgebraexpr(rast => rast, band => 1,
 pixeltype => NULL, expression => '[rast.val]*1'::text, nodataval => 1))
 FROM test_robe WHERE rid = 1 ;
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5386#comment:2>
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