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