Skip to content

Commit

Permalink
tgis (#285)
Browse files Browse the repository at this point in the history
copy band reference from input to output when extracting raster maps
  • Loading branch information
metzm committed Jan 15, 2020
1 parent cb8b1c4 commit 086aeb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/python/temporal/extract.py
Expand Up @@ -226,6 +226,12 @@ def extract_dataset(input, output, type, where, expression, base, time_suffix,
# Set the time stamp
new_map.set_temporal_extent(old_map.get_temporal_extent())

if type == "raster":
# Set the band reference
band_reference = old_map.metadata.get_band_reference()
if band_reference is not None:
new_map.set_band_reference(band_reference)

# Insert map in temporal database
new_map.insert(dbif)

Expand Down

0 comments on commit 086aeb8

Please sign in to comment.