PostGIS
3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
◆
collect_nodata_values()
raster2pgsql.collect_nodata_values
(
ds
,
band_from
,
band_to
)
Collect nodata values of bands in requested range
Definition at line
538
of file
raster2pgsql.py
.
538
def
collect_nodata_values(ds, band_from, band_to):
539
"""Collect nodata values of bands in requested range"""
540
541
nd = []
542
for
i
in
range(band_from, band_to):
543
band = ds.GetRasterBand(i)
544
nodata = band.GetNoDataValue()
545
if
nodata
is
not
None
and
not
is_nan(nodata):
546
nd.append(nodata)
547
548
return
nd
549
raster2pgsql
Generated by
1.9.8