PostGIS
3.6.2dev-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
531
of file
raster2pgsql.py
.
531
def
collect_nodata_values(ds, band_from, band_to):
532
"""Collect nodata values of bands in requested range"""
533
534
nd = []
535
for
i
in
range(band_from, band_to):
536
band = ds.GetRasterBand(i)
537
nodata = band.GetNoDataValue()
538
if
nodata
is
not
None
and
not
is_nan(nodata):
539
nd.append(nodata)
540
541
return
nd
542
raster2pgsql
Generated by
1.9.8