[postgis-tickets] [PostGIS] #2807: [raster] ST_MapAlgebra injecting a default NODATA value of 0
PostGIS
trac at osgeo.org
Fri Aug 29 12:18:16 PDT 2014
#2807: [raster] ST_MapAlgebra injecting a default NODATA value of 0
--------------------+-------------------------------------------------------
Reporter: strk | Owner: dustymugs
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.0
Component: raster | Version: trunk
Keywords: |
--------------------+-------------------------------------------------------
Comment(by pracine):
Replying to [comment:2 pracine]:
> Humm... I guess ST_MapAlgebra() HAS to produce a raster with a NODATA
value because you can never know if the result of the expression could end
up being NULL... Make sence?
There could be a switch though saying "No NODATA value" if you are sure
your expression will never return a NULL, but then if does return NULL you
get an unexpected value. If you don't like the fact that the resulting
raster has a nodata value just ST_SetBandNoDataValue(rast, NULL) it!
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2807#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