CartoDB / raster-loader

https://raster-loader.readthedocs.io
Other
15 stars 4 forks source link

[BUG] Field name is always using prefix "band_1_" #101

Closed cayetanobv closed 1 year ago

cayetanobv commented 1 year ago

Bug Description Field name always uses the prefix "band1" because this attribute is fixed in both functions: array_to_record and array_to_quadbin_record.

I understand we can improve or modify this behavior along with the proposal reported in issue #92, but right now this is a bug and we need to fix it.

Expected behavior Field name should be built using the correct band.

Screenshots image

System information [Run carto info in a terminal and add the output here, overwriting the text below.]

Python version: 3.8.10
Platform: Linux-4.15.0-202-generic-x86_64-with-glibc2.29
System version: Linux 4.15.0-202-generic
Machine: x86_64
Processor: x86_64
Architecture: 64bit

Additional context N/A